pw42020 opened a new issue, #45972:
URL: https://github.com/apache/arrow/issues/45972

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   Hello, when trying to use the arrow ipc `RecordBatchFileWriter` and 
`RecordBatchFileReader` in MATLAB, I get an error when reading back in the file 
stating:
   
   ```shell
   Error in onemore (line 26)
   newBatch = reader.read();
   
   Error using libmexclass.proxy.Proxy.create (line 84)
   Not an Arrow file
   
   Error in arrow.internal.proxy.create (line 24)
       proxy = libmexclass.proxy.Proxy.create(name, args{:});
   
   Error in arrow.io.ipc.RecordBatchFileReader (line 37)
               obj.Proxy = arrow.internal.proxy.create(proxyName, args);
   
   Error in onemore (line 23)
   reader = arrow.io.ipc.RecordBatchFileReader(fname);
   ```
   
   ### Code to reproduce
   ```matlab
   % Create a MATLAB arrow.Table. 
   matlabTable = table(...
                   ["foo", "bar", "baz"]', ...
                   [datetime("today"), datetime("today") + 1, datetime("today") 
+ 2]', ...
                   [10, 20, 30]' ...
               );
   AT = arrow.table(matlabTable);
   
   % Write the MATLAB arrow.Table to the Arrow IPC File Format on disk. 
   recordBatch = arrow.recordBatch(AT);
   fname = fullfile(pwd, "data.arrow");
   writer = arrow.io.ipc.RecordBatchFileWriter(fname, recordBatch.Schema);
   writer.writeRecordBatch(recordBatch);
   
   % open record batch file reader
   reader = arrow.io.ipc.RecordBatchFileReader(fname);
   
   newBatch = reader.read(1);
   ```
   
   Similarly, when I attempt to read the ipc file in python, I also get the 
same error. However, if I make an ipc file in Python and then attempt to read 
in MATLAB, I can read succesfully. Has anyone run into this before?
   
   ### Component(s)
   
   Other


-- 
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-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to