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

@Fokko Fokko commented Jul 26, 2026

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?

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

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

@wgtmac wgtmac 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

Fokko commented Jul 27, 2026

Copy link
Copy Markdown
Contributor Author

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:master Jul 27, 2026
5 checks passed
Sign up for free to 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