Setting coalesce=0 when calling get_ranges doesn't disable coalescing

Open
#678 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
python, rust
Domain
cloud

Research direction

Start with the get_ranges coalesce documentation and the merge_ranges implementation in arrow-rs-object-store at src/util.rs around line 158. Reproduce adjacent-range downloads with coalesce=0, then inspect or add the relevant tests. Done means coalesce=0 keeps adjacent ranges separate while parallel downloads still work.

Written by the indexing model from the issue text.

Description

upstream

According to the get_ranges docs for the coalesce param you can "Set to 0 to disable coalescing", but in my testing this doesn't actually work if I want to download adjacent ranges in parallel.

Taking a quick look at the merge_ranges code in arrow-rs-object-store it seems that the comparison is <= so I guess the documentation is wrong.

Would be nice to actually have this feature though.

Dominant language
Python
Stars
842
Forks
50
Avg merge
9h
Merged PRs (30d)
13

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from developmentseed/obstore

All issues in developmentseed/obstore

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.