Michael-J-Ward opened a new pull request, #6320:
URL: https://github.com/apache/arrow-rs/pull/6320
Ref:
# Which issue does this PR close?
Closes #6318.
# Rationale for this change
`arrow-rs` already has the capability of handling RecordBatches with no
columns or data but non-zero row counts
https://github.com/apache/arrow-rs/pull/1552.
However, `from_pyarrow_bound` for `RecordBatch` does not currently take
advantage of it, which causes an error when running `select count(*)` from
pyarrow datasets in `datafusion-python`
https://github.com/apache/datafusion-python/issues/800.
# What changes are included in this PR?
This updates the `impl FromPyarrowBound` for `RecordBatch` to use
`try_new_with_options` instead of the default `try_new`.
# Are there any user-facing changes?
Yes, `from_pyarrow_bound` will now succeed for a RecordBatch with no columns
but a row-count set.
--
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]