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 2020/09/24 11:50:47 UTC
[GitHub] [arrow] jorisvandenbossche opened a new pull request #8255: ARROW-9518: [Python] Deprecate pyarrow serialization
jorisvandenbossche opened a new pull request #8255:
URL: https://github.com/apache/arrow/pull/8255
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [arrow] kszucs commented on pull request #8255: ARROW-9518: [Python] Deprecate pyarrow serialization
Posted by GitBox <gi...@apache.org>.
kszucs commented on pull request #8255:
URL: https://github.com/apache/arrow/pull/8255#issuecomment-706087221
Why are the tests in a separate file?
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [arrow] jorisvandenbossche commented on pull request #8255: ARROW-9518: [Python] Deprecate pyarrow serialization
Posted by GitBox <gi...@apache.org>.
jorisvandenbossche commented on pull request #8255:
URL: https://github.com/apache/arrow/pull/8255#issuecomment-706093394
> Why are the tests in a separate file?
Because that allows me to simply ignore all deprecation warnings in the actual test file (see the comment at the pytestmark there)
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [arrow] pitrou commented on a change in pull request #8255: ARROW-9518: [Python] Deprecate pyarrow serialization
Posted by GitBox <gi...@apache.org>.
pitrou commented on a change in pull request #8255:
URL: https://github.com/apache/arrow/pull/8255#discussion_r500888667
##########
File path: python/pyarrow/tests/test_serialization.py
##########
@@ -52,6 +52,9 @@
sparse = None
+pytestmark = pytest.mark.filterwarnings("ignore:'pyarrow:DeprecationWarning")
Review comment:
Hmm... is this another pytest magic? What does it do exactly? Filter these warnings only for this test module?
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [arrow] kszucs closed pull request #8255: ARROW-9518: [Python] Deprecate pyarrow serialization
Posted by GitBox <gi...@apache.org>.
kszucs closed pull request #8255:
URL: https://github.com/apache/arrow/pull/8255
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [arrow] jorisvandenbossche commented on a change in pull request #8255: ARROW-9518: [Python] Deprecate pyarrow serialization
Posted by GitBox <gi...@apache.org>.
jorisvandenbossche commented on a change in pull request #8255:
URL: https://github.com/apache/arrow/pull/8255#discussion_r502324218
##########
File path: python/pyarrow/__init__.py
##########
@@ -203,30 +202,49 @@ def show_versions():
import pyarrow.types as types
-# deprecated filesystems
+# deprecated top-level access
+
from pyarrow.filesystem import FileSystem as _FileSystem, LocalFileSystem as _LocalFileSystem
Review comment:
yeah, that's from the other PR, will fix
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [arrow] pitrou commented on pull request #8255: ARROW-9518: [Python] Deprecate pyarrow serialization
Posted by GitBox <gi...@apache.org>.
pitrou commented on pull request #8255:
URL: https://github.com/apache/arrow/pull/8255#issuecomment-704932823
> My idea was then to bump it from DeprecationWarning to FutureWarning in the next release, for example.
Then we should make sure to have a JIRA for this, otherwise we'll probably forget :)
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [arrow] pitrou commented on a change in pull request #8255: ARROW-9518: [Python] Deprecate pyarrow serialization
Posted by GitBox <gi...@apache.org>.
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:
users@infra.apache.org
[GitHub] [arrow] pitrou commented on a change in pull request #8255: ARROW-9518: [Python] Deprecate pyarrow serialization
Posted by GitBox <gi...@apache.org>.
pitrou commented on a change in pull request #8255:
URL: https://github.com/apache/arrow/pull/8255#discussion_r500888167
##########
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:
Also, there are existing helpers in `pyarrow.util`
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [arrow] dhirschfeld commented on pull request #8255: ARROW-9518: [Python] Deprecate pyarrow serialization
Posted by GitBox <gi...@apache.org>.
dhirschfeld commented on pull request #8255:
URL: https://github.com/apache/arrow/pull/8255#issuecomment-698636329
Thanks for the ping. I was using that functionality. So I'm interested to see how I can replace it.
My goal is to pass objects (mapping of arrays, dataframes and primitive types) between languages such as Python, R and TypeScript. `pickle`, being python-only, is no good for this. I understand the previous functionality was *also* python only so I suppose I haven't lost anything there.
I'm still unsure if arrow is capable of this language-agnostic interop for blobs of heterogeneous types?
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [arrow] dhirschfeld commented on pull request #8255: ARROW-9518: [Python] Deprecate pyarrow serialization
Posted by GitBox <gi...@apache.org>.
dhirschfeld commented on pull request #8255:
URL: https://github.com/apache/arrow/pull/8255#issuecomment-698636329
Thanks for the ping. I was using that functionality. So I'm interested to see how I can replace it.
My goal is to pass objects (mapping of arrays, dataframes and primitive types) between languages such as Python, R and TypeScript. `pickle`, being python-only, is no good for this. I understand the previous functionality was *also* python only so I suppose I haven't lost anything there.
I'm still unsure if arrow is capable of this language-agnostic interop for blobs of heterogeneous types?
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [arrow] dhirschfeld commented on pull request #8255: ARROW-9518: [Python] Deprecate pyarrow serialization
Posted by GitBox <gi...@apache.org>.
dhirschfeld commented on pull request #8255:
URL: https://github.com/apache/arrow/pull/8255#issuecomment-704850273
Yeah, that's what I figured 😞. I've previously invented my own (with protocol buffers) but it's a *big* job so I was hoping to leverage off existing efforts. Will have to do some more research to see what other options there are...
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [arrow] kszucs commented on pull request #8255: ARROW-9518: [Python] Deprecate pyarrow serialization
Posted by GitBox <gi...@apache.org>.
kszucs commented on pull request #8255:
URL: https://github.com/apache/arrow/pull/8255#issuecomment-706102256
Thanks Joris, merging!
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [arrow] github-actions[bot] commented on pull request #8255: ARROW-9518: [Python] Deprecate pyarrow serialization
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #8255:
URL: https://github.com/apache/arrow/pull/8255#issuecomment-698302399
https://issues.apache.org/jira/browse/ARROW-9518
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [arrow] kszucs commented on a change in pull request #8255: ARROW-9518: [Python] Deprecate pyarrow serialization
Posted by GitBox <gi...@apache.org>.
kszucs commented on a change in pull request #8255:
URL: https://github.com/apache/arrow/pull/8255#discussion_r502312300
##########
File path: python/pyarrow/tests/test_serialization_deprecated.py
##########
@@ -0,0 +1,57 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+import sys
+
+import pytest
+
+import pyarrow as pa
+
+
+def test_serialization_deprecated():
+
Review comment:
whitespace
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [arrow] pitrou commented on pull request #8255: ARROW-9518: [Python] Deprecate pyarrow serialization
Posted by GitBox <gi...@apache.org>.
pitrou commented on pull request #8255:
URL: https://github.com/apache/arrow/pull/8255#issuecomment-704842775
`pickle` is the best thing available for arbitrary Python types and heteregenous data, IMO.
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [arrow] dhirschfeld commented on pull request #8255: ARROW-9518: [Python] Deprecate pyarrow serialization
Posted by GitBox <gi...@apache.org>.
dhirschfeld commented on pull request #8255:
URL: https://github.com/apache/arrow/pull/8255#issuecomment-704844598
> `pickle` is the best thing available for arbitrary Python types and heterogenous data, IMO.
Yep, but I also want to be able to read the serialized data in from R, TypeScript and 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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow] jorisvandenbossche commented on pull request #8255: ARROW-9518: [Python] Deprecate pyarrow serialization
Posted by GitBox <gi...@apache.org>.
jorisvandenbossche commented on pull request #8255:
URL: https://github.com/apache/arrow/pull/8255#issuecomment-704931662
> I think we use FutureWarning instead of DeprecationWarning? (because the latter is silent by default)
I have a slight preference for using DeprecationWarning here, at first. Reasoning: DeprecationWarning is still visible if you are using the functionality directly (eg if you call `pa.serialize()` yourself in an interactive environment or a main script, you will see it by default, since Python 3.7 or so), but not visible if you are using some library that is using the deprecated functionality. This gives developers of libraries using this functionality the chance to fix those warnings, before their users see warnings they cannot do anything about.
My idea was then to bump it from DeprecationWarning to FutureWarning in the next release, for example.
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [arrow] dhirschfeld commented on pull request #8255: ARROW-9518: [Python] Deprecate pyarrow serialization
Posted by GitBox <gi...@apache.org>.
dhirschfeld commented on pull request #8255:
URL: https://github.com/apache/arrow/pull/8255#issuecomment-704841013
> *what do you use serialize for currently?*
I've just got a proof-of-concept arrow serialization framework which can serialize arbitrary Python objects (inheriting from a base class). Unfortunately, after implementing that I found it's not language-agnostic so it's languished as a bit of a curiosity.
I need a language-agnostic serialization format which can serialise a Python `Dict[str, object]` where `object` is itself serializable to a `Dict[str, primitive_type]`. I'm performance sensitive and may need to serialize large arrays/DataFrames (*"primitive"* data-science types). Given that, I hoped `pyarrow` might fit the bill but it doesn't seem suited to serializing heterogeneous mappings?
Currently wondering if `msgpack` might be better suited but interested to hear if this is something on the radar/roadmap for `arrow`?
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [arrow] jorisvandenbossche commented on a change in pull request #8255: ARROW-9518: [Python] Deprecate pyarrow serialization
Posted by GitBox <gi...@apache.org>.
jorisvandenbossche commented on a change in pull request #8255:
URL: https://github.com/apache/arrow/pull/8255#discussion_r500891790
##########
File path: python/pyarrow/tests/test_serialization.py
##########
@@ -52,6 +52,9 @@
sparse = None
+pytestmark = pytest.mark.filterwarnings("ignore:'pyarrow:DeprecationWarning")
Review comment:
Indeed, this is a way to suppress (ignore) all DeprecationWarnings that start with "pyarrow" in this test module. That's easier than catching all individual warnings, since this full file is about serialization and thus deprecated.
(and therefore I added a separate file to explicitly test the warnings are raised)
Will add a short comment about it
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [arrow] pitrou commented on pull request #8255: ARROW-9518: [Python] Deprecate pyarrow serialization
Posted by GitBox <gi...@apache.org>.
pitrou commented on pull request #8255:
URL: https://github.com/apache/arrow/pull/8255#issuecomment-705087199
This needs rebasing now :-)
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [arrow] jorisvandenbossche commented on pull request #8255: ARROW-9518: [Python] Deprecate pyarrow serialization
Posted by GitBox <gi...@apache.org>.
jorisvandenbossche commented on pull request #8255:
URL: https://github.com/apache/arrow/pull/8255#issuecomment-698297797
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [arrow] pitrou commented on a change in pull request #8255: ARROW-9518: [Python] Deprecate pyarrow serialization
Posted by GitBox <gi...@apache.org>.
pitrou commented on a change in pull request #8255:
URL: https://github.com/apache/arrow/pull/8255#discussion_r500886938
##########
File path: python/pyarrow/__init__.py
##########
@@ -207,6 +207,28 @@ def show_versions():
import pyarrow.types as types
+
+if _sys.version_info >= (3, 7):
+ def __getattr__(name):
+ _msg = ("'pyarrow.{0}' is deprecated and will be "
+ "removed in a future version. Use pickle or the pyarrow IPC "
+ "functionality instead.")
+ if name == "SerializationContext":
+ _warnings.warn(_msg.format(name), DeprecationWarning)
Review comment:
I think we use `FutureWarning` instead of `DeprecationWarning`? (because the latter is silent by default)
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [arrow] pitrou commented on pull request #8255: ARROW-9518: [Python] Deprecate pyarrow serialization
Posted by GitBox <gi...@apache.org>.
pitrou commented on pull request #8255:
URL: https://github.com/apache/arrow/pull/8255#issuecomment-704844966
Then you'll have to invent your own serialization format, or find another existing one.
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [arrow] kszucs commented on a change in pull request #8255: ARROW-9518: [Python] Deprecate pyarrow serialization
Posted by GitBox <gi...@apache.org>.
kszucs commented on a change in pull request #8255:
URL: https://github.com/apache/arrow/pull/8255#discussion_r502312518
##########
File path: python/pyarrow/__init__.py
##########
@@ -203,30 +202,49 @@ def show_versions():
import pyarrow.types as types
-# deprecated filesystems
+# deprecated top-level access
+
from pyarrow.filesystem import FileSystem as _FileSystem, LocalFileSystem as _LocalFileSystem
Review comment:
I think we have flake8 disabled on this file.
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [arrow] jorisvandenbossche commented on pull request #8255: ARROW-9518: [Python] Deprecate pyarrow serialization
Posted by GitBox <gi...@apache.org>.
jorisvandenbossche commented on pull request #8255:
URL: https://github.com/apache/arrow/pull/8255#issuecomment-698297797
WIP, still need to add a few additional deprecations, and add do an update of the docs explaining the deprecation with alternatives.
cc @rok @mrkn @dhirschfeld (since you contributed to serialization somewhat recently)
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [arrow] jorisvandenbossche commented on a change in pull request #8255: ARROW-9518: [Python] Deprecate pyarrow serialization
Posted by GitBox <gi...@apache.org>.
jorisvandenbossche commented on a change in pull request #8255:
URL: https://github.com/apache/arrow/pull/8255#discussion_r502324218
##########
File path: python/pyarrow/__init__.py
##########
@@ -203,30 +202,49 @@ def show_versions():
import pyarrow.types as types
-# deprecated filesystems
+# deprecated top-level access
+
from pyarrow.filesystem import FileSystem as _FileSystem, LocalFileSystem as _LocalFileSystem
Review comment:
yeah, that's from the other PR, will fix
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [arrow] github-actions[bot] commented on pull request #8255: ARROW-9518: [Python] Deprecate pyarrow serialization
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #8255:
URL: https://github.com/apache/arrow/pull/8255#issuecomment-698302399
https://issues.apache.org/jira/browse/ARROW-9518
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [arrow] jorisvandenbossche commented on pull request #8255: ARROW-9518: [Python] Deprecate pyarrow serialization
Posted by GitBox <gi...@apache.org>.
jorisvandenbossche commented on pull request #8255:
URL: https://github.com/apache/arrow/pull/8255#issuecomment-706046582
Rebased this
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [arrow] kszucs commented on pull request #8255: ARROW-9518: [Python] Deprecate pyarrow serialization
Posted by GitBox <gi...@apache.org>.
kszucs commented on pull request #8255:
URL: https://github.com/apache/arrow/pull/8255#issuecomment-706087221
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [arrow] jorisvandenbossche commented on pull request #8255: ARROW-9518: [Python] Deprecate pyarrow serialization
Posted by GitBox <gi...@apache.org>.
jorisvandenbossche commented on pull request #8255:
URL: https://github.com/apache/arrow/pull/8255#issuecomment-706046582
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [arrow] kszucs commented on a change in pull request #8255: ARROW-9518: [Python] Deprecate pyarrow serialization
Posted by GitBox <gi...@apache.org>.
kszucs commented on a change in pull request #8255:
URL: https://github.com/apache/arrow/pull/8255#discussion_r502312300
##########
File path: python/pyarrow/tests/test_serialization_deprecated.py
##########
@@ -0,0 +1,57 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+import sys
+
+import pytest
+
+import pyarrow as pa
+
+
+def test_serialization_deprecated():
+
Review comment:
whitespace
##########
File path: python/pyarrow/__init__.py
##########
@@ -203,30 +202,49 @@ def show_versions():
import pyarrow.types as types
-# deprecated filesystems
+# deprecated top-level access
+
from pyarrow.filesystem import FileSystem as _FileSystem, LocalFileSystem as _LocalFileSystem
Review comment:
I think we have flake8 disabled on this file.
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [arrow] kszucs closed pull request #8255: ARROW-9518: [Python] Deprecate pyarrow serialization
Posted by GitBox <gi...@apache.org>.
kszucs closed pull request #8255:
URL: https://github.com/apache/arrow/pull/8255
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [arrow] jorisvandenbossche commented on pull request #8255: ARROW-9518: [Python] Deprecate pyarrow serialization
Posted by GitBox <gi...@apache.org>.
jorisvandenbossche commented on pull request #8255:
URL: https://github.com/apache/arrow/pull/8255#issuecomment-698878811
> I was using that functionality. So I'm interested to see how I can replace it.
And so I am interested to understand how you were using it, to know what to write about a replacement
You mention the goal of passing objects to other languages, but since that is also not possible now with serialize: what do you use `serialize` for *currently* ?
Is it a use case where you can basically replace it with pickle?
> I'm still unsure if arrow is capable of this language-agnostic interop for blobs of heterogeneous types?
At the moment, not for "random" objects, but only for types that fit into one of the [serialization format / IPC message types](https://arrow.apache.org/docs/format/Columnar.html#serialization-and-interprocess-communication-ipc). The `pyarrow.serialization` module always has been python specific. Expanding the IPC messages types might be possible, but is something that needs to be discussed on the dev mailing list to see if there is interest.
----------------------------------------------------------------
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:
users@infra.apache.org