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 2020/09/09 10:04:15 UTC
[GitHub] [spark] AngersZhuuuu opened a new pull request #29692: [WIP][SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AE
AngersZhuuuu opened a new pull request #29692:
URL: https://github.com/apache/spark/pull/29692
### What changes were proposed in this pull request?
For BroadcastNestedLoopJoin, we will broadcast boradcast-side child to all executor and use stream side partition's data traversal broadcast-side data one-by-one.
We have meet some case that stream side data skew and all success task wait for skewed partition to finish.
We know that the execution time increases exponentially with the amount of partition's data.
If skewd with 100x, skewed partition's data will execute 100x than non-skewed part.
It is a bottleneck, with AE, we can avoid this by split skewed part's data to make it more balanced.
### Why are the changes needed?
NO
### Does this PR introduce _any_ user-facing change?
NO
### How was this patch tested?
WIP
----------------------------------------------------------------
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
[GitHub] [spark] AmplabJenkins commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690182471
----------------------------------------------------------------
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
[GitHub] [spark] cloud-fan commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
cloud-fan commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690871544
----------------------------------------------------------------
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
[GitHub] [spark] SparkQA commented on pull request #29692: [WIP][SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AE
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-689463957
**[Test build #128445 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128445/testReport)** for PR 29692 at commit [`7aba44d`](https://github.com/apache/spark/commit/7aba44d5aa6cac633e56d8e4b34d213b5d0a87d6).
----------------------------------------------------------------
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
[GitHub] [spark] AmplabJenkins removed a comment on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690185264
Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/128514/
Test FAILed.
----------------------------------------------------------------
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
[GitHub] [spark] AmplabJenkins commented on pull request #29692: [WIP][SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AE
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-689749077
----------------------------------------------------------------
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
[GitHub] [spark] github-actions[bot] commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-752291629
We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable.
If you'd like to revive this PR, please reopen it and ask a committer to remove the Stale tag!
----------------------------------------------------------------
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
[GitHub] [spark] AmplabJenkins commented on pull request #29692: [WIP][SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AE
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-689569154
----------------------------------------------------------------
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
[GitHub] [spark] SparkQA commented on pull request #29692: [WIP][SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AE
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-689977122
**[Test build #128487 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128487/testReport)** for PR 29692 at commit [`8b33b7f`](https://github.com/apache/spark/commit/8b33b7f4f2a3ace1a4445995288294ae7ea61692).
----------------------------------------------------------------
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
[GitHub] [spark] AmplabJenkins removed a comment on pull request #29692: [WIP][SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AE
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-689977523
----------------------------------------------------------------
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
[GitHub] [spark] AmplabJenkins commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690155893
----------------------------------------------------------------
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
[GitHub] [spark] AmplabJenkins removed a comment on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690285362
----------------------------------------------------------------
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
[GitHub] [spark] AngersZhuuuu commented on a change in pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on a change in pull request #29692:
URL: https://github.com/apache/spark/pull/29692#discussion_r486140524
##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/OptimizeSkewedJoin.scala
##########
@@ -248,6 +249,74 @@ case class OptimizeSkewedJoin(conf: SQLConf) extends Rule[SparkPlan] {
} else {
smj
}
+
+ case bnl @ BroadcastNestedLoopJoinExec(leftChild, rightChild, buildSide, joinType, _, _) =>
+ def resolveBroadcastNLJoinSkew(
+ stream: ShuffleStageInfo,
+ joinType: JoinType,
+ buildSide: BuildSide): SparkPlan = {
+ val streamMedSize = medianSize(stream.mapStats)
+ val numPartitions = stream.partitionsWithSizes.length
+ logDebug(
+ s"""
+ |Optimizing skewed join.
+ |Build Side:
+ |${buildSide}
+ |Stream side partitions size info:
+ |${getSizeInfo(streamMedSize, stream.mapStats.bytesByPartitionId)}
+ """.stripMargin)
+ val canSplitStream = canSplitLeftSide(joinType)
+ val streamActualSizes = stream.partitionsWithSizes.map(_._2)
+ val streamTargetSize = targetSize(streamActualSizes, streamMedSize)
+ val streamSidePartitions = mutable.ArrayBuffer.empty[ShufflePartitionSpec]
+ var numSkewedStream = 0
+ for (partitionIndex <- 0 until numPartitions) {
+ val streamActualSize = streamActualSizes(partitionIndex)
+ val isStreamSkew = isSkewed(streamActualSize, streamMedSize) && canSplitStream
Review comment:
> If `canSplitStream=false`, we need to process this for loop?
We should remove this condition, miss this part .
----------------------------------------------------------------
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
[GitHub] [spark] AmplabJenkins commented on pull request #29692: [WIP][SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AE
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-689977523
----------------------------------------------------------------
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
[GitHub] [spark] AmplabJenkins removed a comment on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690131596
----------------------------------------------------------------
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
[GitHub] [spark] AmplabJenkins commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AE
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690039717
----------------------------------------------------------------
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
[GitHub] [spark] cloud-fan edited a comment on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
cloud-fan edited a comment on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690931387
----------------------------------------------------------------
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
[GitHub] [spark] AngersZhuuuu commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690873256
> > after stream side executed, we will get the raw count of each partition and judge if it's skewed seriously, if skewed seriously and volume is large, repartition stream side to make stream side RDD average.
>
> So you add a shuffle to the stream side to stop it before the join node and get statistics?
Yes, stop before join and get count row of each stream side partitions. re-shuffle stream side then join.
----------------------------------------------------------------
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
[GitHub] [spark] SparkQA removed a comment on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AE
Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-689977122
**[Test build #128487 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128487/testReport)** for PR 29692 at commit [`8b33b7f`](https://github.com/apache/spark/commit/8b33b7f4f2a3ace1a4445995288294ae7ea61692).
----------------------------------------------------------------
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
[GitHub] [spark] AmplabJenkins removed a comment on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690185234
Merged build finished. Test FAILed.
----------------------------------------------------------------
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
[GitHub] [spark] SparkQA commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690131006
**[Test build #128508 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128508/testReport)** for PR 29692 at commit [`8e8b1bd`](https://github.com/apache/spark/commit/8e8b1bd442467388361978114c4e66b1abaf14fa).
----------------------------------------------------------------
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
[GitHub] [spark] SparkQA commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690472389
**[Test build #128508 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128508/testReport)** for PR 29692 at commit [`8e8b1bd`](https://github.com/apache/spark/commit/8e8b1bd442467388361978114c4e66b1abaf14fa).
* This patch passes all tests.
* This patch merges cleanly.
* This patch adds no public classes.
----------------------------------------------------------------
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
[GitHub] [spark] SparkQA removed a comment on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690183200
**[Test build #128514 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128514/testReport)** for PR 29692 at commit [`827a0b4`](https://github.com/apache/spark/commit/827a0b4be9c65846793036167d5354e37e1ecc73).
----------------------------------------------------------------
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
[GitHub] [spark] cloud-fan edited a comment on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
cloud-fan edited a comment on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690931387
----------------------------------------------------------------
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
[GitHub] [spark] maropu commented on a change in pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AE
Posted by GitBox <gi...@apache.org>.
maropu commented on a change in pull request #29692:
URL: https://github.com/apache/spark/pull/29692#discussion_r486121989
##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/OptimizeSkewedJoin.scala
##########
@@ -248,6 +249,74 @@ case class OptimizeSkewedJoin(conf: SQLConf) extends Rule[SparkPlan] {
} else {
smj
}
+
+ case bnl @ BroadcastNestedLoopJoinExec(leftChild, rightChild, buildSide, joinType, _, _) =>
+ def resolveBroadcastNLJoinSkew(
+ stream: ShuffleStageInfo,
+ joinType: JoinType,
+ buildSide: BuildSide): SparkPlan = {
+ val streamMedSize = medianSize(stream.mapStats)
+ val numPartitions = stream.partitionsWithSizes.length
+ logDebug(
+ s"""
+ |Optimizing skewed join.
+ |Build Side:
+ |${buildSide}
+ |Stream side partitions size info:
+ |${getSizeInfo(streamMedSize, stream.mapStats.bytesByPartitionId)}
+ """.stripMargin)
+ val canSplitStream = canSplitLeftSide(joinType)
Review comment:
Is this really correct? How about the case: `BuildLeft` and right-outer?
##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/OptimizeSkewedJoin.scala
##########
@@ -248,6 +249,74 @@ case class OptimizeSkewedJoin(conf: SQLConf) extends Rule[SparkPlan] {
} else {
smj
}
+
+ case bnl @ BroadcastNestedLoopJoinExec(leftChild, rightChild, buildSide, joinType, _, _) =>
+ def resolveBroadcastNLJoinSkew(
+ stream: ShuffleStageInfo,
+ joinType: JoinType,
+ buildSide: BuildSide): SparkPlan = {
+ val streamMedSize = medianSize(stream.mapStats)
+ val numPartitions = stream.partitionsWithSizes.length
+ logDebug(
+ s"""
+ |Optimizing skewed join.
+ |Build Side:
+ |${buildSide}
+ |Stream side partitions size info:
+ |${getSizeInfo(streamMedSize, stream.mapStats.bytesByPartitionId)}
Review comment:
nit: How about this update?
```
Optimizing skewed join.
${if (buildSide == BuildLeft) "Left" else "Right"} stream side partitions size info:
${getSizeInfo(streamMedSize, stream.mapStats.bytesByPartitionId)}
```
##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/OptimizeSkewedJoin.scala
##########
@@ -248,6 +249,74 @@ case class OptimizeSkewedJoin(conf: SQLConf) extends Rule[SparkPlan] {
} else {
smj
}
+
+ case bnl @ BroadcastNestedLoopJoinExec(leftChild, rightChild, buildSide, joinType, _, _) =>
+ def resolveBroadcastNLJoinSkew(
+ stream: ShuffleStageInfo,
+ joinType: JoinType,
+ buildSide: BuildSide): SparkPlan = {
+ val streamMedSize = medianSize(stream.mapStats)
+ val numPartitions = stream.partitionsWithSizes.length
+ logDebug(
+ s"""
+ |Optimizing skewed join.
+ |Build Side:
+ |${buildSide}
+ |Stream side partitions size info:
+ |${getSizeInfo(streamMedSize, stream.mapStats.bytesByPartitionId)}
+ """.stripMargin)
+ val canSplitStream = canSplitLeftSide(joinType)
+ val streamActualSizes = stream.partitionsWithSizes.map(_._2)
+ val streamTargetSize = targetSize(streamActualSizes, streamMedSize)
+ val streamSidePartitions = mutable.ArrayBuffer.empty[ShufflePartitionSpec]
+ var numSkewedStream = 0
+ for (partitionIndex <- 0 until numPartitions) {
+ val streamActualSize = streamActualSizes(partitionIndex)
+ val isStreamSkew = isSkewed(streamActualSize, streamMedSize) && canSplitStream
+ val streamPartSpec = stream.partitionsWithSizes(partitionIndex)._1
+ val isStreamCoalesced =
+ streamPartSpec.startReducerIndex + 1 < streamPartSpec.endReducerIndex
+ // A skewed partition should never be coalesced, but skip it here just to be safe.
+ val streamParts = if (isStreamSkew && !isStreamCoalesced) {
+ val reducerId = streamPartSpec.startReducerIndex
+ val skewSpecs = createSkewPartitionSpecs(
+ stream.mapStats.shuffleId, reducerId, streamTargetSize)
+ if (skewSpecs.isDefined) {
+ logDebug(s"Stream side partition $partitionIndex " +
+ s"(${FileUtils.byteCountToDisplaySize(streamActualSize)}) is skewed, " +
+ s"split it into ${skewSpecs.get.length} parts.")
+ numSkewedStream += 1
+ }
+ skewSpecs.getOrElse(Seq(streamPartSpec))
+ } else {
+ Seq(streamPartSpec)
+ }
+
+ for {
+ streamSidePartition <- streamParts
+ } {
+ streamSidePartitions += streamSidePartition
+ }
+ }
+
+ logDebug(s"number of skewed partitions: left $numSkewedStream")
+ if (numSkewedStream > 0) {
+ val newStream = CustomShuffleReaderExec(stream.shuffleStage, streamSidePartitions.toSeq)
+ buildSide match {
+ case BuildRight => bnl.copy(left = newStream, right = bnl.right, isSkewJoin = true)
+ case BuildLeft => bnl.copy(left = bnl.left, right = newStream, isSkewJoin = true)
+ }
+ } else {
+ bnl
+ }
+ }
+
+ (leftChild, rightChild, buildSide) match {
+ case (ShuffleStage(left: ShuffleStageInfo), _, BuildRight) =>
+ resolveBroadcastNLJoinSkew(left, joinType, buildSide)
+ case (_, ShuffleStage(right: ShuffleStageInfo), BuildLeft) =>
+ resolveBroadcastNLJoinSkew(right, joinType, buildSide)
Review comment:
Looks non-match cases can happen here? How about it like this instead?
```
case bnl @ BroadcastNestedLoopJoinExec(
ShuffleStage(left: ShuffleStageInfo), _, BuildRight, joinType, _, _) =>
resolveBroadcastNLJoinSkew(left, joinType, BuildRight)
case bnl @ BroadcastNestedLoopJoinExec(
_, ShuffleStage(right: ShuffleStageInfo), BuildLeft, joinType, _, _) =>
resolveBroadcastNLJoinSkew(right, joinType, BuildLeft)
```
##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/OptimizeSkewedJoin.scala
##########
@@ -248,6 +249,74 @@ case class OptimizeSkewedJoin(conf: SQLConf) extends Rule[SparkPlan] {
} else {
smj
}
+
+ case bnl @ BroadcastNestedLoopJoinExec(leftChild, rightChild, buildSide, joinType, _, _) =>
+ def resolveBroadcastNLJoinSkew(
Review comment:
This is just a suggestion; could we share code between smj and bnl cases? Most parts look duplicated.
##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/OptimizeSkewedJoin.scala
##########
@@ -248,6 +249,74 @@ case class OptimizeSkewedJoin(conf: SQLConf) extends Rule[SparkPlan] {
} else {
smj
}
+
+ case bnl @ BroadcastNestedLoopJoinExec(leftChild, rightChild, buildSide, joinType, _, _) =>
+ def resolveBroadcastNLJoinSkew(
+ stream: ShuffleStageInfo,
+ joinType: JoinType,
+ buildSide: BuildSide): SparkPlan = {
+ val streamMedSize = medianSize(stream.mapStats)
+ val numPartitions = stream.partitionsWithSizes.length
+ logDebug(
+ s"""
+ |Optimizing skewed join.
+ |Build Side:
+ |${buildSide}
+ |Stream side partitions size info:
+ |${getSizeInfo(streamMedSize, stream.mapStats.bytesByPartitionId)}
+ """.stripMargin)
+ val canSplitStream = canSplitLeftSide(joinType)
+ val streamActualSizes = stream.partitionsWithSizes.map(_._2)
+ val streamTargetSize = targetSize(streamActualSizes, streamMedSize)
+ val streamSidePartitions = mutable.ArrayBuffer.empty[ShufflePartitionSpec]
+ var numSkewedStream = 0
+ for (partitionIndex <- 0 until numPartitions) {
+ val streamActualSize = streamActualSizes(partitionIndex)
+ val isStreamSkew = isSkewed(streamActualSize, streamMedSize) && canSplitStream
Review comment:
If `canSplitStream=false`, we need to process this for loop?
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/execution/adaptive/AdaptiveQueryExecSuite.scala
##########
@@ -739,6 +745,67 @@ class AdaptiveQueryExecSuite
}
}
+ test("SPARK-32830: Optimize Skewed BroadcastNestedLoopJoin") {
+ withSQLConf(SQLConf.ADAPTIVE_EXECUTION_ENABLED.key -> "true",
+ SQLConf.SHUFFLE_TARGET_POSTSHUFFLE_INPUT_SIZE.key -> "1k",
+ SQLConf.SKEW_JOIN_SKEWED_PARTITION_THRESHOLD.key -> "5k",
+ SQLConf.SKEW_JOIN_SKEWED_PARTITION_FACTOR.key -> "3") {
+ withTempView("skewData1", "skewData2") {
+ spark
+ .range(0, 10000, 1, 50)
+ .select(
+ when('id > 1000, 100)
+ .when('id <= 1000, 'id % 10)
+ .otherwise('id).as("key1"),
+ 'id as "value1", ('id + "str").as("str"))
+ .createOrReplaceTempView("skewData1")
+ spark
+ .range(5000, 10000, 1, 10)
+ .select(('id % 10).as("key2"),
+ 'id as "value2", ('id + "str").as("str"))
+ .createOrReplaceTempView("skewData2")
+
+ def checkSkewJoin(
+ joins: Seq[BroadcastNestedLoopJoinExec],
+ leftSkewNum: Int,
+ rightSkewNum: Int): Unit = {
+ assert(joins.size == 1 && joins.head.isSkewJoin)
+ if (leftSkewNum > 0) {
+ assert(joins.head.left.collect {
+ case r: CustomShuffleReaderExec => r
+ }.head.partitionSpecs.collect {
+ case p: PartialReducerPartitionSpec => p.reducerIndex
+ }.distinct.length == leftSkewNum)
+ }
+ if (rightSkewNum > 0) {
+ assert(joins.head.right.collect {
+ case r: CustomShuffleReaderExec => r
+ }.head.partitionSpecs.collect {
+ case p: PartialReducerPartitionSpec => p.reducerIndex
+ }.distinct.length == rightSkewNum)
+ }
+ }
+
+ val (_, adaptivePlan1) = runAdaptiveAndVerifyResult(
+ """
+ |SELECT * FROM (SELECT /*+ REPARTITION(key1) */ * FROM skewData1) skewData1
+ |JOIN skewData2 ON key1 < key2
Review comment:
I think we need to add more test cases for the other join types, e.g., left-outer, right-outer..
----------------------------------------------------------------
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
[GitHub] [spark] manuzhang commented on a change in pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
manuzhang commented on a change in pull request #29692:
URL: https://github.com/apache/spark/pull/29692#discussion_r487633146
##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/OptimizeSkewedJoin.scala
##########
@@ -248,6 +275,71 @@ case class OptimizeSkewedJoin(conf: SQLConf) extends Rule[SparkPlan] {
} else {
smj
}
+
+ case bnl @ BroadcastNestedLoopJoinExec(
+ ShuffleStage(left: ShuffleStageInfo), _, BuildRight, joinType, _, _) =>
+ resolveBroadcastNLJoinSkew(bnl, left, joinType, BuildRight)
+ case bnl @ BroadcastNestedLoopJoinExec(
+ _, ShuffleStage(right: ShuffleStageInfo), BuildLeft, joinType, _, _) =>
+ resolveBroadcastNLJoinSkew(bnl, right, joinType, BuildLeft)
+ }
+
+ def resolveBroadcastNLJoinSkew(
+ bnl: BroadcastNestedLoopJoinExec,
+ stream: ShuffleStageInfo,
+ joinType: JoinType,
+ buildSide: BuildSide): SparkPlan = {
+ val streamMedSize = medianSize(stream.mapStats)
+ val numPartitions = stream.partitionsWithSizes.length
+ logDebug(
+ s"""
+ |Optimizing skewed join.
+ |${if (buildSide == BuildLeft) "Left" else "Right"} stream side partitions size info:
+ |${getSizeInfo(streamMedSize, stream.mapStats.bytesByPartitionId)}
+ """.stripMargin)
+ val streamActualSizes = stream.partitionsWithSizes.map(_._2)
+ val streamTargetSize = targetSize(streamActualSizes, streamMedSize)
+ val streamSidePartitions = mutable.ArrayBuffer.empty[ShufflePartitionSpec]
+ var numSkewedStream = 0
+ for (partitionIndex <- 0 until numPartitions) {
Review comment:
This part looks like that in `optimizeSkewJoin`. Can we make it into a general method ?
----------------------------------------------------------------
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
[GitHub] [spark] AmplabJenkins removed a comment on pull request #29692: [WIP][SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AE
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-689465359
Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/128445/
Test FAILed.
----------------------------------------------------------------
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
[GitHub] [spark] SparkQA commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690185217
**[Test build #128514 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128514/testReport)** for PR 29692 at commit [`827a0b4`](https://github.com/apache/spark/commit/827a0b4be9c65846793036167d5354e37e1ecc73).
* This patch **fails Scala style tests**.
* This patch merges cleanly.
* This patch adds no public classes.
----------------------------------------------------------------
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
[GitHub] [spark] AmplabJenkins removed a comment on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690187453
----------------------------------------------------------------
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
[GitHub] [spark] AngersZhuuuu commented on a change in pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on a change in pull request #29692:
URL: https://github.com/apache/spark/pull/29692#discussion_r486138057
##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/OptimizeSkewedJoin.scala
##########
@@ -248,6 +249,74 @@ case class OptimizeSkewedJoin(conf: SQLConf) extends Rule[SparkPlan] {
} else {
smj
}
+
+ case bnl @ BroadcastNestedLoopJoinExec(leftChild, rightChild, buildSide, joinType, _, _) =>
+ def resolveBroadcastNLJoinSkew(
+ stream: ShuffleStageInfo,
+ joinType: JoinType,
+ buildSide: BuildSide): SparkPlan = {
+ val streamMedSize = medianSize(stream.mapStats)
+ val numPartitions = stream.partitionsWithSizes.length
+ logDebug(
+ s"""
+ |Optimizing skewed join.
+ |Build Side:
+ |${buildSide}
+ |Stream side partitions size info:
+ |${getSizeInfo(streamMedSize, stream.mapStats.bytesByPartitionId)}
+ """.stripMargin)
+ val canSplitStream = canSplitLeftSide(joinType)
Review comment:
> Is this really correct? How about the case: `BuildLeft` and right-outer?
Sorry, a mistake, we should remove this condition since for BroadcastNestedLoopJoin, we don't need to care which kind join type.
----------------------------------------------------------------
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
[GitHub] [spark] AmplabJenkins removed a comment on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690182471
----------------------------------------------------------------
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
[GitHub] [spark] cloud-fan edited a comment on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
cloud-fan edited a comment on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690931387
If the user manually adds a shuffle (DISTRIBUTE BY) in the query before broadcast join, I think we can take care of the skew. Spark query optimizer should not add the extra shuffle by itself, as it's likely to cause perf regression.
But we need to be careful to break output partitioning by splitting the skewed partitions, and cause extra shuffle.
----------------------------------------------------------------
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
[GitHub] [spark] cloud-fan commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
cloud-fan commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690172209
What's the high-level idea? We can handle skew SMJ because there is a shuffle and we can split the partition with the granularity of shuffle blocks. Broadcast join doesn't have shuffles.
----------------------------------------------------------------
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
[GitHub] [spark] github-actions[bot] closed pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
github-actions[bot] closed pull request #29692:
URL: https://github.com/apache/spark/pull/29692
----------------------------------------------------------------
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
[GitHub] [spark] AmplabJenkins removed a comment on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690159566
----------------------------------------------------------------
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
[GitHub] [spark] AngersZhuuuu commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690156089
> Ah, one more comment; could you update the code comment in `OptimizeSkewedJoin`? It looks most comments assume smj only, e.g., https://github.com/apache/spark/pull/29692/files#diff-2d6bea6eed43ca6f37fe3531cb574069R151
Updated, no comment point to SMJ only now.
----------------------------------------------------------------
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
[GitHub] [spark] maropu commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
maropu commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690134842
Ah, one more comment; could you update the code comment in `OptimizeSkewedJoin`? It looks most comments assume smj only, e.g., https://github.com/apache/spark/pull/29692/files#diff-2d6bea6eed43ca6f37fe3531cb574069R151
----------------------------------------------------------------
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
[GitHub] [spark] AngersZhuuuu commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690936960
> Spark query optimizer should not add the extra shuffle by itself, as it's likely to cause perf regression.
With this rule, we can't handle such data skew case automatic. With strict and reasonable conf value, extra shuffle 's cost is much less than the overhead of data skew.
Especially like broadcast join/broadcast nested loop join. if stream side executing end with a group by(There are many such business scenarios) and always data skew seriously. Getting business people to tune each job is difficult.
For the community, what do you think about this scene
----------------------------------------------------------------
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
[GitHub] [spark] AmplabJenkins removed a comment on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690155893
----------------------------------------------------------------
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
[GitHub] [spark] AmplabJenkins removed a comment on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690507872
----------------------------------------------------------------
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
[GitHub] [spark] AngersZhuuuu commented on a change in pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on a change in pull request #29692:
URL: https://github.com/apache/spark/pull/29692#discussion_r486141369
##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/OptimizeSkewedJoin.scala
##########
@@ -248,6 +249,74 @@ case class OptimizeSkewedJoin(conf: SQLConf) extends Rule[SparkPlan] {
} else {
smj
}
+
+ case bnl @ BroadcastNestedLoopJoinExec(leftChild, rightChild, buildSide, joinType, _, _) =>
+ def resolveBroadcastNLJoinSkew(
Review comment:
> This is just a suggestion; could we share code between smj and bnl cases? Most parts look duplicated.
After all detail ok, I will start this work. I quite agree with this suggestion.
----------------------------------------------------------------
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
[GitHub] [spark] AmplabJenkins removed a comment on pull request #29692: [WIP][SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AE
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-689749077
----------------------------------------------------------------
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
[GitHub] [spark] AngersZhuuuu commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AE
Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-689986896
ping @cloud-fan @hvanhovell @maryannxue
----------------------------------------------------------------
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
[GitHub] [spark] SparkQA commented on pull request #29692: [WIP][SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AE
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-689465338
**[Test build #128445 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128445/testReport)** for PR 29692 at commit [`7aba44d`](https://github.com/apache/spark/commit/7aba44d5aa6cac633e56d8e4b34d213b5d0a87d6).
* This patch **fails Scala style tests**.
* This patch merges cleanly.
* This patch adds no public classes.
----------------------------------------------------------------
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
[GitHub] [spark] AmplabJenkins commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690159566
----------------------------------------------------------------
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
[GitHub] [spark] AmplabJenkins commented on pull request #29692: [WIP][SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AE
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-689465349
----------------------------------------------------------------
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
[GitHub] [spark] AmplabJenkins commented on pull request #29692: [WIP][SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AE
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-689464467
----------------------------------------------------------------
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
[GitHub] [spark] AmplabJenkins removed a comment on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AE
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690035510
----------------------------------------------------------------
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
[GitHub] [spark] SparkQA removed a comment on pull request #29692: [WIP][SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AE
Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-689568133
**[Test build #128453 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128453/testReport)** for PR 29692 at commit [`ec19256`](https://github.com/apache/spark/commit/ec192560cf74789521c285bedeb235e6c4a82589).
----------------------------------------------------------------
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
[GitHub] [spark] AmplabJenkins removed a comment on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690477549
----------------------------------------------------------------
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
[GitHub] [spark] SparkQA commented on pull request #29692: [WIP][SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AE
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-689747561
**[Test build #128453 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128453/testReport)** for PR 29692 at commit [`ec19256`](https://github.com/apache/spark/commit/ec192560cf74789521c285bedeb235e6c4a82589).
* This patch passes all tests.
* This patch merges cleanly.
* This patch adds no public classes.
----------------------------------------------------------------
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
[GitHub] [spark] AmplabJenkins commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690507872
----------------------------------------------------------------
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
[GitHub] [spark] AmplabJenkins removed a comment on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AE
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690039717
----------------------------------------------------------------
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
[GitHub] [spark] AngersZhuuuu commented on a change in pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on a change in pull request #29692:
URL: https://github.com/apache/spark/pull/29692#discussion_r486141595
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/execution/adaptive/AdaptiveQueryExecSuite.scala
##########
@@ -739,6 +745,67 @@ class AdaptiveQueryExecSuite
}
}
+ test("SPARK-32830: Optimize Skewed BroadcastNestedLoopJoin") {
+ withSQLConf(SQLConf.ADAPTIVE_EXECUTION_ENABLED.key -> "true",
+ SQLConf.SHUFFLE_TARGET_POSTSHUFFLE_INPUT_SIZE.key -> "1k",
+ SQLConf.SKEW_JOIN_SKEWED_PARTITION_THRESHOLD.key -> "5k",
+ SQLConf.SKEW_JOIN_SKEWED_PARTITION_FACTOR.key -> "3") {
+ withTempView("skewData1", "skewData2") {
+ spark
+ .range(0, 10000, 1, 50)
+ .select(
+ when('id > 1000, 100)
+ .when('id <= 1000, 'id % 10)
+ .otherwise('id).as("key1"),
+ 'id as "value1", ('id + "str").as("str"))
+ .createOrReplaceTempView("skewData1")
+ spark
+ .range(5000, 10000, 1, 10)
+ .select(('id % 10).as("key2"),
+ 'id as "value2", ('id + "str").as("str"))
+ .createOrReplaceTempView("skewData2")
+
+ def checkSkewJoin(
+ joins: Seq[BroadcastNestedLoopJoinExec],
+ leftSkewNum: Int,
+ rightSkewNum: Int): Unit = {
+ assert(joins.size == 1 && joins.head.isSkewJoin)
+ if (leftSkewNum > 0) {
+ assert(joins.head.left.collect {
+ case r: CustomShuffleReaderExec => r
+ }.head.partitionSpecs.collect {
+ case p: PartialReducerPartitionSpec => p.reducerIndex
+ }.distinct.length == leftSkewNum)
+ }
+ if (rightSkewNum > 0) {
+ assert(joins.head.right.collect {
+ case r: CustomShuffleReaderExec => r
+ }.head.partitionSpecs.collect {
+ case p: PartialReducerPartitionSpec => p.reducerIndex
+ }.distinct.length == rightSkewNum)
+ }
+ }
+
+ val (_, adaptivePlan1) = runAdaptiveAndVerifyResult(
+ """
+ |SELECT * FROM (SELECT /*+ REPARTITION(key1) */ * FROM skewData1) skewData1
+ |JOIN skewData2 ON key1 < key2
Review comment:
> I think we need to add more test cases for the other join types, e.g., left-outer, right-outer..
Yea, update later
----------------------------------------------------------------
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
[GitHub] [spark] AngersZhuuuu commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690369334
> What's the high-level idea? We can handle skew SMJ because there is a shuffle and we can split the partition with the granularity of shuffle blocks. Broadcast join doesn't have shuffles.
Yeah, thought a lot that normal SQL can't match this case.
For our production env experience, data skew (such as stream side is group by and skewed )before broadcast nested loop join always cause a long running time.
two ways to avoid this case :
1. avoid nested loop join.
2. use distribute by to increase parallelism by dispersing data.
method 1 need to handle SQL logic, for method 2, although it will cause one more time shuffle, it 's narrow dependent. Nowadays, network cost is cheap and always not a bottleneck.
After try with AQE, AQE's mode is not suitable for this case. Since it doesn't have a shuffle before BNLJ.
In our inner version, in BroadcastNestedLoopJoinExec, after stream side executed, we will get the raw count of each partition and judge if it's skewed seriously, if skewed seriously and volume is large, repartition stream side to make stream side RDD average.
It's not very elegant but the benefits are very clear. I am not sure if community will accept this way.
----------------------------------------------------------------
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
[GitHub] [spark] SparkQA removed a comment on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690038974
**[Test build #128496 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128496/testReport)** for PR 29692 at commit [`8b33b7f`](https://github.com/apache/spark/commit/8b33b7f4f2a3ace1a4445995288294ae7ea61692).
----------------------------------------------------------------
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
[GitHub] [spark] AngersZhuuuu commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AE
Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690035644
retest this please
----------------------------------------------------------------
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
[GitHub] [spark] AmplabJenkins commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690285362
----------------------------------------------------------------
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
[GitHub] [spark] AmplabJenkins removed a comment on pull request #29692: [WIP][SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AE
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-689569154
----------------------------------------------------------------
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
[GitHub] [spark] cloud-fan commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
cloud-fan commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690871544
> after stream side executed, we will get the raw count of each partition and judge if it's skewed seriously, if skewed seriously and volume is large, repartition stream side to make stream side RDD average.
So you add a shuffle to the stream side to stop it before the join node and get statistics?
----------------------------------------------------------------
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
[GitHub] [spark] AngersZhuuuu commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690873256
----------------------------------------------------------------
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
[GitHub] [spark] SparkQA removed a comment on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690131006
**[Test build #128508 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128508/testReport)** for PR 29692 at commit [`8e8b1bd`](https://github.com/apache/spark/commit/8e8b1bd442467388361978114c4e66b1abaf14fa).
----------------------------------------------------------------
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
[GitHub] [spark] manuzhang commented on a change in pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
manuzhang commented on a change in pull request #29692:
URL: https://github.com/apache/spark/pull/29692#discussion_r487633479
##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/OptimizeSkewedJoin.scala
##########
@@ -262,13 +354,24 @@ case class OptimizeSkewedJoin(conf: SQLConf) extends Rule[SparkPlan] {
val shuffleStages = collectShuffleStages(plan)
- if (shuffleStages.length == 2) {
+ if (shuffleStages.length >= 1) {
Review comment:
Does this mean we will also handle multi-table join (e.g. three-table join) ?
----------------------------------------------------------------
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
[GitHub] [spark] AngersZhuuuu commented on a change in pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on a change in pull request #29692:
URL: https://github.com/apache/spark/pull/29692#discussion_r491639826
##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/OptimizeSkewedJoin.scala
##########
@@ -262,13 +354,24 @@ case class OptimizeSkewedJoin(conf: SQLConf) extends Rule[SparkPlan] {
val shuffleStages = collectShuffleStages(plan)
- if (shuffleStages.length == 2) {
+ if (shuffleStages.length >= 1) {
Review comment:
> Does this mean we will also handle multi-table join (e.g. three-table join) ?
Since broadcast nested loop join only can have one side shuffle exchange, but sort merge join with two
----------------------------------------------------------------
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
[GitHub] [spark] SparkQA commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690186983
**[Test build #128515 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128515/testReport)** for PR 29692 at commit [`5c6f895`](https://github.com/apache/spark/commit/5c6f895f4e351589cc46adf0a50ad08a8f9a1c51).
----------------------------------------------------------------
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
[GitHub] [spark] SparkQA commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690282949
**[Test build #128496 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128496/testReport)** for PR 29692 at commit [`8b33b7f`](https://github.com/apache/spark/commit/8b33b7f4f2a3ace1a4445995288294ae7ea61692).
* This patch passes all tests.
* This patch merges cleanly.
* This patch adds no public classes.
----------------------------------------------------------------
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
[GitHub] [spark] AmplabJenkins commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690185234
----------------------------------------------------------------
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
[GitHub] [spark] SparkQA removed a comment on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690178047
**[Test build #128513 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128513/testReport)** for PR 29692 at commit [`1e36ca0`](https://github.com/apache/spark/commit/1e36ca0cc8647b94fca537ac2212799760cf7947).
----------------------------------------------------------------
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
[GitHub] [spark] SparkQA commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AE
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690038974
**[Test build #128496 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128496/testReport)** for PR 29692 at commit [`8b33b7f`](https://github.com/apache/spark/commit/8b33b7f4f2a3ace1a4445995288294ae7ea61692).
----------------------------------------------------------------
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
[GitHub] [spark] AmplabJenkins commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690187453
----------------------------------------------------------------
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
[GitHub] [spark] AmplabJenkins removed a comment on pull request #29692: [WIP][SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AE
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-689464467
----------------------------------------------------------------
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
[GitHub] [spark] AngersZhuuuu commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690873256
----------------------------------------------------------------
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
[GitHub] [spark] SparkQA commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690178047
**[Test build #128513 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128513/testReport)** for PR 29692 at commit [`1e36ca0`](https://github.com/apache/spark/commit/1e36ca0cc8647b94fca537ac2212799760cf7947).
----------------------------------------------------------------
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
[GitHub] [spark] cloud-fan commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
cloud-fan commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690931387
If the user manually adds a shuffle (DISTRIBUTE BY) in the query before broadcast join, I think we can take care of the skew. Spark query optimizer should not add the extra shuffle by itself, as it's likely to cause perf regression.
----------------------------------------------------------------
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
[GitHub] [spark] AmplabJenkins removed a comment on pull request #29692: [WIP][SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AE
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-689465349
Merged build finished. Test FAILed.
----------------------------------------------------------------
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
[GitHub] [spark] SparkQA commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AE
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690035154
**[Test build #128487 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128487/testReport)** for PR 29692 at commit [`8b33b7f`](https://github.com/apache/spark/commit/8b33b7f4f2a3ace1a4445995288294ae7ea61692).
* This patch **fails due to an unknown error code, -9**.
* This patch merges cleanly.
* This patch adds no public classes.
----------------------------------------------------------------
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
[GitHub] [spark] AmplabJenkins commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690477549
----------------------------------------------------------------
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
[GitHub] [spark] SparkQA removed a comment on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690186983
**[Test build #128515 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128515/testReport)** for PR 29692 at commit [`5c6f895`](https://github.com/apache/spark/commit/5c6f895f4e351589cc46adf0a50ad08a8f9a1c51).
----------------------------------------------------------------
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
[GitHub] [spark] AngersZhuuuu commented on a change in pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on a change in pull request #29692:
URL: https://github.com/apache/spark/pull/29692#discussion_r486218258
##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/OptimizeSkewedJoin.scala
##########
@@ -248,6 +249,74 @@ case class OptimizeSkewedJoin(conf: SQLConf) extends Rule[SparkPlan] {
} else {
smj
}
+
+ case bnl @ BroadcastNestedLoopJoinExec(leftChild, rightChild, buildSide, joinType, _, _) =>
+ def resolveBroadcastNLJoinSkew(
+ stream: ShuffleStageInfo,
+ joinType: JoinType,
+ buildSide: BuildSide): SparkPlan = {
+ val streamMedSize = medianSize(stream.mapStats)
+ val numPartitions = stream.partitionsWithSizes.length
+ logDebug(
+ s"""
+ |Optimizing skewed join.
+ |Build Side:
+ |${buildSide}
+ |Stream side partitions size info:
+ |${getSizeInfo(streamMedSize, stream.mapStats.bytesByPartitionId)}
+ """.stripMargin)
+ val canSplitStream = canSplitLeftSide(joinType)
+ val streamActualSizes = stream.partitionsWithSizes.map(_._2)
+ val streamTargetSize = targetSize(streamActualSizes, streamMedSize)
+ val streamSidePartitions = mutable.ArrayBuffer.empty[ShufflePartitionSpec]
+ var numSkewedStream = 0
+ for (partitionIndex <- 0 until numPartitions) {
+ val streamActualSize = streamActualSizes(partitionIndex)
+ val isStreamSkew = isSkewed(streamActualSize, streamMedSize) && canSplitStream
+ val streamPartSpec = stream.partitionsWithSizes(partitionIndex)._1
+ val isStreamCoalesced =
+ streamPartSpec.startReducerIndex + 1 < streamPartSpec.endReducerIndex
+ // A skewed partition should never be coalesced, but skip it here just to be safe.
+ val streamParts = if (isStreamSkew && !isStreamCoalesced) {
+ val reducerId = streamPartSpec.startReducerIndex
+ val skewSpecs = createSkewPartitionSpecs(
+ stream.mapStats.shuffleId, reducerId, streamTargetSize)
+ if (skewSpecs.isDefined) {
+ logDebug(s"Stream side partition $partitionIndex " +
+ s"(${FileUtils.byteCountToDisplaySize(streamActualSize)}) is skewed, " +
+ s"split it into ${skewSpecs.get.length} parts.")
+ numSkewedStream += 1
+ }
+ skewSpecs.getOrElse(Seq(streamPartSpec))
+ } else {
+ Seq(streamPartSpec)
+ }
+
+ for {
+ streamSidePartition <- streamParts
+ } {
+ streamSidePartitions += streamSidePartition
+ }
+ }
+
+ logDebug(s"number of skewed partitions: left $numSkewedStream")
+ if (numSkewedStream > 0) {
+ val newStream = CustomShuffleReaderExec(stream.shuffleStage, streamSidePartitions.toSeq)
+ buildSide match {
+ case BuildRight => bnl.copy(left = newStream, right = bnl.right, isSkewJoin = true)
+ case BuildLeft => bnl.copy(left = bnl.left, right = newStream, isSkewJoin = true)
+ }
+ } else {
+ bnl
+ }
+ }
+
+ (leftChild, rightChild, buildSide) match {
+ case (ShuffleStage(left: ShuffleStageInfo), _, BuildRight) =>
+ resolveBroadcastNLJoinSkew(left, joinType, buildSide)
+ case (_, ShuffleStage(right: ShuffleStageInfo), BuildLeft) =>
+ resolveBroadcastNLJoinSkew(right, joinType, buildSide)
Review comment:
Done
----------------------------------------------------------------
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
[GitHub] [spark] AmplabJenkins commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AE
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690035510
----------------------------------------------------------------
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
[GitHub] [spark] SparkQA commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690504405
**[Test build #128515 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128515/testReport)** for PR 29692 at commit [`5c6f895`](https://github.com/apache/spark/commit/5c6f895f4e351589cc46adf0a50ad08a8f9a1c51).
* This patch passes all tests.
* This patch merges cleanly.
* This patch adds no public classes.
----------------------------------------------------------------
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
[GitHub] [spark] cloud-fan commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
cloud-fan commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690945537
Then we need some estimation work, as the shuffle/scan node may be far away from the join node. We also need to carefully justify if the extra shuffle cost worths the skew elimination benefits.
----------------------------------------------------------------
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
[GitHub] [spark] cloud-fan commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
cloud-fan commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690871544
----------------------------------------------------------------
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
[GitHub] [spark] SparkQA commented on pull request #29692: [WIP][SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AE
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-689568133
**[Test build #128453 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128453/testReport)** for PR 29692 at commit [`ec19256`](https://github.com/apache/spark/commit/ec192560cf74789521c285bedeb235e6c4a82589).
----------------------------------------------------------------
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
[GitHub] [spark] SparkQA commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690182444
**[Test build #128513 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128513/testReport)** for PR 29692 at commit [`1e36ca0`](https://github.com/apache/spark/commit/1e36ca0cc8647b94fca537ac2212799760cf7947).
* This patch **fails Scala style tests**.
* This patch merges cleanly.
* This patch adds no public classes.
----------------------------------------------------------------
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
[GitHub] [spark] SparkQA commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690183200
**[Test build #128514 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128514/testReport)** for PR 29692 at commit [`827a0b4`](https://github.com/apache/spark/commit/827a0b4be9c65846793036167d5354e37e1ecc73).
----------------------------------------------------------------
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
[GitHub] [spark] AngersZhuuuu commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-695464072
> Then we need some estimation work, as the shuffle/scan node may be far away from the join node. We also need to carefully justify if the extra shuffle cost worths the skew elimination benefits.
Yea, only when skewed very serious and threshold is reached , worth to re-shuffle data.
Hope for some advise: in current code, is there any method to estimate shuffle cost?
----------------------------------------------------------------
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
[GitHub] [spark] SparkQA removed a comment on pull request #29692: [WIP][SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AE
Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-689463957
**[Test build #128445 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128445/testReport)** for PR 29692 at commit [`7aba44d`](https://github.com/apache/spark/commit/7aba44d5aa6cac633e56d8e4b34d213b5d0a87d6).
----------------------------------------------------------------
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
[GitHub] [spark] AmplabJenkins commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690131596
----------------------------------------------------------------
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
[GitHub] [spark] AngersZhuuuu commented on pull request #29692: [SPARK-32830][SQL] Optimize Skewed BroadcastNestedLoopJoin with AQE
Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29692:
URL: https://github.com/apache/spark/pull/29692#issuecomment-690873256
----------------------------------------------------------------
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