[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:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user