Skip to content

Commit

Permalink
Use arrow result-returning variants FileWriter::Open API instead de…
Browse files Browse the repository at this point in the history
…precated ones.
  • Loading branch information
yangzhg committed Nov 15, 2023
1 parent 857872e commit b8e0d35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/core/operators/writer/ArrowWriter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ arrow::Status ArrowWriter::initWriter(arrow::Schema& schema) {
// Create a writer
std::shared_ptr<arrow::io::FileOutputStream> outfile;
ARROW_ASSIGN_OR_RAISE(outfile, arrow::io::FileOutputStream::Open(path_));
ARROW_RETURN_NOT_OK(
parquet::arrow::FileWriter::Open(schema, arrow::default_memory_pool(), outfile, props, arrowProps, &writer_));
ARROW_ASSIGN_OR_RAISE(
writer_, parquet::arrow::FileWriter::Open(schema, arrow::default_memory_pool(), outfile, props, arrowProps));
return arrow::Status::OK();
}

Expand Down

0 comments on commit b8e0d35

Please sign in to comment.