Repository navigation
fix: keep duplicate rows in vertical concat; Decimal/Binary dtypes, unique without order_by, column-name errors, sum_horizontal of nulls, tuple literals - #150
Merged
jonasdedden merged 3 commits intoNov 15, 2026
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
MarcoGorelli
approved these changes
Nov 13, 2026
jonasdedden
force-pushed
the
fix/concat-dtypes-unique-errors
branch
from
November 15, 2026 14:14
da64a86 to
b98a242
Compare
…s, unique without order_by, column-name errors, sum_horizontal of nulls, tuple literals
The previous floor (0.5.18) was stale: main already needs 0.7.13 (median, percentile, concat_ws, struct literals) and the windowed first/last and join_asof(strategy='nearest') in narwhals-dev#149 need 0.7.15.
jonasdedden
force-pushed
the
fix/concat-dtypes-unique-errors
branch
from
November 15, 2026 14:29
b98a242 to
70a8d24
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.
A batch of small fixes, mostly to frame-level behaviour.
concat(how="vertical")dropped duplicate rows. Daft'sDataFrame.unionis a set union, so stacking frames with equal rows silently lost data. It now usesconcat. In the test suite this only showed up as a row-order mismatch intest_concat_vertical.Unknown: onlydecimal128(1, 1)was mapped. Decimals now keep their precision and scale.unique(keep="any")withoutorder_byfailed, becauserow_numberneeds an ordered window. It now usesDataFrame.distinct(*subset). Missingsubsetcolumns are checked up front, as in DuckDB.ColumnNotFoundError.from_missing_and_available_column_names, with the name parsed from Daft'sColumn col(x) not found. Duplicate output names inselect/renameraiseDuplicateErrorup front. Daft accepts them, and they used to fail only at collect time inside pyarrow.sum_horizontalreturned null when every input was null; Polars returns 0. The fallback zero isUInt8, so the sum keeps its dtype (e.g.Float32).litof a tuple became a struct in Daft and is now a list, as in Polars.0.5.18to0.7.15. Runningrun_tests.pyagainst older Daft releases showed the old floor was stale:mainalready needs 0.7.13:F.median/F.percentile/F.concat_wsland in 0.7.7–0.7.10, andtest_struct_with_literalspanics before 0.7.13.stddev(ddof=)(used since fix: use Daft's nativeddofforstd/var, fixis_nanand nullwhenpredicates #148) needs 0.7.5.first/lastandjoin_asof(strategy="nearest")in feat: Implementdt.{replace,convert}_time_zone,dt.timestamp,join_asof, windowedfirst/last; fixoverand null edge cases #149 need 0.7.15.uv.lockis gitignored, so onlypyproject.tomlchanges.Rebased onto current
main. 24 more cases pass, there are no new failures, and 14 names are dropped fromrun_tests.py.Note
I used Claude (Opus 5.5) to help with these changes and this description.