You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Bharath Ganesh (Created) (JIRA)" <ji...@apache.org> on 2012/04/17 16:26:16 UTC

[jira] [Created] (HIVE-2957) JDBC getColumns() fails on a TIMESTAMP column

JDBC getColumns() fails on a 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


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

        

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

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carl Steinbach updated HIVE-2957:
---------------------------------

    Attachment: JDBC_ResultSet_Conversion_Chart.png
    
> 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.3.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

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

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
    [ 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

        

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

Posted by "Bharath Ganesh (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bharath Ganesh updated HIVE-2957:
---------------------------------

    Attachment: HIVE-2957.patch

Added support for TIMESTAMP column on the JDBC driver. I am not 100% sure of the precision and scale. Please do verify. I tested the sanity and I am able to retrieve a column upto nano-second precision.
                
> 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
>             Fix For: 0.9.0
>
>         Attachments: 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

        

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

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13454643#comment-13454643 ] 

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

Thanks for making the changes Richard.

+1. Will commit if tests pass.
                
> 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
>         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

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

Posted by "tamtam180 (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

tamtam180 updated HIVE-2957:
----------------------------

    Attachment: HIVE-2957.2.patch.txt

I updated the patch.
I added testcase and fixed the some issues which I found on running the test.

                
> 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

        

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

Posted by "Bharath Ganesh (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bharath Ganesh updated HIVE-2957:
---------------------------------

    Fix Version/s: 0.8.0
                   0.10
                   0.9.0
           Status: Patch Available  (was: In Progress)
    
> 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
>             Fix For: 0.9.0, 0.10, 0.8.0
>
>
> 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

        

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

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carl Steinbach reassigned HIVE-2957:
------------------------------------

    Assignee: Richard Ding  (was: Bharath Ganesh)

@Richard: I added a couple comments on reviewboard. I'd like to get this committed soon, so please let me know if you have time to work on this. 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: Richard Ding
>            Priority: Minor
>         Attachments: HIVE-2957.2.patch.txt, HIVE-2957.3.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

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

Posted by "Ashutosh Chauhan (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ashutosh Chauhan updated HIVE-2957:
-----------------------------------

    Status: Open  (was: Patch Available)

Patch needs a test case.
                
> 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
>             Fix For: 0.9.0
>
>         Attachments: 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

        

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

Posted by "Richard Ding (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard Ding updated HIVE-2957:
-------------------------------

    Attachment: HIVE-2957.4.patch

@Carl: thanks for the review comments. Attach a new patch addressing these comments.
                
> 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
>         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

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

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13455628#comment-13455628 ] 

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

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

     Result = SUCCESS
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

[jira] [Work started] (HIVE-2957) JDBC getColumns() fails on a TIMESTAMP column

Posted by "Bharath Ganesh (Work started) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on HIVE-2957 started by Bharath Ganesh.

> JDBC getColumns() fails on a 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
>
> 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

        

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

Posted by "Bharath Ganesh (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bharath Ganesh updated HIVE-2957:
---------------------------------

    Summary: Hive JDBC doesn't support TIMESTAMP column  (was: JDBC getColumns() fails on a TIMESTAMP column)
    
> 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
>
> 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

        

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

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carl Steinbach updated HIVE-2957:
---------------------------------

       Resolution: Fixed
    Fix Version/s: 0.10.0
     Hadoop Flags: Reviewed
           Status: Resolved  (was: Patch Available)

Committed to trunk. Thanks Richard!
                
> 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

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

Posted by "Ashutosh Chauhan (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ashutosh Chauhan updated HIVE-2957:
-----------------------------------

    Fix Version/s:     (was: 0.9.0)

Unlinking from 0.9
                
> 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.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

        

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

Posted by "Richard Ding (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard Ding updated HIVE-2957:
-------------------------------

    Status: Patch Available  (was: Open)
    
> 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.9.0, 0.8.1
>            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

        

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

Posted by "Richard Ding (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard Ding updated HIVE-2957:
-------------------------------

    Attachment: HIVE-2957.3.patch

Rebase patch on trunk.
                
> 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.3.patch, 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

        

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

Posted by "Bharath Ganesh (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bharath Ganesh updated HIVE-2957:
---------------------------------

    Fix Version/s:     (was: 0.10)
                       (was: 0.8.0)
    
> 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
>             Fix For: 0.9.0
>
>         Attachments: 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

        

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

Posted by "Richard Ding (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13446404#comment-13446404 ] 

Richard Ding commented on HIVE-2957:
------------------------------------

Review request is posted: https://reviews.apache.org/r/5504/
                
> 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.3.patch, 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
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Posted by "tamtam180 (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13259040#comment-13259040 ] 

tamtam180 commented on HIVE-2957:
---------------------------------

Hi Bharath,
As I wrote in above comment, I updated your patch and fixed some issue.
If you don't mind, could you review my patch?
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

        

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

Posted by "Bharath Ganesh (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13259049#comment-13259049 ] 

Bharath Ganesh commented on HIVE-2957:
--------------------------------------

Looks fine to me. 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