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

Merged
merged 4 commits into from
Sep 14, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update tidb-lightning/tidb-lightning-logical-import-mode-usage.md
  • Loading branch information
hfxsd authored Sep 14, 2024
commit 5dbeb2edb9dc126543ee854e4af0605cd11a3ef3
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"` | 保留旧数据,忽略新数据 | 如果 `conflict.threshold` 大于 `0`,则为 `INSERT INTO ...`。如果 `conflict.threshold` 为 `0`,则为 `INSERT IGNORE INTO ...` |
| `"ignore"` | 保留旧数据,忽略新数据 | 如果 `conflict.threshold` 大于 `0`,则为 `INSERT INTO ...`。如果 `conflict.threshold` 为 `0`,则为 `INSERT IGNORE INTO ...` |
lilin90 marked this conversation as resolved.
Show resolved Hide resolved
| `"error"` | 遇到冲突数据时终止导入 | `INSERT INTO ...` |
| `""` | 会被转换为 `"error"`,遇到冲突数据时终止导入 | 无 |

Expand Down