Aman Sinha has posted comments on this change. ( 
https://gerrit.cloudera.org/24612 )

Change subject: IMPALA-15179: Support HBO for SelectNode cardinality
......................................................................


Patch Set 12:

(2 comments)

https://gerrit.cloudera.org/#/c/24612/12//COMMIT_MSG
Commit Message:

https://gerrit.cloudera.org/#/c/24612/12//COMMIT_MSG@9
PS12, Line 9: evaludated
nit: evaluated


https://gerrit.cloudera.org/#/c/24612/12/fe/src/main/java/org/apache/impala/planner/SelectNode.java
File fe/src/main/java/org/apache/impala/planner/SelectNode.java:

https://gerrit.cloudera.org/#/c/24612/12/fe/src/main/java/org/apache/impala/planner/SelectNode.java@127
PS12, Line 127:     tryUpdateCardinalityFromHbo(analyzer);
I see that SelectNode has a private field selectivity_ .  When the cardinality 
is set from HBO, technically selectivity_ is not needed but in case someone 
tries to retrieve the SelectNode's selectivity, it should be updated based on 
HBO stats, otherwise there would be a mismatch.  WDYT ?

 i.e.  selectivity_ = ((double) HBO cardinality for SelectNode)/ (input 
cardinality from the child PlanNode)

The computeSelectivity() method is currently oblivious to the HBO stats. This 
is likely applicable to other PlanNodes but I noticed it for SelectNode only 
because it keeps a selectivity_ member variable.



--
To view, visit https://gerrit.cloudera.org/24612
To unsubscribe, visit https://gerrit.cloudera.org/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I5804f9ebf9e06a4947ea3e11441c63e89c82e036
Gerrit-Change-Number: 24612
Gerrit-PatchSet: 12
Gerrit-Owner: Quanlong Huang <[email protected]>
Gerrit-Reviewer: Aleksandr Efimov <[email protected]>
Gerrit-Reviewer: Aman Sinha <[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, 12 Nov 2026 06:34:20 +0000
Gerrit-HasComments: Yes

Reply via email to