-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Implement "SearchByPks" path in Search (work in progress) #25882
Conversation
Welcome @unfode! It looks like this is your first PR to milvus-io/milvus 🎉 |
@unfode Thanks for your contribution. Please submit with DCO, see the contributing guide https://github.com/milvus-io/milvus/blob/master/CONTRIBUTING.md#developer-certificate-of-origin-dco. |
@unfode Please associate the related issue to the body of your Pull Request. (eg. “issue: #”) |
@unfode E2e jenkins job failed, comment |
@unfode E2e jenkins job failed, comment |
@unfode, please be sure the pr should only have one commit, check https://github.com/milvus-io/milvus/blob/master/CODE_REVIEW.md for more details. |
@unfode E2e jenkins job failed, comment |
@unfode E2e jenkins job failed, comment |
@unfode E2e jenkins job failed, comment |
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.
good contribution as you are on the right way, some code could be simpilified
Milvus uses
|
53db458
to
fe12cf8
Compare
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.
/lgtm
@unfode E2e jenkins job failed, comment |
@unfode ut workflow job failed, comment |
@unfode ut workflow job failed, comment |
@unfode E2e jenkins job failed, comment |
internal/proxy/impl.go
Outdated
} | ||
|
||
if len(placeholderGroup.Placeholders) != 1 || len(placeholderGroup.Placeholders[0].Values) != 1 { | ||
return nil, errors.New("PlaceholderGroup is invalid") |
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.
return `merr.WrapParameterInvalidMsg("please provide primary key")
internal/proxy/impl.go
Outdated
|
||
if queryResults.FieldsData == nil || | ||
len(queryResults.FieldsData) != 2 || | ||
queryResults.FieldsData[0].FieldName != annsField && queryResults.FieldsData[1].FieldName != annsField { |
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.
these checks could be removed, and looking up the vector field could be done by iterating queryResults.GetFieldsData()
.
@unfode E2e jenkins job failed, comment |
@unfode E2e jenkins job failed, comment |
/run-cpu-e2e |
1 similar comment
/run-cpu-e2e |
@unfode E2e jenkins job failed, comment |
Signed-off-by: unfode <[email protected]>
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: unfode, xiaofan-luan 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 |
pre allocated array may help a little bit on the performance |
for example |
/lgtm |
This fixes issue #23184