mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
fix: report error when hints not supported (#38730)
issue: #38705 pr: #38717 --------- Signed-off-by: chasingegg <chao.gao@zilliz.com>
This commit is contained in:
parent
a4901ef7ec
commit
d47372eb9c
@ -55,12 +55,26 @@ ProtoParser::PlanNodeFromProto(const planpb::PlanNode& plan_node_proto) {
|
||||
query_info_proto.materialized_view_involved();
|
||||
// currently, iterative filter does not support range search
|
||||
if (!search_info.search_params_.contains(RADIUS)) {
|
||||
search_info.iterative_filter_execution =
|
||||
(query_info_proto.hints() == ITERATIVE_FILTER);
|
||||
if (query_info_proto.hints() != "") {
|
||||
if (query_info_proto.hints() == ITERATIVE_FILTER) {
|
||||
search_info.iterative_filter_execution = true;
|
||||
} else {
|
||||
// check if hints is valid
|
||||
PanicInfo(ConfigInvalid,
|
||||
"hints: {} not supported",
|
||||
query_info_proto.hints());
|
||||
}
|
||||
}
|
||||
if (!search_info.iterative_filter_execution &&
|
||||
search_info.search_params_.contains(HINTS)) {
|
||||
search_info.iterative_filter_execution =
|
||||
(search_info.search_params_[HINTS] == ITERATIVE_FILTER);
|
||||
if (search_info.search_params_[HINTS] == ITERATIVE_FILTER) {
|
||||
search_info.iterative_filter_execution = true;
|
||||
} else {
|
||||
// check if hints is valid
|
||||
PanicInfo(ConfigInvalid,
|
||||
"hints: {} not supported",
|
||||
search_info.search_params_[HINTS]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user