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

[5.0.3] InMemory: Skip over AsSingleQuery method #23818

Merged
merged 1 commit into from
Jan 13, 2021
Merged

Conversation

smitpatel
Copy link
Member

Resolves #23759

Description

Relational providers have AsSingleQuery operator to evaluate query in single SQL scenario. The queryable method only exist for relational providers but when using InMemory provider for testing (multiple providers in same app scenario), the method throws translation error since InMemory provider doesn't understand the method. In 5.0, we added code to skip AsSplitQuery this is similar method on the flipside.

Customer Impact

Customers who are using AsSingleQuery in their production code and using InMemory provider for testing will see test failures.

How found

Customer reported on 5.0.1.

Test coverage

Manually verified. No test projects contains relational and inmemory provider together.

Regression?

No, AsSingleQuery is operator introduced in 5.0 only. The query fails on 5.0.0 too.

Risk

"Low", we would skip over a method which would fail anyway. The fuzzy string match is by-design since we don't have access to actual method which is defined in a different assembly. Plus, InMemory is supposed to be used for testing only.

@smitpatel smitpatel requested a review from a team January 5, 2021 19:46
@ajcvickers ajcvickers added this to the 5.0.x milestone Jan 5, 2021
@leecow leecow modified the milestones: 5.0.x, 5.0.3 Jan 12, 2021
@wtgodbe wtgodbe merged commit 8a92f5c into release/5.0 Jan 13, 2021
@wtgodbe wtgodbe deleted the smit/singlequery branch January 13, 2021 17:16
@ajcvickers ajcvickers removed this from the 5.0.3 milestone Jan 14, 2021
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.

5 participants