apache / doris-flink-connector

Flink Connector for Apache Doris
https://doris.apache.org/
Apache License 2.0
330 stars 226 forks source link

[Bug] mysql 整库同步时 ignore-default-value 参数好像失效了 #342

Closed zengchen00 closed 4 months ago

zengchen00 commented 8 months ago

Search before asking

Version

flink-doris-connector-1.17-1.5.2.jar 同步脚本已经加上了 --ignore-default-value 参数 image

What's Wrong?

mysql 建表的语句的字段有默认值 create_time datetime(3) DEFAULT CURRENT_TIMESTAMP(3) 同步到doris 的建表语句字段: create_time DATETIMEV2(3) DEFAULT 'CURRENT_TIMESTAMP(3)' COMMENT '' 然后就报错了: image

What You Expected?

mysql 建表的语句的字段有默认值 create_time datetime(3) DEFAULT CURRENT_TIMESTAMP(3) 同步到doris 的建表语句字段,不要加 DEFAULTcreate_time DATETIMEV2(3)

How to Reproduce?

No response

Anything Else?

No response

Are you willing to submit PR?

Code of Conduct

zengchen00 commented 8 months ago

使用 flink-doris-connector-1.17-1.5.1.jar 就正常了