spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Takeshi Yamamuro (Jira)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-32771) The example of expressions.Aggregator in Javadoc / Scaladoc is wrong
Date Thu, 03 Sep 2020 04:15:00 GMT

    [ https://issues.apache.org/jira/browse/SPARK-32771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17189828#comment-17189828
] 

Takeshi Yamamuro commented on SPARK-32771:
------------------------------------------

Since v3.0.1 does not include this fix, I reset "Target Version/s" from 3.0.1 to 3.0.2.

> The example of expressions.Aggregator in Javadoc / Scaladoc is wrong
> --------------------------------------------------------------------
>
>                 Key: SPARK-32771
>                 URL: https://issues.apache.org/jira/browse/SPARK-32771
>             Project: Spark
>          Issue Type: Bug
>          Components: docs
>    Affects Versions: 3.0.0, 3.1.0
>            Reporter: Kousuke Saruta
>            Assignee: Kousuke Saruta
>            Priority: Minor
>             Fix For: 2.4.7, 3.0.1, 3.1.0
>
>
> There is an example of expressions.Aggregator in Javadoc and Scaladoc like as follows.
> {code:java}
> val customSummer =  new Aggregator[Data, Int, Int] {
>   def zero: Int = 0
>   def reduce(b: Int, a: Data): Int = b + a.i
>   def merge(b1: Int, b2: Int): Int = b1 + b2
>   def finish(r: Int): Int = r
> }.toColumn(){code}
> But this example doesn't work because it doesn't define bufferEncoder and outputEncoder.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message