Hi Team, We are trying to write a UDF to be used in flink sql job. UDF will need to dedupe the events such that we can count unique impressions of device_id per hour. I have read this -
https://nightlies.apache.org/flink/flink-docs-master/docs/dev/table/functions/udfs/ but not able to understand how to use flink state in this
How can I store the information(list of device_ids at hour level) in the flink state? So that even if I restart the job, my job is still able to produce the correct impression counts