milvus-io / milvus

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

[Bug]: No error is returned when searching an empty collection with a vector that has a different schema DataType #33639

Closed ThreadDao closed 1 month ago

ThreadDao commented 5 months ago

Is there an existing issue for this?

Environment

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

Current Behavior

  1. create a collection with binary vector
  2. index and load
  3. search with float32 vector and no error is returned

Expected Behavior

No response

Steps To Reproduce

No response

Milvus Log

No response

Anything else?

No response

ThreadDao commented 5 months ago

@binbinlv Help to add relevant cases by pymilvus sdk. thanf you~

smellthemoon commented 5 months ago

@binbin12580 Help to add relevant cases by pymilvus sdk. thanf you~

The previous conclusion is that no need to do check on an empty collection.

yanliang567 commented 5 months ago

@czs007 similar to #33637, do you have any plan to improve this in milvus 2.4.x? /assign @czs007 /unassign

yanliang567 commented 5 months ago

@czs007 please let us know if no

ThreadDao commented 1 month ago

by design