Simplification of Count(*) with multiple group by can generate wrong result #27130
Labels
area-groupby
area-query
customer-reported
priority-bug
Issues which requires API breaks and have bigger impact hence should be fixed earlier in the release
punted-for-7.0
Originally planned for the EF Core 7.0 (EF7) release, but moved out due to resource constraints.
type-bug
Milestone
Generates
Which works correctly.
But if the
g.Min(e => e.OrderID)
is converted tog.Count()
then generate the SQL like thisNow all of sudden the aggregate which is supposed to count records on outer grouping is computing that on inner one producing wrong results.
The text was updated successfully, but these errors were encountered: