hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Meilong Huang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-15329) NullPointerException might occur when create table
Date Thu, 08 Dec 2016 12:08:58 GMT

    [ https://issues.apache.org/jira/browse/HIVE-15329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15732029#comment-15732029
] 

Meilong Huang commented on HIVE-15329:
--------------------------------------

Why hasn't the Hive QA come yet?


> NullPointerException might occur when create table
> --------------------------------------------------
>
>                 Key: HIVE-15329
>                 URL: https://issues.apache.org/jira/browse/HIVE-15329
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 2.0.0, 2.1.0
>            Reporter: Meilong Huang
>            Assignee: Meilong Huang
>              Labels: metastore
>         Attachments: HIVE-15329.1.patch
>
>
> NullPointerException might occur if table.getParameters() returns null when method isNonNativeTable
is invoked in class MetaStoreUtils.
> {code}
> public static boolean isNonNativeTable(Table table) {
>     if (table == null) {
>       return false;
>     }
>     return (table.getParameters().get(hive_metastoreConstants.META_TABLE_STORAGE) !=
null);
>   }
> {code}
> This will cause a stack trace without any suggestive information at client:
> {code}
> org.apache.hadoop.hive.metastore.api.MetaException: 
> java.lang.NullPointerException
>         at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$create_table_with_environment_context_result$create_table_with_environment_context_resultStandardScheme.read...
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message