Skip to content

Commit

Permalink
[native] Add a comment for adding LocalExchange for join spilling
Browse files Browse the repository at this point in the history
  • Loading branch information
mbasmanova committed Mar 13, 2024
1 parent 6a9f3cd commit 4443691
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,11 @@ public PlanWithProperties visitUnion(UnionNode node, StreamPreferredProperties p
@Override
public PlanWithProperties visitJoin(JoinNode node, StreamPreferredProperties parentPreferences)
{
// Java-based implementation of spilling in join requires constant and known number of
// LookupJoinOperator's, especially for broadcast joins, when LookupJoinOperator's can be SOURCE
// distributed. Native implementation doesn't have this limitation.
// Add LocalExchange with ARBITRARY distribution below join probe source to satisfy that requirement
// for Java-based execution only.
PlanWithProperties probe;
if (isSpillEnabled(session) && isJoinSpillingEnabled(session) && !nativeExecution) {
probe = planAndEnforce(
Expand Down

0 comments on commit 4443691

Please # to comment.