From e751663fdc17e6984ddecfa9391eaa560d25ab83 Mon Sep 17 00:00:00 2001 From: Jiquan Long Date: Wed, 15 Jun 2022 10:54:09 +0800 Subject: [PATCH] Fix err msg when the dimension of query vectors mismatch field (#17553) Signed-off-by: longjiquan --- internal/core/src/query/Plan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/core/src/query/Plan.cpp b/internal/core/src/query/Plan.cpp index dca13aa777..43878cb8c4 100644 --- a/internal/core/src/query/Plan.cpp +++ b/internal/core/src/query/Plan.cpp @@ -38,7 +38,7 @@ ParsePlaceholderGroup(const Plan* plan, const std::string& blob) { AssertInfo(element.num_of_queries_, "must have queries"); Assert(element.num_of_queries_ > 0); element.line_sizeof_ = info.values().Get(0).size(); - Assert(field_meta.get_sizeof() == element.line_sizeof_); + AssertInfo(field_meta.get_sizeof() == element.line_sizeof_, "vector dimension mismatch"); auto& target = element.blob_; target.reserve(element.line_sizeof_ * element.num_of_queries_); for (auto& line : info.values()) {