SEPURI-SAI-KRISHNA opened a new pull request, #30170:
URL: https://github.com/apache/flink/pull/30170
## What is the purpose of the change
`COMPILE PLAN` writes no `state` entry for the temporal join, the OVER
aggregate and the Python GROUP BY and OVER aggregates, although all of them
take their retention time from `table.exec.state.ttl`. So their TTL cannot be
changed in the plan as the operator-level state TTL docs describe, and `EXECUTE
PLAN` uses the session's `table.exec.state.ttl` for them. FLIP-292 listed
`StreamExecTemporalJoin` and `StreamExecPythonGroupAggregate`, but FLINK-32053
did not add them.
`MATCH_RECOGNIZE` has no TTL at all, which FLINK-10996 covers, so this PR
only lists it in the docs next to the other operators without a configurable
TTL.
## Brief change log
- `StreamExecTemporalJoin`, `StreamExecOverAggregate`,
`StreamExecPythonOverAggregate` and `StreamExecPythonGroupAggregate` write a
`state` entry and read the TTL from it, the same way as
`StreamExecDeduplicate`. So a plan compiled with this change keeps its TTL when
it is executed in a session with a different `table.exec.state.ttl`, as for the
other stateful operators. Plans without the entry still use
`table.exec.state.ttl`, so there is no ExecNode version bump (as in
FLINK-32657).
- The temporal join gets one entry, not one per input: it keeps one cleanup
timer per join key that both inputs refresh, and a processing time join has no
left state.
- An OVER window over a bounded `RANGE` gets no entry, because its functions
take no retention time.
- Docs (en and zh): `MATCH_RECOGNIZE` and bounded `RANGE` OVER windows added
to the operators whose TTL cannot be configured; the temporal join's single
entry.
## Verifying this change
- `ConfigureOperatorLevelStateTtlJsonITCase`: new tests set the TTL in the
compiled plan with `table.exec.state.ttl` unset. Without the change the OVER
running total does not restart (`+I[1, 6]` instead of `+I[1, 3]`) and the
temporal join still matches the expired rate (`+I[20], +I[40]` instead of
`+I[20]`). A third test checks that a bounded `RANGE` OVER window has no entry.
- `PythonGroupAggregateJsonPlanTest` and `PythonOverAggregateJsonPlanTest`
plans regenerated; the only change is the new `state` entry, and the two
bounded `RANGE` plans are unchanged.
- The temporal join and OVER restore tests still restore their committed
plans, which have no `state` entry.
## 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
- The S3 file system connector: no
## Documentation
- Does this pull request introduce a new feature? no
- If yes, how is the feature documented? docs updated
---
##### Was generative AI tooling used to co-author this PR?
- [X] Yes (please specify the tool below)
Generated-by: Claude Code (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]