Skip to content

Commit

Permalink
use move in arrow file_writer.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
mapleFU committed May 22, 2024
1 parent 8faeb7a commit cc854c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/parquet/arrow/writer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -547,8 +547,8 @@ Status GetSchemaMetadata(const ::arrow::Schema& schema, ::arrow::MemoryPool* poo
// The serialized schema is not UTF-8, which is required for Thrift
std::string schema_as_string = serialized->ToString();
std::string schema_base64 = ::arrow::util::base64_encode(schema_as_string);
result->Append(kArrowSchemaKey, schema_base64);
*out = result;
result->Append(kArrowSchemaKey, std::move(schema_base64));
*out = std::move(result);
return Status::OK();
}

Expand Down

0 comments on commit cc854c6

Please sign in to comment.