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

Enhance FunctionCallRewriter #22785

Merged
merged 1 commit into from
May 25, 2024
Merged

Conversation

gggrace14
Copy link
Contributor

Enhance FunctionCallRewriter to support function substitution for multi-signature functions. Change to use Multimap to support one function name mapped to multiple function substitutes. Select the first function substitute where the original function declaration matches.

Inherit the filter field and window fields of the original function by the aggregate or window functions in the substitute. Introduce the FunctionAndTypeManager to FunctionCallRewriter to identify aggregate and window functions.

== NO RELEASE NOTE ==

@gggrace14 gggrace14 marked this pull request as ready for review May 22, 2024 06:17
@gggrace14 gggrace14 requested a review from a team as a code owner May 22, 2024 06:17
Copy link
Member

@arhimondr arhimondr left a comment

Choose a reason for hiding this comment

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

LGTM % a couple of nits and questions

@gggrace14 gggrace14 force-pushed the newfunctionbase branch 3 times, most recently from 5cd47ef to f85816e Compare May 24, 2024 21:50
Enhance FunctionCallRewriter to support function substitution for
multi-signature functions. Change to use Multimap to support one
function name mapped to multiple function substitutes. Select
the first function substitute where the original function
declaration matches.

Inherit the filter field and window fields of the original function
by the aggregate or window functions in the substitute. Introduce
the FunctionAndTypeManager to FunctionCallRewriter to identify
aggregate and window functions.
arhimondr
arhimondr previously approved these changes May 24, 2024
@gggrace14 gggrace14 merged commit 56c61e4 into prestodb:master May 25, 2024
56 checks passed
@gggrace14 gggrace14 deleted the newfunctionbase branch May 25, 2024 01:43
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.

None yet

2 participants