Skip to content

Conversation

@roji
Copy link
Member

@roji roji commented Oct 29, 2025

Fixes #37016
Port of #37017

Description

The new support for complex JSON mapping in EF 10 accidentally left out test coverage for indexing on nested collections (e.g. Where(b => b.JsonColumn.Something.Coll[0] == 8); as a result, this scenario had two bugs which are fixed by this PR. Unfortunately, this bug was discovered too late to get the fix into 10.0.0.

Customer Impact

Any LINQ query attempting to index into a nested JSON collection fails. Non-nested collections work fine.

How found

Found during verification/smoke testing.

Regression

No, complex JSON is a new feature.

Testing

Tests added.

Risk

Low - the changes affect code which was already changed significantly in 10.0 (to support complex JSON). Changes are relatively surgical and scope is limited. Quirk added.

@roji roji requested a review from a team October 29, 2025 10:18
@roji
Copy link
Member Author

roji commented Oct 29, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@SamMonoRT
Copy link
Member

Removing servicing consider label till all reviews/checks/CI is green. Please add it back when ready.

@AndriySvyryd
Copy link
Member

The failure was unrelated, fixed in #37022

@roji roji merged commit 6f7a99a into dotnet:release/10.0 Oct 30, 2025
7 checks passed
@roji roji deleted the NestedCollection10 branch October 30, 2025 14:08
@mmitche mmitche added this to the 10.0.1 milestone Oct 30, 2025
@SamMonoRT
Copy link
Member

@roji @AndriySvyryd @mmitche - is merging into release\10.0 before the 10.0.1 branch, flow these changes to 10.0.1 automatically?

@AndriySvyryd
Copy link
Member

@SamMonoRT There's no separate 10.0.1 branch. release/10.0 from efcore flows to release/10.0.1xx in VMR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants