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

when writing in batches, handle all na arrays properly #306

Merged
merged 4 commits into from
Nov 11, 2022

Conversation

changhiskhan
Copy link
Contributor

No description provided.

@changhiskhan changhiskhan requested a review from eddyxu November 9, 2022 23:28
offsets = native_arr.offsets
values = native_arr.values.to_numpy(zero_copy_only=False)
return pa.ListArray.from_arrays(
offsets, self._convert_field(f"{name}.elements", typ.value_type, values)
)
elif pa.types.is_struct(typ):
native_arr = pa.array(col)
if isinstance(native_arr, pa.NullArray):
Copy link
Contributor

Choose a reason for hiding this comment

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

Assuming this was a fix for the demo notebook?

Could you add a test please?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added

Copy link
Contributor

@eddyxu eddyxu left a comment

Choose a reason for hiding this comment

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

LGTM

@changhiskhan changhiskhan merged commit eb05e4f into main Nov 11, 2022
@changhiskhan changhiskhan deleted the changhiskhan/demo-fixes branch November 11, 2022 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants