9: 日志表写入
1. 创建日志表
CREATE TABLE log_table (
order_id BIGINT,
item_id BIGINT,
amount INT,
address STRING
);
2. 创建Source表:
CREATE TEMPORARY TABLE source (
order_id BIGINT,
item_id BIGINT,
amount INT,
address STRING
) WITH ('connector' = 'datagen');
3. 插入数据至日志表中:
INSERT INTO log_table SELECT * FROM source;