Impala Public Jenkins has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/19811 )
Change subject: IMPALA-12097: WITH CLAUSE should be skipped when optimizing COUNT(*) query on Iceberg table ...................................................................... IMPALA-12097: WITH CLAUSE should be skipped when optimizing COUNT(*) query on Iceberg table When optimizing the simple count star query for the Iceberg table, the WITH CLAUSE should be skipped, but that doesn't mean the SQL can't be optimized, because when the WITH CLAUSE is inlined, the final statement is optimized by the CountStarToConstRule. Testing: * Add e2e tests Change-Id: I7b21cbea79be77f2ea8490bd7f7b2f62063eb0e4 Reviewed-on: http://gerrit.cloudera.org:8080/19811 Reviewed-by: Impala Public Jenkins <[email protected]> Tested-by: Impala Public Jenkins <[email protected]> --- M fe/src/main/java/org/apache/impala/analysis/SelectStmt.java M testdata/workloads/functional-planner/queries/PlannerTest/iceberg-v2-tables.test M testdata/workloads/functional-query/queries/QueryTest/iceberg-plain-count-star-optimization.test M testdata/workloads/functional-query/queries/QueryTest/iceberg-v2-plain-count-star-optimization.test 4 files changed, 173 insertions(+), 3 deletions(-) Approvals: Impala Public Jenkins: Looks good to me, approved; Verified -- To view, visit http://gerrit.cloudera.org:8080/19811 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: I7b21cbea79be77f2ea8490bd7f7b2f62063eb0e4 Gerrit-Change-Number: 19811 Gerrit-PatchSet: 4 Gerrit-Owner: Anonymous Coward <[email protected]> Gerrit-Reviewer: Aman Sinha <[email protected]> Gerrit-Reviewer: Anonymous Coward <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]>
