rkondakov commented on a change in pull request #7813:
URL: https://github.com/apache/ignite/pull/7813#discussion_r428320786



##########
File path: 
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/exec/ExecutionServiceImpl.java
##########
@@ -552,31 +580,73 @@ private QueryPlan prepareDml(SqlNode sqlNode, 
PlanningContext ctx) throws Valida
         sqlNode = planner.validate(sqlNode);
 
         // Convert to Relational operators graph
-        RelNode rel = planner.convert(sqlNode);
+        IgniteRel igniteRel = optimize(sqlNode, planner);
+
+        // Split query plan to query fragments.
+        List<Fragment> fragments = new Splitter().go(igniteRel);
+
+        return new MultiStepDmlPlan(fragments, fieldsMetadata(ctx, 
igniteRel.getRowType(), null));
+    }
+
+    /** */
+    private IgniteRel optimize(SqlNode sqlNode, IgnitePlanner planner) {
+        // Convert to Relational operators graph
+        RelRoot root = planner.rel(sqlNode);

Review comment:
       I need a root node collation later, so I need a root node itself.




----------------------------------------------------------------
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.

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


Reply via email to