We are considering to use Flink SQL for ad hoc analytics on real-time kafka data in the past 5 - 10 minutes. To achieve that, it seems that we need to extend the Kafka connector to have it only read messages in a given period of time, and use that to generate the finite input source.
I am wondering if there is an alternative approach on this. Any suggestions will be very welcome.