File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
bootcamp/materials/4-apache-flink-training/src/job Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -49,16 +49,16 @@ def create_processed_events_source_kafka(t_env):
49
49
kafka_key = os .environ .get ("KAFKA_WEB_TRAFFIC_KEY" , "" )
50
50
kafka_secret = os .environ .get ("KAFKA_WEB_TRAFFIC_SECRET" , "" )
51
51
table_name = "process_events_kafka"
52
- pattern = "yyyy-MM-dd HH:mm:ss"
52
+ pattern = "yyyy-MM-dd''T'' HH:mm:ss.SSS''Z'' "
53
53
sink_ddl = f"""
54
54
CREATE TABLE { table_name } (
55
55
ip VARCHAR,
56
- event_timestamp VARCHAR,
56
+ event_time VARCHAR,
57
57
referrer VARCHAR,
58
58
host VARCHAR,
59
59
url VARCHAR,
60
60
geodata VARCHAR,
61
- window_timestamp AS TO_TIMESTAMP(event_timestamp , '{ pattern } '),
61
+ window_timestamp AS TO_TIMESTAMP(event_time , '{ pattern } '),
62
62
WATERMARK FOR window_timestamp AS window_timestamp - INTERVAL '15' SECOND
63
63
) WITH (
64
64
'connector' = 'kafka',
You can’t perform that action at this time.
0 commit comments