timoninmaxim commented on a change in pull request #9366:
URL: https://github.com/apache/ignite/pull/9366#discussion_r700941947



##########
File path: 
modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/sql/SqlAstTraverser.java
##########
@@ -306,25 +306,32 @@ private void checkEqualityOperation(GridSqlOperation 
equalOp,
         Set<String> actLeftCols;
         Set<String> actRightCols;
 
+        boolean actPkLeft = pkLeft;
+        boolean actPkRight = pkRight;
+
         if (leftTbl.equals(leftTblAls))
             actLeftCols = leftCols;
-        else if (leftTbl.equals(rightTblAls))
+        else if (leftTbl.equals(rightTblAls)) {
             actLeftCols = rightCols;
+            actPkLeft = pkRight;
+        }

Review comment:
       @AMashenkov Thanks, nice catch. I've simplified this code even better 
after swap column names only.




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