sdf-jkl opened a new issue, #10619:
URL: https://github.com/apache/arrow-rs/issues/10619

   ### Is your feature request related to a problem or challenge?
   
   When `variant_get` finds a named field in a shredded object, that field must 
be a Struct containing the shredded `value`/`typed_value` representation.
   
   The current code returns `InvalidArgumentError` when it is not a Struct, but 
a TODO questions whether traversal should instead fall back to the encoded 
Variant value.
   
   This extraction point is a valid lazy-validation boundary: a present 
non-Struct field violates the physical shredding layout.
   
   ### Describe the solution you'd like
   
   Preserve `InvalidArgumentError`, replace the TODO with an explanation of the 
physical invariant, include the field name and actual type in the error, and 
add a malformed-layout regression test.
   
   ### Additional context
   
   - #9519
   - Stale implementation: #9598
   - Current TODO: 
https://github.com/apache/arrow-rs/blob/main/parquet-variant-compute/src/variant_get.rs#L148


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