[
https://issues.apache.org/jira/browse/IMPALA-9929?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17163709#comment-17163709
]
ASF subversion and git services commented on IMPALA-9929:
---------------------------------------------------------
Commit 6f99cabdb9ab71d5c022b95716a276b04b5ba132 in impala's branch
refs/heads/master from Shant Hovsepian
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=6f99cab ]
IMPALA-9929: Subquery error should throw AnalysisException
Unsupported subquery in the select list should throw an
AnalysisException.
Testing:
* Analyzer test to catch this case.
Change-Id: Ic299ea25fd6e505e364528891e737a9af5bcc338
Reviewed-on: http://gerrit.cloudera.org:8080/16212
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
> Unsupported subquery in select list throws IllegalStateException instead of
> AnalysisException
> ---------------------------------------------------------------------------------------------
>
> Key: IMPALA-9929
> URL: https://issues.apache.org/jira/browse/IMPALA-9929
> Project: IMPALA
> Issue Type: Bug
> Components: Frontend
> Reporter: Tim Armstrong
> Assignee: Shant Hovsepian
> Priority: Major
>
> {noformat}
> [localhost.EXAMPLE.COM:21000] default> explain select year, month, (year =
> 2010 and month > 11) or min(id) in (select int_col from
> functional.alltypestiny) from functional.alltypes;
> Query: explain select year, month, (year = 2010 and month > 11) or min(id)
> in (select int_col from functional.alltypestiny) from functional.alltypes
> ERROR: IllegalStateException: Invariant violated: Only subqueries that are
> guaranteed to return a single row are supported: (`year` = 2010 AND `month` >
> 11) OR min(id) IN (SELECT int_col FROM functional.alltypestiny)
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]