Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Impala 4.4.0
-
None
-
ghx-label-9
Description
CostingSegment.java has two public constructor: one accept PlanNode, while the other accept DataSink as parameter. Both call appendCost method, which sum the additionalCost with the segment's current cost_.
However, if cost_ were ProcessingCost.zero(), it can mistakenly setNumRowToConsume to 0.
The public constructor should just initialize cost_ with ProcessingCost from PlanNode or DataSink from constructor.