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
Extract filter chunking into plan_/fetch_/combine_ helpers
Mirrors the helper organization in the merged Python PR
(DOI-USGS/dataretrieval-python#238) so the per-language
implementations stay easy to read alongside each other.
The single-vs-fanned distinction is now expressed once, in
`plan_filter_chunks`, which always returns a list of "chunk
overrides" -- `list(NULL)` for "send `args` as-is", or a list of
chunked cql-text expressions otherwise. `fetch_chunks` issues one
request per entry and returns the per-chunk frames plus the first
sub-request (for the `request` attribute). `combine_chunk_frames`
handles the empty-frame and dedup-by-`id` cases.
`get_ogc_data` is now a linear pipeline:
chunks <- plan_filter_chunks(args)
fetched <- fetch_chunks(args, chunks)
return_list <- combine_chunk_frames(fetched$frames)
req <- fetched$req
... post-processing ...
Behavior unchanged: same chunk sizing (URL-byte-budget aware),
same cql-text-only guard, same empty-frame and id-dedup handling.
The only observable difference is that the `request` attribute
now points at the first sub-request instead of the last (matching
Python's choice of representative metadata), which is a
debugging-only change for the chunked path.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments