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:38:00 UTC

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

Liam Connell created ARROW-8306:
-----------------------------------

             Summary: [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


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)