Details
Description
With the upgrade to datanucleus 4.x versions in HIVE-6113, hive does not work properly with postgres.
The nullable fields in the database have string "NULL::character varying" instead of real NULL values. This causes various issues.
One example is -
hive> create table t(i int);
OK
Time taken: 1.9 seconds
hive> create view v as select * from t;
OK
Time taken: 0.542 seconds
hive> select * from v;
FAILED: SemanticException Unable to fetch table v. java.net.URISyntaxException: Relative path in absolute URI: NULL::character%20varying
Attachments
Attachments
Issue Links
- is duplicated by
-
ATLAS-1045 HiveHook fails to post metadata for "Create view" with "Relative path in absolute URI: NULL::character%20varying" exception
- Resolved
- is related to
-
HIVE-14371 use datanucleus.rdbms.useColumnDefaultWhenNull when available
- Open
-
HIVE-6113 Upgrade DataNucleus [was: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient]
- Closed
-
HIVE-1841 datanucleus.fixedDatastore should be true in hive-default.xml
- Closed
- relates to
-
HIVE-15204 Hive-Hbase integration thorws "java.lang.ClassNotFoundException: NULL::character varying" (Postgres)
- Open
- links to