AMashenkov commented on a change in pull request #398:
URL: https://github.com/apache/ignite-3/pull/398#discussion_r732526925



##########
File path: 
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/trait/TraitUtils.java
##########
@@ -497,28 +497,32 @@ public PropagationContext propagate(TraitsPropagator 
processor) {
             if (combinations.isEmpty())
                 return this;
 
-            ImmutableSet.Builder<Pair<RelTraitSet, List<RelTraitSet>>> b = 
ImmutableSet.builder();
+            Set<Pair<RelTraitSet, List<RelTraitSet>>> b = new HashSet<>();
+
             for (Pair<RelTraitSet, List<RelTraitSet>> variant : combinations)
                 b.addAll(processor.propagate(variant.left, variant.right));
-            return new PropagationContext(b.build());
+
+            return new PropagationContext(Set.copyOf(b));

Review comment:
       ```suggestion
               return new PropagationContext(Set.of(b));
   ```




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