Zoltan Borok-Nagy has uploaded this change for review. ( https://gerrit.cloudera.org/25582
Change subject: PROTOTYPE IMPALA-15865: Weight HDFS scan predicates by their expression cost ...................................................................... PROTOTYPE IMPALA-15865: Weight HDFS scan predicates by their expression cost The processing cost of an HDFS scan charged every predicate the same, input rows * #predicates * coefficient, and ignored the hidden flag processing_cost_use_equal_expr_weight, which switches the other operators to the expression costs of IMPALA-2805. Even with the flag set to false, a LIKE pattern with inner wildcards cost as much as an integer '='. The predicate term now uses ExprUtil.computeExprsTotalCost() of the scan's conjuncts, like the Kudu, HBase and Paimon scans already do. With the default flag value that is the number of conjuncts, so plans do not change; the flag becomes an A/B switch for expression-weighted scan costs. The scan coefficients were benchmarked with one unit per predicate and need recalibration before the flag can be flipped. 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, which ran with the default flag value. Testing: - New ScanPredicateCostTest, which fails without the fix. - With the default flag value, TPC-DS, TPC-H and a skewed TPC-H variant plan identically at 4 cluster shapes, and the CPC planner tests pass. Change-Id: I6b5e7a79a5d2ebadd47593ad9289e123dd7ad13a Assisted-by: Claude Opus 5.5 (Claude Code) --- M fe/src/main/java/org/apache/impala/planner/HdfsScanNode.java A fe/src/test/java/org/apache/impala/planner/ScanPredicateCostTest.java 2 files changed, 121 insertions(+), 7 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/82/25582/1 -- To view, visit https://gerrit.cloudera.org/25582 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I6b5e7a79a5d2ebadd47593ad9289e123dd7ad13a Gerrit-Change-Number: 25582 Gerrit-PatchSet: 1 Gerrit-Owner: Zoltan Borok-Nagy <[email protected]>
