englefly commented on code in PR #13382:
URL: https://github.com/apache/doris/pull/13382#discussion_r995878371
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/glue/LogicalPlanAdapter.java:
##########
@@ -62,21 +65,25 @@ public OutFileClause getOutFileClause() {
return null;
}
+ public void setResultExprs(List<Expr> resultExprs) {
+ this.resultExprs = resultExprs;
+ }
+
@Override
public List<Expr> getResultExprs() {
return resultExprs;
}
- public ArrayList<String> getColLabels() {
- return colLabels;
+ public void setColLabels(ArrayList<String> colLabels) {
+ this.colLabels = colLabels;
}
- public void setResultExprs(List<Expr> resultExprs) {
- this.resultExprs = resultExprs;
+ public ArrayList<String> getColLabels() {
Review Comment:
it would be better to keep the origin order of getColLabels and
setResultExprs in order to reduce effort of merge code.
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/glue/LogicalPlanAdapter.java:
##########
@@ -85,6 +92,6 @@ public String toDigest() {
}
public static LogicalPlanAdapter of(Plan plan) {
- return new LogicalPlanAdapter((LogicalPlan) plan);
+ return new LogicalPlanAdapter((LogicalPlan) plan, null);
Review Comment:
does it introduce NPE? how about remove this function, or add
StatementContext parameter?
--
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]