You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "abaybek (via GitHub)" <gi...@apache.org> on 2026/07/23 18:58:38 UTC

[PR] [Python][Parquet] Expose size statistics level in the Parquet writer [arrow]

abaybek opened a new pull request, #50621:
URL: https://github.com/apache/arrow/pull/50621

   ### Rationale for this change
   Add a `write_size_statistics` keyword to `pyarrow.parquet.write_table`, `ParquetWriter`, and the dataset write path. It exposes the C++ `parquet::WriterProperties::Builder::set_size_statistics_level` setter introduced in GH-40592, accepting "none", "columnchunk", or "pageandcolumnchunk" (None keeps the Arrow C++ default of "pageandcolumnchunk").
   
   Size statistics are written by default, and until now there was no way to disable or tune them from PyArrow. "none" turns them off entirely..
   
   ### What changes are included in this PR?
   Python/Cython client only — no C++ changes (the underlying setter already exists since Arrow 19.0.0).
   
   ### Are these changes tested?
   Yes, added a test cases to python/pyarrow/tests/parquet/test_basic.py. Also tested against legacy readers.
   
   ### Are there any user-facing changes?
   Yes, a new optional write_size_statistics keyword.
   


-- 
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


Re: [PR] [Python][Parquet] Expose size statistics level in the Parquet writer [arrow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #50621:
URL: https://github.com/apache/arrow/pull/50621#issuecomment-5062234511

   <!--
     Licensed to the Apache Software Foundation (ASF) under one
     or more contributor license agreements.  See the NOTICE file
     distributed with this work for additional information
     regarding copyright ownership.  The ASF licenses this file
     to you under the Apache License, Version 2.0 (the
     "License"); you may not use this file except in compliance
     with the License.  You may obtain a copy of the License at
   
       http://www.apache.org/licenses/LICENSE-2.0
   
     Unless required by applicable law or agreed to in writing,
     software distributed under the License is distributed on an
     "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
     KIND, either express or implied.  See the License for the
     specific language governing permissions and limitations
     under the License.
   -->
   
   Thanks for opening a pull request!
   
   **This pull request has been automatically converted to a draft because its title doesn't match Arrow's required format.**
   
   If this is not a [minor PR](https://github.com/apache/arrow/blob/main/CONTRIBUTING.md#Minor-Fixes). Could you open an issue for this pull request on GitHub? https://github.com/apache/arrow/issues/new/choose
   
   Opening GitHub issues ahead of time contributes to the [Openness](http://theapacheway.com/open/#:~:text=Openness%20allows%20new%20users%20the,must%20happen%20in%20the%20open.) of the Apache Arrow project.
   
   Then could you also rename the pull request title in the following format?
   
       GH-${GITHUB_ISSUE_ID}: [${COMPONENT}] ${SUMMARY}
   
   or
   
       MINOR: [${COMPONENT}] ${SUMMARY}
   
   **After updating the title, you can mark the pull request as ready for review.**
   
   See also:
   
     * [Other pull requests](https://github.com/apache/arrow/pulls/)
     * [Contribution Guidelines - Contributing Overview](https://arrow.apache.org/docs/developers/overview.html)
   


-- 
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


Re: [PR] GH-50619 [Python][Parquet] Expose size statistics level in the Parquet writer [arrow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #50621:
URL: https://github.com/apache/arrow/pull/50621#issuecomment-5062284350

   :warning: GitHub issue #50619 **has been automatically assigned in GitHub** to PR creator.


-- 
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