kangkaisen commented on a change in pull request #4150:
URL: https://github.com/apache/incubator-doris/pull/4150#discussion_r459293826



##########
File path: 
fe/fe-core/src/main/java/org/apache/doris/planner/DistributedPlanner.java
##########
@@ -286,7 +286,8 @@ private PlanFragment createScanFragment(PlanNode node) {
      * Therefore, we add a SessionVariable to help users choose a better join 
implementation.
      */
     private boolean isBroadcastCostSmaller(long broadcastCost, long 
partitionCost)  {
-        if (ConnectContext.get().getSessionVariable().isPreferBroadcastJoin()) 
{
+        String joinMethod = 
ConnectContext.get().getSessionVariable().getPreferJoinMethod();
+        if (joinMethod.equals("broadcast")) {

Review comment:
       `equalsIgnoreCase` should more better.




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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to