[
https://issues.apache.org/jira/browse/ARROW-10284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Krisztian Szucs resolved ARROW-10284.
-------------------------------------
Resolution: Fixed
Issue resolved by pull request 8440
[https://github.com/apache/arrow/pull/8440]
> [Python] Pyarrow is raising deprecation warning about filesystems on import
> ---------------------------------------------------------------------------
>
> Key: ARROW-10284
> URL: https://issues.apache.org/jira/browse/ARROW-10284
> Project: Apache Arrow
> Issue Type: Bug
> Components: Python
> Reporter: Joris Van den Bossche
> Assignee: Joris Van den Bossche
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.0.1, 2.0.0
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> This happens on import (when setting the warning to be visisble), so even
> when the user doesn't use the deprecated filesystems:
> {code}
> In [1]: import warnings
> In [2]: warnings.simplefilter("always")
> In [3]: import pyarrow
> /home/joris/scipy/repos/arrow/python/pyarrow/filesystem.py:255:
> DeprecationWarning: pyarrow.filesystem.LocalFileSystem is deprecated as of
> 2.0.0, please use pyarrow.fs.LocalFileSystem instead.
> cls._instance = LocalFileSystem()
> {code}
> I forgot to add a filter in the construction of the LocalFileSystem ..
--
This message was sent by Atlassian Jira
(v8.3.4#803005)