Skip to content

Commit

Permalink
Implement write in terms of writeRecordBatch and writeTable
Browse files Browse the repository at this point in the history
  • Loading branch information
sgilmore10 committed Jun 18, 2024
1 parent a440597 commit 6e38be3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions matlab/src/matlab/+arrow/+io/+ipc/RecordBatchFileWriter.m
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,9 @@ function write(obj, tabularObj)
tabularObj(1, 1)
end
if isa(tabularObj, "arrow.tabular.RecordBatch")
args = struct(RecordBatchProxyID=tabularObj.Proxy.ID);
obj.Proxy.writeRecordBatch(args);
obj.writeRecordBatch(tabularObj);
elseif isa(tabularObj, "arrow.tabular.Table")
args = struct(TableProxyID=tabularObj.Proxy.ID);
obj.Proxy.writeTable(args);
obj.writeTable(tabularObj);
else
id = "arrow:matlab:ipc:write:InvalidType";
msg = "tabularObj input argument must be an instance of " + ...
Expand Down

0 comments on commit 6e38be3

Please sign in to comment.