GH-40060: [C++][Python] Basic conversion of RecordBatch to Arrow Tensor - add support for different data types
What changes are included in this PR?
- Added support for
RecordBatcheswith fields of different type in the conversionRecordBatch→Tensor. - Added detail of the constraints to the
RecordBatch.to_tensor()docstrings, see https://github.com/apache/arrow/pull/40064#discussion_r1512307964.
Are these changes tested?
Yes.
Are there any user-facing changes?
No.
- GitHub Issue: #40060
:warning: GitHub issue #40060 has been automatically assigned in GitHub to PR creator.
@zeroshade would you mind reviewing this feature also?
@bkietz the only question left open is the float16 support. Currently this PR still goes through uint16_t but I would be happy to rethink and change in a follow-up, if possible, to unblock the null to nan support work.
After merging your PR, Conbench analyzed the 3 benchmarking runs that have been run so far on merge-commit 434f87274e8e9adab4f0434ae494f30dc955ca6e.
There were no benchmark performance regressions. 🎉
The full Conbench report has more details. It also includes information about 10 possible false positives for unstable benchmarks that are known to sometimes produce them.