mirror of https://github.com/milvus-io/milvus.git
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>pull/38775/head
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…
Reference in New Issue