Commit 3b11ce5
Fix doc/test wording around longest-vs-shortest clause and align fake build
Three corrections from PR review:
- ``RequestTooLarge``'s docstring said the second irreducible case is
"any chunkable filter reduced to its smallest top-level OR-clause."
The planner actually probes at the inner chunker's bail-floor size,
which is bounded below by the LONGEST clause (after URL-encoding),
not the shortest. Rewrite the case to describe what the planner
actually does.
- ``test_plan_chunks_coordinates_with_filter_chunker``'s docstring
said the planner models per-sub-request URL as
``worst-dim-chunk + shortest-clause``. Same direction error;
corrected to ``longest-clause-after-encoding`` with the rationale
(inner chunker's bail floor, not its happy-path output).
- ``_fake_build`` test fixture used raw ``len(",".join(...))`` for
list params, but the real ``_construct_api_requests`` URL goes
through ``quote_plus``. For the all-alphanumeric values these
tests use, the gap is 2 bytes per comma — small but enough to let
a test pass against the fake while production would have a
larger URL. Pull ``quote_plus`` into the fake so its byte count
matches what the chunker's ``_request_bytes`` actually measures.
No behavior change to the production chunker; 209 waterdata tests
pass with no other tunings.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 954fbcb commit 3b11ce5
2 files changed
Lines changed: 20 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
108 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
244 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
245 | 248 | | |
| 249 | + | |
| 250 | + | |
246 | 251 | | |
247 | 252 | | |
248 | 253 | | |
249 | | - | |
| 254 | + | |
250 | 255 | | |
251 | | - | |
| 256 | + | |
252 | 257 | | |
253 | 258 | | |
254 | 259 | | |
| |||
326 | 331 | | |
327 | 332 | | |
328 | 333 | | |
329 | | - | |
330 | | - | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
331 | 338 | | |
332 | 339 | | |
333 | 340 | | |
| |||
338 | 345 | | |
339 | 346 | | |
340 | 347 | | |
341 | | - | |
342 | | - | |
343 | | - | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
344 | 351 | | |
345 | 352 | | |
346 | 353 | | |
| |||
0 commit comments