You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "AlenkaF (via GitHub)" <gi...@apache.org> on 2023/06/12 13:30:38 UTC

[GitHub] [arrow] AlenkaF commented on a diff in pull request #35933: GH-35599: [Python] Canonical fixed-shape tensor extension array/type is not picklable.

AlenkaF commented on code in PR #35933:
URL: https://github.com/apache/arrow/pull/35933#discussion_r1226671566


##########
python/pyarrow/types.pxi:
##########
@@ -1586,6 +1586,10 @@ cdef class FixedShapeTensorType(BaseExtensionType):
     def __arrow_ext_class__(self):
         return FixedShapeTensorArray
 
+    def __reduce__(self):

Review Comment:
   As the logic for the `__arrow_ext_deserialize__` of the `FixedShapeTensorType` is happening in C++ we can not use `__arrow_ext_deserialize__` and `__arrow_ext_serialize__` to define `__reduce__` here.
   
   But we can do that for `ExtensionType class`. I have created a separate issue for it: https://github.com/apache/arrow/issues/36038



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