Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
ghx-label-8
Description
We can also use a runtime scalar subquery check for subqueries that have a scalar return type and also contain a grouping expression.
For example the following query would pass a runtime scalar check, given the predicate on the grouping expression.
select * from functional.alltypes where id < (select count(bool_col) from functional.alltypes where int_col=1 group by int_col);
Ideally we could detect situation like the above at plan time and avoid the runtime scalar check all together with IMPALA-1285
Attachments
Issue Links
- depends upon
-
IMPALA-6314 Add run time scalar subquery check for uncorrelated subqueries
- Resolved
- is related to
-
IMPALA-1285 Subquery with group by and where could realize the result has one row.
- Open