Zoltan Borok-Nagy has uploaded this change for review. ( https://gerrit.cloudera.org/25577
Change subject: PROTOTYPE IMPALA-15853: Make ProcessingCost.invalid() report invalid ...................................................................... PROTOTYPE IMPALA-15853: Make ProcessingCost.invalid() report invalid PlanNode and DataSink start with ProcessingCost.invalid(), which was a BaseProcessingCost of cardinality -1. The constructor clamps the cardinality to 0, so the cost was 0 and isValid() returned true. Every precondition that checks that a cost was computed, and the "<invalid>" explain output, could never fire: an uncosted node looked like one that costs 0. invalid() now returns a cost that is not valid and whose total cost is 0, so callers that sum costs see no change. TupleCachePlanner adds its TupleCacheNodes after the plan was costed and relied on the old behavior to print cost=0; it now computes their cost, which is 0. This is part of a series of COMPUTE_PROCESSING_COST (CPC) costing prototypes. The last one (IMPALA-15841) has the measured effect of the series. Testing: - Added ProcessingCostTest, which fails without the fix. - Ran the planner tests; no plan changes. Change-Id: If560745a874928816149c2f606b283fc19299c7a Assisted-by: Claude Opus 5.5 (Claude Code) --- M fe/src/main/java/org/apache/impala/planner/BaseProcessingCost.java M fe/src/main/java/org/apache/impala/planner/ProcessingCost.java M fe/src/main/java/org/apache/impala/planner/TupleCachePlanner.java A fe/src/test/java/org/apache/impala/planner/ProcessingCostTest.java 4 files changed, 67 insertions(+), 3 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/77/25577/1 -- To view, visit https://gerrit.cloudera.org/25577 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: If560745a874928816149c2f606b283fc19299c7a Gerrit-Change-Number: 25577 Gerrit-PatchSet: 1 Gerrit-Owner: Zoltan Borok-Nagy <[email protected]>
