twalthr opened a new pull request, #30008:
URL: https://github.com/apache/flink/pull/30008
## What is the purpose of the change
Backport of #29987 to `release-2.4`.
Keyless singleton operators (interval join without equi-join keys,
`MATCH_RECOGNIZE` without `PARTITION BY`, temporal sort, and singleton inputs
satisfied without an exchange) were not pinned to max parallelism 1, so
rescaling them failed with `IllegalArgumentException: Key group X is not in
KeyGroupRange`. Physical nodes now declare the input distribution requested by
their physical rule. See #29987 for the full description.
## Brief change log
Cherry-pick of a054c00dbb47193993d8bfee60a41885e5531b0f with two adaptations:
- `TransformationsTest`: resolved a conflict in the helper methods
(`release-2.4` uses `toLegacySourceTransformation` instead of `toLeaf`).
- Regenerated the plans and savepoints of the restore tests
`interval-join-event-time-without-equi-keys` and `match-order-by-event-time` on
`release-2.4`, as the plans from master declare Flink version 2.5.
## Verifying this change
Same tests as #29987. All planner plan, ExecNode and restore tests pass on
`release-2.4`, as well as spotless, checkstyle, and the ArchUnit tests.
## 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, ZooKeeper: no
- Newly compiled plans pin singleton operators to max parallelism 1.
Existing compiled plans are not affected.
- 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
---
##### Was generative AI tooling used to co-author this PR?
- [X] Yes (please specify the tool below)
Generated-by: Claude Code (Claude Opus 5.5)
--
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]