alex-plekhanov commented on a change in pull request #9085:
URL: https://github.com/apache/ignite/pull/9085#discussion_r630817235



##########
File path: 
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/trait/CorrelationTrait.java
##########
@@ -92,7 +92,12 @@ public boolean correlated() {
         if (trait == this || this == UNCORRELATED)
             return true;
 
-        return equals(trait);
+        if (!(trait instanceof CorrelationTrait))
+            return false;
+
+        CorrelationTrait other = (CorrelationTrait) trait;
+
+        return other.correlated() && 
other.correlationIds().containsAll(correlationIds());

Review comment:
       But such spool should require input correlated by `cor1`, and there are 
no nodes in the chain that satisfy such condition, so the spool can't be 
inserted here.




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