Github user mateiz commented on a diff in the pull request:
https://github.com/apache/spark/pull/1309#discussion_r15726394
--- 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"
--- End diff --
Shouldn't this be part of the AccumulableParam? Users can't subclass
Accumulable AFAIK, or at least they shouldn't be encouraged to. Same thing for
AccumulatorParam.
---
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.
---