Skip to content

Commit

Permalink
Add error ID constant for arrow:io:ipc:EndOfStream.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevingurney committed Dec 18, 2024
1 parent 481a095 commit 9531e70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions matlab/src/cpp/arrow/matlab/error/error.h
Original file line number Diff line number Diff line change
Expand Up @@ -250,5 +250,6 @@ static const char* IPC_RECORD_BATCH_READER_OPEN_FAILED =
static const char* IPC_RECORD_BATCH_READ_INVALID_INDEX = "arrow:io:ipc:InvalidIndex";
static const char* IPC_RECORD_BATCH_READ_FAILED = "arrow:io:ipc:ReadFailed";
static const char* IPC_TABLE_READ_FAILED = "arrow:io:ipc:TableReadFailed";
static const char* IPC_END_OF_STREAM = "arrow:io:ipc:EndOfStream";

} // namespace arrow::matlab::error
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ void RecordBatchStreamReader::readRecordBatch(
// signalling the end of the stream.
if (!nextRecordBatch) {
context.error =
Error{"arrow:io:ipc:EndOfStream",
"Reached end of Arrow IPC Stream. No more record batches to read."};
Error{error::IPC_END_OF_STREAM,
"Reached end of Arrow IPC Stream. No more record batches to read."};
return;
}
auto record_batch_proxy = std::make_shared<RecordBatchProxy>(nextRecordBatch);
Expand Down

0 comments on commit 9531e70

Please sign in to comment.