phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Elser (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PHOENIX-1972) !describe throws exception when used with sqlline-thin/pqs
Date Tue, 20 Oct 2015 15:50:27 GMT

    [ https://issues.apache.org/jira/browse/PHOENIX-1972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14965285#comment-14965285
] 

Josh Elser commented on PHOENIX-1972:
-------------------------------------

I dug into this one yesterday. I think it will be fixed by CALCITE-927.

> !describe throws exception when used with sqlline-thin/pqs
> ----------------------------------------------------------
>
>                 Key: PHOENIX-1972
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-1972
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.4.0
>            Reporter: Nick Dimiduk
>
> Seems we're dropping some metadata about column types.
> {noformat}
> 0: jdbc:phoenix:thin:url=http://localhost:876> !describe TABLE1
> +------------------------------------------+-----------------------------------+
> |                TABLE_CAT                 |               TABLE_SCHEM         |
> +------------------------------------------+-----------------------------------+
> java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
> 	at org.apache.calcite.avatica.util.AbstractCursor$LongAccessor.getLong(AbstractCursor.java:497)
> 	at org.apache.calcite.avatica.AvaticaParameter.get(AvaticaParameter.java:320)
> 	at org.apache.calcite.avatica.AvaticaResultSet.getObject(AvaticaResultSet.java:380)
> 	at sqlline.Rows$Row.<init>(Rows.java:157)
> 	at sqlline.IncrementalRows.hasNext(IncrementalRows.java:63)
> 	at sqlline.TableOutputFormat.print(TableOutputFormat.java:33)
> 	at sqlline.SqlLine.print(SqlLine.java:1653)
> 	at sqlline.Commands.metadata(Commands.java:199)
> 	at sqlline.Commands.columns(Commands.java:360)
> 	at sqlline.Commands.describe(Commands.java:1367)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at sqlline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:36)
> 	at sqlline.SqlLine.dispatch(SqlLine.java:804)
> 	at sqlline.SqlLine.begin(SqlLine.java:681)
> 	at sqlline.SqlLine.start(SqlLine.java:398)
> 	at sqlline.SqlLine.main(SqlLine.java:292)
> {noformat}



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

Mime
View raw message