You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "romankarlstetter (via GitHub)" <gi...@apache.org> on 2025/01/23 10:17:28 UTC

Re: [PR] GH-43944: [C++][Parquet] Add support for arrow::ArrayStatistics: non zero-copy int based types [arrow]

romankarlstetter commented on code in PR #43945:
URL: https://github.com/apache/arrow/pull/43945#discussion_r1926722505


##########
cpp/src/parquet/arrow/reader.cc:
##########
@@ -485,8 +485,9 @@ class LeafReader : public ColumnReaderImpl {
         NextRowGroup();
       }
     }
-    RETURN_NOT_OK(
-        TransferColumnData(record_reader_.get(), field_, descr_, ctx_->pool, &out_));
+    RETURN_NOT_OK(TransferColumnData(record_reader_.get(),
+                                     input_->column_chunk_metadata(), field_, descr_,

Review Comment:
   The call to `input_->column_chunk_metadata()` fails here if the list of `row_groups` in `input_` is empty, because `input_` is not yet initialized properly at this point in that case
   
   Via `row_group_metadata()` -> `RowGroup(-1)`



-- 
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-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org