Skip to content

Commit

Permalink
enhance: [GoSDK] Pass UseDefaultConsistency flag for query option (m…
Browse files Browse the repository at this point in the history
…ilvus-io#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>
  • Loading branch information
congqixia authored Jan 23, 2025
1 parent 7476eb3 commit 70c53f7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions client/milvusclient/read_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 70c53f7

Please sign in to comment.