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

Fabian Hueske commented on FLINK-1112:
--------------------------------------

I meant sorting on a key that was computed using a KeySelector. 
I guess in most cases where a grouping key is computed using a KeySelector, the 
same will be true for a sorting key.

For now, I would only support KeySelector sorting on KeySelector groupings (and 
not on FieldPosition and ExpressionKey groupings) to keep things initially 
simple. Instead of a Tuple2<GroupingKey, OriginalType>, we need a 
Tuple3<GroupingKey, SortingKey, OriginalType> and the internal wrappers for 
KeySelector grouping need to be duplicated to handle the Tuple3.

> Add GroupSorting with KeySelectors
> ----------------------------------
>
>                 Key: FLINK-1112
>                 URL: https://issues.apache.org/jira/browse/FLINK-1112
>             Project: Flink
>          Issue Type: Improvement
>          Components: Java API, Scala API
>            Reporter: Fabian Hueske
>
> Group sorting is currently only supported for field-index keys and not for 
> KeySelectors.
> This feature was requested.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to