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

   # Which issue does this PR close?
   
   - N/A
   
   # Rationale for this change
   
   If `PrimitiveArray::into_builder` fails to convert the array into the 
builder, we are supposed to return the input array unchanged. The previous 
implementation rebuilt the array with `T::DATA_TYPE`, which doesn't preserve 
type parameters (like the scale/precision of a decimal, or the timezone of a 
timestamp).
   
   # What changes are included in this PR?
   
   * Fix bug
   * Add unit test
   
   # Are these changes tested?
   
   Yes; existing tests pass, new test added.
   
   # Are there any user-facing changes?
   
   No.
   


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