You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Using new[] in select query gives exception .NET 8 #32331
With .NET 8 and Microsoft.EntityFrameworkCore.SqlServer Version 8.0.0 I get the following exception:
Query root of type 'InlineQueryRootExpression' wasn't handled by provider code. This issue happens when using a provider specific method on a different provider where it is not supported.
EF Core version: 8.0.0
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: NET 8.0
Operating system: Windows 11 Pro OS build 22621.2506
IDE: Microsoft Visual Studio 2022 (64-bit) - Current Version 17.8.0
Activity
roji commentedon Nov 17, 2023
Minimal repro query:
Full repro source code
In 7.0 this indeed translated, with the outer Max() evaluated client-side:
This only fails when a subquery is inside the inline collection. Given the following LINQ query:
... 8.0 produces the following, translating the outer Max() to SQL:
... whereas 7.0 again evaluates client-side:
Opened #32332 to improve the 8.0 translation to use
GREATEST().Visit inside InlineQueryRootExpression in nav expansion
Visit inside InlineQueryRootExpression in nav expansion
Visit inside InlineQueryRootExpression in nav expansion
Visit inside InlineQueryRootExpression in nav expansion (#32460)
roji commentedon Nov 30, 2023
Reopening to consider servicing.
Visit inside InlineQueryRootExpression in nav expansion (dotnet#32460)
Visit inside InlineQueryRootExpression in nav expansion
Visit inside InlineQueryRootExpression in nav expansion
Visit inside InlineQueryRootExpression in nav expansion (#32467)
Bump Microsoft.EntityFrameworkCore.Design and System.Text.Json (#60)