Skip to content

v1.2.0: List<Utf8> support

Choose a tag to compare

@Mosaad-M Mosaad-M released this 29 Sep 07:09
· 8 commits to master since this release

New capability

Real Arrow List<Utf8> column support (a repeated-string column), scoped
narrowly to a Utf8 child only, not a general nested-list-of-any-type.
Fully additive: zero breaking changes to any existing type, function
signature, or consumer.

  • ArrowType.list_utf8(), ArrowArray.list_utf8(...)
  • encode_list_utf8_array / decode_list_utf8_array
  • encode_record_batch/decode_record_batch/decode_arrow_file now
    correctly handle a List column (2 FieldNodes, 5 buffers) alongside
    ordinary scalar columns in the same RecordBatch

Verified end-to-end against real pyarrow.feather.read_table(), not
just this package's own decoder: correct list<item: string> schema,
correct values for multi-element, empty-list, and null-list rows.

One real interop bug found and fixed via that pyarrow verification: the
Field table's children vector was initially written at slot 4 (real
Arrow's dictionary slot), not slot 5 (children) -- pyarrow's Footer
verifier rejected the file until corrected.

63/63 tests pass (3 new for List).

See the commit for the full technical writeup.