mbutrovich commented on code in PR #3467:
URL: https://github.com/apache/iceberg-rust/pull/3467#discussion_r4743897931


##########
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:
   #3632 adds `ListView` and `LargeListView` arms to 
[`ArrowSchemaConverter::list`](https://github.com/apache/iceberg-rust/blob/f9eb46f90b48b626b482af5981b731d47481bfcc/crates/iceberg/src/arrow/schema.rs#L625-L634),
 so once it merges, `arrow_schema_to_schema` converts a list view and this 
reason no longer holds. `RecordBatchTransformer` still can't promote a list 
view, which is reason enough for the rewrite. Could the doc comment give only 
that reason, so it stays right whichever PR merges first? If #3632 merges 
first, the first paragraph of the PR description needs the same change.
   
   ```suggestion
   /// parquet-rs picks its list reader from the embedded Arrow schema. Iceberg 
has no fixed-size
   /// list or list view type, and `RecordBatchTransformer` converts neither, 
so the hint must say
   /// `List` before the stream reader is built. That uses the 3-level LIST 
reader (no null-row
   /// padding). Returns
   ```



-- 
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]

Reply via email to