You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Meilong Huang (JIRA)" <ji...@apache.org> on 2016/12/01 14:54:58 UTC

[jira] [Work started] (HIVE-15329) NullPointerException might occur when create table

     [ https://issues.apache.org/jira/browse/HIVE-15329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on HIVE-15329 started by Meilong Huang.
--------------------------------------------
> 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: 0.8.0, 0.9.0, 1.0.0, 1.2.0, 1.1.0, 2.0.0, 2.1.0
>            Reporter: Meilong Huang
>            Assignee: Meilong Huang
>              Labels: metastore
>
> NullPointerException might occur when table.getParameters() returns null when method isNonNativeTable is invoked in class MetaStoreUtils.
> public static boolean isNonNativeTable(Table table) {
>     if (table == null) {
>       return false;
>     }
>     return (table.getParameters().get(hive_metastoreConstants.META_TABLE_STORAGE) != null);
>   }
> This will cause a stack trace without any suggestive information at client:
> 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...



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