AMashenkov commented on a change in pull request #9366:
URL: https://github.com/apache/ignite/pull/9366#discussion_r700890174
##########
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:
What's about leftTbl and rightTbl names?
You've swap table columns, but not the names.
Seems, you can just swap column names instead.
--
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]