lowka commented on code in PR #3187:
URL: https://github.com/apache/ignite-3/pull/3187#discussion_r1492472359


##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/exec/mapping/ColocationGroup.java:
##########
@@ -40,11 +42,27 @@ public class ColocationGroup implements Serializable {
 
     private final List<NodeWithConsistencyToken> assignments;
 
+    private final Map<String, List<PartitionWithConsistencyToken>> 
partitionsPerNode;
+
     /** Constructor. */
     public ColocationGroup(List<Long> sourceIds, List<String> nodeNames, 
List<NodeWithConsistencyToken> assignments) {
         this.sourceIds = Objects.requireNonNull(sourceIds, "sourceIds");
         this.nodeNames = Objects.requireNonNull(nodeNames, "nodeNames");
         this.assignments = Objects.requireNonNull(assignments, "assignments");
+        this.partitionsPerNode = null;
+    }
+
+    /** Constructor for colocation group with applied partition pruning. */

Review Comment:
   This is stored separately because  `IgniteTrimExchange` creates a 
destination that expects the number of assignments as stored for a table (see 
DestinationFactory). 



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

Reply via email to