Yida Wu created IMPALA-15776:
--------------------------------

             Summary: Update the input estimates for chained grouping-set 
preaggregations
                 Key: IMPALA-15776
                 URL: https://issues.apache.org/jira/browse/IMPALA-15776
             Project: IMPALA
          Issue Type: Improvement
          Components: Frontend
    Affects Versions: Impala 5.1.0
            Reporter: Yida Wu


IMPALA-13081 chains nested grouping sets in the streaming preaggregation, so 
each chained class reads the previous class's output instead of the node's 
input. The planner still treats every class as if it read the full input.

AggregationNode.toThrift() sends getChild(0).getCardinality() as 
estimated_input_cardinality, and every aggregator uses it. For a chained class, 
ShouldExpandPreaggHashTables() then overestimates the reduction and keeps 
growing its hash tables. computeProcessingCost() also costs the chained classes 
on getChild(0).getCardinality().



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to