feat: add basic redpanda rising wave setup

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-08-05 21:41:30 +02:00
commit f8ef7701ea
17 changed files with 3043 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
-- impression_timestamp: The time when the ad was shown.
-- click_timestamp: The time when the ad was clicked.
create source ad_source (
user_id bigint,
ad_id bigint,
click_timestamp timestamptz,
impression_timestamp timestamptz
) with (
connector = 'kafka',
topic = 'ad_clicks',
properties.bootstrap.server = 'message_queue:29092',
scan.startup.mode = 'earliest'
) FORMAT PLAIN ENCODE JSON;