-
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
ArgumentException when SQLite database filter by aggregation property #14083
Comments
Duplicate of #12089 |
I believe issue here is, SQLite is doing Sum on client since it's on decimal column but GroupBy aggregate pre-determines the translation and throws if anything goes wrong. |
No reproduce in previous version 2.1.1 |
@voronov-maxim - Fixed as #10534 in 2.2 |
This regression bug, no reproduced when sum by int dbContext.OrderItems.GroupBy(i => i.OrderId).Select(g => new { sum = g.Sum(i => i.Id) }).Where(a => a.sum > 1).ToArray(); |
@voronov-maxim - What I meant to say is, decimal computation on SQLite on server side can generate incorrect results. #10534 made it to evaluate on client to generate correct results. Which exposed the query to another bug #12089 hence you are seeing the issue. It does not happen in 2.1 since #10534 went to 2.2 release. |
Steps to reproduce
All worked well with SqlServer provider.
Further technical details
EF Core version: 2.2.0
Database Provider: Microsoft.EntityFrameworkCore.Sqlite
Operating system: Windows 8.1
IDE: Visual Studio 2017 15.9.3
The text was updated successfully, but these errors were encountered: