You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Carl Steinbach (JIRA)" <ji...@apache.org> on 2012/06/21 10:59:43 UTC

[jira] [Commented] (HIVE-2957) Hive JDBC doesn't support TIMESTAMP column

    [ https://issues.apache.org/jira/browse/HIVE-2957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13398302#comment-13398302 ] 

Carl Steinbach commented on HIVE-2957:
--------------------------------------

@Richard: Please post a review request on reviews.apache.org. Thanks.
                
> Hive JDBC doesn't support TIMESTAMP column
> ------------------------------------------
>
>                 Key: HIVE-2957
>                 URL: https://issues.apache.org/jira/browse/HIVE-2957
>             Project: Hive
>          Issue Type: Bug
>          Components: JDBC
>    Affects Versions: 0.8.1, 0.9.0
>            Reporter: Bharath Ganesh
>            Assignee: Bharath Ganesh
>            Priority: Minor
>         Attachments: HIVE-2957.2.patch.txt, HIVE-2957.patch
>
>
> 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)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira