Skip to content

Commit

Permalink
GH-45212: [C++][Parquet] Fix uninitialized size_statistics_level prop…
Browse files Browse the repository at this point in the history
…erty (#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]>
  • Loading branch information
wgtmac authored and amoeba committed Jan 9, 2025
1 parent ffea469 commit 35d9c15
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cpp/src/parquet/properties.h
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {}

Expand Down

0 comments on commit 35d9c15

Please sign in to comment.