TiDB CDC Connector 读取 TiDB 操作时间元数据的时取到的增量操作时间错误

SET execution.result-mode=tableau;
SET execution.checkpointing.interval=10sec;
SET enable_insert_strict = true;
DROP TABLE IF EXISTS person;
CREATE TABLE IF NOT EXISTS person (
operation_ts TIMESTAMP(0) METADATA FROM ‘op_ts’ VIRTUAL,
id INT NOT NULL
,name STRING
,birthday DATE
,PRIMARY KEY ( id ) NOT ENFORCED
) WITH (
‘connector’ = ‘tidb-cdc’
,‘pd-addresses’ = ‘xxx:2379,xxx:2379,xxxx:2379’
,‘scan.startup.mode’ = ‘initial’
,‘tikv.grpc.timeout_in_ms’ = ‘30000’
,‘tikv.grpc.scan_timeout_in_ms’ = ‘30000’
,‘tikv.batch_get_concurrency’ = ‘2000’
,‘server-time-zone’ = ‘Asia/Shanghai’
,‘database-name’ = ‘testdb’
,‘table-name’ = ‘person’
);

select * from person;

1 个赞

因为扫增量的时候{checkpoint_ts,current_ts},current_ts传的是int64 max

有没有解决方案?

现在是要做什么啊,依赖这个时间吗

同样的问题

浏览资料说不建议使用 Flink 的TiDB CDC,使用 TiDBCDC 替换

是不是时区不匹配造成的,可关注一下时区的配置