From c531abd94045db71a8f8ef692e5c5a80cbcd118f Mon Sep 17 00:00:00 2001 From: Zhengguo Yang Date: Fri, 1 Dec 2023 11:06:13 +0800 Subject: [PATCH] [GLUTEN-3732][VL] Remove deprecated API used for `FileWriter::Open` (#3733) --- cpp/core/operators/writer/ArrowWriter.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/core/operators/writer/ArrowWriter.cc b/cpp/core/operators/writer/ArrowWriter.cc index 2a4db5c66f19..19bab6ddcba3 100644 --- a/cpp/core/operators/writer/ArrowWriter.cc +++ b/cpp/core/operators/writer/ArrowWriter.cc @@ -37,8 +37,8 @@ arrow::Status ArrowWriter::initWriter(arrow::Schema& schema) { // Create a writer std::shared_ptr 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(); }