This is an automated email from the ASF dual-hosted git repository.

gangwu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new 3695d3d16f GH-45212: [C++][Parquet] Fix uninitialized 
size_statistics_level property (#45213)
3695d3d16f is described below

commit 3695d3d16ff359ae955d70fe2843f5f8a4189501
Author: Gang Wu <[email protected]>
AuthorDate: Thu Jan 9 22:45:49 2025 +0800

    GH-45212: [C++][Parquet] Fix uninitialized size_statistics_level property 
(#45213)
    
    ### Rationale for this change
    
    The PR to introduce SizeStatistics has spanned several months, during which 
time WriterProperties::Builder(const WriterProperties& properties) was added.
    
    ### What changes are included in this PR?
    
    This PR fixes WriterProperties::Builder(const WriterProperties& properties) 
function to initialize size_statistics_level_.
    
    ### Are these changes tested?
    
    Pass CIs.
    
    ### Are there any user-facing changes?
    
    No.
    * GitHub Issue: #45212
    
    Authored-by: Gang Wu <[email protected]>
    Signed-off-by: Gang Wu <[email protected]>
---
 cpp/src/parquet/properties.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cpp/src/parquet/properties.h b/cpp/src/parquet/properties.h
index c942010396..edaf28cd92 100644
--- a/cpp/src/parquet/properties.h
+++ b/cpp/src/parquet/properties.h
@@ -271,6 +271,7 @@ class PARQUET_EXPORT WriterProperties {
           created_by_(properties.created_by()),
           store_decimal_as_integer_(properties.store_decimal_as_integer()),
           page_checksum_enabled_(properties.page_checksum_enabled()),
+          size_statistics_level_(properties.size_statistics_level()),
           sorting_columns_(properties.sorting_columns()),
           default_column_properties_(properties.default_column_properties()) {}
 

Reply via email to