[
https://issues.apache.org/jira/browse/FLINK-2184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15972642#comment-15972642
]
ASF GitHub Bot commented on FLINK-2184:
---------------------------------------
Github user fhueske commented on the issue:
https://github.com/apache/flink/pull/3110
Thanks @aljoscha, those are my concerns as well. The methods are very
prominent in the core APIs and provide only marginal value. It's pretty
straightforward to implement the functionality with a `ReduceFunction` in case
you need it.
Are there plans to deprecate the corresponding methods on the Java
DataStream API?
> Cannot get last element with maxBy/minBy
> ----------------------------------------
>
> Key: FLINK-2184
> URL: https://issues.apache.org/jira/browse/FLINK-2184
> Project: Flink
> Issue Type: Improvement
> Components: DataStream API, Scala API
> Reporter: Gábor Hermann
> Priority: Minor
>
> In the streaming Scala API there is no method
> {{maxBy(int positionToMaxBy, boolean first)}}
> nor
> {{minBy(int positionToMinBy, boolean first)}}
> like in the Java API, where _first_ set to {{true}} indicates that the latest
> found element will return.
> These methods should be added to the Scala API too, in order to be consistent.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)