You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "David Zanter (JIRA)" <ji...@apache.org> on 2016/02/11 14:39:18 UTC

[jira] [Updated] (HIVE-11509) getColumnTypeName method of ResultSetMetaData does not works for UNIONTYPE column

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

David Zanter updated HIVE-11509:
--------------------------------
    Affects Version/s: 1.1.0

> getColumnTypeName method of ResultSetMetaData does not works for UNIONTYPE column
> ---------------------------------------------------------------------------------
>
>                 Key: HIVE-11509
>                 URL: https://issues.apache.org/jira/browse/HIVE-11509
>             Project: Hive
>          Issue Type: Bug
>          Components: JDBC
>    Affects Versions: 1.0.0, 1.1.0
>            Reporter: reena upadhyay
>            Priority: Critical
>
> I am executing a simple select query on table with uniontype column. Hive already has a support for creating table with uniontype data type. Now when I am trying to fetch the column type information using  getColumnTypeName(i+1) method of ResultSetMetaData using hive-jdbc 1.0.0 version, getting below exception:
> 2015-08-10 16:00:07 ERROR ExecuteStatementOperation:114 - java.sql.SQLException: Unrecognized column type: UNIONTYPE
> 	at org.apache.hive.jdbc.JdbcColumn.getColumnTypeName(JdbcColumn.java:185)
> 	at org.apache.hive.jdbc.HiveResultSetMetaData.getColumnTypeName(HiveResultSetMetaData.java:78)



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