-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
fix(python): raise if DF is input to context (with_columns, select, etc) #15598
fix(python): raise if DF is input to context (with_columns, select, etc) #15598
Conversation
nice - fancy adding a little test too? |
A test to verify that it errors? |
Yup, you can use the pytest.raises context manager |
well that was a good callout b/c there was a way that is snuck by that is now fixed. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #15598 +/- ##
==========================================
+ Coverage 81.14% 81.20% +0.06%
==========================================
Files 1362 1370 +8
Lines 174951 175696 +745
Branches 2533 2533
==========================================
+ Hits 141960 142677 +717
- Misses 32508 32543 +35
+ Partials 483 476 -7 ☔ View full report in Codecov by Sentry. |
Maybe this should be parsed as a struct column instead of raising? |
If they want a struct they can just
I was scratching my head on suggestions to include in the error message. I was thinking of "hey maybe you need a join or an hstack or to just refactor generally" but there are too many possibilities of what they're doing wrong that I just went with the short one that you see. |
Thanks for the PR, but after thinking on this for a bit, this should not raise at all. The existing behavior is correct. Please see the linked issue. |
addresses #15588