Skip to content

Support obstore as storage for df.to_parquet() #164

@machichima

Description

@machichima

Currently, using obstore's AsyncFsspecStore for df.to_parquet() does not work (no error but also no files uploaded). It seems like we only need to add write() method in the BufferedFileSimple class and use the obstore.put() there.

def _open(self, path, mode="rb", **kwargs):
"""Return raw bytes-mode file-like from the file-system"""
return BufferedFileSimple(self, path, mode, **kwargs)
class BufferedFileSimple(fsspec.spec.AbstractBufferedFile):
def __init__(self, fs, path, mode="rb", **kwargs):
if mode != "rb":
raise ValueError("Only 'rb' mode is currently supported")
super().__init__(fs, path, mode, **kwargs)

I would like ask if there is any existing progress on it? If not, I can help working on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions