Zoltan Borok-Nagy has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/25090


Change subject: PROTOTYPE: Invert Calcite joins whose probe side has fewer nodes
......................................................................

PROTOTYPE: Invert Calcite joins whose probe side has fewer nodes

With the Calcite planner, invertJoins() skips the cost-based join
inversion (IMPALA-15196), because Calcite already ordered the joins.
But Calcite's cost model does not know that the probe side sets the
parallelism of a join: in TPC-DS q14_2, a join whose probe side ran on
one node ran as a single instance.

A join of a Calcite plan is now inverted if its probe side runs on
fewer nodes than its build side and isInvertedJoinCheaper() says the
inverted join is cheaper.

Testing:
- TPC-DS SF1000, 8 executors, MT_DOP=8, PLANNER=CALCITE,
  CTE_THRESHOLD=1, on top of earlier prototypes: q14_2 16.1 s ->
  13.7 s; total 336.0 s -> 333.3 s. No new tests.

Change-Id: I642a81afada9a00cbd4c4a114a9f39acd30ee518
Assisted-by: Claude Opus 5.5 (Claude Code)
---
M fe/src/main/java/org/apache/impala/planner/Planner.java
1 file changed, 7 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/90/25090/1
--
To view, visit http://gerrit.cloudera.org:8080/25090
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I642a81afada9a00cbd4c4a114a9f39acd30ee518
Gerrit-Change-Number: 25090
Gerrit-PatchSet: 1
Gerrit-Owner: Zoltan Borok-Nagy <[email protected]>

Reply via email to