Skip to content

[release/9.0-staging] Process Coalesce-simplified Convert node properly in funcletizer#35721

Merged
roji merged 1 commit into
dotnet:release/9.0-stagingfrom
roji:FuncletizerCoalesce9
Mar 4, 2025
Merged

[release/9.0-staging] Process Coalesce-simplified Convert node properly in funcletizer#35721
roji merged 1 commit into
dotnet:release/9.0-stagingfrom
roji:FuncletizerCoalesce9

Conversation

@roji

@roji roji commented Mar 3, 2025

Copy link
Copy Markdown
Member

Backports #35657
Fixes #35656

Description

The expression tree funcletizer - an important query component - was rewritten in EF 9.0 for NativeAOT support and for better performance. Unfortunately, some bugs were introduced in the process.

Customer impact

In some scenarios, when a coalesce operator is used in a query with a nullable value type, an exception is thrown.

How found

Reported by a user against 9.

Regression

Yes.

Testing

Added test

Risk

Very low - very minimal change; added quirk.

@roji roji requested a review from a team March 3, 2025 22:56
@roji roji force-pushed the FuncletizerCoalesce9 branch from f8d2928 to 8f3fce9 Compare March 3, 2025 23:48
@roji roji force-pushed the FuncletizerCoalesce9 branch from 8f3fce9 to 300202b Compare March 4, 2025 00:14
@roji roji merged commit 7cbf9ce into dotnet:release/9.0-staging Mar 4, 2025
@roji roji deleted the FuncletizerCoalesce9 branch March 4, 2025 12:43
This was referenced Jul 22, 2025
This was referenced Jul 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants