[
https://issues.apache.org/jira/browse/ARROW-12472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Zachary Blackwood updated ARROW-12472:
--------------------------------------
Description:
When passing a PEP519 filesystem object which implements a
{noformat}__fspath__{noformat}
{code:java}
// Some comments here
public String getFoo()
{
return foo;
}
{code}
{{}} method, but does not implement a {{__str__}} method which returns a valid
path (e.g. an OpenFile object from fsspec) to {{pyarrow.parquet.read_table()}},
the file fails to be read.
was:When passing a PEP519 filesystem object which implements a `__fspath__`
method, but does not implement a `__str__` method which returns a valid path
(e.g. an OpenFile object from fsspec) to `pyarrow.parquet.read_table()`, the
file fails to be read.
> read_table fails when passing a PEP519 filesystem object
> --------------------------------------------------------
>
> Key: ARROW-12472
> URL: https://issues.apache.org/jira/browse/ARROW-12472
> Project: Apache Arrow
> Issue Type: Bug
> Components: Parquet, Python
> Affects Versions: 3.0.0
> Reporter: Zachary Blackwood
> Priority: Critical
> Labels: parquet, path, pull-request-available, python
> Time Spent: 10m
> Remaining Estimate: 0h
>
> When passing a PEP519 filesystem object which implements a
> {noformat}__fspath__{noformat}
> {code:java}
> // Some comments here
> public String getFoo()
> {
> return foo;
> }
> {code}
> {{}} method, but does not implement a {{__str__}} method which returns a
> valid path (e.g. an OpenFile object from fsspec) to
> {{pyarrow.parquet.read_table()}}, the file fails to be read.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)