Skip to content

Commit

Permalink
Use ChunkedArray to keep statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jul 11, 2024
1 parent 6c0b159 commit 30193df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/parquet/arrow/reader_internal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ Status TransferInt(RecordReader* reader,
}
auto array = std::make_shared<ArrayType<ArrowType>>(std::move(array_data));
array->SetStatistics(std::move(array_statistics));
*out = std::move(array);
*out = std::make_shared<ChunkedArray>(std::move(array));
return Status::OK();
}

Expand Down Expand Up @@ -421,7 +421,7 @@ Status TransferBool(RecordReader* reader,
}
auto array = std::make_shared<BooleanArray>(std::move(array_data));
array->SetStatistics(std::move(array_statistics));
*out = std::move(array);
*out = std::make_shared<ChunkedArray>(std::move(array));
return Status::OK();
}

Expand Down

0 comments on commit 30193df

Please sign in to comment.