pitrou commented on a change in pull request #8255:
URL: https://github.com/apache/arrow/pull/8255#discussion_r500888011



##########
File path: python/pyarrow/serialization.py
##########
@@ -482,7 +490,23 @@ def 
register_default_serialization_handlers(serialization_context):
     _register_pydata_sparse_handlers(serialization_context)
 
 
+def register_default_serialization_handlers(serialization_context):
+    warnings.warn(
+        "'pyarrow.register_default_serialization_handlers' is deprecated and "
+        "will be removed in a future version. Use pickle or the pyarrow IPC "
+        "functionality instead.",
+        DeprecationWarning, stacklevel=2
+    )
+    _register_default_serialization_handlers(serialization_context)
+
+
 def default_serialization_context():
+    warnings.warn(
+        "'pyarrow.default_serialization_context' is deprecated and will be "
+        "removed in a future version. Use pickle or the pyarrow IPC "
+        "functionality instead.",
+        DeprecationWarning, stacklevel=2
+    )

Review comment:
       Do you want to write a helper instead of pasting this snippet 
everywhere? :-)




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

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


Reply via email to