gonglinglei created HIVE-19455:
----------------------------------
Summary: Create JDBC External Table NullPointerException
Key: HIVE-19455
URL: https://issues.apache.org/jira/browse/HIVE-19455
Project: Hive
Issue Type: Bug
Components: JDBC
Affects Versions: 3.0.0, 2.3.3
Reporter: gonglinglei
{{JdbcSerDe.initialize}} use
{{tbl.containsKey(JdbcStorageConfig.DATABASE_TYPE.getPropertyName())}} to
decide whether properties is empty and whether to initialize serde. But when
creating a external table
without {{hive.sql.database.type}} provided, it will throw a
NullPointerException.
2018-05-08T11:21:03,745 ERROR [88c8bc6c-cd5b-4b74-b6d6-242e3cc12165 main]
metadata.Table: Unable to get field from serde:
org.apache.hive.storage.jdbc.JdbcSerDe
java.lang.NullPointerException
at
org.apache.hadoop.hive.metastore.MetaStoreUtils.getFieldsFromDeserializer(MetaStoreUtils.java:1426)
~[hive-exec-2.3.3.jar:2.3.3]
at
org.apache.hadoop.hive.ql.metadata.Table.getColsInternal(Table.java:641)
~[hive-exec-2.3.3.jar:2.3.3]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)