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

    https://github.com/apache/spark/pull/1309#discussion_r15726400
  
    --- Diff: core/src/main/scala/org/apache/spark/Accumulators.scala ---
    @@ -91,6 +100,16 @@ class Accumulable[R, T] (
       }
     
       /**
    +   * Function to customize printing values of this accumulator.
    +   */
    +  def prettyValue(_value: R) = s"$value"
    +
    +  /**
    +   * Function to customize printing partially accumulated (local) values 
of this accumulator.
    +   */
    +  def prettyPartialValue(_value: R) = prettyValue(_value)
    --- End diff --
    
    Why do we need a separate one for partial values?


---
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.
---

Reply via email to