You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by GitBox <gi...@apache.org> on 2021/01/28 05:17:16 UTC

[GitHub] [hive] kasakrisz commented on a change in pull request #1912: HIVE-24678: Add feature toggle to control SWO parallel edge support

kasakrisz commented on a change in pull request #1912:
URL: https://github.com/apache/hive/pull/1912#discussion_r565825995



##########
File path: ql/src/java/org/apache/hadoop/hive/ql/optimizer/SharedWorkOptimizer.java
##########
@@ -1791,9 +1792,16 @@ private static boolean validPreConditions(ParseContext pctx, SharedWorkOptimizer
     // If we do, we cannot merge. The reason is that Tez currently does
     // not support parallel edges, i.e., multiple edges from same work x
     // into same work y.
+    EdgePredicate edgePredicate;
+    if (pctx.getConf().getBoolVar(ConfVars.HIVE_SHARED_WORK_PARALLEL_EDGE_SUPPORT)) {
+      edgePredicate = new EdgePredicate(EnumSet.<EdgeType> of(EdgeType.DPP, EdgeType.SEMIJOIN, EdgeType.BROADCAST));
+    } else {
+      edgePredicate = new EdgePredicate(EnumSet.<EdgeType> of(EdgeType.DPP));

Review comment:
       If I understand correctly the old behavior didn't allow `DPP` edge types. Should we follow that if  `hive.optimize.shared.work.parallel.edge.support` is false?




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



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