zstan commented on code in PR #3335:
URL: https://github.com/apache/ignite-3/pull/3335#discussion_r1509167824


##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/prepare/pruning/PartitionPruningPredicate.java:
##########
@@ -89,6 +89,17 @@ public ColocationGroup prunePartitions(ColocationGroup 
colocationGroup) {
 
         Map<String, List<PartitionWithConsistencyToken>> partitionsPerNode = 
newHashMap(colocationGroup.nodeNames().size());
         Set<String> newNodes = new HashSet<>();
+        List<NodeWithConsistencyToken> newAssignments = new 
ArrayList<>(colocationGroup.assignments().size());
+
+        for (int p = 0; p < colocationGroup.assignments().size(); p++) {
+            NodeWithConsistencyToken nodeWithConsistencyToken = 
colocationGroup.assignments().get(p);
+
+            if (remainingPartitions.contains(p)) {
+                newAssignments.add(nodeWithConsistencyToken);
+            } else {
+                newAssignments.add(null);

Review Comment:
   need to be fixed through different issue.



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