Matan Perelmuter
12/06/2023, 4:49 PMINSERT INTO console_sink
SELECT window_start, window_end, user_id, count(user_id) as event_count
FROM TABLE(
TUMBLE(
(SELECT * FROM events
WHERE event_time > CURRENT_TIMESTAMP - interval '1' MONTH
ORDER BY event_time
limit 1000000
),
DESCRIPTOR(event_time),
INTERVAL '1' HOUR
)
)
GROUP BY window_start, window_end, user_id
My goal is to test it against 300M rows, but the task manager is getting OOMed. I reduced it to 1M with no help. I've also tried to increase flink memory and I'm using RocksDB as state backend.
Any ideas how to handle that? also what do you for batch jobs where the data is too large to fit in memory? (can't increase memory forever)shikai ng
12/09/2023, 4:06 AMMatan Perelmuter
12/12/2023, 8:54 AM