Description
Steps to replicate:
1. Create a table with at least one column of type TIMESTAMP
2. Do a DatabaseMetaData.getColumns () such that this TIMESTAMP column is part of the resultset.
3. When you iterate over the TIMESTAMP column it would fail, throwing the below exception:
Exception in thread "main" java.sql.SQLException: Unrecognized column type: timestamp
at org.apache.hadoop.hive.jdbc.Utils.hiveTypeToSqlType(Utils.java:56)
at org.apache.hadoop.hive.jdbc.JdbcColumn.getSqlType(JdbcColumn.java:62)
at org.apache.hadoop.hive.jdbc.HiveDatabaseMetaData$2.next(HiveDatabaseMetaData.java:244)
Attachments
Attachments
Issue Links
- relates to
-
HIVE-11748 HivePreparedStatement's setTimestamp() does not quote value as required
- Closed