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/03/10 00:32:05 UTC
[GitHub] [spark] c21 commented on a change in pull request #31792: [SPARK-34681][SQL] Fix bug for full outer shuffled hash join when building left side with non-equal condition
c21 commented on a change in pull request #31792:
URL: https://github.com/apache/spark/pull/31792#discussion_r590864387
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/execution/joins/OuterJoinSuite.scala
##########
@@ -104,18 +104,16 @@ class OuterJoinSuite extends SparkPlanTest with SharedSparkSession {
ExtractEquiJoinKeys.unapply(join)
}
- if (joinType != FullOuter) {
- test(s"$testName using ShuffledHashJoin") {
- extractJoinParts().foreach { case (_, leftKeys, rightKeys, boundCondition, _, _, _) =>
- withSQLConf(SQLConf.SHUFFLE_PARTITIONS.key -> "1") {
- val buildSide = if (joinType == LeftOuter) BuildRight else BuildLeft
- checkAnswer2(leftRows, rightRows, (left: SparkPlan, right: SparkPlan) =>
- EnsureRequirements.apply(
- ShuffledHashJoinExec(
- leftKeys, rightKeys, joinType, buildSide, boundCondition, left, right)),
- expectedAnswer.map(Row.fromTuple),
- sortAnswers = true)
- }
+ test(s"$testName using ShuffledHashJoin") {
Review comment:
The change here is to just remove the top level if condition `if (joinType != FullOuter)`, and there's no other code change here.
----------------------------------------------------------------
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