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

misc: Add ability to remove a function from all registries #12537

Closed

Conversation

bikramSingh91
Copy link
Contributor

Summary:
This addresses an internal use-case where, during initialization,
all Presto functions are registered before some are overwritten
with custom implementations. Since vector functions are prioritized
over simple functions, this approach enables replacing a previously
registered vector function with a simple function. To simplify the
API and prevent confusion between removing specific signatures versus
all, this API is designed to remove all signatures, providing a clean
slate for the user.

Reviewed By: kgpai

Differential Revision: D70594709

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 5, 2025
Copy link

netlify bot commented Mar 5, 2025

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit f8e045a
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/67c79f3857860b00083d7ae6

Summary:
This addresses an internal use-case where, during initialization,
all Presto functions are registered before some are overwritten
with custom implementations. Since vector functions are prioritized
over simple functions, this approach enables replacing a previously
registered vector function with a simple function. To simplify the
API and prevent confusion between removing specific signatures versus
all, this API is designed to remove all signatures, providing a clean
slate for the user.

Reviewed By: kgpai

Differential Revision: D70594709
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D70594709

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D70594709

bikramSingh91 pushed a commit to bikramSingh91/velox that referenced this pull request Mar 5, 2025
…ncubator#12537)

Summary:

This addresses an internal use-case where, during initialization,
all Presto functions are registered before some are overwritten
with custom implementations. Since vector functions are prioritized
over simple functions, this approach enables replacing a previously
registered vector function with a simple function. To simplify the
API and prevent confusion between removing specific signatures versus
all, this API is designed to remove all signatures, providing a clean
slate for the user.

Reviewed By: kgpai

Differential Revision: D70594709
@bikramSingh91
Copy link
Contributor Author

Linux build failed due to unrelated test failing, filed a bug report for it: #12546

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 598b9d3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants