alex-plekhanov commented on code in PR #11955: URL: https://github.com/apache/ignite/pull/11955#discussion_r2019174535
########## modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/exec/rel/MergeJoinNode.java: ########## @@ -962,10 +965,13 @@ else if (cmp > 0) { } else { if (left == null) { - if (waitingLeft == NOT_WAITING) + if (waitingLeft == NOT_WAITING) { + rightIdx = 0; rightMaterialization = null; + drainMaterialization = false; Review Comment: We do this without `drainMaterialization = false` only under the branch `if (!drainMaterialization)`, so `drainMaterialization = false` is useless in this case. -- 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: notifications-unsubscr...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org