Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

PARQUET-2249: Add IEEE-754 total order and nan count for floating types#3393

Open
wgtmac wants to merge 1 commit intoapache:masterapache/parquet-java:masterfrom
wgtmac:PARQUET-2249wgtmac/parquet-mr:PARQUET-2249Copy head branch name to clipboard
Open

PARQUET-2249: Add IEEE-754 total order and nan count for floating types#3393
wgtmac wants to merge 1 commit intoapache:masterapache/parquet-java:masterfrom
wgtmac:PARQUET-2249wgtmac/parquet-mr:PARQUET-2249Copy head branch name to clipboard

Conversation

@wgtmac
Copy link
Member

@wgtmac wgtmac commented Feb 12, 2026

Rationale for this change

PoC implementation for the spec change: apache/parquet-format#514

What changes are included in this PR?

  • Added a new ColumnOrder for IEEE 754 total order.
  • Added comparators for Float, Double and Float16.
  • Added nan_count to statistics and column index for floating types.
  • Added predicate pushdown support for statistics and column index filtering.

Are these changes tested?

Added various test cases for both new metadata and filtering.

Are there any user-facing changes?

Yes, users can now set the new column order but by default it is not used.

Closes #406

@wgtmac wgtmac force-pushed the PARQUET-2249 branch 2 times, most recently from c01b3f3 to 4b7e86b Compare March 6, 2026 15:27
Copy link
Contributor

@shangxinli shangxinli left a comment

Choose a reason for hiding this comment

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

Thanks Gang for picking this up and driving it forward!

+1 on the approach. This combined solution addresses both the ordering ambiguity and the NaN pollution concern pragmatically. Looking forward to seeing the arrow-cpp PoC as well.

mergeStatisticsMinMax(stats);
markAsNotEmpty();
}
if (isNanCountSet() && stats.isNanCountSet()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor: should we also validate that both stats have the same column order before merging? Merging IEEE 754 stats with TYPE_DEFINED_ORDER stats could produce incorrect min/max since NaN handling differs. Though type.equals() on line 408 may already cover this if column order is part of type equality.

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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.