cloud-fan commented on a change in pull request #35995:
URL: https://github.com/apache/spark/pull/35995#discussion_r838075213
##########
File path: core/src/main/scala/org/apache/spark/BarrierTaskContext.scala
##########
@@ -215,6 +215,8 @@ class BarrierTaskContext private[spark] (
override def partitionId(): Int = taskContext.partitionId()
+ override def numPartitions(): Int = taskContext.numPartitions()
Review comment:
We can remove `lazy val numTasks` in this file and use `numPartitions()`
directly.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]