[fix](planner) should always execute projection plan (#17885)

1. should always execute projection plan, whatever the statement it is.
2. should always execute projection plan, since we only have vectorized engine now
This commit is contained in:
morrySnow
2023-03-22 10:53:15 +08:00
committed by GitHub
parent 6fa239384d
commit a4b151e469

View File

@ -165,12 +165,8 @@ public class OriginalPlanner extends Planner {
singleNodePlan.convertToVectorized();
}
if (analyzer.getContext() != null
&& analyzer.getContext().getSessionVariable().isEnableProjection()
&& statement instanceof QueryStmt) {
ProjectPlanner projectPlanner = new ProjectPlanner(analyzer);
projectPlanner.projectSingleNodePlan(queryStmt.getResultExprs(), singleNodePlan);
}
ProjectPlanner projectPlanner = new ProjectPlanner(analyzer);
projectPlanner.projectSingleNodePlan(queryStmt.getResultExprs(), singleNodePlan);
if (statement instanceof InsertStmt) {
InsertStmt insertStmt = (InsertStmt) statement;