[
https://issues.apache.org/jira/browse/HIVE-20938?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Roohi Syeda reassigned HIVE-20938:
----------------------------------
Assignee: Roohi Syeda
> HiveResultSetMetaData.getColumnDisplaySize throws for SHORT column
> ------------------------------------------------------------------
>
> Key: HIVE-20938
> URL: https://issues.apache.org/jira/browse/HIVE-20938
> Project: Hive
> Issue Type: Bug
> Reporter: Julian Hyde
> Assignee: Roohi Syeda
> Priority: Major
>
> HiveResultSetMetaData.getColumnDisplaySize throws for SHORT column. Stack is
> as follows:
> {noformat}
> Error: Unrecognized column type: SHORT (state=,code=0)
> java.sql.SQLException: Unrecognized column type: SHORT
> at
> org.apache.hive.jdbc.JdbcColumn.typeStringToHiveType(JdbcColumn.java:164)
> at
> org.apache.hive.jdbc.HiveResultSetMetaData.getHiveType(HiveResultSetMetaData.java:48)
> at
> org.apache.hive.jdbc.HiveResultSetMetaData.getColumnDisplaySize(HiveResultSetMetaData.java:61)
> at sqlline.IncrementalRows.<init>(IncrementalRows.java:47)
> at sqlline.SqlLine.print(SqlLine.java:1702)
> at sqlline.Commands.metadata(Commands.java:207)
> at sqlline.Commands.indexes(Commands.java:364)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
> sqlline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:38)
> at sqlline.SqlLine.dispatch(SqlLine.java:718)
> at sqlline.SqlLine.begin(SqlLine.java:539)
> at sqlline.SqlLine.start(SqlLine.java:264)
> at sqlline.SqlLine.main(SqlLine.java:195)
> {noformat}
> We have worked around this in
> https://github.com/julianhyde/sqlline/issues/203. I believe the issue also
> exists in Beeline, which is a fork of SQLLine.
> Seems similar to HIVE-7448, which related to BINARY type and was fixed a long
> time ago.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)