Repository navigation
Read Arrow ListView and LargeListView as Array - #126014
Conversation
|
Workflow [PR], commit [788230b] Summary: ✅
AI ReviewSummaryPR #126014 adds Missing context / blind spots
Final VerdictStatus: ✅ Approve. No code changes requested; normal CI completion remains pending. |
NIKTONIKTO717
left a comment
There was a problem hiding this comment.
Thank you @JayPokale for such a nice PR! I left a few comments, I'd appreciate if you let me know what you think about them.
AI comment: #125134 adds the test 05361_arrow_testing_corpus, whose .reference expects Error: CANNOT_EXTRACT_TABLE_STRUCTURE for generated_list_view.arrow_file and generated_list_view.stream. This PR makes both files readable. If #125134 is merged first, please update those two lines with the new output; otherwise they will be updated in #125134.
…ous ranges, name the column in errors, more tests
The `mask` case of `05402_arrow_list_view` now goes through the contiguous shortcut, so add an out-of-order case that reaches the mask built by counting. Co-Authored-By: Claude Opus 5.5 <[email protected]>
NIKTONIKTO717
left a comment
There was a problem hiding this comment.
Thank you @JayPokale for such a wonderful PR!
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Object file sizes6 object files changed (+25.57 KiB total), 2 added.
721 more object files are built by the master warmup baseline only (it builds every object-file target, a pull request build only Compile time of recompiled translation units11 translation units recompiled, 36 s compile time in total, 6 of them have a recent master baseline. Translation units without a recent master baseline:
|
# Conflicts: # src/Processors/Formats/Impl/ArrowIPC/SchemaConverter.cpp # src/Processors/Formats/Impl/ArrowIPC/SchemaConverter.h # tests/queries/0_stateless/04345_native_arrow_ipc_skip_unsupported_column.sh
Closes: #125144
The native Arrow IPC reader now reads
ListViewandLargeListViewcolumns asArray, instead of failing withNative Arrow IPC reader does not support the Arrow type ListView.A list view describes each row by an offset and a size into its child, and unlike
Listthe ranges can come in any order and overlap.RecordBatchDecoder::readListViewAndChild:INCORRECT_DATA), and builds the array offsets from the sizes; a null row is an empty array, like a nullListrow;list_depth + 1, likeList;List(one after another), and otherwise copies the ranges withinsertRangeFrom;nulltype), likereadOffsetsAndChild.ListViewandLargeListVieware now ordinary type kinds:fieldToCHTypemaps them toArray,advanceFieldchecks their offsets and sizes buffers (one value per row each) when skipping or validating, andcollectDictionaryUsesdescends into them likeList. TheSkipLayout::ListViewplaceholder is removed;RunEndEncodedis still unsupported.Tests:
05402_arrow_list_view:ArrowandArrowStreamfiles written with pyarrow with out-of-order and overlapping ranges, a null row with a non-empty range, aLargeListViewof strings, a list view nested in a list view, a dictionary-encoded child, and a child of thenulltype, with inferred and explicit structures.04345_native_arrow_ipc_skip_unsupported_columnused list views as examples of a type that can be skipped but not read; requesting them now returns the arrays (RunEndEncodedis still rejected).The documentation of the Arrow format lists
LIST_VIEWas read intoArray.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
The
ArrowandArrowStreaminput formats can read theListViewandLargeListViewtypes asArray.Workflow [PR]
Sync PR [sync-upstream/pr/126014]
Version info
26.11.1.362-master(included in26.11and later)