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

Arrow PyCapsule TypeError: __arrow_c_stream__() missing 1 required positional argument: 'requested_schema' #17921

Closed
2 tasks done
WillAyd opened this issue Jul 29, 2024 · 1 comment · Fixed by #17922
Closed
2 tasks done
Labels
bug Something isn't working needs triage Awaiting prioritization by a maintainer python Related to Python Polars

Comments

@WillAyd
Copy link

WillAyd commented Jul 29, 2024

Checks

  • I have checked that this issue has not already been reported.
  • I have confirmed this bug exists on the latest version of Polars.

Reproducible example

I noticed that the implementation of the PyArrow Capsule interface in #17676 makes the requested_schema argument required, although the PyCapsule interface has this default to None

https://arrow.apache.org/docs/dev/format/CDataInterface/PyCapsuleInterface.html#arrow_c_stream__

@kylebarron

Log output

No response

Issue description

Interface is inconsistent with what pandas and pyarrow have already implemented

Expected behavior

requested_schema argument should be optional

Installed versions

latest release

@WillAyd WillAyd added bug Something isn't working needs triage Awaiting prioritization by a maintainer python Related to Python Polars labels Jul 29, 2024
@kylebarron
Copy link
Contributor

Oops! See #17922

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage Awaiting prioritization by a maintainer python Related to Python Polars
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants