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

    https://github.com/apache/spark/pull/10835#discussion_r50808661
  
    --- Diff: core/src/main/scala/org/apache/spark/util/JsonProtocol.scala ---
    @@ -691,10 +724,42 @@ private[spark] object JsonProtocol {
       def accumulableInfoFromJson(json: JValue): AccumulableInfo = {
         val id = (json \ "ID").extract[Long]
         val name = (json \ "Name").extract[String]
    -    val update = Utils.jsonOption(json \ "Update").map(_.extract[String])
    -    val value = (json \ "Value").extract[String]
    +    val update = Utils.jsonOption(json \ "Update").map { v => 
accumValueFromJson(name, v) }
    +    val value = Utils.jsonOption(json \ "Value").map { v => 
accumValueFromJson(name, v) }
         val internal = (json \ "Internal").extractOpt[Boolean].getOrElse(false)
    -    AccumulableInfo(id, name, update, value, internal)
    +    val countFailedValues = (json \ "Count Failed 
Values").extractOpt[Boolean].getOrElse(false)
    +    new AccumulableInfo(id, name, update, value, internal, 
countFailedValues)
    +  }
    +
    +  /**
    +   * Deserialize the value of an accumulator from JSON.
    +   *
    +   * For accmulators representing internal task metrics, this looks up the 
relevant
    --- End diff --
    
    Typo: `accmulators`


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