-
Notifications
You must be signed in to change notification settings - Fork 952
Avoid pylibcudf.interop.to_arrow
in DataFrame.to_polars
in cudf_polars
#19198
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
Avoid pylibcudf.interop.to_arrow
in DataFrame.to_polars
in cudf_polars
#19198
Conversation
@@ -40,6 +40,20 @@ def _create_polars_column_metadata( | |||
return plc.interop.ColumnMetadata(name=name, children_meta=children_meta) | |||
|
|||
|
|||
# This is also defined in pylibcudf.interop | |||
class _ObjectWithArrowMetadata: |
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.
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.
Yes, exactly. Without this you lose the underlying struct fields. This solution is fine for now while we sort out #18722.
@@ -40,6 +40,20 @@ def _create_polars_column_metadata( | |||
return plc.interop.ColumnMetadata(name=name, children_meta=children_meta) | |||
|
|||
|
|||
# This is also defined in pylibcudf.interop | |||
class _ObjectWithArrowMetadata: |
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.
Yes, exactly. Without this you lose the underlying struct fields. This solution is fine for now while we sort out #18722.
/merge |
Description
This PR and #18564 are the last PRs removing
pylibcudf.interop.to_arrow
incudf_polars
.Towards #18534
Checklist