-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 Report: exists may returns random result on a sharded table #10144
Comments
Hello @zengmin-wish, we encountered a similar issue in the past (#9900). We fixed it on |
Hello @zengmin-wish, me and @systay were looking at this bug today, and we can confirm that this is an issue in all the three |
this issue is still not fixed for V3, and it needs to be backported. opening this again until that is done |
Overview of the Issue
We found an issue with exists : I can't provide the exact query we use, but for the query like
here foo is in a sharded keyspace, it seems if the inner query has result in one shard but have no result in another shard, then the outer query will return a random 0 or 1. Not sure if it is related, but for our particular query, the table is sharded on the field 'some_field', so if Vitess is smart enough, it doesn't need to send the query to all the shard.
We tried using gen4 planner, got the same result.
Reproduction Steps
See description.
Binary Version
Operating System and Environment details
Log Fragments
No response
The text was updated successfully, but these errors were encountered: