-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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]: The count query returns a value that is greater than the actual size by 1 #37789
Comments
@r0x07k quick questions:
if not, please attach the milvus logs and the birdwatcher backup for investigation. Please refer to this doc: https://github.com/milvus-io/birdwatcher to backup etcd backup with birdwatcher /assign @r0x07k |
@yanliang567 All IDs are unique.
WIll these logs be helpful?
|
the query() api returns results with de-duplicated, so that's expected. But query(..., output_fields=["count(*)"]) is a bit special, it returns the count without de-dup. so please try this:
|
Is there an existing issue for this?
Environment
Current Behavior
The count query returns a value that is greater than the actual size by 1. This issue occurs with both the Python and Java SDKs.
To reproduce, I created a collection containing 54 elements (double-checked the size before creation). However, the count query incorrectly returns 55.
Python example:
The actual number of entities is 54, as verified below:
The Java SDK also incorrectly returns 55.
Expected Behavior
No response
Steps To Reproduce
No response
Milvus Log
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: