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

   # Which issue does this PR close?
   
   - Closes #8926 .
   
   Note that creating sch arrays was already possible with the builder API (see 
`test_fixed_size_binary_builder_with_zero_value_length`) but not directly with 
the Array API.
   
   # Rationale for this change
   
   Avoid panicking in `FixedSizeBinaryArray::try_new(0, ...)`
   
   # What changes are included in this PR?
   
   Special case for `size == 0` in `FixedSizeBinaryArray::try_new`.
   
   # Are these changes tested?
   
   Yes, additional constructor tests.
   
   # Are there any user-facing changes?
   
   Yes, no panics and the ability to directly create FSB arrays with 
zero-length items.
   


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