XieJiann commented on code in PR #14880:
URL: https://github.com/apache/doris/pull/14880#discussion_r1049158688


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/memo/GroupExpression.java:
##########
@@ -52,7 +53,7 @@ public class GroupExpression {
     private CostEstimate costEstimate = null;
     private Group ownerGroup;
     private final List<Group> children;
-    private final Plan plan;
+    private Plan plan;

Review Comment:
   Reuse pruneColumnJob is better. Therefore I remove the code that changes the 
plan



##########
fe/fe-core/src/test/java/org/apache/doris/nereids/jobs/joinorder/JoinOrderJobTest.java:
##########
@@ -17,42 +17,122 @@
 
 package org.apache.doris.nereids.jobs.joinorder;
 
-import org.apache.doris.common.Pair;
-import org.apache.doris.nereids.trees.plans.JoinType;
-import org.apache.doris.nereids.trees.plans.logical.LogicalOlapScan;
-import org.apache.doris.nereids.trees.plans.logical.LogicalPlan;
-import org.apache.doris.nereids.util.LogicalPlanBuilder;
-import org.apache.doris.nereids.util.MemoTestUtils;
 import org.apache.doris.nereids.util.PlanChecker;
-import org.apache.doris.nereids.util.PlanConstructor;
+import org.apache.doris.utframe.TestWithFeService;
 
-import com.google.common.collect.Lists;
 import org.junit.jupiter.api.Test;
 
-public class JoinOrderJobTest {
-    private final LogicalOlapScan scan1 = 
PlanConstructor.newLogicalOlapScan(1, "t1", 0);
-    private final LogicalOlapScan scan2 = 
PlanConstructor.newLogicalOlapScan(2, "t2", 0);
-    private final LogicalOlapScan scan3 = 
PlanConstructor.newLogicalOlapScan(3, "t3", 0);
-    private final LogicalOlapScan scan4 = 
PlanConstructor.newLogicalOlapScan(4, "t4", 0);
-    private final LogicalOlapScan scan5 = 
PlanConstructor.newLogicalOlapScan(5, "t5", 0);
+public class JoinOrderJobTest extends TestWithFeService {

Review Comment:
   done



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to