wei liu
f85e86a6ec
fix: change upsert duplicate PK behavior from dedup to error ( #45997 )
...
issue: #44320
Replace the DeduplicateFieldData function with CheckDuplicatePkExist
that returns an error when duplicate primary keys are detected in the
same batch, instead of silently deduplicating.
Changes:
- Replace DeduplicateFieldData with CheckDuplicatePkExist in util.go
- Update upsertTask.PreExecute to return error on duplicate PKs
- Simplify helper function from findLastOccurrenceIndices to
hasDuplicates
- Update unit tests to verify the new error behavior
- Add Python integration tests for duplicate PK error cases
Signed-off-by: Wei Liu <wei.liu@zilliz.com>
2025-12-04 10:23:11 +08:00
..
2025-10-11 18:23:57 +08:00
2025-04-23 10:52:38 +08:00
2025-10-13 11:15:58 +08:00
2025-10-21 22:38:05 +08:00
2025-10-23 10:58:12 +08:00
2025-10-22 16:00:05 +08:00
2025-11-07 15:19:34 +08:00
2025-11-07 15:19:34 +08:00
2025-10-15 10:25:59 +08:00
2025-08-20 10:27:46 +08:00
2025-08-06 14:41:40 +08:00
2025-08-06 14:41:40 +08:00
2025-02-22 23:15:58 +08:00
2025-02-22 23:15:58 +08:00
2025-02-22 23:15:58 +08:00
2025-02-22 23:15:58 +08:00
2025-02-22 23:15:58 +08:00
2025-02-22 23:15:58 +08:00
2025-11-20 19:55:04 +08:00
2025-11-20 19:55:04 +08:00
2025-02-22 23:15:58 +08:00
2025-02-22 23:15:58 +08:00
2024-11-18 10:46:31 +08:00
2025-11-13 20:53:39 +08:00
2025-11-20 19:55:04 +08:00
2025-12-01 10:17:09 +08:00
2024-10-22 10:33:26 +08:00
2025-02-22 23:15:58 +08:00
2025-09-10 16:39:57 +08:00
2025-11-18 23:05:42 +08:00
2025-11-13 20:53:39 +08:00
2025-12-01 19:37:10 +08:00
2025-02-22 23:15:58 +08:00
2025-04-11 16:36:30 +08:00
2025-04-11 16:36:30 +08:00
2025-11-20 21:39:04 +08:00
2025-10-22 10:22:04 +08:00
2025-11-20 21:39:04 +08:00
2025-06-04 11:26:32 +08:00
2025-06-04 11:26:32 +08:00
2025-11-20 21:39:04 +08:00
2025-08-06 14:41:40 +08:00
2025-02-22 23:15:58 +08:00
2025-07-27 01:30:55 +08:00
2025-04-24 10:46:43 +08:00
2025-10-22 10:22:04 +08:00
2025-10-17 10:28:01 +08:00
2025-10-22 10:22:04 +08:00
2025-10-13 11:15:58 +08:00
2025-02-22 23:15:58 +08:00
2025-10-24 10:22:15 +08:00
2025-12-01 17:55:10 +08:00
2025-03-14 15:38:09 +08:00
2025-03-14 15:38:09 +08:00
2025-02-22 23:15:58 +08:00
2025-02-22 23:15:58 +08:00
2025-02-22 23:15:58 +08:00
2025-02-22 23:15:58 +08:00
2025-11-27 15:33:08 +08:00
2025-12-01 14:33:10 +08:00
2025-12-01 14:33:10 +08:00
2025-10-21 19:42:03 +08:00
2025-11-08 10:29:33 +08:00
2025-11-04 16:51:33 +08:00
2025-10-22 10:22:04 +08:00
2025-11-18 23:05:42 +08:00
2025-03-23 11:18:28 +08:00
2025-03-23 11:18:28 +08:00
2025-04-11 16:36:30 +08:00
2025-08-06 14:41:40 +08:00
2025-04-11 16:36:30 +08:00
2025-11-18 23:05:42 +08:00
2025-08-19 10:41:44 +08:00
2025-10-22 10:22:04 +08:00
2025-11-04 16:51:33 +08:00
2025-09-19 18:38:01 +08:00
2025-09-19 18:38:01 +08:00
2025-08-06 14:41:40 +08:00
2025-09-19 18:38:01 +08:00
2025-09-19 18:38:01 +08:00
2025-08-06 14:41:40 +08:00
2025-04-11 16:36:30 +08:00
2025-11-13 12:59:38 +08:00
2025-11-27 14:29:07 +08:00
2025-08-19 10:41:44 +08:00
2025-09-28 19:43:05 +08:00
2025-11-17 21:35:40 +08:00
2025-10-22 10:22:04 +08:00
2025-10-22 10:22:04 +08:00
2025-10-16 17:52:01 +08:00
2025-10-22 10:22:04 +08:00
2025-11-18 23:05:42 +08:00
2025-08-06 14:41:40 +08:00
2025-08-06 14:41:40 +08:00
2025-10-16 17:52:01 +08:00
2025-12-01 14:33:10 +08:00
2025-12-01 10:17:09 +08:00
2025-10-22 10:22:04 +08:00
2025-10-22 10:22:04 +08:00
2025-12-01 10:17:09 +08:00
2025-08-19 10:41:44 +08:00
2025-12-04 10:23:11 +08:00
2025-12-04 10:23:11 +08:00
2025-07-08 10:10:46 +08:00
2025-07-08 10:10:46 +08:00
2025-12-01 10:17:09 +08:00
2025-02-22 23:15:58 +08:00
2025-04-23 10:52:38 +08:00
2025-02-22 23:15:58 +08:00
2025-02-22 23:15:58 +08:00
2025-12-04 10:23:11 +08:00
2025-12-04 10:23:11 +08:00
2025-10-15 14:04:00 +08:00
2025-12-03 23:27:11 +08:00