Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-10930

[Python] LargeListType doesn't have a value_field

    XMLWordPrintableJSON

Details

    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

          Activity

            People

              jorisvandenbossche Joris Van den Bossche
              jpivarski Jim Pivarski
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h