alex-plekhanov commented on a change in pull request #9119:
URL: https://github.com/apache/ignite/pull/9119#discussion_r714551337
##########
File path:
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/exec/PlannerHelper.java
##########
@@ -107,6 +121,72 @@ public static IgniteRel optimize(SqlNode sqlNode,
IgnitePlanner planner, IgniteL
}
}
+ /**
+ * Creates physical plan for "INSERT INTO table SELECT ..." based on
"CREATE TABLE table AS SELECT ..." statement.
+ */
+ public static IgniteRel makeCreateTableAsSelectPlan(CreateTableCommand
createTableCmd, PlanningContext ctx,
Review comment:
> Have you considered an implicit rewriting of query with AS clause to
two distinct statements (CREATE + INSERT)?
I've changed it to CREATE+INSERT, but now there is yet another planning
phase on the execution phase for CREATE AS SELECT statement. Changes ready for
review, please have a look again.
--
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]