You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Joris Van den Bossche (Jira)" <ji...@apache.org> on 2021/09/21 11:44:00 UTC

[jira] [Commented] (ARROW-8780) [Python] A fsspec-compatible wrapper for pyarrow.fs filesystems

    [ https://issues.apache.org/jira/browse/ARROW-8780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17418055#comment-17418055 ] 

Joris Van den Bossche commented on ARROW-8780:
----------------------------------------------

Note that such a wrapper has now been added to {{fsspec}} (https://github.com/intake/filesystem_spec/pull/754). It might still be good to document this on the pyarrow side as a way to get an fsspec-compatible filesystem object from a pyarrow filesystem.

> [Python] A fsspec-compatible wrapper for pyarrow.fs filesystems
> ---------------------------------------------------------------
>
>                 Key: ARROW-8780
>                 URL: https://issues.apache.org/jira/browse/ARROW-8780
>             Project: Apache Arrow
>          Issue Type: Sub-task
>          Components: Python
>            Reporter: Joris Van den Bossche
>            Priority: Major
>              Labels: filesystem
>
> The new {{pyarrow.fs}} FileSystem objects have a limited Python API (currently mimicking the C++ API).
> In Python, [fsspec|https://filesystem-spec.readthedocs.io/en/latest] defines a common API for a variety filesystem implementations. 
> We could try to implement a, fsspec-compatible class wrapping the {{pyarrow.fs}} native filesystems. Such as class would provide the methods expected according to fsspec, and implement those using the actual {{pyarrow.fs.FileSystem}} under the hood.
> This might be mainly useful for two use cases:
> - {{pyarrow.fs}} filesystems can be used in settings that expect an fsspec-compatible filesytem object
> - it provides a way to have a "richer" API around our {{pyarrow.fs}} filesystems (which has been requested before, cfr ARROW-7584), without expanding the core filesystem objects



--
This message was sent by Atlassian Jira
(v8.3.4#803005)