nizhikov commented on code in PR #11438:
URL: https://github.com/apache/ignite/pull/11438#discussion_r1759725017


##########
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/prepare/QueryTemplate.java:
##########
@@ -85,7 +88,19 @@ public ExecutionPlan map(MappingService mappingService, 
MappingQueryContext ctx)
                 else
                     ex.addSuppressed(e);
 
-                fragments = replace(fragments, e.fragment(), new 
FragmentSplitter(e.node()).go(e.fragment()));
+                RelNode cutPoint = e.node();
+
+                // TableModify inside transaction must be executed locally.
+                boolean forceLocTableModify = 
Commons.queryTransactionVersion(ctx) != null && cutPoint instanceof 
IgniteTableModify;
+
+                if (forceLocTableModify)
+                    cutPoint = ((SingleRel)cutPoint).getInput(); // Cuts 
TableScan instead of TableModification.

Review Comment:
   Forced single distribution for IgniteReceiver.



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