Vas Shabu created FLINK-41560:
---------------------------------

             Summary: Shared State TTL validation for PTFs
                 Key: FLINK-41560
                 URL: https://issues.apache.org/jira/browse/FLINK-41560
             Project: Flink
          Issue Type: Improvement
          Components: Table SQL / API
            Reporter: Vas Shabu


Each built-in PTF that takes a state_ttl argument validates it on its own: 
DEDUPLICATE (DeduplicateTypeStrategyUtils.validateStateTtl) and LATERAL 
SNAPSHOT each have their own check and error messages, and DEDUPLICATE_WINDOW 
will need the same one.

 

Add one shared helper for the checks every state_ttl needs (constant literal, 
not negative) and use it from all PTFs that declare the argument, with a single 
error message. Remove the per-function copies and cover the shared helper with 
one unit test. 

 

Follow-up to the review on PR #29967.



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

Reply via email to