Github user mateiz commented on a diff in the pull request:
https://github.com/apache/spark/pull/1309#discussion_r15726416
--- 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 --
Actually I realize that putting this in AccumulatorParam / AccumulableParam
would be a breaking API change, because those are traits. What about just
leaving this feature out for now? People can always wrap stuff in their own
data type with their own toString.
---
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.
---