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