korlov42 commented on a change in pull request #8472:
URL: https://github.com/apache/ignite/pull/8472#discussion_r528723576



##########
File path: 
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/rel/IgniteProject.java
##########
@@ -191,6 +196,27 @@ public IgniteProject(RelInput input) {
         return ImmutableList.of(Pair.of(nodeTraits.replace(collation), 
ImmutableList.of(in)));
     }
 
+    /** */
+    @Override public List<Pair<RelTraitSet, List<RelTraitSet>>> 
passThroughCorrelation(RelTraitSet nodeTraits,
+        List<RelTraitSet> inTraits) {
+        if (RexUtils.hasCorrelation(getProjects()))
+            return ImmutableList.of();

Review comment:
       The empty list should be returned only in case when correlations derived 
from `getProjects()` is not subset of `TraitUtils.correlation(nodeTraits))`




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to