Hello Quanlong Huang, Steve Carlin, Impala Public Jenkins,

I'd like you to reexamine a change. Please visit

    https://gerrit.cloudera.org/25001

to look at the new patch set (#7).

Change subject: IMPALA-15778: Use HBO row counts in Calcite scans
......................................................................

IMPALA-15778: Use HBO row counts in Calcite scans

Use HBO row counts for unfiltered HDFS scans during Calcite
optimization. Fall back to existing estimates when no history matches.

Snapshot the HBO lookup during table initialization and share scan
input-stat helpers with HdfsScanNode. Keep the catalog row count for
NULL selectivity, paired with the catalog's NULL count. Use the HBO
row count for missing NDV estimates and the distinct-row-count cap.

Both planners share the HBO read-time limit check so Calcite can skip
lookups once the query has used its budget.

Test missing and known NDV, zero cardinality, disabled HBO, filter
estimates and tables without catalog stats. Check that COUNT(*) and
sampled history cannot override table cardinality.

Filtered scan keys, Iceberg, Kudu and transactional tables are left
for follow-up work.

Testing: TestCalciteHboStats (21) and HboReadTimeLimitTest (4) passed.

Change-Id: I0f530098d34869cda5ff36a06576bb4854ad7f4f
Assisted-by: gpt-6.1-sol (Codex)
---
M fe/src/main/java/org/apache/impala/catalog/FeFsTable.java
M fe/src/main/java/org/apache/impala/planner/HdfsScanNode.java
M fe/src/main/java/org/apache/impala/planner/PlanNode.java
M fe/src/main/java/org/apache/impala/service/HistoricalStats.java
M 
java/calcite-planner/src/main/java/org/apache/impala/calcite/schema/CalciteTable.java
M 
java/calcite-planner/src/main/java/org/apache/impala/calcite/schema/FilterSelectivityEstimator.java
A 
java/calcite-planner/src/test/java/org/apache/impala/calcite/planner/TestCalciteHboStats.java
7 files changed, 496 insertions(+), 35 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/01/25001/7
--
To view, visit https://gerrit.cloudera.org/25001
To unsubscribe, visit https://gerrit.cloudera.org/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I0f530098d34869cda5ff36a06576bb4854ad7f4f
Gerrit-Change-Number: 25001
Gerrit-PatchSet: 7
Gerrit-Owner: Aleksandr Efimov <[email protected]>
Gerrit-Reviewer: Aleksandr Efimov <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Quanlong Huang <[email protected]>
Gerrit-Reviewer: Steve Carlin <[email protected]>

Reply via email to