You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Liam Connell (Jira)" <ji...@apache.org> on 2020/04/01 15:42:00 UTC

[jira] [Closed] (ARROW-8306) [Python] Filesystem _ensure_filesystem() incorrectly asserts the subclass relationship

     [ https://issues.apache.org/jira/browse/ARROW-8306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Liam Connell closed ARROW-8306.
-------------------------------
    Resolution: Invalid

My mistake. This is not a bug

> [Python] Filesystem _ensure_filesystem() incorrectly asserts the subclass relationship
> --------------------------------------------------------------------------------------
>
>                 Key: ARROW-8306
>                 URL: https://issues.apache.org/jira/browse/ARROW-8306
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>    Affects Versions: 0.16.0
>            Reporter: Liam Connell
>            Priority: Minor
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> the `_ensure_filesystem()` function in pyarrow.filesystem currently checks if the type of the filesystem is a subclass of FileSystem: 
> ```
> if not issubclass(fs_type, FileSystem):```
> Instead, it should check if the object itself is a subclass:
> ```if not issubclass(fs, FileSystem):```



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