Sergey Nuyanzin created FLINK-38027:
---------------------------------------
Summary: Apply simplify for watermark expresions
Key: FLINK-38027
URL: https://issues.apache.org/jira/browse/FLINK-38027
Project: Flink
Issue Type: Bug
Components: Table SQL / Planner
Reporter: Sergey Nuyanzin
Assignee: Sergey Nuyanzin
Currently watermark expressions are not simplified
for instance
{code}
"`ts` - ( - ( - (INTERVAL '10' SECOND)))",
"`ts` - ARRAY[INTERVAL '10' SECOND, INTERVAL '1' SECOND][1]",
"`ts` - CASE WHEN true THEN INTERVAL '10' SECOND ELSE INTERVAL '2' SECOND
END"
{code}
every row could be simplified to
{code}
"`ts` - INTERVAL '10' SECOND"
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)