Skip to content

fix(python): Only call unnest for objects implementing __arrow_c_array__ if a pyarrow.RecordBatch #23223

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mroeschke
Copy link
Contributor

closes #23068

Redo of #23069 based of the feedback of #23194, only calls unnest if the object is a pyarrow.RecordBatch

For context in cudf_polars, we'd like the ability to perform pl.from_arrow(cudf_object) that implements __arrow_c_array__

Copy link

codecov bot commented Jun 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.62%. Comparing base (f0ae4d3) to head (dc18a03).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #23223      +/-   ##
==========================================
+ Coverage   80.60%   80.62%   +0.01%     
==========================================
  Files        1639     1639              
  Lines      220008   220011       +3     
  Branches     2814     2815       +1     
==========================================
+ Hits       177347   177375      +28     
+ Misses      41994    41969      -25     
  Partials      667      667              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fix python Related to Python Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Object implementing __arrow_c_array__ is assumed to be struct type
1 participant