Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
eeroel committed Oct 3, 2023
1 parent d14ffe8 commit b36912e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cpp/src/arrow/dataset/file_parquet.cc
Original file line number Diff line number Diff line change
Expand Up @@ -483,17 +483,17 @@ Future<std::shared_ptr<parquet::arrow::FileReader>> ParquetFileFormat::GetReader
// TODO(ARROW-12259): workaround since we have Future<(move-only type)>

auto path = source.path();
auto reader_fut = input_fut.Then(
[=](const std::shared_ptr<arrow::io::RandomAccessFile>&) mutable
-> Result<std::unique_ptr<parquet::ParquetFileReader>> {
auto reader_fut =
input_fut.Then([=](const std::shared_ptr<arrow::io::RandomAccessFile>&) mutable
-> Result<std::unique_ptr<parquet::ParquetFileReader>> {
ARROW_ASSIGN_OR_RAISE(std::shared_ptr<arrow::io::RandomAccessFile> input,
input_fut.MoveResult());
auto rfut = parquet::ParquetFileReader::OpenAsync(std::move(input), std::move(properties), metadata);
ARROW_ASSIGN_OR_RAISE(auto reader,
rfut.MoveResult());
auto rfut = parquet::ParquetFileReader::OpenAsync(
std::move(input), std::move(properties), metadata);
ARROW_ASSIGN_OR_RAISE(auto reader, rfut.MoveResult());
return reader;
});

auto self = checked_pointer_cast<const ParquetFileFormat>(shared_from_this());
return reader_fut.Then(
[=](const std::unique_ptr<parquet::ParquetFileReader>&) mutable
Expand Down

0 comments on commit b36912e

Please sign in to comment.