Skip to content

Revert "GH-3574: Statistics.toParquetStatistics always set null_count (#3575)" - #3688

Merged
Fokko merged 1 commit into
apache:masterfrom
Fokko:fd-revert
Jul 27, 2026
Merged

Revert "GH-3574: Statistics.toParquetStatistics always set null_count (#3575)"#3688
Fokko merged 1 commit into
apache:masterfrom
Fokko:fd-revert

Conversation

@Fokko

Copy link
Copy Markdown
Contributor

This reverts commit 63aebcc.

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@FokkoFokko added this to the 1.18.0 milestone Jul 26, 2026

@kevinjqliukevinjqliu 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.

LGTM

The change is valid based on parquet-format, which recommends writing null_count even when it’s zero, but it doesn’t preserve backward compatibility and can cause problems for downstream consumers like Iceberg.

We should revert for now until we find a safer way to introduce this change.

@wgtmacwgtmac left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I agree we need to revert that PR to unblock the release. But I do think that fix is valid in essence.

@kevinjqliu

Copy link
Copy Markdown
Contributor

lets reopen #3574 to track this

@Fokko

Copy link
Copy Markdown
ContributorAuthor

I've re-opened the issue, and I agree @wgtmac, the change on its own makes sense, but currently we implicitly have either all the stats, or no stats at all. So we should evolve that contract 👍

@Fokko
Fokko merged commit 2c9fbb3 into apache:masterJul 27, 2026
5 checks passed
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.

3 participants

@Fokko@kevinjqliu@wgtmac