scarlin-cloudera commented on a change in pull request #812: Hive 22324
URL: https://github.com/apache/hive/pull/812#discussion_r338631069
 
 

 ##########
 File path: 
ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/rules/HiveJoinAddNotNullRule.java
 ##########
 @@ -91,8 +91,8 @@ public void onMatch(RelOptRuleCall call) {
     Set<String> leftPushedPredicates = 
Sets.newHashSet(registry.getPushedPredicates(join, 0));
     Set<String> rightPushedPredicates = 
Sets.newHashSet(registry.getPushedPredicates(join, 1));
 
-    boolean genPredOnLeft = join.getJoinType() == JoinRelType.RIGHT || 
join.getJoinType() == JoinRelType.INNER;
-    boolean genPredOnRight = join.getJoinType() == JoinRelType.LEFT || 
join.getJoinType() == JoinRelType.INNER;
+    boolean genPredOnLeft = join.getJoinType() == JoinRelType.RIGHT || 
join.getJoinType() == JoinRelType.INNER || join.isSemiJoin();
 
 Review comment:
   The old "SemiJoin" class extended the "Join" class, so this rule would be 
triggered by our HiveSemiJoin.  So I think the logic here matches the existing 
logic.  Let's take a look at this together though.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org
For additional commands, e-mail: gitbox-h...@hive.apache.org

Reply via email to