Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.0.0
Description
This one is easy: it looks like the LargeListType is just missing this field. Here it is for a 32-bit list (the reason I want this is to get at the "nullable" field, although the "metadata" would be nice, too):
>>> import pyarrow as pa >>> small_array = pa.ListArray.from_arrays(pa.array([0, 3, 3, 5]), pa.array([1.1, 2.2, 3.3, 4.4, 5.5])) >>> small_array.type.value_field pyarrow.Field<item: double> >>> small_array.type.value_field.nullable True
Now with a large list:
>>> large_array = pa.LargeListArray.from_arrays(pa.array([0, 3, 3, 5]), pa.array([1.1, 2.2, 3.3, 4.4, 5.5])) >>> large_array.type.value_field Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'pyarrow.lib.LargeListType' object has no attribute 'value_field'
Verifying version:
>>> pa.__version__
'2.0.0'
Attachments
Issue Links
- links to