You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Alexis Sarda-Espinosa (Jira)" <ji...@apache.org> on 2021/03/13 11:55:00 UTC

[jira] [Created] (FLINK-21763) Extend Data Stream's batch mode to handle partitioning/grouping/ordering

Alexis Sarda-Espinosa created FLINK-21763:
---------------------------------------------

             Summary: Extend Data Stream's batch mode to handle partitioning/grouping/ordering
                 Key: FLINK-21763
                 URL: https://issues.apache.org/jira/browse/FLINK-21763
             Project: Flink
          Issue Type: Improvement
          Components: API / DataStream
            Reporter: Alexis Sarda-Espinosa


In the DataSet API, an undocumented (?) feature is using [SplitDataProperties|[https://ci.apache.org/projects/flink/flink-docs-release-1.12/api/java/org/apache/flink/api/java/io/SplitDataProperties.html]] to specify different grouping/partitioning/sorting properties, so if the data is pre-sorted (e.g. when reading from a database), some operations can be optimized. Based on this, I assume the Flink scheduler already knows about such optimizations.

The new batch mode for the Data Stream API doesn't have a way to specify this. I imagine something like this would be useful even for transformation operators, not only for sources, e.g. a flat map that gets an input "batch" and outputs new data with a different kind of grouping/sorting.

I suppose these diractives would have to be ignored for the normal stream mode.



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