cloud-fan commented on code in PR #50230: URL: https://github.com/apache/spark/pull/50230#discussion_r2037329689
########## core/src/main/scala/org/apache/spark/Dependency.scala: ########## @@ -83,9 +85,30 @@ class ShuffleDependency[K: ClassTag, V: ClassTag, C: ClassTag]( val keyOrdering: Option[Ordering[K]] = None, val aggregator: Option[Aggregator[K, V, C]] = None, val mapSideCombine: Boolean = false, - val shuffleWriterProcessor: ShuffleWriteProcessor = new ShuffleWriteProcessor) + val shuffleWriterProcessor: ShuffleWriteProcessor = new ShuffleWriteProcessor, + val rowBasedChecksums: Array[RowBasedChecksum] = Array.empty) Review Comment: `Array.empty` is not a constant but a function. Shall we create a constant of empty `Array[RowBasedChecksum]` in `object ShuffleDependency`? -- 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-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org