Zoltan Borok-Nagy has uploaded this change for review. ( http://gerrit.cloudera.org:8080/25087
Change subject: PROTOTYPE: Count runtime filters in the partitioned join cost ...................................................................... PROTOTYPE: Count runtime filters in the partitioned join cost The partitioned join cost charges for sending every probe side row. Runtime filters of the joins above often drop most of those rows at the scan, but they are created after the distributed plan, so the cost does not see them. In TPC-DS SF1000 q78 the probe side was costed at 2.88B rows instead of 589M, and the planner broadcast a 9.5 GB build. A pre-pass over the single node plan now estimates, for each hash join, the selectivity of the filters that inner and semi joins above it apply to its probe side scan: cardinality / probe cardinality of each join whose probe expr is bound by, or has a value transfer to, a slot of the scan. The partitioned cost scales the probe cardinality by it. The pre-pass is skipped with RUNTIME_FILTER_MODE=OFF. Testing: - TPC-DS SF1000, 8 executors, MT_DOP=8, PLANNER=CALCITE, CTE_THRESHOLD=1, on top of earlier prototypes: total 353.1 s -> 345.9 s; q78 no longer broadcasts store_returns. No new tests. Change-Id: I1026b2b71626cf5484c973f153d54dedc479cb4b Assisted-by: Claude Opus 5.5 (Claude Code) --- M fe/src/main/java/org/apache/impala/planner/DistributedPlanner.java 1 file changed, 113 insertions(+), 2 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/87/25087/1 -- To view, visit http://gerrit.cloudera.org:8080/25087 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I1026b2b71626cf5484c973f153d54dedc479cb4b Gerrit-Change-Number: 25087 Gerrit-PatchSet: 1 Gerrit-Owner: Zoltan Borok-Nagy <[email protected]>
