mirror of
https://github.com/apache/impala.git
synced 2025-12-19 18:12:08 -05:00
IMPALA-8954: Uncorrelated scalar subqueries in the select list
Extend StmtRewriter with the ability to rewrite scalar subqueries in the select list into cross joins. Currently the subquery must pass plan-time checks to determine that it returns a single row which may miss cases that may be valid at runtime or with more complex evaluation of the predicate expressions in the planner. Support for correlated subqueries will be a follow on change. Testing: * Added new analyzer tests, updated previous subquery tests * test_queries.py::TestQueries::test_subquery * Added test_tpcds_q9 to e2e and planner tests Change-Id: Ibcf55d26889aa01d69bb85f18c9241dda095fb66 Reviewed-on: http://gerrit.cloudera.org:8080/16007 Reviewed-by: Tim Armstrong <tarmstrong@cloudera.com> Tested-by: Tim Armstrong <tarmstrong@cloudera.com>
This commit is contained in:
committed by
Tim Armstrong
parent
49af396c10
commit
388ad555d7
@@ -22,7 +22,7 @@ from datetime import datetime
|
||||
# changed, and the stress test loses the ability to run the full set of queries. Set
|
||||
# these constants and assert that when a workload is used, all the queries we expect to
|
||||
# use are there.
|
||||
EXPECTED_TPCDS_QUERIES_COUNT = 84
|
||||
EXPECTED_TPCDS_QUERIES_COUNT = 85
|
||||
EXPECTED_TPCH_NESTED_QUERIES_COUNT = 22
|
||||
EXPECTED_TPCH_QUERIES_COUNT = 22
|
||||
# Add the number of stress test specific queries, i.e. in files like '*-stress-*.test'
|
||||
|
||||
Reference in New Issue
Block a user