Skip to content

Commit

Permalink
make uniuqe->shared explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
paleolimbot committed Oct 8, 2023
1 parent 839137e commit 3e3333d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cpp/src/arrow/dataset/file_parquet.cc
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,9 @@ Result<std::shared_ptr<parquet::arrow::FileReader>> ParquetFileFormat::GetReader
std::unique_ptr<parquet::arrow::FileReader> arrow_reader;
RETURN_NOT_OK(parquet::arrow::FileReader::Make(
options->pool, std::move(reader), std::move(arrow_properties), &arrow_reader));
return arrow_reader;

std::shared_ptr<parquet::arrow::FileReader> file_reader_shared(arrow_reader.release());
return file_reader_shared;
}

Future<std::shared_ptr<parquet::arrow::FileReader>> ParquetFileFormat::GetReaderAsync(
Expand Down

0 comments on commit 3e3333d

Please sign in to comment.