You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/07/20 13:04:15 UTC
[GitHub] [spark] HyukjinKwon commented on a change in pull request #33431: [SPARK-36221][SQL] Make sure CustomShuffleReaderExec has at least one partition
HyukjinKwon commented on a change in pull request #33431:
URL: https://github.com/apache/spark/pull/33431#discussion_r673102615
##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/CustomShuffleReaderExec.scala
##########
@@ -34,11 +34,14 @@ import org.apache.spark.sql.vectorized.ColumnarBatch
*
* @param child It is usually `ShuffleQueryStageExec`, but can be the shuffle exchange
* node during canonicalization.
- * @param partitionSpecs The partition specs that defines the arrangement.
+ * @param partitionSpecs The partition specs that defines the arrangement, requires at least one
+ * partition.
*/
case class CustomShuffleReaderExec private(
child: SparkPlan,
partitionSpecs: Seq[ShufflePartitionSpec]) extends UnaryExecNode {
+ assert(partitionSpecs.nonEmpty, "CustomShuffleReaderExec requires at least one partition")
Review comment:
nit but let's use getClass or something next time
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
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