-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: __from_arrow__ doesn't accept pyarrow null arrays for numeric ma… #52223
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
Conversation
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.
Looks good. Just a merge conflict
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.
LGTM. Merge when ready @phofl
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.
small comments
else: | ||
# pyarrow.ChunkedArray | ||
chunks = array.chunks | ||
length = array.length | ||
|
||
if pyarrow.types.is_null(array.type): |
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.
I'd move this up before the isinstance checks
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.
I think the isinstance checks are necessary since the way we find length depends on the type of pyarrow array(regular array uses len, while chunkedarray needs length).
I could be missing something again, though.
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.
I assumed that array would have length as well, but that's not the case. So looks good
Looks like a merge conflict otherwise LGTM |
Thanks for the reviews all, going to merge this to unblock myself. |
I'd rather not create chains that we have to backport. If fixes aren't totally trivial we should probably hold off? |
Seems reasonable to me. |
…sked types
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.