milvus-io / milvus

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

[Bug]: [major] search results are empty when searching with filter in "key == uuid (vchar)" after major compaction #34923

Open binbinlv opened 2 months ago

binbinlv commented 2 months ago

Is there an existing issue for this?

Environment

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

Current Behavior

search results are empty when searching with filter in "key == uuid (vchar)" after major compaction

for example: key=='f8d5a851-0fc1-4f84-808c-450721a-5'

Expected Behavior

Search returns with topk

Steps To Reproduce

1. create collection with clustering key enabled on vhcar field
2. insert 10M (768) data
3. major compaction
4. search with filter

Milvus Log

the log is on the cloud, please see the issue on zilliz cloud if needed.

Anything else?

No response

MrPresent-Han commented 2 days ago

/assign binbinlv