[ 
https://issues.apache.org/jira/browse/ARROW-10930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joris Van den Bossche resolved ARROW-10930.
-------------------------------------------
    Resolution: Fixed

Issue resolved by pull request 8979
[https://github.com/apache/arrow/pull/8979]

> [Python] LargeListType doesn't have a value_field
> -------------------------------------------------
>
>                 Key: ARROW-10930
>                 URL: https://issues.apache.org/jira/browse/ARROW-10930
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>    Affects Versions: 2.0.0
>            Reporter: Jim Pivarski
>            Assignee: Joris Van den Bossche
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.0.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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):
> {code:java}
> >>> 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{code}
> Now with a large list:
> {code:java}
> >>> 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'{code}
> Verifying version:
> {code:java}
> >>> pa.__version__
> '2.0.0'{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to