cakeni opened a new pull request, #10635:
URL: https://github.com/apache/arrow-rs/pull/10635

   # Which issue does this PR close?
   
   - Closes #10615.
   
   # Rationale for this change
   
   `ShreddedSchemaBuilder` can already parse indexed Variant paths, and core 
Variant shredding supports lists, but schema construction currently panics when 
a path reaches an index. This prevents callers from describing list element 
schemas through the builder.
   
   # What changes are included in this PR?
   
   - Add a list node to the builder's intermediate schema tree.
   - Treat numeric indexes as references to the shared list element schema, 
including for nested lists.
   - Document the index behavior and add coverage for list-of-struct and 
nested-list schemas.
   - Build the existing list shredding test schema through 
`ShreddedSchemaBuilder`.
   
   # Are these changes tested?
   
   Yes. `cargo test -p parquet-variant-compute test_variant_schema_builder` 
passes (11 tests).
   
   # Are there any user-facing changes?
   
   Yes. Callers can now use indexed paths such as `items[0].id` when 
constructing shredding schemas. This is backward compatible.
   


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

Reply via email to