Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add configuration option to StatisticsConverter to control interpretation of missing null counts in Parquet statistics #6485

Merged
merged 5 commits into from
Oct 1, 2024

Conversation

etseidl
Copy link
Contributor

@etseidl etseidl commented Sep 30, 2024

Which issue does this PR close?

Part of #6256.

Rationale for this change

In #6257 @alamb changes the behavior of the parquet writer to always write Some(0) when the null count is known to be zero. Part of #6257 allows users of StatisticsConverter to choose whether or not to treat missing null counts as 0.

What changes are included in this PR?

This PR consists of @alamb's changes to StatisticsConverter without the changes to writer behavior. By default no behavior is changed, but users can prepare for later changes to how the Statistics::null_count field is written.
See the conversation here for the rationale.

Are there any user-facing changes?

No.

@github-actions github-actions bot added the parquet Changes to the parquet crate label Sep 30, 2024
@etseidl
Copy link
Contributor Author

etseidl commented Sep 30, 2024

cc @alamb @Michael-J-Ward

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much @etseidl

@@ -2139,6 +2141,65 @@ async fn test_missing_statistics() {
.run();
}

#[test]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@alamb alamb merged commit 2d67c4c into apache:master Oct 1, 2024
16 checks passed
@etseidl etseidl deleted the null_counts_read_behavior branch October 1, 2024 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parquet Changes to the parquet crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants