diff --git a/CHANGELOG.md b/CHANGELOG.md index a6af2612a1ab..af3497be0276 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ Please mark all changes in change log and use the issue from GitHub - \#2690 Remove body parser in show-partitions endpoints - \#2692 Milvus hangs during multi-thread concurrent search - \#2739 Fix mishards start failed +- \#2752 Milvus formats vectors data to double-precision and return to http client - \#2767 fix a bug of getting wrong nprobe limitation in knowhere on GPU version - \#2776 Fix too many data copies during creating IVF index diff --git a/core/src/server/web_impl/handler/WebRequestHandler.cpp b/core/src/server/web_impl/handler/WebRequestHandler.cpp index b021682af7a1..f6772809a0ca 100644 --- a/core/src/server/web_impl/handler/WebRequestHandler.cpp +++ b/core/src/server/web_impl/handler/WebRequestHandler.cpp @@ -78,6 +78,8 @@ WebErrorMap(ErrorCode code) { } } +using FloatJson = nlohmann::basic_json; + /////////////////////////////////// Private methods /////////////////////////////////////// void WebRequestHandler::AddStatusToJson(nlohmann::json& json, int64_t code, const std::string& msg) { @@ -1881,8 +1883,9 @@ WebRequestHandler::GetVector(const OString& collection_name, const OQueryParams& ASSIGN_RETURN_STATUS_DTO(status) } - nlohmann::json json; - AddStatusToJson(json, status.code(), status.message()); + FloatJson json; + json["code"] = (int64_t)status.code(); + json["message"] = status.message(); if (vectors_json.empty()) { json["vectors"] = std::vector(); } else {