GH-30915: [C++][Python] Add missing methods to `RecordBatch`
Rationale for this change
These methods are present on Table but missing on RecordBatch:
add_columnappend_columnremove_columnset_columndrop_columnsrename_columnscast
We also should probably accept a dict as input to pa.record_batch like we do for pa.table.
What changes are included in this PR?
Add the methods.
Are these changes tested?
Yes.
- Parent issue: https://github.com/apache/arrow/issues/36399
- Related: #30559
- GitHub Issue: #30915
- Closes: #40291
:warning: GitHub issue #30915 has been automatically assigned in GitHub to PR creator.
:warning: GitHub issue #30915 has been automatically assigned in GitHub to PR creator.
:warning: GitHub issue #30915 has been automatically assigned in GitHub to PR creator.
:warning: GitHub issue #30915 has been automatically assigned in GitHub to PR creator.
:warning: GitHub issue #30915 has been automatically assigned in GitHub to PR creator.
:warning: GitHub issue #30915 has been automatically assigned in GitHub to PR creator.
:warning: GitHub issue #30915 has been automatically assigned in GitHub to PR creator.
@jorisvandenbossche you're listed as 'Reporter' on #30559 - are you or someone else able to review this PR?
:warning: GitHub issue #30915 has been automatically assigned in GitHub to PR creator.
:warning: GitHub issue #30915 has been automatically assigned in GitHub to PR creator.
:warning: GitHub issue #30915 has been automatically assigned in GitHub to PR creator.
:warning: GitHub issue #30915 has been automatically assigned in GitHub to PR creator.
@benibus @jorisvandenbossche I think that I've dealt with all the feedback on this one.
:warning: GitHub issue #30915 has been automatically assigned in GitHub to PR creator.
After merging your PR, Conbench analyzed the 7 benchmarking runs that have been run so far on merge-commit 7f361fd80651010f3dc91ec6302f661a16892291.
There were no benchmark performance regressions. 🎉
The full Conbench report has more details. It also includes information about 25 possible false positives for unstable benchmarks that are known to sometimes produce them.