-
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
GroupBy LINQ Expression could not be translated #9964
Comments
@bigswede74 - Have you configured client evaluation to throw instead of warn? What do you mean running second time? Are you running it second after catching the exception and re-running the same query? |
@smitpatel I have not configured the client evaluation to throw, the log is just from the EntityFramework logger so I have no control of the log level. The second the time the query is called it succeeds which is the oddest thing. |
@bigswede74 - Can you share whole log? & also your DbContext registration (or OnConfiguring method). The error is normal warning we generate when we are client evaluating something in query pipeline. It would throw exception only if client eval is configured to throw. |
@smitpatel it only happens on the Windows Server 2012 R2, the warning is not seen on my Windows 10 Dev Box. |
At this point we would need a repro. Warning will be there since group by cannot be translated to server. But it should be warning regardless of OS. |
EF Team Triage: Closing this issue as the requested additional details have not been provided and we have been unable to reproduce it. BTW this is a canned response and may have info or details that do not directly apply to this particular issue. While we'd like to spend the time to uniquely address every incoming issue, we get a lot traffic on the EF projects and that is not practical. To ensure we maximize the time we have to work on fixing bugs, implementing new features, etc. we use canned responses for common triage decisions. |
I got this issue as well something like this
in the output it says GroupBy cannot be translated and will be evaluated locally. Using Microsoft.EntityframeworkCore.SqlServer v2.0.1 I can see this will be supported in v2.1, #2341, but...it's planed in Q2, still got a few months to wait. |
@mchenx - The 2.1 preview would be out soon or you can use nightly builds. |
When executing a group by clause the first time the query runs I get the below exception, but when it runs the second time without error.
Steps to reproduce
build a LINQ style group by clause in a entity query
Further technical details
EF Core version: Microsoft.EntityFrameworkCore version=2.0.0 targetFramework=net47
Database Provider: Microsoft.EntityFrameworkCore.SqlServer
Operating system: Windows Server 2012 R2 Standard, SQL Server 2014
IDE: Visual Studio 2017
The text was updated successfully, but these errors were encountered: