ngsg commented on code in PR #4043:
URL: https://github.com/apache/hive/pull/4043#discussion_r1390719384


##########
ql/src/test/queries/clientpositive/sharedwork_semi_2.q:
##########
@@ -0,0 +1,104 @@
+set hive.auto.convert.anti.join=false;
+set hive.auto.convert.join.noconditionaltask.size=1145044992;
+set hive.auto.convert.join.noconditionaltask=true;
+set hive.auto.convert.join=true;
+set hive.auto.convert.sortmerge.join.to.mapjoin=true;
+set hive.auto.convert.sortmerge.join=true;
+set hive.cbo.enable=true;
+set hive.convert.join.bucket.mapjoin.tez=true;
+set hive.enforce.sortmergebucketmapjoin=true;
+set hive.exec.dynamic.partition.mode=nonstrict;
+set hive.exec.dynamic.partition=true;
+set hive.exec.max.dynamic.partitions.pernode=4000;
+set hive.exec.max.dynamic.partitions=10000;
+set hive.exec.parallel.thread.number=32;
+set hive.exec.parallel=false;

Review Comment:
   removed irrelevant configurations



##########
ql/src/java/org/apache/hadoop/hive/ql/optimizer/SharedWorkOptimizer.java:
##########
@@ -1916,18 +1916,12 @@ public RelaxedVertexEdgePredicate(EnumSet<EdgeType> 
nonTraverseableEdgeTypes) {
 
     @Override
     public boolean accept(Operator<?> s, Operator<?> t, OpEdge opEdge) {
-      if (!traverseableEdgeTypes.contains(opEdge.getEdgeType())) {
-        return true;
-      }
-      if (s instanceof ReduceSinkOperator) {
-        ReduceSinkOperator rs = (ReduceSinkOperator) s;
-        if (!ParallelEdgeFixer.colMappingInverseKeys(rs).isPresent()) {
-          return true;
-        }
-      }
-      return false;
-    }
+      boolean notTraverseable = 
!traverseableEdgeTypes.contains(opEdge.getEdgeType());
+      boolean notInvertible = (s instanceof ReduceSinkOperator) &&
+          !ParallelEdgeFixer.colMappingInverseKeys((ReduceSinkOperator) 
s).isPresent();
 
+      return notTraverseable || notInvertible;

Review Comment:
   I reverted it.



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

Reply via email to