Repository navigation
GH-37049: [MATLAB] Update feather Reader and Writer objects to work directly with arrow.tabular.RecordBatchs instead of MATLAB tables - #37052
Merged
Conversation
arrow.tabular.RecordBatch rather than MATLAB table.
Reader and Writer objects to work directly with arrow.tabular.RecordBatchs instead of MATLAB tablesReader and Writer objects to work directly with arrow.tabular.RecordBatchs instead of MATLAB tables
sgilmore10
approved these changes
Aug 7, 2023
sgilmore10
left a comment
Member
There was a problem hiding this comment.
No flags. This is definitely the right decision design-wise.
Member
Author
|
CI linting failures appear unrelated. |
Member
Author
|
+1 |
|
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rationale for this change
After thinking about how to re-implement
featherreadandfeatherwrite, we realized it would be better if theReaderandWriterclasses worked directly witharrow.tabular.RecordBatchs instead of MATLABtables.What changes are included in this PR?
readmethod ofarrow.internal.io.feather.Readerto return anarrow.tabular.RecordBatchrather than a MATLABtable.writemethod ofarrow.internal.io.feather.Writerto accept anarrow.tabular.RecordBatchrather than a MATLABtable.Are these changes tested?
Yes.
feather/tRoundTrip.mto reflect the changes to theReaderandWriterclasses.Are there any user-facing changes?
These are internal APIs.
ReaderandWriterobjects to work directly witharrow.tabular.RecordBatchs instead of MATLABtables #37049