Commits


Alenka Frim authored and GitHub committed 3ba6d286caa
GH-40059: [C++][Python] Basic conversion of RecordBatch to Arrow Tensor (#40064) ### Rationale for this change There is no method currently in Arrow C++ to convert `Table` or `RecordBatch` to a `Tensor`. In https://github.com/apache/arrow/issues/40058 we are proposing to add the conversion and this PR starts with the basic implementation for `RecordBatch`. ### What changes are included in this PR? Basic conversion `RecordBatch` → `Tensor` is added together with Python bindings. The implementation details are: - One data type (all columns having for example an `int32` data type) support. - No missing values support (only `NaN`). - Column-major layout of the resulting `Tensor`. ### Are these changes tested? Yes. ### Are there any user-facing changes? No. * Closes: #40059 Lead-authored-by: AlenkaF <frim.alenka@gmail.com> Co-authored-by: Alenka Frim <AlenkaF@users.noreply.github.com> Co-authored-by: Benjamin Kietzman <bengilgit@gmail.com> Signed-off-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>