[
https://issues.apache.org/jira/browse/PHOENIX-6568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17428428#comment-17428428
]
ASF GitHub Bot commented on PHOENIX-6568:
-----------------------------------------
stoty closed pull request #1331:
URL: https://github.com/apache/phoenix/pull/1331
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
> NullPointerException in phoenix-queryserver-client not in
> phoenix-client-hbase
> --------------------------------------------------------------------------------
>
> Key: PHOENIX-6568
> URL: https://issues.apache.org/jira/browse/PHOENIX-6568
> Project: Phoenix
> Issue Type: Bug
> Components: core
> Affects Versions: 5.2.0
> Reporter: Alejandro Anadon
> Assignee: Istvan Toth
> Priority: Major
> Fix For: 4.17.0, 5.2.0, 4.16.2, 5.1.3
>
>
> It may not be a bug and it's simply because I'm missing some concepts, but I
> guess the behavior of phoenix-client-hbase should be the same as
> phoenix-queryserver-client.
> If I run a simple query like:
> select null;
> In phoenix-queryserver-client I get a java.lang.NullPointerException, but in
> phoenix-client-hbase not.
>
> the query is reduced to the minimal concept, but I have the same result with
> other queries like:
> select null as SEQUENCE_CATALOG , SEQUENCE_SCHEMA , SEQUENCE_NAME ,
> START_WITH as START_VALUE , MIN_VALUE as MINIMUM_VALUE , MAX_VALUE as
> MAXIMUM_VALUE , INCREMENT_BY as "INCREMENT" FROM SYSTEM."SEQUENCE";
>
> this is the exception:
>
> org.apache.calcite.avatica.AvaticaSqlException: Error -1 (00000) : Error
> while executing SQL "select null": Remote driver error: NullPointerException:
> (null exception message)
> at org.apache.calcite.avatica.Helper.createException(Helper.java:54)
> at org.apache.calcite.avatica.Helper.createException(Helper.java:41)
> at
> org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:163)
> at
> org.apache.calcite.avatica.AvaticaStatement.execute(AvaticaStatement.java:217)
> at sqlline.Commands.executeSingleQuery(Commands.java:1054)
> at sqlline.Commands.execute(Commands.java:1003)
> at sqlline.Commands.sql(Commands.java:967)
> at sqlline.SqlLine.dispatch(SqlLine.java:734)
> at sqlline.SqlLine.begin(SqlLine.java:541)
> at sqlline.SqlLine.start(SqlLine.java:267)
> at sqlline.SqlLine.main(SqlLine.java:206)
> at
> org.apache.phoenix.queryserver.client.SqllineWrapper.main(SqllineWrapper.java:64)
> java.lang.NullPointerException
> at java.base/java.util.Objects.requireNonNull(Objects.java:221)
> at
> org.apache.calcite.avatica.ColumnMetaData$AvaticaType.<init>(ColumnMetaData.java:528)
> at
> org.apache.calcite.avatica.ColumnMetaData$ScalarType.<init>(ColumnMetaData.java:598)
> at org.apache.calcite.avatica.ColumnMetaData.scalar(ColumnMetaData.java:265)
> at org.apache.calcite.avatica.jdbc.JdbcMeta.columns(JdbcMeta.java:247)
> at org.apache.calcite.avatica.jdbc.JdbcMeta.signature(JdbcMeta.java:288)
> at org.apache.calcite.avatica.jdbc.JdbcMeta.signature(JdbcMeta.java:294)
> at
> org.apache.calcite.avatica.jdbc.JdbcResultSet.create(JdbcResultSet.java:80)
> ......
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)