Skip to content

Fix handling of constant join predicates - #37350

Merged
roji merged 1 commit into
dotnet:mainfrom
roji:JoinPredicate
Jan 3, 2026
Merged

roji merged 1 commit into
dotnet:mainfrom
roji:JoinPredicate

Conversation

@roji

@roji roji commented Dec 11, 2025

Copy link
Copy Markdown
Member

Not adding a test as reproducing would rely on another unrelated bug (#15586), even if the fix here may fix various other cases where a constant true/false ends up in a join predicate because of arbitrary simplifications.

Fixes #37300

@roji
roji merged commit 03aa67c into dotnet:main Jan 3, 2026
@roji
roji deleted the JoinPredicate branch January 3, 2026 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

System.InvalidOperationException: 'Unhandled expression '[Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlConstantExpression]'

2 participants