[ 
https://issues.apache.org/jira/browse/HIVE-13462?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jason Dere updated HIVE-13462:
------------------------------
    Attachment: HIVE-13462.1.patch

Attaching patch with fix and test. Also moved some stuff around in that test to 
make the order of the tests match the order of the columns in the query.

> HiveResultSetMetaData.getPrecision() fails for NULL columns
> -----------------------------------------------------------
>
>                 Key: HIVE-13462
>                 URL: https://issues.apache.org/jira/browse/HIVE-13462
>             Project: Hive
>          Issue Type: Bug
>          Components: JDBC
>            Reporter: Jason Dere
>            Assignee: Jason Dere
>         Attachments: HIVE-13462.1.patch
>
>
> Can happen if you have a null in the select clause, for example "select null, 
> key, value from src"
> {noformat}
> java.sql.SQLException: Unrecognized column type: NULL
>       at 
> org.apache.hive.jdbc.JdbcColumn.typeStringToHiveType(JdbcColumn.java:160)
>       at 
> org.apache.hive.jdbc.HiveResultSetMetaData.getHiveType(HiveResultSetMetaData.java:48)
>       at 
> org.apache.hive.jdbc.HiveResultSetMetaData.getPrecision(HiveResultSetMetaData.java:86)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to