Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds to_bytes() to AsyncFsspecStore _cat_file method #107

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion obstore/python/obstore/fsspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ async def _cat_file(self, path, start=None, end=None, **kwargs):
resp = await obs.get_async(self.store, path)
return await resp.bytes_async()

return await obs.get_range_async(self.store, path, start=start, end=end)
range_bytes = await obs.get_range_async(self.store, path, start=start, end=end)
return range_bytes.to_bytes()

async def _cat_ranges(
self,
Expand Down
Loading