alex-plekhanov commented on a change in pull request #9291:
URL: https://github.com/apache/ignite/pull/9291#discussion_r684059035



##########
File path: 
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/exec/ExecutionServiceImpl.java
##########
@@ -647,10 +607,15 @@ private FieldsMetadata 
explainFieldsMetadata(PlanningContext ctx) {
     }
 
     /** */
-    private FieldsQueryCursor<List<?>> executePlan(UUID qryId, PlanningContext 
pctx, QueryPlan plan) {
+    private FieldsQueryCursor<List<?>> executePlan(
+        UUID qryId,
+        PlanningContext pctx,
+        QueryPlan plan
+    ) {
         switch (plan.type()) {
             case DML:
-                // TODO a barrier between previous operation and this one
+                ListFieldsQueryCursor<?> cur = executeQuery(qryId, 
(MultiStepPlan)plan, pctx);
+                return new ListFieldsQueryCursor<>(cur.getAll(), 
cur.fieldsMeta(), cur.isQuery());

Review comment:
       It's enough to just call `cur.iterator().hasNext()` without copying to 
gain the same result.




-- 
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: notifications-unsubscr...@ignite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to