Skip to content

Commit

Permalink
Fix initialization of Proxy instance in fromFile and fromBytes.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevingurney committed Jan 14, 2025
1 parent 4510a11 commit 1f4fa23
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions matlab/src/matlab/+arrow/+io/+ipc/RecordBatchStreamReader.m
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@
function obj = fromBytes(bytes)
args = struct(Bytes=bytes, Type="Bytes");
proxyName = "arrow.io.ipc.proxy.RecordBatchStreamReader";
obj.Proxy = arrow.internal.proxy.create(proxyName, args);
proxy = arrow.internal.proxy.create(proxyName, args);
obj = arrow.io.ipc.RecordBatchStreamReader(proxy);
end

function obj = fromFile(filename)
args = struct(Filename=filename, Type="File");
proxyName = "arrow.io.ipc.proxy.RecordBatchStreamReader";
obj.Proxy = arrow.internal.proxy.create(proxyName, args);
proxy = arrow.internal.proxy.create(proxyName, args);
obj = arrow.io.ipc.RecordBatchStreamReader(proxy);
end
end

Expand Down

0 comments on commit 1f4fa23

Please sign in to comment.