mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-06 02:42:53 +08:00
Merge branch 'branch-0.3.0' into 'branch-0.3.0'
fix a bug about quert by file interface See merge request megasearch/vecwise_engine!112 Former-commit-id: 76e34f373c173d3fc0d94fbf5c069856b6d58ae5
This commit is contained in:
commit
10178fc4f7
@ -241,6 +241,10 @@ Status DBImpl::Query(const std::string& table_id, const std::vector<std::string>
|
||||
return status;
|
||||
}
|
||||
|
||||
if(files_array.empty()) {
|
||||
return Status::Error("Invalid file id");
|
||||
}
|
||||
|
||||
return QueryAsync(table_id, files_array, k, nq, vectors, dates, results);
|
||||
}
|
||||
|
||||
|
||||
@ -627,6 +627,7 @@ Status DBMetaImpl::GetTableFiles(const std::string& table_id,
|
||||
|
||||
for (auto &file : files) {
|
||||
TableFileSchema file_schema;
|
||||
file_schema.table_id_ = table_id;
|
||||
file_schema.file_id_ = std::get<0>(file);
|
||||
file_schema.file_type_ = std::get<1>(file);
|
||||
file_schema.size_ = std::get<2>(file);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user