[email protected] has uploaded this change for review. ( 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 start 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 --- M fe/src/main/java/org/apache/impala/analysis/SelectStmt.java 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 3 files changed, 59 insertions(+), 1 deletion(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/11/19811/1 -- 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: newchange Gerrit-Change-Id: I7b21cbea79be77f2ea8490bd7f7b2f62063eb0e4 Gerrit-Change-Number: 19811 Gerrit-PatchSet: 1 Gerrit-Owner: Anonymous Coward <[email protected]>
