[ 
https://issues.apache.org/jira/browse/FLINK-41560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vas Shabu closed FLINK-41560.
-----------------------------
    Resolution: Won't Fix

> 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
>            Priority: Minor
>              Labels: pull-request-available
>
> 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