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

   # Which issue does this PR close?
   
   - Closes https://github.com/apache/arrow-rs/issues/9394
   
   # Rationale for this change
   
   PR https://github.com/apache/arrow-rs/pull/8944 introduced a regression that 
0-column record batch streams could not longer be decoded.
   
   # What changes are included in this PR?
   
   - Construct `RecordBatch` with `try_new_with_options` using the `len` of the 
`ArrayData`, instead of letting it try to implicitly determine `len` by looking 
at the first column (this is what `try_new` does).
   - Slight refactor and reduction of code duplication of the existing 
`test_stream_round_trip_[import/export]` tests
   - Introduction of a new `test_stream_round_trip_no_columns` test 
   
   # Are these changes tested?
   
   Yes, both export and import are tested in 
`test_stream_round_trip_no_columns`.
   
   # Are there any user-facing changes?
   
   0-column record batch streams should be decodable now.


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