JingsongLi opened a new pull request #17230:
URL: https://github.com/apache/flink/pull/17230
Cherry-pick #16239
## What is the purpose of the change
After FLINK-22901.
We can use upsert keys to fix upsert join, upsert rank, and upsert sink.
- For join and rank: if input has no upsert keys, do not use upsert
optimization.
- For upsert sink: if input has unique keys but no upsert keys, we need add
a materialize operator to produce upsert records.
## Brief change log
- Join should use upsert keys instead of unique keys to do upsert
- Rank should use upsert keys instead of unique keys to do upsert
- TemporalJoin should use upsert keys instead of unique keys to do upsert
- Introduce materialize operator to produce upsert records before sink.
## Verifying this change
- UpsertTest
- UpsertITCase
## Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): (yes / no) no
- The public API, i.e., is any changed class annotated with
`@Public(Evolving)`: (yes / no) no
- The serializers: (yes / no / don't know) no
- The runtime per-record code paths (performance sensitive): (yes / no /
don't know) no
- Anything that affects deployment or recovery: JobManager (and its
components), Checkpointing, Kubernetes/Yarn/Mesos, ZooKeeper: (yes / no / don't
know) no
- The S3 file system connector: (yes / no / don't know) no
## Documentation
- Does this pull request introduce a new feature? (yes / no) no
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]