Open border opened 2 months ago
@border Hi, this problem looks like your row or column delimiter determining, and you can use a new separator rather than a default separator to resolve this.
how to set the separator?
@border Hello, have you solved this problem? I’m facing the same issue and I'm not sure what’s misconfigured.
@AnemoneIndicum Hello,Do you know how to solve this problem?
mysql flink starrocks
get error
insert into user_new(
id
,account
,create_time
,update_time
) select id, account, create_time, update_time from users order by rand() limit 10;-- Flink SQL SET execution.checkpointing.interval = 10s;
-- Flink SQL user_new_source CREATE TABLE user_new_source (
id
bigint not null,account
varchar(32),create_time
TIMESTAMP(0) WITHOUT TIME ZONE,update_time
TIMESTAMP(0) WITHOUT TIME ZONE, PRIMARY KEY (id
) NOT ENFORCED ) WITH ( 'connector' = 'mysql-cdc', 'hostname' = '127.0.0.1', 'port' = '3305', 'username' = 'root', 'password' = '', 'database-name' = '', 'table-name' = 'user_new' );-- Flink SQL user_new_sink CREATE TABLE user_new_sink (
id
bigint,account
varchar(32),create_time
TIMESTAMP(0) WITHOUT TIME ZONE,update_time
TIMESTAMP(0) WITHOUT TIME ZONE, PRIMARY KEY (id
) NOT ENFORCED ) WITH ( 'connector'='starrocks', 'load-url'='127.0.0.1:8030', 'jdbc-url'='jdbc:mysql://127.0.0.1:9030', 'username'='root', 'password'='', 'database-name'='', 'table-name'='user_new' );insert into user_new_sink (
id
,account
,create_time
,update_time
) selectid
,account
, cast(create_time as TIMESTAMP(0) WITHOUT TIME ZONE) as create_time, cast(update_time as TIMESTAMP(0) WITHOUT TIME ZONE) as update_time from user_new_source;drop table if exists
user_new
; -- 用户信息表 create tableuser_new
(id
bigint NOT NULL auto_increment,account
varchar(32) default '' comment '账号',create_time
DATETIME comment '创建时间',update_time
DATETIME comment '修改时间' ) ENGINE=OLAP UNIQUE KEY(id
) DISTRIBUTED BY HASH(id
) BUCKETS 16 PROPERTIES ( "replication_num" = "1" );mysql> select current_version(); +-------------------+ | current_version() | +-------------------+ | 3.3.3-312ed45 | +-------------------+ 1 row in set (0.70 sec)