You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs+refactor(ogc): address code-review findings 1/3/5/6 on parallel_chunks
From the xhigh workflow review of the parallel_chunks branch:
- [5] Extract the duplicated positive-integer validation (numbers.Integral +
bool-exclusion + < 1) into utils._require_positive_int; call it from both
max_rows (engine) and parallel_chunks (chunking) so the two count knobs
can't drift. Drops the now-unused `import numbers` from both. ChunkPlan's
own `< 1` guard keeps its domain-specific "1 disables fan-out" message.
- [1,3] Document the consequences of fanning out a fitting request in the
parallel_chunks docstring (new Notes section): with max_rows the result is
drawn from the union of the sub-requests (a different, still-valid, sorted
row set than the un-fanned call); a fanned-out call can fail partway and
become resumable; cross-chunk dedup keys on id. These are the same caveats
byte-forced chunking already carries — the block just extends their reach.
- [6] Collapse the triplicated cap-contract prose in planning.py: the
ChunkPlan.max_chunks param docstring is the single authority; _refine now
documents only its algorithm and cross-references the contract.
No behavior change. Messages preserve the substrings the tests match
("positive integer"); numpy-int caps still accepted, bool/float/str/< 1
still rejected.
Signed-off-by: thodson-usgs <thodson@usgs.gov>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments