This is an automated email from the ASF dual-hosted git repository.

huajianlan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new e11024f5cc [enhancement](Nereids)set default join type to CROSS_JOIN 
(#11459)
e11024f5cc is described below

commit e11024f5cc4766e35939afe32c78ee7a735d7a7b
Author: morrySnow <[email protected]>
AuthorDate: Thu Aug 4 21:25:24 2022 +0800

    [enhancement](Nereids)set default join type to CROSS_JOIN (#11459)
    
    set default join type to CROSS_JOIN on join that has no equal on condition 
when parse sql string.
---
 .../main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java
 
b/fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java
index 95e8633036..d093e29ff1 100644
--- 
a/fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java
+++ 
b/fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java
@@ -588,9 +588,9 @@ public class LogicalPlanBuilder extends 
DorisParserBaseVisitor<Object> {
             // build left deep join tree
             for (RelationContext relation : ctx.relation()) {
                 LogicalPlan right = plan(relation.relationPrimary());
-                left = left == null
+                left = (left == null)
                         ? right
-                        : new LogicalJoin(JoinType.INNER_JOIN, 
Optional.empty(), left, right);
+                        : new LogicalJoin<>(JoinType.CROSS_JOIN, 
Optional.empty(), left, right);
                 left = withJoinRelations(left, relation);
             }
             // TODO: pivot and lateral view


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

Reply via email to