You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Josh Elser (JIRA)" <ji...@apache.org> on 2016/01/25 03:49:39 UTC

[jira] [Resolved] (PHOENIX-1972) !describe throws exception when used with sqlline-thin/pqs

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

Josh Elser resolved PHOENIX-1972.
---------------------------------
    Resolution: Fixed

This one was fixed by CALCITE-927 and we will pick up the fix in 4.7.0

> !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
>            Assignee: Josh Elser
>
> 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)