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

fix(python/adbc_driver_manager): return 'real' reader in fetch_record_batch #1530

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

lidavidm
Copy link
Member

@lidavidm lidavidm commented Feb 8, 2024

We wrap RecordBatchReader to try to provide extra error metadata from ADBC when using this API. But PyArrow may try to extract the underlying C++ arrow::RecordBatch pointer from the reader, which won't exist in our wrapped reader. For the public API, return the unwrapped reader instead.

Fixes #1523.

…_batch

We wrap RecordBatchReader to try to provide extra error metadata from
ADBC when using this API.  But PyArrow may try to extract the underlying
C++ arrow::RecordBatch pointer from the reader, which won't exist in our
wrapped reader.  For the public API, return the unwrapped reader
instead.

Fixes apache#1523.
@github-actions github-actions bot added this to the ADBC Libraries 0.10.0 milestone Feb 8, 2024
@lidavidm lidavidm marked this pull request as ready for review February 8, 2024 14:29
@lidavidm lidavidm merged commit 0d20d48 into apache:main Feb 8, 2024
49 checks passed
@lidavidm lidavidm deleted the gh1523 branch February 8, 2024 14:57
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.

python: segfault when passing RecordBatchReader to PyArrow
2 participants