Ilya Sterin
09/20/2023, 9:07 PMCREATE TEMPORARY VIEW IF NOT EXISTS subjects_distinct
AS
SELECT *
FROM (SELECT *,
ROW_NUMBER() OVER (PARTITION BY `id` ORDER BY updated desc) AS rownum
FROM subjects)
WHERE rownum = 1;
I imagine it turns a kafka message stream into a changelog stream. Does this mean it keeps track of duplicate ids and issues retractions when one is encountered? I tried testing this, but didn't see any retractions, thus wondering if my theory is wrong.Sharath Gururaj
09/21/2023, 10:00 AMIlya Sterin
09/21/2023, 5:29 PM