Michael Smith has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/24792 )
Change subject: IMPALA-14404: Test Calcite set operations ...................................................................... IMPALA-14404: Test Calcite set operations Add Calcite-only runtime coverage for UNION ALL, UNION, INTERSECT, and EXCEPT. Check NULLs, duplicate rows, three inputs, decimal coercion, empty inputs, and Impala's set-operator precedence. Require the Calcite planner in every profile and retain a scan in cases whose input becomes empty during execution. Test decimal input coercion directly in CoerceNodes with a UNION constructed after SQL analysis, so validator-inserted casts cannot satisfy the assertions. Testing on 7a3cb82b49: - CalciteOptimizerTest: 12 tests passed. - test_set_operations: all 19 SQL cases passed over HS2. - Disabling UNION input casts makes the new Java test fail. Change-Id: I151ee9e344dc17e0c0aa0745ccdc13962b7fb939 Assisted-by: gpt-6-astra (OpenAI Codex) Reviewed-on: http://gerrit.cloudera.org:8080/24792 Reviewed-by: Steve Carlin <[email protected]> Tested-by: Impala Public Jenkins <[email protected]> Reviewed-by: Michael Smith <[email protected]> --- M java/calcite-planner/src/test/java/org/apache/impala/calcite/service/CalciteOptimizerTest.java A testdata/workloads/functional-query/queries/QueryTest/calcite-set-operations.test M tests/query_test/test_calcite_planner.py 3 files changed, 391 insertions(+), 1 deletion(-) Approvals: Steve Carlin: Looks good to me, but someone else must approve Impala Public Jenkins: Verified Michael Smith: Looks good to me, approved -- To view, visit http://gerrit.cloudera.org:8080/24792 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: I151ee9e344dc17e0c0aa0745ccdc13962b7fb939 Gerrit-Change-Number: 24792 Gerrit-PatchSet: 3 Gerrit-Owner: Aleksandr Efimov <[email protected]> Gerrit-Reviewer: Aleksandr Efimov <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Michael Smith <[email protected]> Gerrit-Reviewer: Steve Carlin <[email protected]>
