You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Python] For extension types, compute kernels should default to storage types? #33452
Currently, compute kernels don't recognize extensions types so that if you were to define semantic types to indicate things like "this string column is an image label", you then cannot do things like equals on it.
for query systems that push some of the compute down to Arrow (e.g., DuckDB), it also means that it's much harder for users to work with datasets with extension types because you don't know which functions will actually work.
Instead, if we can make the compute kernels default to the storage type, it would make the extension system a lot easier to work with in Arrow.
Miles Granger / @milesgranger:
I think this makes good sense, although I'm not sure about the implementation details of it. I think many (all?) kernels specify their allowed input types before runtime, but perhaps there is a way match based on storage type as well?
cc @jorisvandenbossche
This issue has been marked as stale because it has had no activity in the past 2 years. Please remove the stale label or comment below, or this issue will be closed in 14 days.
Activity
asfimport commentedon Nov 14, 2022
Miles Granger / @milesgranger:
I think this makes good sense, although I'm not sure about the implementation details of it. I think many (all?) kernels specify their allowed input types before runtime, but perhaps there is a way match based on storage type as well?
cc @jorisvandenbossche
thisisnic commentedon Feb 18, 2026
This issue has been marked as stale because it has had no activity in the past 2 years. Please remove the stale label or comment below, or this issue will be closed in 14 days.
AlenkaF commentedon May 6, 2026
I think this issue is still relevant, only the example should be updated to base
pa.ExtensionType, like here:arrow/python/pyarrow/tests/test_extension_type.py
Lines 130 to 140 in 23cd1ff
I am currently working on creating an umbrella issue to cover all Extension support bugs and feature requests in PyArrow and will link this there.
AlenkaF commentedon May 7, 2026
Actually, I think this issue could be close as a duplicate of #22304
The other is more general and already has some opinions in the thread.
I propose to move the discussion there. Feel free to comment or reopen if you disagree.