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

[6.0.1] Query: Optimize Contains to Any recursively #26599

Merged
merged 1 commit into from
Nov 11, 2021

Conversation

smitpatel
Copy link
Member

  • Also unwrap convert node around projection when translating Contains

Resolves #26593

Description

When writing query which has multiple subquery Contains if the inner Contains is on entity type or value type then translation fails.

Customer impact

User query will throw exception with no easy way to figure out work-around

How found

Customer reported on RTM package

Regression

Yes, the query worked in 5.0 release.

Testing

Added test for customer scenario and similar kind of queries.

Risk

Low. Recursive visit should be no-op if there is no other relevant parts inside. Also added quirk to go back to earlier behavior.

@smitpatel smitpatel requested review from a team and ajcvickers November 9, 2021 19:56
@AndriySvyryd AndriySvyryd added this to the 6.0.x milestone Nov 9, 2021
@jamshedd
Copy link
Member

Approved for 6.0.1.

@wtgodbe
Copy link
Member

wtgodbe commented Nov 11, 2021

@smitpatel I can merge this once conflicts are resolved

- Also unwrap convert node around projection when translating Contains

Resolves #26593
@smitpatel smitpatel merged commit b38c269 into release/6.0 Nov 11, 2021
@smitpatel smitpatel deleted the smit/patchysnow1 branch November 11, 2021 20:41
@Saibamen
Copy link

This pull request was closed.
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.

7 participants