Lightning导入数据,目标库表存在或不存在,都不会较验。

Lightning导入数据,目标库表存在或不存在,都不会较验,目标库表不存在也不会报错,目标库表已存在,则还是会继续导入导致数据重复,请问有什么方法进行较验?最好目标表存在或不存在都报错提示。

[tidb@monitor ~]$ tiup tidb-lightning -config tidb-lightning-sql.toml
Starting component tidb-lightning: /home/tidb/.tiup/components/tidb-lightning/v8.5.3/tidb-lightning -config tidb-lightning-sql.toml
Verbose debug logs will be written to tidb-lightning.log

±–±---------------------------------------------±------------±-------+
| # | CHECK ITEM | TYPE | PASSED |
±–±---------------------------------------------±------------±-------+
| 1 | Source data files size is proper | performance | true |
±–±---------------------------------------------±------------±-------+
| 2 | the checkpoints are valid | critical | true |
±–±---------------------------------------------±------------±-------+
| 3 | Cluster version check passed | critical | true |
±–±---------------------------------------------±------------±-------+
| 4 | Lightning has the correct storage permission | critical | true |
±–±---------------------------------------------±------------±-------+

tidb lightning exit successfully

parallel-import 开这个参数了吗

可以看一下这个冲突数据检测机制:
https://docs.pingcap.com/zh/tidb/stable/tidb-lightning-logical-import-mode-usage/#冲突数据检测

这个冲突只针对表的内容检测比如主键冲突,可能不会对对象检测,如果使用逻辑导入, 目标库表已经存在的情况下,这个检测不会检测目标表已存在,还是会重复导入数据,即使使用replace也不会把表drop再导入。