Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Impala 2.0
-
None
-
None
Description
The query below is rejected in analysis but could be allowed
Query: select COUNT(*) FROM alltypestiny WHERE int_col = (SELECT 1) UNION SELECT int_col FROM alltypestiny ERROR: AnalysisException: Unsupported statement containing subqueries: SELECT count(*) FROM functional.alltypestiny WHERE int_col = (SELECT 1) UNION SELECT int_col FROM functional.alltypestiny
is the same as
Query: select count(*) FROM functional.alltypestiny LEFT SEMI JOIN (SELECT 1 `$c$1`) `$a$1` ON int_col = `$a$1`.`$c$1` UNION SELECT int_col FROM functional.alltypestiny +----------+ | count(*) | +----------+ | 4 | | 1 | | 0 | +----------+