hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-2957) Hive JDBC doesn't support TIMESTAMP column
Date Wed, 09 Jan 2013 10:29:50 GMT

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

Hudson commented on HIVE-2957:
------------------------------

Integrated in Hive-trunk-hadoop2 #54 (See [https://builds.apache.org/job/Hive-trunk-hadoop2/54/])
    HIVE-2957. Hive JDBC doesn't support TIMESTAMP column (Richard Ding via cws) (Revision
1384433)

     Result = ABORTED
cws : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1384433
Files : 
* /hive/trunk/data/files/datatypes.txt
* /hive/trunk/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveBaseResultSet.java
* /hive/trunk/jdbc/src/java/org/apache/hadoop/hive/jdbc/HivePreparedStatement.java
* /hive/trunk/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveResultSetMetaData.java
* /hive/trunk/jdbc/src/java/org/apache/hadoop/hive/jdbc/JdbcColumn.java
* /hive/trunk/jdbc/src/java/org/apache/hadoop/hive/jdbc/Utils.java
* /hive/trunk/jdbc/src/test/org/apache/hadoop/hive/jdbc/TestJdbcDriver.java

                
> 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: Richard Ding
>            Priority: Minor
>             Fix For: 0.10.0
>
>         Attachments: HIVE-2957.2.patch.txt, HIVE-2957.3.patch, HIVE-2957.4.patch, HIVE-2957.patch,
JDBC_ResultSet_Conversion_Chart.png
>
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message