Quanlong Huang 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:

(3 comments)

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 
predicates. In that case, the other patch (https://gerrit.cloudera.org/c/25002) 
will read HBO stats on this table again with filters. Then do we still need 
this? Or does this make some difference to the Calcite plan?


http://gerrit.cloudera.org:8080/#/c/25001/3/java/calcite-planner/src/main/java/org/apache/impala/calcite/schema/CalciteTable.java@263
PS3, Line 263:     if (fsTable.isHiveAcid()) return null;
Could you add a comment on why we exclude Hive ACID tables here?


http://gerrit.cloudera.org:8080/#/c/25001/3/java/calcite-planner/src/main/java/org/apache/impala/calcite/schema/CalciteTable.java@278
PS3, Line 278: PlanNode.generateHboHashStrings()
> Calcite uses this through getRowCount() to estimate TableScan rows. Sharing
A follow-up works for me if it's too complex.



--
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: Wed, 28 Oct 2026 13:26:09 +0000
Gerrit-HasComments: Yes

Reply via email to