Repository navigation
fix: Allow float('nan') as value in join for duckdb - #3555
Merged
Merged
Conversation
MarcoGorelli
approved these changes
May 4, 2026
Comment on lines
+310
to
+313
| # Use `==` to preserve the polars semantic of `null != null` in joins, | ||
| # and additionally match `NaN = NaN` since `==` in DuckDB treats `NaN` | ||
| # like SQL `NULL` (see https://github.com/narwhals-dev/narwhals/issues/3554). | ||
| # `isnan` is safe to apply as it returns `false` for non-float columns. |
|
This change may have broken duckdb joins for non-numeric columns. At least I'm getting: bubbling up from duckdb (1.5.2) now when trying to join two duckdb LazyFrames using a string column. |
Member
Author
|
Hey @jiemakel - thanks for reporting! I will address this today. @MarcoGorelli I would consider yanking 2.21.0 due to this regression and releasing a patched/minor version |
Member
|
thanks for the report! i'll make a quick patch release, not sure this is critical enough to warrant yanking 2.21 |
MarcoGorelli
added a commit
to MarcoGorelli/narwhals
that referenced
this pull request
May 16, 2026
…ls-dev#3555)" This reverts commit 0d7f352.
MarcoGorelli
added a commit
to MarcoGorelli/narwhals
that referenced
this pull request
May 16, 2026
…ls-dev#3555)" This reverts commit 0d7f352.
Member
Author
|
I think it might be worth yanking for a regression such as this one. On the cons, between this PR and the patch, we shipped the one to drop support for python 3.9 |
Member
|
i'd suggest only yanking releases for security issues, or for "silent but deadly" bugs, here it gives a loud exception |
dangotbanned
added a commit
that referenced
this pull request
May 19, 2026
commit 9d015e2031acd5e10404da72a7d698c632446c49 Author: Marco Edward Gorelli <[email protected]> Date: Sat May 16 09:51:39 2026 +0100 release: Bump version to 2.21.2 (#3630) commit 8674e44f657110b45aedffb8c1343d5b0505bb01 Author: Marco Edward Gorelli <[email protected]> Date: Sat May 16 09:37:56 2026 +0100 release: Bump version to 2.21.1 (#3628) commit 739dc579adfd38a75764d6d2c09ed42b0f2e887a Author: Marco Edward Gorelli <[email protected]> Date: Sat May 16 09:35:33 2026 +0100 ci: remove `downstream_tests_slow` (#3629) commit 1f36279bb07203628ddd18a691cf98d4c78780d3 Author: Marco Edward Gorelli <[email protected]> Date: Sat May 16 09:17:10 2026 +0100 Revert "fix: Allow `float('nan')` as value in join for duckdb (#3555)" (#3627) This reverts commit 0d7f352. commit 1e50d020e3ca5e5c5dfe3486e53190e87c60b66c Author: Pedro <[email protected]> Date: Fri May 15 13:05:01 2026 +0200 [Enh]: Add the negation unary operator for expressions and series (#3625) negation unary operator for expressions and series commit 37ea7953f6b455736bf6ae353ca257f468b3b083 Author: Francesco Bruzzesi <[email protected]> Date: Wed May 13 10:38:42 2026 +0200 ci: Unpin "temporary" CI pins (#3618) * ci: Unpin 'temporary' CI pins * rollback formulaic and pointblank commit 4ff3a1f545924e5e38e76c4d8a71de2010a2f4d6 Author: Francesco Bruzzesi <[email protected]> Date: Tue May 12 19:11:11 2026 +0200 chore: Prepare for future pandas inplace deprecation (#3616)
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.

Description
It does not fully solve the issue but:
What type of PR is this? (check all applicable)
Related issues
joinonfloat("nan")behaves differently #3554Checklist