hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "gonglinglei (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-19455) Create JDBC External Table NullPointerException
Date Thu, 10 May 2018 03:17:00 GMT

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

gonglinglei updated HIVE-19455:
-------------------------------
    Attachment: HIVE-19455.2.patch
        Status: Patch Available  (was: Open)

> 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
>            Priority: Major
>         Attachments: HIVE-19455.1.patch, HIVE-19455.2.patch
>
>
> {{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.
> {quote}
> 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]
> {quote}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message