Au-Miner opened a new pull request, #28671:
URL: https://github.com/apache/flink/pull/28671
## What is the purpose of the change
Fix MiniBatch join output RowKind when an INSERT is folded away with a
retract in the same batch. A later UPDATE_AFTER for the same key should be
emitted as INSERT if no prior row exists downstream.
## Brief change log
- Update `InputSideHasUniqueKeyBundle#addRecord` and `foldRecord` to track
insert-and-cleared unique keys and convert the following UPDATE_AFTER to INSERT.
- Update `JoinKeyContainsUniqueKeyBundle#addRecord` and `foldRecord` with
the same correction for join keys that contain the unique key.
- Clear the inserted-and-cleared tracking state when the bundle is cleared.
## Verifying this change
Updated `BufferBundleTest` to assert that `+I` followed by `+U` keeps the
latest record as INSERT. Updated `StreamingMiniBatchJoinOperatorTest` with
MiniBatch join cases for both join-key-contains-unique-key and
input-side-has-unique-key paths, asserting that a `+I/-U/+U` sequence emits
INSERT.
## 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): yes
- Anything that affects deployment or recovery: JobManager (and its
components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
- The S3 file system connector: no
## Documentation
- Does this pull request introduce a new feature? no
- If yes, how is the feature documented? not applicable
--
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]