Aman Sinha has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/24608 )

Change subject: IMPALA-15175: Support HBO for AnalyticEvalNode cardinality
......................................................................


Patch Set 12:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/24608/6/fe/src/main/java/org/apache/impala/planner/AnalyticEvalNode.java
File fe/src/main/java/org/apache/impala/planner/AnalyticEvalNode.java:

http://gerrit.cloudera.org:8080/#/c/24608/6/fe/src/main/java/org/apache/impala/planner/AnalyticEvalNode.java@383
PS6, Line 383:     sb.append("|Child:[").append(childKey).append("]");
Will this work for empty partition-by ? for instance rank() over (order by c1)  
(this is useful for global ranking).

Also, thinking about partition-by, have you considered using the HBO stats even 
if there's a partial match ?
for instance:
 query 1: rank() over (partition by a1, b1 order by c1)
 query 2: rank() over (partition by b1 order by c1)
In theory they can use the same hbo stats entry since the cardinality is the 
same.

Note that the DistributedPlanner does something about compatible partitions:  
https://github.com/apache/impala/blob/master/fe/src/main/java/org/apache/impala/planner/DistributedPlanner.java#L1359C1-L1362C38
You could have 2 or more analytic nodes stacked on top of each other, all 
sharing a common 'compatible partition'  i.e a single Exchange operator could 
satisfy multiple compatible partition-by exprs.  It's fine if we want to think 
of this as an enhancement.



--
To view, visit http://gerrit.cloudera.org:8080/24608
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I8d87ab472db9273622f48fa62bb1d8c12e04e86b
Gerrit-Change-Number: 24608
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: Mon, 19 Oct 2026 07:01:40 +0000
Gerrit-HasComments: Yes

Reply via email to