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

feat : Support for deregistering user defined functions #9239

Merged
merged 10 commits into from
Feb 27, 2024

Conversation

mobley-trent
Copy link
Contributor

Which issue does this PR close?

Closes #9178

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the core Core DataFusion crate label Feb 15, 2024
@mobley-trent mobley-trent changed the title feat : Support for user defined functions feat : Support for deregistering user defined functions Feb 15, 2024
@alamb
Copy link
Contributor

alamb commented Feb 26, 2024

This looks good to me @mobley-trent -- do you think it is ready for review?

@mobley-trent mobley-trent marked this pull request as ready for review February 27, 2024 08:08
@mobley-trent
Copy link
Contributor Author

Hey @alamb I'm done with the final touches.

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thank you @mobley-trent -- this looks great. Nicely documented and nicely tested. I had some small suggestions, but I also think they could be done as a follow on PR as well

datafusion/core/src/execution/context/mod.rs Outdated Show resolved Hide resolved
@@ -2247,6 +2292,196 @@ mod tests {
Ok(())
}

#[tokio::test]
async fn register_deregister_udf() -> Result<()> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be possible to move these tests to https://github.com/apache/arrow-datafusion/blob/main/datafusion/core/tests/user_defined/mod.rs

Doing so would make them more discoverable as well as likely shorter as you could probably avoid having to define ScalarUDFs

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thank you @mobley-trent 🚀

@alamb
Copy link
Contributor

alamb commented Feb 27, 2024

I took the liberty of pushing a fix for cargo fmt that was preventing CI from passing

@alamb alamb merged commit ea30b93 into apache:main Feb 27, 2024
23 checks passed
@alamb
Copy link
Contributor

alamb commented Feb 27, 2024

Thanks again @mobley-trent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core DataFusion crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support deregistering user defined functions
2 participants