-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: Pass the value of the expression through parameters #331
feature: Pass the value of the expression through parameters #331
Conversation
7137c5d
to
6d6b611
Compare
proto/milvus.proto
Outdated
@@ -905,6 +905,7 @@ message DeleteRequest { | |||
string expr = 5; | |||
repeated uint32 hash_keys = 6; | |||
common.ConsistencyLevel consistency_level = 7; | |||
repeated schema.FieldData expression_values = 8; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Plz CMIIW, in #37033 we use the following code to read the value out of this FieldData
result[data.GetFieldName()] = rv[0]
And use value, ok := data[expr.GetPlaceholderName()]
to fill the expr. And result
above equals to data
here.
So our assumption is that the placeholder name is the field name?
Also, can you provide some examples showing how we will fill this expression_values
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think here FieldData
is only used as a container to hold the template variable name: value
mapping.
proto/milvus.proto
Outdated
@@ -905,6 +905,7 @@ message DeleteRequest { | |||
string expr = 5; | |||
repeated uint32 hash_keys = 6; | |||
common.ConsistencyLevel consistency_level = 7; | |||
repeated schema.FieldData expression_values = 8; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder is schema.FieldData
the best container to use? schema.PlaceholderValue
seems better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when using schema.FieldData
we assigned new meaning to FieldData::field_name
6d6b611
to
78665e9
Compare
chatted with @czs007 offline:
maybe the best option is to define a new proto message similar to |
defining a new proto message also reduces complexity in impl. we need only a single value whereas |
Signed-off-by: Cai Zhang <[email protected]>
78665e9
to
1d03d83
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: xiaocai2333, yhmo The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
issue: #milvus-io/milvus#36672 milvus-proto: milvus-io/milvus-proto#331 milvus: milvus-io/milvus#37033 Signed-off-by: Cai Zhang <[email protected]>
…#2317) issue: #milvus-io/milvus#36672 milvus-proto: milvus-io/milvus-proto#331 milvus: milvus-io/milvus#37033 Signed-off-by: Cai Zhang <[email protected]> Signed-off-by: NamCaoHai <[email protected]>
issue: #milvus-io/milvus#36672