-
Notifications
You must be signed in to change notification settings - Fork 85
Cannot convert the same OracleDataFrame to a PyArrow table twice #470
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
Comments
I believe this is a features/limitation of nanoarrow. I'll let @aosingh comment. |
The lifetime semantics is defined by Arrow C Data Interface and Arrow PyCapsule Interface. The following note is from the documentation:
In the example shown, pyarrow marks the release callback as NULL after invoking it during the first conversion and raises an error during the second. If twice conversion is a valid usecase, we will have to check how to do that. |
@cpcloud do you have a practical use case for converting twice? |
for converting an OracleDataFrame object to a foreign data frame object multiple times (#470).
I have pushed a patch that corrects this issue and have initated a build from which you can download pre-built development wheels once it completes. You can also build from source if you prefer. If you can test your scenario and confirm the patch works as expected, that would be appreciated! |
for converting an OracleDataFrame object to a foreign data frame object multiple times (#470).
This was included in python-oracledb 3.1.1 which was just released. |
Is it an error or a hang or a crash? An error.
What error(s) or behavior you are seeing?
No
The text was updated successfully, but these errors were encountered: