pnowojski opened a new pull request, #30258:
URL: https://github.com/apache/flink/pull/30258
## What is the purpose of the change
Mutation testing (PIT) of the streaming join operators after FLINK-41764
found paths whose results no test checks. Changing them, for example by passing
the right row first to the join condition, leaves all tests green. This PR adds
or extends operator tests for those paths. It changes only tests.
## Brief change log
- **Argument order of the join condition.** `knownValuesNonEquiCondition`
was symmetric, so passing the right row first in `matches` or `iterator` went
unnoticed. It now fails if it gets the right row first, which applies to every
test that uses it.
- **`StreamingJoinOperatorTest`:**
- `testFullOuterJoinReplacesMatchesOfRightUpsert`: a right upsert whose
old and new versions both match emits only the new joined row, without a
retraction or a null padding change.
- `testLeftOuterJoinRestoresNullPaddingAfterRightUpsertAndDelete` (new):
the mirror of the existing test for a left upsert, so that the outer flag of
the other side is also checked for a right input.
- `testLeftOuterJoinWithoutUniqueKeyKeepsDuplicateRows`: the remaining
copy of a repeated row still joins, which checks the input spec of each input's
state.
- `testInnerJoinRestoresRowsOfBothInputs` (new): rows of both inputs are
restored from a snapshot, which checks the record type of each input's state.
The rows are generic, because a binary row is copied as bytes whatever its type.
- **`StreamingSemiAntiJoinOperatorTest`:**
- `testRowsWithoutUniqueKeyAreCountedAndRemovedOneByOne` (new): a second
matching right row is counted, and a right row that matches nothing changes
nothing. Retractions remove their row from the state of both inputs, including
a left row that was emitted before.
- `testLeftUpsertRetractsOldVersion`: a left upsert where neither version
is emitted retracts nothing.
## Verifying this change
This change adds and extends tests:
- The join operator tests in `flink-table-runtime` pass.
- For each path above, a mutant of the operating tests and fails the new or
extended one.
- One mutant that still survives is the missiwhich #29567 fixes.
## Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a depe
- The public API, i.e., is any changed class olving)`: no
- The serializers: no
- The runtime per-record code paths (performa- 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 feat
- If yes, how is the feature documented? not
---
##### Was generative AI tooling used to co-au
- [X] Yes (please specify the tool below)
Generated-by: Claude Code 2.1.333 (Claude Opu
--
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]