Skip to content

GH-37049: [MATLAB] Update feather Reader and Writer objects to work directly with arrow.tabular.RecordBatchs instead of MATLAB tables - #37052

Merged
kevingurney merged 1 commit into
apache:mainfrom
mathworks:GH-37049
Aug 7, 2023

Conversation

@kevingurney

@kevingurney kevingurney commented Aug 7, 2023 •

Copy link
Copy Markdown
Member

Rationale for this change

After thinking about how to re-implement featherread and featherwrite, we realized it would be better if the Reader and Writer classes worked directly with arrow.tabular.RecordBatchs instead of MATLAB tables.

What changes are included in this PR?

  1. Updated read method of arrow.internal.io.feather.Reader to return an arrow.tabular.RecordBatch rather than a MATLAB table.
  2. Updated write method of arrow.internal.io.feather.Writer to accept an arrow.tabular.RecordBatch rather than a MATLAB table.

Are these changes tested?

Yes.

  1. Updated feather/tRoundTrip.m to reflect the changes to the Reader and Writer classes.

Are there any user-facing changes?

  1. No

These are internal APIs.

@kevingurney
kevingurney requested a review from kou as a code owner August 7, 2023 21:00
arrow.tabular.RecordBatch rather than MATLAB table.
@kevingurney kevingurney changed the title GH- 37049: [MATLAB] Update feather Reader and Writer objects to work directly with arrow.tabular.RecordBatchs instead of MATLAB tables GH-37049: [MATLAB] Update feather Reader and Writer objects to work directly with arrow.tabular.RecordBatchs instead of MATLAB tables Aug 7, 2023

@sgilmore10 sgilmore10 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No flags. This is definitely the right decision design-wise.

@kevingurney

Copy link
Copy Markdown
Member Author

CI linting failures appear unrelated.

@kevingurney

Copy link
Copy Markdown
Member Author

+1

@conbench-apache-arrow

Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 5 benchmarking runs that have been run so far on merge-commit feb10f3.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about possible false positives for unstable benchmarks that are known to sometimes produce them.

loicalleyne pushed a commit to loicalleyne/arrow that referenced this pull request Nov 13, 2023
… to work directly with `arrow.tabular.RecordBatch`s instead of MATLAB `table`s (apache#37052)

### Rationale for this change

After thinking about how to re-implement `featherread` and `featherwrite`, we realized it would be better if the `Reader` and `Writer` classes worked directly with `arrow.tabular.RecordBatch`s instead of MATLAB `table`s. 

### What changes are included in this PR?

1. Updated `read` method of `arrow.internal.io.feather.Reader` to return an `arrow.tabular.RecordBatch` rather than a MATLAB `table`.
2. Updated `write` method of `arrow.internal.io.feather.Writer` to accept an `arrow.tabular.RecordBatch` rather than a MATLAB `table`.

### Are these changes tested?

Yes.

1. Updated `feather/tRoundTrip.m` to reflect the changes to the `Reader` and `Writer` classes.

### Are there any user-facing changes?

1. No

These are internal APIs.
* Closes: apache#37049

Authored-by: Kevin Gurney <kgurney@mathworks.com>
Signed-off-by: Kevin Gurney <kgurney@mathworks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[MATLAB] Update feather Reader and Writer objects to work directly with arrow.tabular.RecordBatchs instead of MATLAB tables

2 participants