Skip to content

Commit afe13a4

Browse files
fenfeng9kou
andauthored
Update cpp/examples/arrow/parquet_read_write.cc
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
1 parent b8cff04 commit afe13a4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cpp/examples/arrow/parquet_read_write.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ arrow::Status ReadFullFile(std::string path_to_file) {
3737
ARROW_ASSIGN_OR_RAISE(arrow_reader, parquet::arrow::OpenFile(input, pool));
3838

3939
// Read entire file as a single Arrow table
40-
ARROW_RETURN_NOT_OK(arrow_reader->ReadTable().status());
40+
std::shared_ptr<arrow::Table> table;
41+
ARROW_ASSIGN_OR_RAISE(table, arrow_reader->ReadTable());
4142
return arrow::Status::OK();
4243
}
4344

0 commit comments

Comments
 (0)