Skip to content

Conversation

@roji
Copy link
Member

@roji roji commented Oct 23, 2025

This fixes two distinct bugs:

  • Our current (hacky) mechanism for pre-visiting and rewriting collection indexing and projection (see #36335) did not support accessing non-collection complex properties before the actual collection property (e.g. the Foo in Where(b => b.Foo.Bar[0].X == 8).
  • The SQL Server ElementAt translation ignored the path on the incoming OPENJSON when transforming it to JSON_VALUE.

Fixes #37016

@roji roji requested a review from a team October 23, 2025 10:18
@roji roji enabled auto-merge (squash) October 23, 2025 10:19
@roji roji force-pushed the Nestedcollection branch from 20a999b to 4b15cbf Compare October 23, 2025 12:07
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.

Indexing over nested complex JSON collections fail

1 participant