tobixdev opened a new pull request, #18903:
URL: https://github.com/apache/datafusion/pull/18903

   ## Which issue does this PR close?
   
   - Closes https://github.com/apache/datafusion/issues/18870.
   
   We should open a follow-up issue that tracks re-use 
`FixedSizeBinaryArray::new_null` after upgrading arrow-rs.
   
   With this PR, we could backport it to #18843 if we wish.
   
   Alternatively, we could also wait for a fix by arrow-rs.
   
   ## Rationale for this change
   
   As we will have to wait for another arrow-rs update to get the fix for the 
issue https://github.com/apache/arrow-rs/pull/8901 , we have a temporaray fix 
that basically calls the same operations from DataFusion's code. Once the fix 
is in the arrow-rs codebase, we can re-use `FixedSizeBinaryArray::new_null`.
   
   ## What changes are included in this PR?
   
   - A test. (`assert_eq!(result.as_fixed_size_binary().values().len(), 10);` 
returned 0 before)
   - Directly allocate the values buffer in DataFusion.
   
   ## Are these changes tested?
   
   Yes
   
   ## Are there any user-facing changes?
   
   Yes, the buffer will now be allocated, zeroed, and set to the expected 
length. Same as in the arrow-rs fix. 


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