mdayakar commented on code in PR #6055:
URL: https://github.com/apache/hive/pull/6055#discussion_r2321278925
##########
ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/rules/HiveAntiSemiJoinRule.java:
##########
@@ -97,6 +97,12 @@ protected void perform(RelOptRuleCall call, Project project,
Filter filter, Join
return;
}
+ // if one of the operand from join condition is not from right table then
no need to convert to anti join.
+ boolean hasConditionMet =
HiveCalciteUtil.hasJoinConditionOperandFromRightTable(join);
+ if (!hasConditionMet) {
Review Comment:
Modified code accordingly.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]