sameer727 commented on issue #39194: URL: https://github.com/apache/arrow/issues/39194#issuecomment-7083514450
Root cause and fix: in the consolidated-block path (`split_blocks=False`), `allow_zero_copy_blocks` is never enabled in `arrow_to_pandas.cc`, so `zero_copy_only=True` always raises for Table/RecordBatch conversions, even for a single column. When `zero_copy_only=True` is requested, the columns can be converted as separate pandas blocks (per-column blocks can reference the original Arrow memory); conversions that genuinely need to copy still raise `ArrowInvalid`. Opened a PR: https://github.com/apache/arrow/pull/55727 — verified locally with pyarrow 24.0.0 + pandas 3.0.2, regression tests included. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
