[fix](Nereids): fix bug of converting to NLJ. (#15268)
This commit is contained in:
@ -29,7 +29,6 @@ import org.apache.doris.nereids.trees.expressions.ExprId;
|
||||
import org.apache.doris.nereids.trees.expressions.Expression;
|
||||
import org.apache.doris.nereids.trees.expressions.NamedExpression;
|
||||
import org.apache.doris.nereids.trees.expressions.Slot;
|
||||
import org.apache.doris.nereids.trees.plans.JoinType;
|
||||
import org.apache.doris.nereids.trees.plans.Plan;
|
||||
import org.apache.doris.nereids.trees.plans.algebra.Join;
|
||||
import org.apache.doris.nereids.trees.plans.physical.AbstractPhysicalJoin;
|
||||
@ -174,8 +173,7 @@ public class JoinUtils {
|
||||
}
|
||||
|
||||
public static boolean shouldNestedLoopJoin(Join join) {
|
||||
JoinType joinType = join.getJoinType();
|
||||
return (joinType.isInnerJoin() && join.getHashJoinConjuncts().isEmpty()) || joinType.isCrossJoin();
|
||||
return join.getHashJoinConjuncts().isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user