Skip to content

Commit

Permalink
apacheGH-37952: [C++] Make unique->shared explicit to fix build failu…
Browse files Browse the repository at this point in the history
…re on at least one compiler (apache#38136)

### Rationale for this change

The [test-r-rstudio-r-base-4.1-opensuse153](https://github.com/ursacomputing/crossbow/runs/17162402631) nightly has been failing with a compile error for many days.

### What changes are included in this PR?

Made the unique->shared conversion explicit.

### Are these changes tested?

Yes (by existing tests)

### Are there any user-facing changes?

No.
* Closes: apache#37952

Authored-by: Dewey Dunnington <[email protected]>
Signed-off-by: Antoine Pitrou <[email protected]>
  • Loading branch information
paleolimbot authored and dgreiss committed Feb 17, 2024
1 parent f944ce0 commit 5b2068b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/arrow/dataset/file_parquet.cc
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ 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;
return std::move(arrow_reader);
}

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

0 comments on commit 5b2068b

Please sign in to comment.