jorisvandenbossche commented on PR #431:
URL: https://github.com/apache/arrow-nanoarrow/pull/431#issuecomment-2066696388

   > The part where the concept of a registry is difficult to avoid (global or 
tightly scoped) is when doing conversion to/from Python objects with nested 
type support. 
   
   The user has always cheap access to the storage type, or the raw data, and 
can do a custom conversion from that. For the example of Polygons, I wouldn't 
want some iterative approach to convert to python objects, I would just want to 
have access to the underlying coordinates and offsets to do a custom bulk 
conversion.
   
   I personally would punt on this problem of custom conversion for now, and 
see what kind of needs arise (we don't even support this in pyarrow at the 
moment)
   
   If some kind of registry is needed specifically for the conversion, the 
sqlite interface could be an inspiration? (not necessarily the exact names, 
because I find those a bit confusing. But the fact that you register just 
something for conversion from/to python, and that also doesn't necessarily need 
to be limited to extension types. Users might want to influence how for example 
a map or interval type is converted to python)


-- 
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]

Reply via email to