[ https://issues.apache.org/jira/browse/SPARK-3783?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14158176#comment-14158176 ]
Nathan Kronenfeld commented on SPARK-3783: ------------------------------------------ https://github.com/apache/spark/pull/2637 > The type parameters for SparkContext.accumulable are inconsistent Accumulable > itself > ------------------------------------------------------------------------------------ > > Key: SPARK-3783 > URL: https://issues.apache.org/jira/browse/SPARK-3783 > Project: Spark > Issue Type: Bug > Components: Spark Core > Reporter: Nathan Kronenfeld > Priority: Minor > Original Estimate: 10m > Remaining Estimate: 10m > > SparkContext.accumulable takes type parameters [T, R] - and passes them to > accumulable, in that order. > Accumulable takes type parameters [R, T]. > So T for SparkContext.accumulable corresponds with R for Accumulable and vice > versa. > Minor, but very confusing. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org