Skip to content

Commit 93ab8ea

Browse files
committed
Added error checking in case an error occurs
1 parent 94799fe commit 93ab8ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cpp/src/parquet/arrow/arrow_reader_writer_test.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4169,6 +4169,8 @@ void TryReadDataFile(const std::string& path,
41694169
if (reader_result.ok()) {
41704170
std::shared_ptr<::arrow::Table> table;
41714171
s = (*reader_result)->ReadTable(&table);
4172+
} else {
4173+
s = reader_result.status();
41724174
}
41734175

41744176
ASSERT_EQ(s.code(), expected_code)

0 commit comments

Comments
 (0)