paleolimbot commented on code in PR #45459: URL: https://github.com/apache/arrow/pull/45459#discussion_r2008354319
########## cpp/src/parquet/column_writer.cc: ########## @@ -1227,10 +1239,14 @@ class TypedColumnWriterImpl : public ColumnWriterImpl, public TypedColumnWriter< // Will be null if not using dictionary, but that's ok current_dict_encoder_ = dynamic_cast<DictEncoder<DType>*>(current_encoder_.get()); - if (properties->statistics_enabled(descr_->path()) && - (SortOrder::UNKNOWN != descr_->sort_order())) { - page_statistics_ = MakeStatistics<DType>(descr_, allocator_); - chunk_statistics_ = MakeStatistics<DType>(descr_, allocator_); + if (properties->statistics_enabled(descr_->path())) { + if (SortOrder::UNKNOWN != descr_->sort_order()) { Review Comment: I added a comment here! -- 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