milvus-io / milvus

A cloud-native vector database, storage for next generation AI applications
https://milvus.io
Apache License 2.0
30.03k stars 2.88k forks source link

[Bug]: [GOSDK] Delete without expr or ids gets unclear error message: delete plan can't be empty or always true #33761

Closed ThreadDao closed 4 months ago

ThreadDao commented 4 months ago

Is there an existing issue for this?

Environment

- Milvus version: master
- Deployment mode(standalone or cluster):
- MQ type(rocksmq, pulsar or kafka):    
- SDK version(e.g. pymilvus v2.0.0rc2): go-sdk v2
- OS(Ubuntu or CentOS): 
- CPU/Memory: 
- GPU: 
- Others:

Current Behavior

delete without expr and ids

_, err = mc.Delete(ctx, clientv2.NewDeleteOption(schema.CollectionName))

_, err = mc.Delete(ctx, clientv2.NewDeleteOption(schema.CollectionName).WithExpr(""))
[2024/06/11 18:27:45.973 +08:00] [INFO] [base/milvus_client.go:56] [Response] [method=Delete] [resp="{\"status\":{\"error_code\":5,\"reason\":\"delete plan can't be empty or always true : : invalid parameter\",\"code\":1100,\"detail\":\"delete plan can't be empty or always true : : invalid parameter\"}}"]

Expected Behavior

No response

Steps To Reproduce

No response

Milvus Log

No response

Anything else?

No response

congqixia commented 4 months ago

this is the error message from Milvus