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

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

Hi [~hendrik.makait] I don't think someone started on this, so a contribution 
would be very welcome! And happy to give some guidance where needed. 

bq. As a first question: Should I split this into multiple PRs per format (i.e. 
one PR for csv, feather, json, respectively) or combine them into one larger PR?

I would in any case start with a single format, and opening a PR for that, 
check if the approach is good, etc. Then we can still decide whether we want to 
add it for the other formats in the same PR or as separate PRs.


> [Python] Add filesystem capabilities to other IO formats (feather, csv, json, 
> ..)?
> ----------------------------------------------------------------------------------
>
>                 Key: ARROW-9938
>                 URL: https://issues.apache.org/jira/browse/ARROW-9938
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: Python
>            Reporter: Joris Van den Bossche
>            Priority: Major
>              Labels: filesystem
>
> In the parquet IO functions, we support reading/writing files from non-local 
> filesystems directly (in addition to passing a buffer) by:
> - passing a URI (eg {{pq.read_parquet("s3://bucket/data.parquet")}})
> - specifying the filesystem keyword (eg 
> {{pq.read_parquet("bucket/data.parquet", filesystem=S3FileSystem(...))}}) 
> On the other hand, for other file formats such as feather, we only support 
> local files or buffers. So for those, you need to do the more manual (I 
> _suppose_ this works?):
> {code:python}
> from pyarrow import fs, feather
> s3 = fs.S3FileSystem()
> with s3.open_input_file("bucket/data.arrow") as file:
>     table = feather.read_table(file)
> {code}
> So I think the question comes up: do we want to extend this filesystem 
> support to other file formats (feather, csv, json) and make this more uniform 
> across pyarrow, or do we prefer to keep the plain readers more low-level (and 
> people can use the datasets API for more convenience)?
> cc [~apitrou] [~kszucs]



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

Reply via email to