You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "sgilmore10 (via GitHub)" <gi...@apache.org> on 2024/05/23 20:29:03 UTC
[I] [MATLAB] Add C Data Interface format import/export functionality for `arrow.tabular.RecordBatch` [arrow]
sgilmore10 opened a new issue, #41803:
URL: https://github.com/apache/arrow/issues/41803
### Describe the enhancement requested
Now that #41656 has been closed, we should add MATLAB APIs for importing/exporting `arrow.tabular.RecordBatch`es using the C Data Interface format.
The C Data Interface format import/export workflows would like this:
### Import into MATLAB
```matlab
cArray = arrow.c.Array
cSchema = arrow.c.Schema
.
.
.
% Pass cArray and cSchema to export APIs of another Arrow language bindings to fill in C struct details
.
.
.
% Import Arrow RecordBatch from pre-populated C Data interface format C structs
rb = arrow.tabular.RecordBatch.importFromC(cArray, cSchema);
```
### Export from MATLAB
```matlab
.
.
.
% Create C Data Interface format ArrowArray and ArrowSchema C structs using APIs of another Arrow language binding ...
.
.
.
rb = arrow.recordBatch(table(1:10)')).
% Export Arrow RecordBatch from MATLAB to C Data Interface format and fill in C struct details
rb.exportToC(cArrayAddress, cSchemaAddress)
.
.
.
% Import Arrow RecordBatch from pre-populated C Data Interface format C structs using APIs of another Arrow language binding
```
We can implement this functionality using the C Data Interface format C++ APIS defined in https://github.com/apache/arrow/blob/main/cpp/src/arrow/c/bridge.h.
### Component(s)
MATLAB
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [MATLAB] Add C Data Interface format import/export functionality for `arrow.tabular.RecordBatch` [arrow]
Posted by "sgilmore10 (via GitHub)" <gi...@apache.org>.
sgilmore10 closed issue #41803: [MATLAB] Add C Data Interface format import/export functionality for `arrow.tabular.RecordBatch`
URL: https://github.com/apache/arrow/issues/41803
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [MATLAB] Add C Data Interface format import/export functionality for `arrow.tabular.RecordBatch` [arrow]
Posted by "sgilmore10 (via GitHub)" <gi...@apache.org>.
sgilmore10 commented on issue #41803:
URL: https://github.com/apache/arrow/issues/41803#issuecomment-2135247774
Issue resolved by pull request 41817
#41817
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org