Generated JOIN for multiple MIN is wrong #27083
Labels
area-query
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
Servicing-approved
type-bug
Milestone
Generated JOIN for multiple MIN is wrong
When multiple
MIN
are used, the translatedON
clause of subsequent JOINs is wrongThe following query:
Is translated to:
The generated
ON
clause for"p0"
and"c0"
produces a cartesian product.See WhenGroupWithMinIsUsed_CustomerIdAndTitleMatches to reproduce
Code to reproduce
Provider and version information
EF Core version: 6.0.1
Database provider: at least Microsoft.EntityFrameworkCore.SqlServer and Microsoft.EntityFrameworkCore.Sqlite
Target framework: .NET 6.0
Operating system: All
IDE: All
The text was updated successfully, but these errors were encountered: