-
Notifications
You must be signed in to change notification settings - Fork 185
fix: unify ColumnNotFound for duckdb and pyspark
#2493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
MarcoGorelli
merged 65 commits into
narwhals-dev:main
from
EdAbati:unify-column-not-found-error
Jul 16, 2025
Merged
Changes from all commits
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
6f7a574
unify ColumnNotFound
EdAbati 8fe45e6
revert
EdAbati 45f09e0
Merge branch 'main' into unify-column-not-found-error
EdAbati 6d58bc2
try except during select
EdAbati be834b3
catch correct exception
EdAbati 19d6e24
coverage
EdAbati f0a9821
Merge branch 'main' into unify-column-not-found-error
EdAbati c1cabd1
Merge remote-tracking branch 'upstream/main' into unify-column-not-foβ¦
EdAbati 917d073
separate lazy and eager tests
EdAbati 5d2972d
coverage
EdAbati 4080101
cleanup exception
EdAbati 8442596
use constructor_id
EdAbati 937a123
what is going on in pyspark connect?
EdAbati 0544f30
ignore pyspark connect
EdAbati f41c037
Merge branch 'main' into unify-column-not-found-error
EdAbati bb17703
Merge branch 'main' into unify-column-not-found-error
EdAbati df18f34
Merge branch 'main' into unify-column-not-found-error
EdAbati b518a5a
added missing column tests
EdAbati bb7254f
move to drop test
EdAbati 823d356
fix msg regex
EdAbati 5647f52
update with columns
EdAbati 1cb3204
update filter
EdAbati 901bdf7
catch more precise error
EdAbati 9cc6a3e
Merge branch 'main' into unify-column-not-found-error
EdAbati 5432521
remove redundant test
EdAbati f51bb19
Merge remote-tracking branch 'upstream/main' into unify-column-not-foβ¦
EdAbati d5f51bb
catch duckdb exception func
EdAbati b9b0cbf
Merge remote-tracking branch 'upstream/main' into unify-column-not-foβ¦
EdAbati 048b130
Merge remote-tracking branch 'upstream/main' into unify-column-not-foβ¦
EdAbati c9e3061
fix aggregate
EdAbati 1b77d21
ignore ibis
EdAbati 40d9abe
test aggregate in select
EdAbati 0841c6a
catch_pyspark_column_not_found_exception
EdAbati 29441ef
change signature
EdAbati 975ef48
testing if connect has the same error?
EdAbati eae724d
coverage happy
EdAbati 661655b
fix spark connect
EdAbati a2b2889
catch pyspark connect at collect
EdAbati c858861
fixes
EdAbati 7601ef1
fix regex
EdAbati 977738f
Merge remote-tracking branch 'upstream/main' into unify-column-not-foβ¦
EdAbati 49c4806
coverage happier
EdAbati 76b209d
Merge remote-tracking branch 'upstream/main' into unify-column-not-foβ¦
EdAbati 6e23961
Merge branch 'main' into unify-column-not-found-error
EdAbati dd7a757
Merge remote-tracking branch 'upstream/main' into unify-column-not-foβ¦
EdAbati cce992b
Merge remote-tracking branch 'upstream/main' into unify-column-not-foβ¦
EdAbati 67baf81
fix drop test
EdAbati 5d1cc71
Merge remote-tracking branch 'upstream/main' into unify-column-not-foβ¦
EdAbati be7240f
restore from_available_column_names
EdAbati 53021e8
Merge branch 'main' into unify-column-not-found-error
EdAbati fef9cb3
Merge remote-tracking branch 'upstream/main' into unify-column-not-foβ¦
EdAbati 03cdad2
Merge branch 'main' into unify-column-not-found-error
EdAbati 7c898e1
Merge remote-tracking branch 'upstream/main' into unify-column-not-foβ¦
EdAbati 5c7e114
remove constructor_lazy
EdAbati 311ed35
Merge branch 'main' into unify-column-not-found-error
MarcoGorelli aa20974
remove if for only polars
EdAbati f994666
Merge branch 'main' into unify-column-not-found-error
EdAbati 592ed50
try removing pyspark[connect] from with_columns_missing_column xfails
EdAbati 2240ac0
fix comment
EdAbati c942c57
fix pyspark[connect] test
EdAbati 710119d
use maybe_collect in more places
EdAbati 1e1edc1
fix comment
EdAbati b36c866
make coverage happy
EdAbati 00d9cc4
make coverage really happy?
EdAbati a8ca283
Merge branch 'main' into unify-column-not-found-error
EdAbati File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use
parse_columns_to_dropand therefore raise ourColumnNotFoundError.from_missing_and_available_column_names(missing_columns=missing_columns, available_columns=cols)for every backend