Fix err msg when the dimension of query vectors mismatch field (#17553)

Signed-off-by: longjiquan <jiquan.long@zilliz.com>
This commit is contained in:
Jiquan Long 2022-06-15 10:54:09 +08:00 committed by GitHub
parent f9553970f9
commit e751663fdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()) {