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

Fix regression on register_udaf #878

Merged
merged 7 commits into from
Sep 21, 2024

Conversation

timsaucer
Copy link
Contributor

Which issue does this PR close?

Closes #874

Rationale for this change

datafusion-python 41.1.0 introduced a regression on SessionContext.register_udaf. This two line change corrects it.

What changes are included in this PR?

Correct regression.

Adds unit test for registering udaf and udf.

Are there any user-facing changes?

None

@timsaucer
Copy link
Contributor Author

Looks like a small difference on the captured exception string, will try to address soon

@Michael-J-Ward
Copy link
Contributor

Michael-J-Ward commented Sep 20, 2024

I thought it was weird that it was passing for Python 3.12 but failed for prior versions. Python 3.12 did change the way missing abstract methods are reported.

Issue: python/cpython#98284
Changelog: https://docs.python.org/3/whatsnew/changelog.html#python-3-12-0-alpha-2

@timsaucer timsaucer merged commit 044bbe2 into apache:main Sep 21, 2024
15 checks passed
@timsaucer timsaucer deleted the bugfix/register_udaf branch September 21, 2024 14:33
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.

Unable to register UDAFs using SessionContext's register_udaf
3 participants