mapleFU commented on code in PR #36774:
URL: https://github.com/apache/arrow/pull/36774#discussion_r1269016632


##########
cpp/src/parquet/file_reader.cc:
##########
@@ -366,13 +366,19 @@ class SerializedFile : public ParquetFileReader::Contents 
{
         std::make_shared<::arrow::io::internal::ReadRangeCache>(source_, ctx, 
options);
     std::vector<::arrow::io::ReadRange> ranges;
     prebuffered_column_chunks_.clear();
+    int num_cols = file_metadata_->num_columns();
+    // a bitmap for buffered columns.
+    std::shared_ptr<Buffer> buffer_columns;
+    if (!row_groups.empty()) {

Review Comment:
   @pitrou hi pitrou, what do you think of this? If it's ok I can have a try
   Or we can run a benchmark first to check that is this can benefits our 
regression?



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to