comphead commented on code in PR #3467:
URL: https://github.com/apache/iceberg-rust/pull/3467#discussion_r4744266054
##########
crates/iceberg/src/arrow/reader/projection.rs:
##########
@@ -894,34 +888,35 @@ fn try_map_fields(
Ok(Fields::from(mapped))
}
-/// Rewrites file-side Arrow `FixedSizeList` hints to `List`.
+/// Rewrites file-side Arrow `FixedSizeList` and `ListView` hints to `List`,
and `LargeListView`
+/// hints to `LargeList`.
///
-/// parquet-rs picks its list reader from the embedded Arrow schema. Iceberg
has no
-/// fixed-size list type, so a `FixedSizeList` hint must become `List` before
the stream
-/// reader is built. That uses the 3-level LIST reader (no null-row padding, no
-/// `PromotePlan` conversion). Returns `None` when the schema has no
`FixedSizeList`.
-/// Unchanged fields are shared; nothing is allocated before the first change.
+/// parquet-rs picks its list reader from the embedded Arrow schema. Iceberg
has no fixed-size
+/// list or list view type, `RecordBatchTransformer` converts neither, and
+/// `arrow_schema_to_schema` can't convert a list view, so the hint must say
`List` before the
+/// stream reader is built. That uses the 3-level LIST reader (no null-row
padding). Returns
Review Comment:
Done in c79f3abd6. The first paragraph of the description now gives that
reason too, next to name mapping not descending into a list view, which is what
made a name-mapped read return NULL.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]