Aleksandr Efimov has posted comments on this change. ( http://gerrit.cloudera.org:8080/25002 )
Change subject: IMPALA-15059: Use HBO stats for Calcite filters ...................................................................... Patch Set 2: (2 comments) http://gerrit.cloudera.org:8080/#/c/25002/2/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/25002/2/java/calcite-planner/src/main/java/org/apache/impala/calcite/schema/CalciteTable.java@103 PS2, Line 103: private final Map<String, Double> filteredHboRowCounts_ = new HashMap<>(); > nit: can we add some comments about these variables? Added comments for both caches locally. http://gerrit.cloudera.org:8080/#/c/25002/2/java/calcite-planner/src/main/java/org/apache/impala/calcite/schema/CalciteTable.java@128 PS2, Line 128: hboRowCount_ = loadHboRowCount(); > Do we still need this row count if there is a Filter over TableScan and hit You're right, we don't need the unfiltered lookup when the Filter hits HBO. I've made it lazy locally, keeping it for fallback estimates and separate TableScan metadata requests. I still need to run the tests before uploading. -- To view, visit http://gerrit.cloudera.org:8080/25002 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I9270a5f94d42a4ad20d3337819b46467e83a3bf7 Gerrit-Change-Number: 25002 Gerrit-PatchSet: 2 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: Mon, 12 Oct 2026 11:18:48 +0000 Gerrit-HasComments: Yes
