CREATE TABLE order_info_kafka
(
message ROW< `schema` varchar,
opTime bigint,
type varchar,
`table` varchar,
after ROW<id varchar,
name varchar,
price decimal(15, 2) >>,
proc_time AS PROCTIME()
) WITH (
'properties.bootstrap.servers' = 'flink01:9092,flink02:9092,flink03:9092',
'connector' = 'kafka-x',
'scan.parallelism' = '1',
'format' = 'json',
'default.codec' = 'json',
'scan.startup.mode' = 'latest-offset',
'topic' = 'tiezhu_in_one'
);
不是这么写的,1.12 用row
想了解或咨询更多有关袋鼠云大数据产品、行业解决方案、客户案例的朋友,浏览袋鼠云官网:
https://www.dtstack.com/?src=bbs
同时,欢迎对大数据开源项目有兴趣的同学加入「袋鼠云开源框架钉钉技术群」,交流最新开源技术信息,群号码:30537511,项目地址:https://github.com/DTStack/Taier