Github user liutang123 commented on a diff in the pull request: https://github.com/apache/spark/pull/19364#discussion_r141785140 --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/exchange/ExchangeCoordinator.scala --- @@ -232,7 +232,7 @@ class ExchangeCoordinator( // number of post-shuffle partitions. val partitionStartIndices = if (mapOutputStatistics.length == 0) { - None + Some(Array[Int]()) --- End diff -- partitionStartIndices should be an Option[Array[Int]] as the second parameter of ShuffleExchange.preparePostShuffleRDD. If use Array.empty[Int], a syntax error appears.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org