Skip to content
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

enhance: simplify the structure of search_params #38251

Closed

Conversation

smellthemoon
Copy link
Contributor

@sre-ci-robot sre-ci-robot added the size/L Denotes a PR that changes 100-499 lines. label Dec 5, 2024
@mergify mergify bot added dco-passed DCO check passed. kind/enhancement Issues or changes related to enhancement labels Dec 5, 2024
Copy link
Contributor

mergify bot commented Dec 5, 2024

@smellthemoon E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

Copy link
Contributor

mergify bot commented Dec 5, 2024

@smellthemoon go-sdk check failed, comment rerun go-sdk can trigger the job again.

Copy link

codecov bot commented Dec 5, 2024

Codecov Report

Attention: Patch coverage is 68.51852% with 17 lines in your changes missing coverage. Please review.

Project coverage is 81.06%. Comparing base (edabfa8) to head (e9ec324).
Report is 139 commits behind head on master.

Files with missing lines Patch % Lines
internal/proxy/search_util.go 67.30% 13 Missing and 4 partials ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #38251      +/-   ##
==========================================
- Coverage   81.07%   81.06%   -0.02%     
==========================================
  Files        1372     1372              
  Lines      191508   191558      +50     
==========================================
+ Hits       155274   155291      +17     
- Misses      30738    30765      +27     
- Partials     5496     5502       +6     
Components Coverage Δ
Client 74.43% <ø> (ø)
Core 68.85% <ø> (ø)
Go 83.18% <67.30%> (-0.02%) ⬇️
Files with missing lines Coverage Δ
internal/proxy/task.go 87.03% <ø> (ø)
internal/proxy/task_search.go 75.95% <ø> (ø)
tests/integration/util_query.go 82.30% <100.00%> (ø)
internal/proxy/search_util.go 79.51% <67.30%> (-1.86%) ⬇️

... and 25 files with indirect coverage changes

Copy link
Contributor

mergify bot commented Dec 6, 2024

@smellthemoon E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

Copy link
Contributor

mergify bot commented Dec 6, 2024

@smellthemoon go-sdk check failed, comment rerun go-sdk can trigger the job again.

@sre-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: smellthemoon
To complete the pull request process, please assign xiaofan-luan after the PR has been reviewed.
You can assign the PR to them by writing /assign @xiaofan-luan in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Contributor

mergify bot commented Dec 6, 2024

@smellthemoon go-sdk check failed, comment rerun go-sdk can trigger the job again.

@smellthemoon
Copy link
Contributor Author

rerun go-sdk

@mergify mergify bot added the ci-passed label Dec 6, 2024
@czs007 czs007 added this to the 2.5.0 milestone Dec 17, 2024
pageRetainOrderKey = "page_retain_order"
)

var ParamsKeyList = []string{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unnecessary?

return merr.WrapErrParameterInvalidMsg(fmt.Sprintf("parameter(%s) has the wrong type, expect bool type", key))
}
if v != value {
return merr.WrapErrParameterInvalidMsg(fmt.Sprintf("inconsistent parameter(%s), search_param(%t),search_param.params(%t)", key, v, value))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ambiguous

nprobeKey = "nprobe"
maxEmptyResultBuckets = "max_empty_result_buckets"
reorderKKey = "reorder_k"
searchListKey = "search_list"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Knowhere’s param need to be transparent to MIlvus @foxspy Plz take a look

// before 2.5.1, all key in ParamsKeyList will be write in search_params.params
// after 2.5.1, allow user to write all this key in search_params
// SearchParams in planpb.QueryInfo is the params set passed to segcore
// so if you want to use the params in segcore/knowhere, remember to add the new params into ParamsKeyList after 2.5.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need add the index parameter here? This doesn't seem reasonable. It will introduce new compatibility logic. Can we just write all of params without adding a whitelist?

@czs007 czs007 removed this from the 2.5.0 milestone Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/test ci-passed dco-passed DCO check passed. kind/enhancement Issues or changes related to enhancement sig/testing size/L Denotes a PR that changes 100-499 lines. test/integration integration test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants