Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change lightning conflict resolution ignore (#18641) #18645

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tidb-lightning/tidb-lightning-logical-import-mode-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ TiDB Lightning 的完整配置文件可参考[完整配置及命令行参数](/t
| 策略 | 冲突时默认行为 | 对应 SQL 语句 |
|:---|:----------------------------|:---|
| `"replace"` | 新数据替代旧数据 | `REPLACE INTO ...` |
| `"ignore"` | 保留旧数据,忽略新数据 | `INSERT IGNORE INTO ...` |
| `"ignore"` | 保留旧数据,忽略新数据 | 如果 `conflict.threshold` 大于 `0`,则为 `INSERT INTO ...`;如果 `conflict.threshold` 为 `0`,则为 `INSERT IGNORE INTO ...` |
| `"error"` | 遇到冲突数据时终止导入 | `INSERT INTO ...` |
| `""` | 会被转换为 `"error"`,遇到冲突数据时终止导入 | 无 |

Expand Down