[
https://issues.apache.org/jira/browse/DRILL-6716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16594739#comment-16594739
]
Volodymyr Vysotskyi commented on DRILL-6716:
--------------------------------------------
Looks like the problem is in Calcite. It already contains a parser test case
for the similar query `SqlParserTest.testStarAsFails()` but it was not fixed.
> NullPointerException for select query with alias on * symbol
> ------------------------------------------------------------
>
> Key: DRILL-6716
> URL: https://issues.apache.org/jira/browse/DRILL-6716
> Project: Apache Drill
> Issue Type: Bug
> Affects Versions: 1.14.0
> Reporter: Denys Ordynskiy
> Priority: Major
> Attachments: drillbit.log
>
>
> When I added alias for * in SELECT query in Drill WebUI and in sqlline:
> SELECT * as testAlias FROM cp.`employee.json` LIMIT 2;
> *Actual result:*
> {color:#ff0000}org.apache.drill.common.exceptions.UserRemoteException:
> SYSTEM ERROR: *NullPointerException* [Error Id:
> 58d090f2-cf9a-437a-977d-8a64f50d8e4b on maprhost:31010]{color}
> *Expected result:*
> {color:#333333}Bad query error information "PARSE ERROR: ..."{color}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)