wlhjason opened a new pull request, #47843:
URL: https://github.com/apache/arrow/pull/47843

   ### Rationale for this change
   
   RecordBatch::FromStructArray produced an invalid RecordBatch when called on 
a struct array that has been sliced with offset = 0 and length < full_length.
   
   ### What changes are included in this PR?
   
   Always call StructArray::Flatten to ensure that any non-trivial slicing on 
the struct array is correctly pushed into the child arrays.
   
   ### Are these changes tested?
   
   Yes, via a new unit test.
   
   ### Are there any user-facing changes?
   
   **This PR contains a "Critical Fix".** This PR fixes a bug that caused 
invalid data to be produced.


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