beyond1920 opened a new pull request #15291:
URL: https://github.com/apache/flink/pull/15291
## What is the purpose of the change
This pull request aims to implement streaming window topN operator.
## Brief change log
- Introduce `CombineRecordsFunction` in rank/window/combines package to
get TopN data of incremental inputs
- move `WindowCombineFunction` from aggregate/window/combines/ to
window/combines in order to be inherited by new introduced
`CombineRecordsFunction`
- Introduce `WindowRankProcessor` which inherits `SlicingWindowProcessor`
to processes elements for WindowRank.
- Introduce `WindowRankOperatorBuilder` to build 'WindowRankOperator'
which is exactly a `SlicingWindowOperator` based on `WindowRankProcessor`
- Introduce `WindowMapState` which is a wrapper of `MapState` to make it
easier to update based on window namespace
- Introduce `StreamExecWindowRank` which is a stream `ExecNode` for
WindowRank
## Verifying this change
- Add more plan test for invalid query in existed `WindowRankTest`
- Add ITCase(`WindowRankITCase`) to test WindowRank
- Add harness test (`WindowRankOperatorTest`) to test WindowRankOperator
## Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): (no)
- The public API, i.e., is any changed class annotated with
`@Public(Evolving)`: (no)
- The serializers: (no)
- The runtime per-record code paths (performance sensitive): (no)
- Anything that affects deployment or recovery: JobManager (and its
components), Checkpointing, Kubernetes/Yarn/Mesos, ZooKeeper: (no)
- The S3 file system connector: (no)
## Documentation
- Does this pull request introduce a new feature? (yes)
- If yes, how is the feature documented? (not documented)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]