Commit 2401edf
fix(planner,query-engine): require explicit count_events weighting
CountMinSketchWithHeap configs used to default a missing `count_events`
to `true`, and PromQL top-k requirements passed `None` to mean
"unconstrained weighting." Both let malformed or ambiguous
configuration silently fall back to a guess instead of failing.
Make `count_events` a required, validated field on
CountMinSketchWithHeap configs (AggregationConfig::validate) and
require PromQL top-k requirements to state their weighting explicitly
(always SUM semantics for PromQL top-k). find_compatible_aggregation
and create_accumulator_updater now surface malformed/missing weighting
as an error instead of matching an unintended sketch.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CD4LRkJNNDb1TQ17XeQjmy1 parent 3b302bf commit 2401edf
12 files changed
Lines changed: 362 additions & 107 deletions
File tree
- asap-common/dependencies/rs/asap_types
- src
- asap-planner-rs
- src/planner
- tests
- asap-query-engine/src
- engines/simple_engine
- precompute_engine
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
Lines changed: 52 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
12 | 31 | | |
13 | 32 | | |
14 | 33 | | |
| |||
49 | 68 | | |
50 | 69 | | |
51 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
52 | 96 | | |
53 | 97 | | |
54 | 98 | | |
| |||
177 | 221 | | |
178 | 222 | | |
179 | 223 | | |
180 | | - | |
| 224 | + | |
181 | 225 | | |
182 | 226 | | |
183 | 227 | | |
| |||
195 | 239 | | |
196 | 240 | | |
197 | 241 | | |
198 | | - | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
199 | 245 | | |
200 | 246 | | |
201 | 247 | | |
| |||
323 | 369 | | |
324 | 370 | | |
325 | 371 | | |
326 | | - | |
| 372 | + | |
327 | 373 | | |
328 | 374 | | |
329 | 375 | | |
| |||
341 | 387 | | |
342 | 388 | | |
343 | 389 | | |
344 | | - | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
345 | 393 | | |
346 | 394 | | |
347 | 395 | | |
| |||
0 commit comments