mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 19:08:30 +08:00
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:
parent
f9553970f9
commit
e751663fdc
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user