Github user fhueske commented on a diff in the pull request:
https://github.com/apache/flink/pull/1585#discussion_r51870056
--- Diff: flink-java/src/main/java/org/apache/flink/api/java/DataSet.java
---
@@ -1377,6 +1377,20 @@ public long count() throws Exception {
return new SortPartitionOperator<>(this, field, order,
Utils.getCallLocationName());
}
+ /**
+ * Locally sorts the partitions of the DataSet on the specified field
in the specified order.
+ * DataSet can be sorted on multiple fields by chaining sortPartition()
calls.
--- End diff --
I would not allow chaining of KeySelectors. We only allow a single key
extractor anywhere else in the DataSet API (for a good reason). If users want
to sort on more than one field, they can return a `TupleX` from the
`KeySelector`.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---