-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Unstable sort for Correlated_collection_with_top_level_FirstOrDefault test #15164
Comments
@cincuranet Can you submit a PR to fix this? |
I can. But I have my own work to do, so it's going to take a while.
|
I'm open to handling this. I just want to make sure @cincuranet hasn't started on it yet. |
Go for it.
|
@cincuranet Which version of EF Core are you using? |
@j-rewerts we can take the PR now. The test has been disabled preemptively, as the first phase of query rewrite changes will break it, but for now the scenario works. You can enable the test on your box to make sure the fix is correct and disable it back for the PR. Once #15043 is fixed we can get the test online and it will have the proper fix already. |
The test
Correlated_collection_with_top_level_FirstOrDefault
does not have an explicit unique sort and hence the loop will trigger false negative when the order is different.To be precise, the query returns 2 rows with IDs 7 and 8. And the order isn't defined because the
Nickname
,SquadId
andFullName
are same (i.e. here).The text was updated successfully, but these errors were encountered: