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

    https://github.com/apache/spark/pull/1450#discussion_r15040306
  
    --- Diff: core/src/main/scala/org/apache/spark/rdd/PairRDDFunctions.scala 
---
    @@ -214,7 +214,7 @@ class PairRDDFunctions[K, V](self: RDD[(K, V)])
           throw new SparkException("reduceByKeyLocally() does not support 
array keys")
         }
     
    -    def reducePartition(iter: Iterator[(K, V)]): Iterator[JHashMap[K, V]] 
= {
    +    val reducePartition = (iter: Iterator[(K, V)]) => {
    --- End diff --
    
    I have to push back on the loss of the return type here, since I don't 
think it's obvious. I know it's kind of a pain to add the whole type 
specification, though... what would you think about putting a `: 
Iterator[JHashMap[K, V]]` after the final bracket?


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to