MartijnVisser opened a new pull request, #30242:
URL: https://github.com/apache/flink/pull/30242

   ## What is the purpose of the change
   
   A streaming OVER window that the runtime cannot run compiles into a plan and 
only fails at job submission. This rejects it in the physical rules instead, 
with a message per condition, like FLINK-40449 did for a streaming sort.
   
   ## Brief change log
   
     - StreamOverAggregateUtil holds the checks; both physical rules call it, 
and the exec nodes keep it as a backstop for plans loaded via loadPlan
     - A window whose only call is ROW_NUMBER points to Top-N
     - Tests that planned an OVER window which could never run are adapted; 
PythonOverAggregateJsonPlanTest drops its unbounded case
   
   ## Verifying this change
   
   This change added tests and can be verified as follows:
   
     - OverAggregateValidationTest: each condition, Python UDAFs, the Table 
API, the messages and loaded plans
     - Every combination of 13 aggregate calls, 12 frames, 12 order keys, 
ASC/DESC, partitioning and append-only or changelog input, on master and on 
this branch: the 4,016 queries that compiled on master and failed at submission 
now fail during planning; the 536 that run on master are all still accepted
     - The temporal join tests in OverAggregateTest now order by order_ts and 
still fail without the FLINK-38624 fix
   
   ## 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? 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]

Reply via email to