diff --git a/matlab/src/matlab/+arrow/+io/+ipc/RecordBatchWriter.m b/matlab/src/matlab/+arrow/+io/+ipc/RecordBatchWriter.m index 68fb1467fbec6..a662392cc6f47 100644 --- a/matlab/src/matlab/+arrow/+io/+ipc/RecordBatchWriter.m +++ b/matlab/src/matlab/+arrow/+io/+ipc/RecordBatchWriter.m @@ -60,7 +60,7 @@ function write(obj, tabularObj) elseif isa(tabularObj, "arrow.tabular.Table") obj.writeTable(tabularObj); else - id = "arrow:matlab:io:ipc:write:InvalidType"; + id = "arrow:io:ipc:write:InvalidType"; msg = "Input must be an instance of " + ... "either arrow.tabular.RecordBatch or arrow.tabular.Table."; error(id, msg); diff --git a/matlab/test/arrow/io/ipc/tRecordBatchWriter.m b/matlab/test/arrow/io/ipc/tRecordBatchWriter.m index d1544a97f0415..55802e31f885d 100644 --- a/matlab/test/arrow/io/ipc/tRecordBatchWriter.m +++ b/matlab/test/arrow/io/ipc/tRecordBatchWriter.m @@ -111,7 +111,7 @@ function writeInvalidType(testCase, WriterConstructor) schema = arrow.schema(arrow.field("A", arrow.float64())); writer = WriterConstructor(fname, schema); fcn = @() writer.write(schema); - testCase.verifyError(fcn, "arrow:matlab:ipc:write:InvalidType"); + testCase.verifyError(fcn, "arrow:io:ipc:write:InvalidType"); end function writeRecordBatchInvalidSchema(testCase, WriterConstructor)