You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/02/24 14:43:55 UTC

[GitHub] [arrow] jorisvandenbossche commented on pull request #12505: ARROW-15291: [C++][Python] Segfault in StructArray.to_numpy and to_pandas if it contains an ExtensionArray

jorisvandenbossche commented on pull request #12505:
URL: https://github.com/apache/arrow/pull/12505#issuecomment-1049930335


   > I'll defer to @jorisvandenbossche on whether this is the approach we want to take (I have no idea what the "ideal" output would be).
   
   This fix is not "ideal" (because it falls back to the storage array, while the ExtensionArray subclass could define a custom conversion to pandas / numpy, and ideally we would use that, also if the array is nested inside a list or struct array), but certainly better than segfaulting. So I think a good short term fix.
   
   If an ExtensionArray subclass defines such a custom conversion to numpy or pandas, that's defined on the python class, which means that we would need to call into python here, making this a whole lot more complicated.
   
   


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org