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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]