Skip to content

Conversation

@timsaucer
Copy link
Member

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
Member 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