Repository navigation
Translate set operations over null-checked non-entity subqueries - #38844
Closed
AndriySvyryd with Copilot wants to merge 3 commits into
Closed
AndriySvyryd with Copilot wants to merge 3 commits into
AndriySvyryd with Copilot wants to merge 3 commits into
Conversation
Co-authored-by: AndriySvyryd <[email protected]>
Copilot
AI
changed the title
[WIP] Fix set operation over null-checked to-one non-entity subquery
Translate set operations over null-checked non-entity subqueries
Aug 21, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes relational set-operation translation for projections using null-checked non-entity subqueries.
Changes:
- Rebinds eligible client projections before set operations.
- Reduces marker-gated object null checks to SQL predicates.
- Adds Concat/Union regression coverage and SQL baselines.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
SelectExpression.cs |
Exposes client-projection state. |
RelationalQueryableMethodTranslatingExpressionVisitor.cs |
Rebinds set-operation operands. |
RelationalProjectionBindingExpressionVisitor.cs |
Transforms null checks and projection bindings. |
NorthwindSetOperationsQueryRelationalTestBase.cs |
Adds Concat regression coverage. |
NorthwindSetOperationsQuerySqlServerTest.cs |
Adds the SQL Server baseline. |
AdHocMiscellaneousQueryRelationalTestBase.cs |
Converts Union characterization to result assertions. |
AdHocMiscellaneousQuerySqlServerTest.cs |
Adds the translated Union SQL baseline. |
Co-authored-by: AndriySvyryd <[email protected]>
AndriySvyryd
requested
a balanced review from Copilot
and removed request for
AndriySvyryd
August 22, 2026 03:08
AndriySvyryd
deleted the
copilot/fix-null-checked-subquery-translations
branch
August 22, 2026 03:18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Set operations failed when a projection repeatedly referenced a to-one non-entity subquery and compared the projected object with
null. The synthetic nullability marker forced client projection handling, causingConcat/Uniontranslation to be rejected.Translation
Coverage
Concatregression scenario and SQL baseline.Unioncharacterization to assert translated results.