arrow icon indicating copy to clipboard operation
arrow copied to clipboard

GH-40060: [C++][Python] Basic conversion of RecordBatch to Arrow Tensor - add support for different data types

Open AlenkaF opened this issue 2 years ago • 2 comments

What changes are included in this PR?

  • Added support for RecordBatches with fields of different type in the conversion RecordBatch → 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

AlenkaF avatar Mar 05 '24 09:03 AlenkaF

:warning: GitHub issue #40060 has been automatically assigned in GitHub to PR creator.

github-actions[bot] avatar Mar 05 '24 09:03 github-actions[bot]

@zeroshade would you mind reviewing this feature also?

AlenkaF avatar Mar 06 '24 12:03 AlenkaF

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

AlenkaF avatar Mar 26 '24 05:03 AlenkaF

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.