mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
enhance: [GoSDK] Pass UseDefaultConsistency flag for query option (#39515)
If the flag is not passed, the behaviors will not be expected when user not passing consistency level. Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
7476eb3625
commit
70c53f787e
@ -523,9 +523,10 @@ func (opt *queryOption) Request() (*milvuspb.QueryRequest, error) {
|
||||
PartitionNames: opt.partitionNames,
|
||||
OutputFields: opt.outputFields,
|
||||
|
||||
Expr: opt.expr,
|
||||
QueryParams: entity.MapKvPairs(opt.queryParams),
|
||||
ConsistencyLevel: opt.consistencyLevel.CommonConsistencyLevel(),
|
||||
Expr: opt.expr,
|
||||
QueryParams: entity.MapKvPairs(opt.queryParams),
|
||||
ConsistencyLevel: opt.consistencyLevel.CommonConsistencyLevel(),
|
||||
UseDefaultConsistency: opt.useDefaultConsistencyLevel,
|
||||
}
|
||||
|
||||
req.ExprTemplateValues = make(map[string]*schemapb.TemplateValue)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user