ASDFSA13 commented on PR #7840:
URL: https://github.com/apache/seatunnel/pull/7840#issuecomment-3721698701
@Hisoka-X 这里2.3.12也是依旧的逻辑, 可能要提醒一下用户, 这边代码 如果table-names-config配置后 ,
这个指定列的字段, 必须要是unique里面的 ; 特别是对于mysql8.0的表结构如下的情况
PRIMARY KEY (`id`),
UNIQUE KEY `uni_str` (`str_value_sha256`,`seq`,`ledger_date`,`is_delete`)
USING BTREE,
KEY `idx_status` (`seller_id`,`market_place_id`,`is_delete`) USING BTREE,
KEY `idx_created_time` (`create_time`) USING BTREE,
对于这个视图的结构 在mysql , 本次pr的代码设置他的table-names-config为id并不会生效, 他会走目前代码的逻辑,
会从unique key里面取spilt key;此时并不会取到用户设置的id字段
这里最好调整一下mysqlcdc的文档2.3.12 , 如果需要的话我可以提供一些边界情况的测试结果集附录在文档上
可以看一下这个patch
[0001-add-splitkey-mysql8.0.unique-key-primary-key.patch](https://github.com/user-attachments/files/24486476/0001-add-splitkey-mysql8.0.unique-key-primary-key.patch)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]