Faisal A. Siddiqui
12/20/2023, 7:08 PMCREATE TABLE t1_g1
(
`id` INT,
`name` STRING
)
WITH ( 'connector' = 'kafka',
'topic' = 't1.g1',
'properties.auto.offset.reset' = 'earliest',
'scan.startup.mode' = 'earliest-offset',
.... );
CREATE TABLE t1_g2
(
`id` INT,
`name` STRING
)
WITH ( 'connector' = 'kafka',
'topic' = 't1.g2',
'properties.auto.offset.reset' = 'earliest',
'scan.startup.mode' = 'earliest-offset',
.... );
Question: Is it possible or supported in flink-sql, if i can create another table that reads from both t1.g1 and t1.g2 topics using some wildcard or comma separated value ??
something like
CREATE TABLE t_all
(
`id` INT,
`name` STRING
)
WITH ( 'connector' = 'kafka',
'topic' = 't1.g1,t1.g2',
'properties.auto.offset.reset' = 'earliest',
'scan.startup.mode' = 'earliest-offset',
.... );
OR
OR something like with wildcard ??
CREATE TABLE t_all
(
`id` INT,
`name` STRING
)
WITH ( 'connector' = 'kafka',
'topic' = 't1.*',
'properties.auto.offset.reset' = 'earliest',
'scan.startup.mode' = 'earliest-offset',
.... );Jim Hughes
12/20/2023, 7:17 PMFaisal A. Siddiqui
12/20/2023, 7:37 PMJim Hughes
12/20/2023, 7:39 PMMartijn Visser
12/20/2023, 9:25 PMFaisal A. Siddiqui
12/22/2023, 12:17 AM