Skip to content

GH-3133: Fix SizeStatistics to handle omitted histogram - #3134

Merged
wgtmac merged 1 commit into
apache:masterfrom
wgtmac:fix_omitted_stats
Jan 21, 2025
Merged

GH-3133: Fix SizeStatistics to handle omitted histogram#3134
wgtmac merged 1 commit into
apache:masterfrom
wgtmac:fix_omitted_stats

Conversation

@wgtmac

Copy link
Copy Markdown
Member

Rationale for this change

If SizeStatistics has omitted level histogram, creating an SizeStatistics will result in a null object which leads to NullPointerException when calling getter or copy methods.

What changes are included in this PR?

Use a zero-length list for omitted histogram.

Are these changes tested?

Yes.

Are there any user-facing changes?

No.

Closes#3133

@wgtmac

Copy link
Copy Markdown
MemberAuthor

@gszadovszky I've created this to include the fix only. Please take a look. Thanks!

@gszadovszkygszadovszky left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks, @wgtmac!

@wgtmac

Copy link
Copy Markdown
MemberAuthor

Thank you for the quick review! @gszadovszky

@wgtmac
wgtmac merged commit d5f86d7 into apache:masterJan 21, 2025
wgtmac added a commit to wgtmac/parquet-mr that referenced this pull request Jan 21, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix SizeStatistics to handle omitted histogram

2 participants

@wgtmac@gszadovszky