Skip to content

[DataPipe] Fixing fsspec DataPipe to be compatible with new version of fsspec#957

Closed
NivekT wants to merge 1 commit intogh/NivekT/104/basefrom
gh/NivekT/104/head
Closed

[DataPipe] Fixing fsspec DataPipe to be compatible with new version of fsspec#957
NivekT wants to merge 1 commit intogh/NivekT/104/basefrom
gh/NivekT/104/head

Conversation

@NivekT
Copy link
Contributor

@NivekT NivekT commented Jan 20, 2023

Stack from ghstack:

Fixes #956

Context:

In the old version of fsspec, the default argument is detail=False for method ls for the filesystem memory, thus it returned a list of str. In the new version, the default is detail=True, which returns list of Dict.

Source code:
https://github.com/fsspec/filesystem_spec/blob/2023.1.0/fsspec/implementations/memory.py#L34

Differential Revision: D42646692

NivekT added a commit that referenced this pull request Jan 20, 2023
…f fsspec

ghstack-source-id: fa91e4d
Pull Request resolved: #957
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 20, 2023
@NivekT NivekT requested review from ejguan and wenleix January 20, 2023 20:46
Copy link
Contributor

@ejguan ejguan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@NivekT
Copy link
Contributor Author

NivekT commented Jan 20, 2023

@NivekT has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@NivekT merged this pull request in f64ea9a.

SvenDS9 pushed a commit to SvenDS9/PytorchData that referenced this pull request Jan 24, 2023
…eta-pytorch#957)

Summary:
Pull Request resolved: meta-pytorch#957

Fixes meta-pytorch#956

Context:

In the old version of `fsspec`, the default argument is `detail=False` for method `ls` for the filesystem `memory`, thus it returned a list of `str`. In the new version, the default is `detail=True`, which returns list of `Dict`.

Source code:
https://github.com/fsspec/filesystem_spec/blob/2023.1.0/fsspec/implementations/memory.py#L34

Test Plan: Imported from OSS

Reviewed By: ejguan

Differential Revision: D42646692

Pulled By: NivekT

fbshipit-source-id: 41258a5a16487303a7e6895c484794c1f1d66e39
@facebook-github-bot facebook-github-bot deleted the gh/NivekT/104/head branch January 24, 2023 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants