milvus/internal/distributed/proxy/httpserver
wei liu d3c95eaa77
enhance: Support partial field updates with upsert API (#42877)
issue: #29735
Implement partial field update functionality for upsert operations,
supporting scalar, vector, and dynamic JSON fields without requiring all
collection fields.

Changes:
- Add queryPreExecute to retrieve existing records before upsert
- Implement UpdateFieldData function for merging data
- Add IDsChecker utility for efficient primary key lookups
- Fix JSON data creation in tests using proper map marshaling
- Add test cases for partial updates of different field types

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
2025-08-19 11:15:45 +08:00
..
constant.go fix: hybridsearch should support offset param in restful api (#43586) 2025-07-28 22:15:36 +08:00
handler.go fix: Avoid memory copy in RESTful search and query (#37674) 2024-11-19 17:24:31 +08:00
handler_test.go fix: Avoid memory copy in RESTful search and query (#37674) 2024-11-19 17:24:31 +08:00
handler_v1.go enhance: Support partial field updates with upsert API (#42877) 2025-08-19 11:15:45 +08:00
handler_v1_test.go enhance: Use v2 package name for pkg module (#39990) 2025-02-22 23:15:58 +08:00
handler_v2.go enhance: Support partial field updates with upsert API (#42877) 2025-08-19 11:15:45 +08:00
handler_v2_test.go enhance: Refine error message for restful default value check (#43842) 2025-08-13 20:25:43 +08:00
json_render.go fix: Avoid memory copy in RESTful search and query (#37674) 2024-11-19 17:24:31 +08:00
json_render_test.go fix: Avoid memory copy in RESTful search and query (#37674) 2024-11-19 17:24:31 +08:00
request.go enhance: Support partial field updates with upsert API (#42877) 2025-08-19 11:15:45 +08:00
request_v2.go enhance: Support partial field updates with upsert API (#42877) 2025-08-19 11:15:45 +08:00
resource_group_handler_v2.go enhance: Remove debug log in rg handler v2 (#40376) 2025-03-05 19:18:00 +08:00
resource_group_handler_v2_test.go enhance: Use v2 package name for pkg module (#39990) 2025-02-22 23:15:58 +08:00
timeout_middleware.go enhance: [Restful] Make default timeout configurable (#41211) 2025-04-10 16:14:28 +08:00
utils.go enhance: Support partial field updates with upsert API (#42877) 2025-08-19 11:15:45 +08:00
utils_bench_serialize_vectors_test.go enhance: Use v2 package name for pkg module (#39990) 2025-02-22 23:15:58 +08:00
utils_test.go enhance: Support partial field updates with upsert API (#42877) 2025-08-19 11:15:45 +08:00
wrap_request.go enhance: Use v2 package name for pkg module (#39990) 2025-02-22 23:15:58 +08:00
wrap_request_test.go feat: Support restful & go sdk for Int8Vector (#39278) 2025-01-24 17:07:07 +08:00
wrapper.go fix: Avoid memory copy in RESTful search and query (#37674) 2024-11-19 17:24:31 +08:00
wrapper_test.go fix: Avoid memory copy in RESTful search and query (#37674) 2024-11-19 17:24:31 +08:00