Abdelhakim Bendjabeur
01/16/2023, 10:53 AMSELECT
...
FROM A
JOIN B ON B.aid = A.id
AND A.created_datetime <= B.updated_datetime
I can maybe use temporal joins on a 1-year period but it has a risk of data loss in case some entities have updates that span over more than 1 year.
Anyone with experience on this or just ideas on how to properly design such a pipeline?sap1ens
01/16/2023, 5:13 PMWhat is the impact of the state size if I just did the following?Unless you use a temporal join the state will keep growing, since Flink would need to persist records for both sides of the join. This is not necessarily a huge problem, it just means you’d need more resources to store it. I gave a talk about a similar problem we tackled at Shopify, it involved joining 10+ CDC topics with similar requirements. The talk targets the DataStream API though: • • https://www.slideshare.net/sap1ens/storing-state-forever-why-it-can-be-good-for-your-analytics