Query: Distinct on non-materialized QSRE could give incorrect result #10433
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
punted-for-2.1
type-bug
Milestone
https://github.com/aspnet/EntityFrameworkCore/blob/dev/src/EFCore.Specification.Tests/Query/GearsOfWarQueryTestBase.cs#L2726-L2738
Generates
This could generate incorrect results if
Gears
table has some non-mapped columns. So even though expectation is distinct records there could be duplicates.We should probably expand * projection to full list of mapped properties here to get closer to linq behavior.
@anpete @divega @ajcvickers - thoughts?
The text was updated successfully, but these errors were encountered: