Skip to content

Commit

Permalink
Update cpp/src/parquet/file_reader.cc
Browse files Browse the repository at this point in the history
replace mutable_data() with data() when checking bitmap in Buffer

Co-authored-by: Gang Wu <ustcwg@gmail.com>
  • Loading branch information
jp0317 and wgtmac authored Jul 19, 2023
1 parent 1651f40 commit 2c1c228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/parquet/file_reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class SerializedRowGroup : public RowGroupReader::Contents {
ComputeColumnChunkRange(file_metadata_, source_size_, row_group_ordinal_, i);
std::shared_ptr<ArrowInputStream> stream;
if (cached_source_ && prebuffered_column_chunks_bitmap_ != nullptr &&
::arrow::bit_util::GetBit(prebuffered_column_chunks_bitmap_->mutable_data(), i)) {
::arrow::bit_util::GetBit(prebuffered_column_chunks_bitmap_->data(), i)) {
// PARQUET-1698: if read coalescing is enabled, read from pre-buffered
// segments.
PARQUET_ASSIGN_OR_THROW(auto buffer, cached_source_->Read(col_range));
Expand Down

0 comments on commit 2c1c228

Please sign in to comment.