Github user Mironor commented on a diff in the pull request:

    https://github.com/apache/spark/pull/16137#discussion_r92595845
  
    --- Diff: core/src/main/scala/org/apache/spark/SparkContext.scala ---
    @@ -2067,8 +2067,8 @@ class SparkContext(config: SparkConf) extends Logging 
{
       }
     
       /**
    -   * Run a job on all partitions in an RDD and pass the results to a 
handler function, but take
    -   * a function of type `Iterator[T] => U` instead of `(TaskContext, 
Iterator[T]) => U`.
    +   * Run a job on all partitions in an RDD and pass the results to a 
handler function, this time the
    --- End diff --
    
    If I understood you correctly, both of the functions should have `X` as the 
description, but the one with `TaskContext` has this added to its description: 
`The function that is run against each partition should additionally take 
TaskContext argument.`, right? 
    At the same time the actual argument description stays the same in both 
cases because the `TaskContext` thing is already described in the method 
signature.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to