englefly commented on code in PR #11459:
URL: https://github.com/apache/doris/pull/11459#discussion_r936364439


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java:
##########
@@ -584,7 +584,7 @@ public LogicalPlan visitFromClause(FromClauseContext ctx) {
                 LogicalPlan right = plan(relation.relationPrimary());
                 left = left == null
                         ? right
-                        : new LogicalJoin(JoinType.INNER_JOIN, 
Optional.empty(), left, right);
+                        : new LogicalJoin<>(JoinType.CROSS_JOIN, 
Optional.empty(), left, right);

Review Comment:
   If this is a cross join, I think there must be some place where we change 
the default join type (INNER_JOIN) to CROSS_JOIN. 
   Simllarly, if we change the default join type to CROSS_JOIN, there should be 
some place we change join type from CROSS_JOIN to INNER_JOIN.



-- 
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: commits-unsubscr...@doris.apache.org

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