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

[Bug]: (HybridSearch) failed to create query plan: the value of expression template variable name {value} is not found: invalid parameter" #38619

Open
1 task done
shanghaikid opened this issue Dec 20, 2024 · 3 comments
Assignees
Labels
kind/bug Issues or changes related a bug triage/accepted Indicates an issue or PR is ready to be actively worked on.
Milestone

Comments

@shanghaikid
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Environment

- Milvus version: master

Current Behavior

[ConsistencyLevel=Strong] [useDefaultConsistency=false] [timestamp=454735064646287361]
[2024/12/20 06:36:47.698 +00:00] [DEBUG] [proxy/task_search.go:169] ["translate output fields"] [traceID=f3498de5a13395d12fbaf6d04b63dc47] [collID=454641588667635091] [collName=collection_z15rosyb] ["output fields"="[vector3,float,default_value,vector2,varChar,json,id,varChar_array,vector,float_array,int64,vector1,bool,int32_array]"]
[2024/12/20 06:36:47.698 +00:00] [INFO] [planparserv2/plan_parser_v2.go:196] ["CreateSearchPlan failed"] [error="the value of expression template variable name {value} is not found"]
[2024/12/20 06:36:47.698 +00:00] [WARN] [proxy/task_search.go:531] ["failed to create query plan"] [traceID=f3498de5a13395d12fbaf6d04b63dc47] [error="the value of expression template variable name {value} is not found"] [dsl="varChar == {value}"] ["anns field"=vector] ["query info"="topk:1 search_params:\"{\\\"nprobe\\\":2}\" round_decimal:-1 group_by_field_id:-1 group_size:1 query_field_id:100"]
[2024/12/20 06:36:47.699 +00:00] [DEBUG] [proxy/task_search.go:229] ["init search request failed"] [traceID=f3498de5a13395d12fbaf6d04b63dc47] [collID=454641588667635091] [collName=collection_z15rosyb] [error="failed to create query plan: the value of expression template variable name {value} is not found: invalid parameter"] [errorVerbose="failed to create query plan: the value of expression template variable name {value} is not found: invalid parameter\n(1) attached stack trace\n  -- stack trace:\n  | [github.com/milvus-io/milvus/pkg/util/merr.WrapErrParameterInvalidMsg\n](http://github.com/milvus-io/milvus/pkg/util/merr.WrapErrParameterInvalidMsg/n)  | \t/workspace/source/pkg/util/merr/utils.go:945\n  | [github.com/milvus-io/milvus/internal/proxy.(*searchTask).tryGeneratePlan\n](http://github.com/milvus-io/milvus/internal/proxy.(*searchTask).tryGeneratePlan/n)  | \t/workspace/source/internal/proxy/task_search.go:534\n  | [github.com/milvus-io/milvus/internal/proxy.(*searchTask).initAdvancedSearchRequest\n](http://github.com/milvus-io/milvus/internal/proxy.(*searchTask).initAdvancedSearchRequest/n)  | \t/workspace/source/internal/proxy/task_search.go:363\n  | [github.com/milvus-io/milvus/internal/proxy.(*searchTask).PreExecute\n](http://github.com/milvus-io/milvus/internal/proxy.(*searchTask).PreExecute/n)  | \t/workspace/source/internal/proxy/task_search.go:223\n  | [github.com/milvus-io/milvus/internal/proxy.(*taskScheduler).processTask\n](http://github.com/milvus-io/milvus/internal/proxy.(*taskScheduler).processTask/n)  | \t/workspace/source/internal/proxy/task_scheduler.go:465\n  | [github.com/milvus-io/milvus/internal/proxy.(*taskScheduler).queryLoop.func1\n](http://github.com/milvus-io/milvus/internal/proxy.(*taskScheduler).queryLoop.func1/n)  | \t/workspace/source/internal/proxy/task_scheduler.go:566\n  | [github.com/milvus-io/milvus/pkg/util/conc](http://github.com/milvus-io/milvus/pkg/util/conc).(*Pool[...]).Submit.func1\n  | \t/workspace/source/pkg/util/conc/pool.go:81\n  | [github.com/panjf2000/ants/v2.(*goWorker).run.func1\n](http://github.com/panjf2000/ants/v2.(*goWorker).run.func1/n)  | \t/go/pkg/mod/[github.com/panjf2000/ants/[email protected]/worker.go:67\n](http://github.com/panjf2000/ants/[email protected]/worker.go:67/n)  | runtime.goexit\n  | \t/go/pkg/mod/[golang.org/[email protected]/src/runtime/asm_amd64.s:1695\nWraps](http://golang.org/[email protected]/src/runtime/asm_amd64.s:1695/nWraps): (2) secondary error attachment\n  | the value of expression template variable name {value} is not found\n  | (1) the value of expression template variable name {value} is not found\n  | Error types: (1) *errors.errorString\nWraps: (3) failed to create query plan: the value of expression template variable name {value} is not found\nWraps: (4) invalid parameter\nError types: (1) *withstack.withStack (2) *secondary.withSecondaryError (3) *errutil.withPrefix (4) merr.milvusError"]
[2024/12/20 06:36:47.699 +00:00] [WARN] [proxy/task_scheduler.go:472] ["Failed to pre-execute task: failed to create query plan: the value of expression template variable name {value} is not found: invalid parameter"] [traceID=f3498de5a13395d12fbaf6d04b63dc47]
[2024/12/20 06:36:47.699 +00:00] [WARN] [proxy/impl.go:3389] ["HybridSearch failed to WaitToFinish"] [traceID=f3498de5a13395d12fbaf6d04b63dc47] [role=proxy] [db=multiple_vectors] [collection=collection_z15rosyb] [partitions="[]"] [OutputFields="[*]"] [ConsistencyLevel=Strong] [useDefaultConsistency=false] [error="failed to create query plan: the value of expression template variable name {value} is not found: invalid parameter"] [errorVerbose="failed to create query plan: the value of expression template variable name {value} is not found: invalid parameter\n(1) attached stack trace\n  -- stack trace:\n  | [github.com/milvus-io/milvus/pkg/util/merr.WrapErrParameterInvalidMsg\n](http://github.com/milvus-io/milvus/pkg/util/merr.WrapErrParameterInvalidMsg/n)  | \t/workspace/source/pkg/util/merr/utils.go:945\n  | [github.com/milvus-io/milvus/internal/proxy.(*searchTask).tryGeneratePlan\n](http://github.com/milvus-io/milvus/internal/proxy.(*searchTask).tryGeneratePlan/n)  | \t/workspace/source/internal/proxy/task_search.go:534\n  | [github.com/milvus-io/milvus/internal/proxy.(*searchTask).initAdvancedSearchRequest\n](http://github.com/milvus-io/milvus/internal/proxy.(*searchTask).initAdvancedSearchRequest/n)  | \t/workspace/source/internal/proxy/task_search.go:363\n  | [github.com/milvus-io/milvus/internal/proxy.(*searchTask).PreExecute\n](http://github.com/milvus-io/milvus/internal/proxy.(*searchTask).PreExecute/n)  | \t/workspace/source/internal/proxy/task_search.go:223\n  | [github.com/milvus-io/milvus/internal/proxy.(*taskScheduler).processTask\n](http://github.com/milvus-io/milvus/internal/proxy.(*taskScheduler).processTask/n)  | \t/workspace/source/internal/proxy/task_scheduler.go:465\n  | [github.com/milvus-io/milvus/internal/proxy.(*taskScheduler).queryLoop.func1\n](http://github.com/milvus-io/milvus/internal/proxy.(*taskScheduler).queryLoop.func1/n)  | \t/workspace/source/internal/proxy/task_scheduler.go:566\n  | [github.com/milvus-io/milvus/pkg/util/conc](http://github.com/milvus-io/milvus/pkg/util/conc).(*Pool[...]).Submit.func1\n  | \t/workspace/source/pkg/util/conc/pool.go:81\n  | [github.com/panjf2000/ants/v2.(*goWorker).run.func1\n](http://github.com/panjf2000/ants/v2.(*goWorker).run.func1/n)  | \t/go/pkg/mod/[github.com/panjf2000/ants/[email protected]/worker.go:67\n](http://github.com/panjf2000/ants/[email protected]/worker.go:67/n)  | runtime.goexit\n  | \t/go/pkg/mod/[golang.org/[email protected]/src/runtime/asm_amd64.s:1695\nWraps](http://golang.org/[email protected]/src/runtime/asm_amd64.s:1695/nWraps): (2) secondary error attachment\n  | the value of expression template variable name {value} is not found\n  | (1) the value of expression template variable name {value} is not found\n  | Error types: (1) *errors.errorString\nWraps: (3) failed to create query plan: the value of expression template variable name {value} is not found\nWraps: (4) invalid parameter\nError types: (1) *withstack.withStack (2) *secondary.withSecondaryError (3) *errutil.withPrefix (4) merr.milvusError"]

Expected Behavior

search ok

Steps To Reproduce

No response

Milvus Log

No response

Anything else?

No response

@shanghaikid shanghaikid added kind/bug Issues or changes related a bug needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Dec 20, 2024
@yanliang567
Copy link
Contributor

on milvus 2.5.0 with pymilvus-2.5.1rc20

req = AnnSearchRequest(**search_param)
E           TypeError: __init__() got an unexpected keyword argument 'expr_params'

@yanliang567
Copy link
Contributor

/assign @xiaocai2333
/unassign

@yanliang567 yanliang567 added triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Dec 20, 2024
@yanliang567 yanliang567 added this to the 2.5.1 milestone Dec 20, 2024
@xiaocai2333
Copy link
Contributor

same with #38616

@yanliang567 yanliang567 modified the milestones: 2.5.1, 2.5.2 Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Issues or changes related a bug triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

No branches or pull requests

3 participants