Martijn Visser created FLINK-41790:
--------------------------------------

             Summary: Reject unsupported streaming OVER windows during planning
                 Key: FLINK-41790
                 URL: https://issues.apache.org/jira/browse/FLINK-41790
             Project: Flink
          Issue Type: Improvement
          Components: Table SQL / Planner
            Reporter: Martijn Visser
            Assignee: Martijn Visser


A streaming OVER window that the runtime can't run still compiles into a plan 
and only fails at job submission. That covers a descending or second order key, 
no ORDER BY, a frame that doesn't end at CURRENT ROW, an offset PRECEDING on a 
non-time column, LEAD, NTILE, CUME_DIST, PERCENT_RANK, and the Python UDAF 
limits. A compiled plan then can't be run, and the message ("The window can 
only be ordered in ASCENDING mode.") doesn't say which column is the problem.

FLINK-40449 did the same for streaming ORDER BY: check in the physical rule, 
keep the exec node check for loaded plans. Over 13,780 query combinations, 
4,016 compile and then fail at submission on master; none of the queries that 
run today are affected.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to