You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/06/02 09:51:49 UTC
[GitHub] [spark] cloud-fan commented on a change in pull request #32744: [SPARK-34808][SQL][FOLLOWUP] Remove canPlanAsBroadcastHashJoin check in EliminateOuterJoin
cloud-fan commented on a change in pull request #32744:
URL: https://github.com/apache/spark/pull/32744#discussion_r643799888
##########
File path: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/joins.scala
##########
@@ -172,20 +172,16 @@ object EliminateOuterJoin extends Rule[LogicalPlan] with PredicateHelper with Jo
if (j.joinType == newJoinType) f else Filter(condition, j.copy(joinType = newJoinType))
case a @ Aggregate(_, _, join @ Join(left, _, LeftOuter, _, _))
- if a.isDistinct && a.references.subsetOf(AttributeSet(left.output)) &&
- !canPlanAsBroadcastHashJoin(join, conf) =>
+ if a.isDistinct && a.references.subsetOf(AttributeSet(left.output)) =>
Review comment:
nit: since we support `select a, a ...`, how about we rename `isDistinct` to `groupOnly`?
--
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: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org