korlov42 commented on code in PR #6945:
URL: https://github.com/apache/ignite-3/pull/6945#discussion_r2526724603
##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/rel/AbstractIgniteJoin.java:
##########
@@ -157,32 +149,75 @@ public List<Pair<RelTraitSet, List<RelTraitSet>>>
deriveDistribution(RelTraitSet
return List.copyOf(res);
}
- if (leftDistr.getType() == HASH_DISTRIBUTED &&
left2rightProjectedDistr != random()) {
- outTraits = nodeTraits.replace(leftDistr);
- leftTraits = left.replace(leftDistr);
- rightTraits = right.replace(left2rightProjectedDistr);
+ TargetMapping offsetByLeftSize = Commons.targetOffsetMapping(
+ this.right.getRowType().getFieldCount(),
+ this.left.getRowType().getFieldCount()
+ );
- res.add(Pair.of(outTraits, List.of(leftTraits, rightTraits)));
+ // Re-hashing of ride side to left.
Review Comment:
it is supposed to be "right" indeed, thanks!
fixed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]