Query: Rownumber conversion needs better logic to figure out partitions #26756
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
Query like this
When converting rownumber (Apply coming from SelectMany) has predicate on Select as
p.Id != null && p.Id == c.ParentId && c.SomeNullableDateTime != null
We end up pulling the last term even though that is not part of join key and shouldn't be in partitions.
Faulty code which causes match
efcore/src/EFCore.Relational/Query/SqlExpressions/SelectExpression.cs
Lines 2340 to 2341 in e451959
The text was updated successfully, but these errors were encountered: