Aleksandr Efimov has posted comments on this change. ( http://gerrit.cloudera.org:8080/25001 )
Change subject: IMPALA-15059: Use HBO row counts in Calcite scans ...................................................................... Patch Set 3: (1 comment) http://gerrit.cloudera.org:8080/#/c/25001/3/java/calcite-planner/src/main/java/org/apache/impala/calcite/schema/CalciteTable.java File java/calcite-planner/src/main/java/org/apache/impala/calcite/schema/CalciteTable.java: http://gerrit.cloudera.org:8080/#/c/25001/3/java/calcite-planner/src/main/java/org/apache/impala/calcite/schema/CalciteTable.java@114 PS3, Line 114: hboRowCount_ = loadHboRowCount(); > It seems this row count is used even if the scan has filters like partition The unfiltered count still feeds TableScan metadata and fallback estimates. In https://gerrit.cloudera.org/c/25002/3, the lookup is lazy, so an exact filtered HBO hit skips it. testFilteredHistoryDoesNotLoadUnfilteredHistory covers this. -- To view, visit http://gerrit.cloudera.org:8080/25001 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I0f530098d34869cda5ff36a06576bb4854ad7f4f Gerrit-Change-Number: 25001 Gerrit-PatchSet: 3 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]> Gerrit-Comment-Date: Thu, 29 Oct 2026 15:19:38 +0000 Gerrit-HasComments: Yes
