feiniaofeiafei commented on code in PR #54207:
URL: https://github.com/apache/doris/pull/54207#discussion_r2275247889


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/SaltJoin.java:
##########
@@ -138,7 +139,13 @@ public Rule build() {
     }
 
     private static Plan transform(MatchingContext<LogicalJoin<Plan, Plan>> 
ctx) {
-        LogicalJoin<Plan, Plan> join = ctx.root;
+        return transform(ctx.root);
+    }
+
+    /**
+     * add salt
+     */
+    public static Plan transform(LogicalJoin<Plan, Plan> join) {
         DistributeHint hint = join.getDistributeHint();

Review Comment:
   maybe we should check ConnectContext.get() != null



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to