Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SMALL] Fix to #30073 - JSON query regression in EF8 #30086

Merged
merged 1 commit into from
Jan 25, 2023
Merged

[SMALL] Fix to #30073 - JSON query regression in EF8 #30086

merged 1 commit into from
Jan 25, 2023

Conversation

maumar
Copy link
Contributor

@maumar maumar commented Jan 18, 2023

Problem was that when we were translating join, combining two SelectExpressions together, we were not remapping JSON column indexes stored in the inner select. This later result in shaper trying to read JSON column data from the wrong index and throwing the exception.

We already had a test that would have caught that, but it didn't return any data so the mismatch was never detected - fixed the data issue and added few more tests for good measure.

Fixes #30073

@maumar maumar requested a review from a team January 18, 2023 04:01
@ghost
Copy link

ghost commented Jan 18, 2023

Hello @maumar!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@maumar maumar removed the auto-merge label Jan 18, 2023
@maumar maumar requested a review from roji January 20, 2023 02:54
Problem was that when we were translating join, combining two SelectExpressions together, we were not remapping JSON column indexes stored in the inner select. This later result in shaper trying to read JSON column data from the wrong index and throwing the exception.

We already had a test that would have caught that, but it didn't return any data so the mismatch was never detected - fixed the data issue and added few more tests for good measure.

Fixes #30073
@maumar maumar merged commit f8a5d54 into main Jan 25, 2023
@maumar maumar deleted the fix30073 branch January 25, 2023 00:50
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.

JSON query regression in EF8
2 participants