diff --git a/fe/fe-core/src/test/java/com/starrocks/sql/plan/JoinTest.java b/fe/fe-core/src/test/java/com/starrocks/sql/plan/JoinTest.java index f6b0aa750de90..0ffdaccb0d00f 100644 --- a/fe/fe-core/src/test/java/com/starrocks/sql/plan/JoinTest.java +++ b/fe/fe-core/src/test/java/com/starrocks/sql/plan/JoinTest.java @@ -3282,12 +3282,13 @@ public void testOuterJoinOnConstValue() throws Exception { " `AGGED_GROUP_FIND_L_TABLE`.`GROUPED_FIND_LITERAL` = `JOINED_AGGED_SEQUENCE_R_TABLE`.`JOINED_LITERAL`\n" + " );"; String plan = getFragmentPlan(query); - // left outer join can not use const expr replacement optimization because it may generate null values - assertContains(plan, "16:Project\n" + + System.out.println(plan); + //outer join can not use const expr replacement optimization because it may generate null values + assertContains(plan, "10:Project\n" + " | : 29: expr\n" + " | \n" + - " 15:NESTLOOP JOIN\n" + - " | join op: LEFT OUTER JOIN\n" + + " 9:NESTLOOP JOIN\n" + + " | join op: RIGHT OUTER JOIN\n" + " | colocate: false, reason:"); } } diff --git a/fe/fe-core/src/test/java/com/starrocks/sql/plan/SelectConstTest.java b/fe/fe-core/src/test/java/com/starrocks/sql/plan/SelectConstTest.java index 839bf5180274c..10e8bf5c27870 100644 --- a/fe/fe-core/src/test/java/com/starrocks/sql/plan/SelectConstTest.java +++ b/fe/fe-core/src/test/java/com/starrocks/sql/plan/SelectConstTest.java @@ -65,13 +65,15 @@ public void testSelectConst() throws Exception { " 3:UNION\n" + " constant exprs: \n" + " NULL"); - assertPlanContains("select v1,v2,b from t0 inner join (select 1 as a,2 as b) t on v1 = a", "2:Project\n" + - " | : 1\n" + + assertPlanContains("select v1,v2,b from t0 inner join (select 1 as a,2 as b) t on v1 = a", " 1:Project\n" + + " | : 1: v1\n" + + " | : 2: v2\n" + + " | : 2\n" + " | \n" + " 0:OlapScanNode\n" + " TABLE: t0\n" + " PREAGGREGATION: ON\n" + - " PREDICATES: 1: v1 = 1, 1: v1 IS NOT NULL"); + " PREDICATES: 1: v1 = 1"); } @Test