Repository navigation
fix: dtype-aware is_nan, median, skew; explode errors - #151
Merged
jonasdedden merged 2 commits intoNov 15, 2026
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
MarcoGorelli
approved these changes
Nov 13, 2026
MarcoGorelli
left a comment
Member
There was a problem hiding this comment.
thanks @jonasdedden
I've approved all these PRs, feel free to merge them all once merge conflicts are resolved
jonasdedden
force-pushed
the
fix/dtype-aware-errors
branch
from
November 15, 2026 14:12
25a4abb to
49af22c
Compare
jonasdedden
force-pushed
the
fix/dtype-aware-errors
branch
from
November 15, 2026 14:34
49af22c to
e54834d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uses the frame's schema (
DaftLazyFrame._native_dtype, plan-time only) where behaviour depends on the input dtype. AddsDaftExpr._with_callable_frame, the aggregation counterpart of_with_elementwise_frame.is_nanon integer columns returnsFalse(null for null), as in Polars. Daft'sis_nanonly accepts floats, so it raised before. Other non-float input still raises.medianon non-numeric input raisesInvalidOperationError("medianoperation not supported for non-numeric input type."), the same message as the other backends.skewof an empty or all-null column, which has theNulldtype that Daft rejects, is cast toFloat64first and returns null.explode: a non-list column raises the sameInvalidOperationErroras DuckDB/Ibis. Daft's collect-time "list length did not match" is translated to aShapeError. To stay within ruff's return-count limit,catch_daft_exceptionnow picks the error class first and returns once.Stacked on #148, which switches
is_nantoF.is_nan. On top of it: 6 more cases pass, there are no new failures, and 5 names are dropped fromrun_tests.py. The matchingdt.timestampcheck on non-temporal input went into #149, wheredt.timestampis implemented.Note
I used Claude (Opus 5.5) to help with these changes and this description.