mapleFU commented on code in PR #36649: URL: https://github.com/apache/arrow/pull/36649#discussion_r1267517060
########## cpp/src/parquet/file_reader.cc: ########## @@ -366,9 +367,13 @@ class SerializedFile : public ParquetFileReader::Contents { std::vector<::arrow::io::ReadRange> ranges; prebuffered_column_chunks_.clear(); for (int row : row_groups) { - std::unordered_set<int>& prebuffered = prebuffered_column_chunks_[row]; + std::shared_ptr<Buffer>& col_bitmap = prebuffered_column_chunks_[row]; + int num_cols = file_metadata_->num_columns(); + PARQUET_THROW_NOT_OK( + AllocateBitmap(num_cols, properties_.memory_pool()).Value(&col_bitmap)); + memset(col_bitmap->mutable_data(), 0, col_bitmap->size()); Review Comment: nit: Would you mind use `AllocateEmptyBitmap` instead? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org