未验证 提交 aff6c448 编写于 作者: Y yukun 提交者: GitHub

It should raise InvalidDsl exception when search with multi vectors (#4255)

* It should raise InvalidDsl exception when search with multi vectors
Signed-off-by: Nfishpenguin <kun.yu@zilliz.com>

* change stat_optimizer_enable to true
Signed-off-by: Nfishpenguin <kun.yu@zilliz.com>
上级 70ab7e32
......@@ -14,6 +14,7 @@ Please mark all changes in change log and use the issue from GitHub
- \#4170 Must_not query check failed in dsl
- \#4200 The scalar field information of search result is wrong after some entities deleted
- \#4205 Restful API error: When the specified partition is retrieved, the partition_tag is not valid
- \#4211 It should raise InvalidDsl exception when search with multi vectors
- \#4226 The Prometheus performance metrics sent by Milvus 0.11.0 is not right
- \#4242 Fix query hang up at unittest case
......
......@@ -181,7 +181,7 @@ InitConfig() {
CreateEnumConfig("engine.simd_type", &SimdMap, &config.engine.simd_type.value, SimdType::AUTO)},
{"engine.stat_optimizer_enable",
CreateBoolConfig("engine.stat_optimizer_enable", &config.engine.stat_optimizer_enable.value, false)},
CreateBoolConfig("engine.stat_optimizer_enable", &config.engine.stat_optimizer_enable.value, true)},
{"system.lock.enable", CreateBoolConfig("system.lock.enable", &config.system.lock.enable.value, true)},
......
......@@ -1719,8 +1719,8 @@ GrpcRequestHandler::DeserializeJsonToBoolQuery(
return Status{SERVER_INVALID_ARGUMENT, "Query dsl is null"};
}
auto status = Status::OK();
if (vector_params.empty()) {
return Status(SERVER_INVALID_DSL_PARAMETER, "DSL must include vector query");
if (vector_params.size() != 1) {
return Status(SERVER_INVALID_DSL_PARAMETER, "There should only be one vector query");
}
for (const auto& vector_param : vector_params) {
const std::string& vector_string = vector_param.json();
......
......@@ -792,6 +792,7 @@ $ curl -X GET "http://127.0.0.1:19121/collections/test_collection/segments/15837
}
],
},
partition_tags: ["part_1", "part_2"],
"fields": ["field_vec"]
}
}
......@@ -836,7 +837,7 @@ $ curl -X PUT "http://127.0.0.1:19121/collections/test_collection/entities" -H "
"code": 0,
"message": "OK",
"data": {
"num": 2,
"nq": 2,
"result": [
[
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册