You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "the80srobot (via GitHub)" <gi...@apache.org> on 2025/02/25 19:29:00 UTC

[I] StructBuilder::apend_null should recursively append_null to children [arrow-rs]

the80srobot opened a new issue, #7192:
URL: https://github.com/apache/arrow-rs/issues/7192

   **Is your feature request related to a problem or challenge? Please describe what you are trying to do.**
   
   At the moment, it's impossible to generically `append_null` to a StructBuilder, because each nested column must also be appended to. Going through `field_builder` is not an option, because it requires knowing the type of the field ahead of time.
   
   **Describe the solution you'd like**
   
   Calling `append_null` on a StructBuilder should probably always `append_null` to all children with exactly n-1 slots. Alternatively, we could have a second function, called `append_nulls` or something similar.
   
   **Describe alternatives you've considered**
   
   If there was a way to generically iterate over the field builders, callers could implement it themselves, using a match on the type of the builder.
   
   


-- 
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: github-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org