flink-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ufuk Celebi <...@apache.org>
Subject Re: Aggregations
Date Sat, 06 Sep 2014 10:01:21 GMT
On Fri, Sep 5, 2014 at 10:30 PM, Gyula Fóra <gyula.fora@gmail.com> wrote:

> For the sum aggregation this makes sense, but shouldn't min and max
> actually return an element of the dataset?
>

There are also the minBy and maxBy methods, which return the Tuple with the
minimum/maximum value whereas the min and max methods just work on the
field.

I also have the feeling that this might be unintuitive and that users would
expect minBy/maxBy semantics to be the default.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message