AlenkaF commented on PR #33925:
URL: https://github.com/apache/arrow/pull/33925#issuecomment-1408411326

   > Also: a question I hit on the C++ implementation last week:
   > what happens when one wants to work with two `fixed_size_tensor` 
extensions (let's say they have different shapes) at once? I think this will be 
a common occurrence and because of the namespace collision two extensions can't 
be registered at once.
   
   When working on pyarrow implementation locally, this wasn't an issue.
   From the Python 
[documentation](https://arrow.apache.org/docs/python/generated/pyarrow.register_extension_type.html):
   
   > Registration needs an extension type instance, but then works for any 
instance of the same subclass regardless of parametrization of the type.
   
   And you can see this case in the tests I uploaded to gist:
   
https://gist.github.com/AlenkaF/95fb41f461fb792396bb20dd502b4112#file-02_tensor_extension_tests-py-L77-L96
   
   I guess it is the same in C++?


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