-
-
Notifications
You must be signed in to change notification settings - Fork 512
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
Adding avg() to select ... join leads to wrong results #2915
Labels
Comments
MRE (2 + 1001 docs):
Notes:
|
A little bit more compact MRE:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Description:
This command creates 2 tables:
products
- 10K docsreviews
- 10M docs(should take 1-2 minutes to load).
Alternatively, you can use this sql dump:
With this setup this query returns wrong results (too low
count(*)
):The max
count(*)
is actually 1000 which we can see if we removeavg(reviews.rating) avg_rating
:Adding
option join_batch_size=0
makes the query much slower, but helps:Manticore Search Version:
Manticore 6.3.9 f990808e1@25010913 dev (columnar 2.3.1 9d9a466@24122408) (secondary 2.3.1 9d9a466@24122408) (knn 2.3.1 9d9a466@24122408)
Operating System Version:
Ubuntu Impish (perf3)
Have you tried the latest development version?
Yes
Internal Checklist:
To be completed by the assignee. Check off tasks that have been completed or are not applicable.
The text was updated successfully, but these errors were encountered: