mirror of
https://github.com/apache/impala.git
synced 2026-02-03 00:00:40 -05:00
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 <impala-public-jenkins@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>