-
Notifications
You must be signed in to change notification settings - Fork 3.7k
GH-46198: [Python] Remove deprecated PyExtensionType #46199
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
base: main
Are you sure you want to change the base?
Conversation
Can you check if it breaks https://pypi.org/project/pyarrow-hotfix/ ? |
Yeah, it breaks it: >>> import pyarrow_hotfix
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/alenkafrim/Envs/pyarrow-dev/lib/python3.12/site-packages/pyarrow_hotfix/__init__.py", line 110, in <module>
install()
File "/Users/alenkafrim/Envs/pyarrow-dev/lib/python3.12/site-packages/pyarrow_hotfix/__init__.py", line 66, in install
pa.unregister_extension_type("arrow.py_extension_type")
File "pyarrow/types.pxi", line 2281, in pyarrow.lib.unregister_extension_type
check_status(UnregisterPyExtensionType(c_type_name))
File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
raise convert_status(status)
pyarrow.lib.ArrowKeyError: No type extension with name arrow.py_extension_type found Should I propose an update in the pyarrow-hotfix repo |
@AlenkaF Yes, please do! |
@pitrou, I have submitted pitrou/pyarrow-hotfix#8 (tested locally with the changes in this PR and with pyarrow 19.0.0). |
In PyArrow version 21.0.0 `PyExtensionType` will be removed, see apache/arrow#46199. We need to update the checks in `__init__` so that the hotfix doesn't break with future pyarrow versions.
As pyarrow-hotfix update has been merged, this PR is ready for review. |
Rationale for this change
PyExtensionType
has been deprecated in #38608 and can now be removed.What changes are included in this PR?
PyExtensionType
functionality is removed from PyArrow code.Are these changes tested?
Existing tests should pass.
Are there any user-facing changes?
Deprecated classes are removed.