Skip to content
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

feat(dtypes): allow passing nullable kwarg to string parsed dtypes #10632

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

gforsyth
Copy link
Member

Description of changes

Noted in #10243, passing nullable to ibis.dtype when using a string name for
the dtype leads to an unhelpful error. Instead, we should just support this.

This adds support for 'primitive' dtype specifications -- there's no defined
behavior for how to specify nested nullable types with a single keyword
argument, but this should cover most cases.

Issues closed

xref #10243 but doesn't close it

Copy link
Member

@cpcloud cpcloud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@cpcloud cpcloud added this to the 10.0 milestone Dec 30, 2024
@cpcloud cpcloud added the bug Incorrect behavior inside of ibis label Dec 30, 2024
@github-actions github-actions bot added tests Issues or PRs related to tests datatypes Issues relating to ibis's datatypes (under `ibis.expr.datatypes`) labels Dec 30, 2024
@cpcloud
Copy link
Member

cpcloud commented Dec 30, 2024

Seems more like a new feature, but no big deal if you want to keep it as a bugfix.

@gforsyth gforsyth changed the title fix(dtypes): allow passing nullable kwarg to string parsed dtypes feat(dtypes): allow passing nullable kwarg to string parsed dtypes Dec 30, 2024
@gforsyth gforsyth merged commit 4583dee into ibis-project:main Dec 30, 2024
90 checks passed
@gforsyth gforsyth deleted the from_string_nullable branch December 30, 2024 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behavior inside of ibis datatypes Issues relating to ibis's datatypes (under `ibis.expr.datatypes`) tests Issues or PRs related to tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants