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] pa.types.is_nested() returns False for run-end encoded types #50847
The predicate in Python is backed by a hardcoded _NESTED_TYPES set in python/pyarrow/types.py, and Type_RUN_END_ENCODED was never added to it. If you line that set up against is_nested() in cpp/src/arrow/type_traits.h, run-end encoded is the only type the two disagree about — everything else matches, including the list-view types.
It also disagrees with the type itself: run-end encoded has two children (run ends and values), and every other type in pyarrow with children answers True here.
The same thing happened with fixed-size list, reported in #40171 and fixed in #40172, and the list-view types were added later. This looks like the last one that got missed when run-end encoding was added.
Tested with pyarrow 25.0.0 on Windows, and the same _NESTED_TYPES set is still there on main.
Activity
apacheGH-50847: [Python] Add Type_RUN_END_ENCODED to _NESTED_TYPES set
GH-50847: [Python] Add Type_RUN_END_ENCODED to _NESTED_TYPES set (#50848
AlenkaF commentedon Aug 27, 2026
Issue resolved by pull request 50848
#50848
MINOR: [Python] Mention interval in the is_temporal docstring (#51016)