The GitHub Actions job "Flink CI (beta)" on flink.git/master has succeeded.
Run started by GitHub user fhueske (triggered by fhueske).

Head commit for run:
937325653695881e8737816ba40b46fa0819dd21 / Fabian Hueske <[email protected]>
[FLINK-39436][table] Allow late data in PTFs (#27935)

Previously, late events (rowtime <= watermark) were silently dropped
before reaching PTF eval(), and timer registrations for times <=
watermark were also silently dropped. This change removes both
restrictions:

- ProcessTableRunner: remove the early-return guard in processEval()
  so that late events are passed to the PTF's eval() method.

- WritableInternalTimeContext: remove the watermark check in
  registerOnTimeInternal() so that timers can be registered for past
  times. Such timers fire immediately at the next watermark advance,
  including when registered from within onTimer(). The previous guard
  also had an unintended side effect: any call to replaceNamedTimer()
  with a past time would delete the existing timer entry but then
  silently drop the new registration, leaving the named timer in a
  state where it appeared un-registered but the old timer was gone.

- AbstractProcessTableOperator: remove the fired named timer's state
  entry before invoking onTimer() to prevent stale entries from
  accumulating in the named timers map state.

Tests are updated to reflect the new semantics:

- PROCESS_LATE_EVENTS: demonstrates that late events enter eval(),
  can register timers (including for past times), and that such timers
  fire immediately at the next watermark advance.

- PROCESS_ROW_LATE_EVENTS (new): verifies the same for row-semantics
  PTFs.

- PROCESS_OPTIONAL_ON_TIME / PROCESS_NAMED_TIMERS: updated to reflect
  that timer registrations for past times are no longer dropped.
  Previously, once the watermark passed the registered time, the timer
  was silently discarded; now it fires immediately.

Report URL: https://github.com/apache/flink/actions/runs/24742123393

With regards,
GitHub Actions via GitBox

Reply via email to