arrow icon indicating copy to clipboard operation
arrow copied to clipboard

GH-30915: [C++][Python] Add missing methods to `RecordBatch`

Open judahrand opened this issue 2 years ago • 13 comments

Rationale for this change

These methods are present on Table but missing on RecordBatch:

  • add_column
  • append_column
  • remove_column
  • set_column
  • drop_columns
  • rename_columns
  • cast

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

judahrand avatar Jan 08 '24 15:01 judahrand

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

github-actions[bot] avatar Jan 08 '24 15:01 github-actions[bot]

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

github-actions[bot] avatar Jan 08 '24 15:01 github-actions[bot]

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

github-actions[bot] avatar Jan 10 '24 09:01 github-actions[bot]

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

github-actions[bot] avatar Jan 10 '24 11:01 github-actions[bot]

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

github-actions[bot] avatar Jan 10 '24 11:01 github-actions[bot]

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

github-actions[bot] avatar Jan 10 '24 11:01 github-actions[bot]

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

github-actions[bot] avatar Jan 10 '24 11:01 github-actions[bot]

@jorisvandenbossche you're listed as 'Reporter' on #30559 - are you or someone else able to review this PR?

judahrand avatar Jan 11 '24 11:01 judahrand

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

github-actions[bot] avatar Feb 29 '24 13:02 github-actions[bot]

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

github-actions[bot] avatar Feb 29 '24 13:02 github-actions[bot]

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

github-actions[bot] avatar Feb 29 '24 13:02 github-actions[bot]

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

github-actions[bot] avatar Mar 04 '24 12:03 github-actions[bot]

@benibus @jorisvandenbossche I think that I've dealt with all the feedback on this one.

judahrand avatar Mar 04 '24 12:03 judahrand

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

github-actions[bot] avatar Mar 15 '24 14:03 github-actions[bot]

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.