Skip to content

fix: sort NaN values with nulls in order_by - #816

Open
santhreal wants to merge 1 commit into
wireservice:masterfrom
santhreal:fix/order-by-nan
Open

fix: sort NaN values with nulls in order_by#816
santhreal wants to merge 1 commit into
wireservice:masterfrom
santhreal:fix/order-by-nan

Conversation

@santhreal

@santhreal santhreal commented Jul 18, 2026

Copy link
Copy Markdown

Table.order_by hits InvalidOperation when Number column Decimal NaN. This PR fixes the regression with a focused test covering the case.

Decimal NaN is unordered and raised InvalidOperation during sorted().
null_handler now maps NaN to NullOrder, and order_by uses it for keys.
@santhreal santhreal closed this Jul 28, 2026
@jpmckinney jpmckinney reopened this Jul 29, 2026
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