This is an automated email from the ASF dual-hosted git repository.

NSAmelchev pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/master by this push:
     new e92c8cdaaf6 IGNITE-29324 SQL Calcite: Use group partitions reservation 
for fragments executed on the initiator node (#13860)
e92c8cdaaf6 is described below

commit e92c8cdaaf6c12f41c4ff358c4655cdf964954ec
Author: Nikita Amelchev <[email protected]>
AuthorDate: Thu Nov 19 17:51:01 2026 +0300

    IGNITE-29324 SQL Calcite: Use group partitions reservation for fragments 
executed on the initiator node (#13860)
---
 .../internal/processors/query/calcite/metadata/ColocationGroup.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/metadata/ColocationGroup.java
 
b/modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/metadata/ColocationGroup.java
index 8c3d9e6a462..39267cb0317 100644
--- 
a/modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/metadata/ColocationGroup.java
+++ 
b/modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/metadata/ColocationGroup.java
@@ -307,7 +307,8 @@ public class ColocationGroup extends AbstractMessage {
      * @return Partitions to scan on the given node.
      */
     public int[] partitions(UUID nodeId) {
-        if (F.isEmpty(assignments))
+        // All primary partitions: the scan reserves them as a group.
+        if (F.isEmpty(assignments) || primaryAssignment)
             return null;
 
         GridIntList parts = new GridIntList(assignments.size());

Reply via email to