gustavodemorais commented on PR #30028:
URL: https://github.com/apache/flink/pull/30028#issuecomment-7008365215

   Thanks for the PR and trying to improve the framework, Vas! Instead of a 
helper each PTF has to call, I see two options:
   
   1. **Generic check in `SystemTypeInference.SystemInputStrategy`**, next to 
`checkTableArgs`. It already validates every PTF's static args, so any scalar 
`state_ttl` INTERVAL arg would be checked automatically (DEDUPLICATE, 
DEDUPLICATE_WINDOW, SNAPSHOT) and nobody can forget to call it.
   2. **Make `state_ttl` a system argument** like `uid` and `on_time`. The 
framework would then also apply the TTL, so PTFs wouldn't need to declare, 
validate or read it. This needs a FLIP, though: it reserves a new argument name 
for all PTFs and must define how it relates to `@StateHint` TTLs.
   
   @twalthr what do you think?
   


-- 
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