You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Patrick Hunt (JIRA)" <ji...@apache.org> on 2011/07/30 00:42:10 UTC

[jira] [Updated] (HIVE-1631) JDBC driver returns wrong precision, scale, or column size for some data types

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

Patrick Hunt updated HIVE-1631:
-------------------------------

    Attachment: HIVE-1631.patch

This patch addresses the specified methods based on my reading of the spec. It's not at all clear to me that I've interpreted the spec correctly, so please do chime in if you think something is wrong - for example: in my update Hive string columns have a size of Integer.MAX_VALUE given Hive has no bounds on length.

This patch also fixes a problem with the metadata returned by 

DatabaseMetaData.getColumns(...).getMetaData()

I updated the tests and also viewed the result of these changes via Squirrel



> JDBC driver returns wrong precision, scale, or column size for some data types
> ------------------------------------------------------------------------------
>
>                 Key: HIVE-1631
>                 URL: https://issues.apache.org/jira/browse/HIVE-1631
>             Project: Hive
>          Issue Type: Bug
>          Components: JDBC
>    Affects Versions: 0.7.0
>            Reporter: Steven Wong
>            Assignee: Patrick Hunt
>            Priority: Minor
>         Attachments: HIVE-1631.patch
>
>
> For some data types, these methods return values that do not conform to the JDBC spec:
> org.apache.hadoop.hive.jdbc.HiveResultSetMetaData.getPrecision(int)
> org.apache.hadoop.hive.jdbc.HiveResultSetMetaData.getScale(int)
> org.apache.hadoop.hive.jdbc.HiveResultSetMetaData.getColumnDisplaySize(int)
> org.apache.hadoop.hive.jdbc.JdbcColumn.getColumnSize()

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira