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

Keep parameter names for inlined queries #23437

Conversation

joakimriedel
Copy link
Contributor

@joakimriedel joakimriedel commented Nov 23, 2020

Fixes #23271

New test Query_reusing_parameter_with_inner_query_doesnt_declare_duplicate_parameter added to verify solution.
Other tests modified since constants are now kept for lambdas and not reused from earlier top-level expressions.

All tests pass locally.

@joakimriedel joakimriedel marked this pull request as ready for review November 26, 2020 09:02
@joakimriedel
Copy link
Contributor Author

Ok, this is ready for review now. Fixes three separate issues, see first comment above.

@joakimriedel
Copy link
Contributor Author

All good @smitpatel ? Let me know if there is more work to do here.

@smitpatel smitpatel force-pushed the joakim/keep-parameter-names-for-inlined-queries branch from 0313b40 to ea829ed Compare February 22, 2021 23:36
@smitpatel
Copy link
Member

Requesting review from @roji / @AndriySvyryd to look over the simple caching mechanism.

Copy link
Member

@roji roji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@smitpatel gave it a look, but probably good to have @AndriySvyryd eyes on it too.

@smitpatel smitpatel force-pushed the joakim/keep-parameter-names-for-inlined-queries branch from ea829ed to add1956 Compare February 23, 2021 16:43
@smitpatel smitpatel force-pushed the joakim/keep-parameter-names-for-inlined-queries branch from add1956 to 74cc390 Compare February 23, 2021 17:22
@AndriySvyryd
Copy link
Member

:shipit:

@ghost
Copy link

ghost commented Feb 23, 2021

Hello @smitpatel!

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.

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.

How to force reusing a parameter for inlined queries?
5 participants