Commit 31bf28b
docs(core): keep L3 TopK intent sketch-agnostic
AggIntent::TopK { k, accuracy } is a pure L3 intent (k most frequent by
value, to accuracy ε), built from the lowering accuracy context exactly
like Quantile/Cardinality. Its doc claimed it "is served by a dedicated
sketch (SpaceSaving, CMS-with-heap) in one pass" and "never materialises-
then-sorts" — physical-strategy language that belongs to L4 and is false
for accuracy: Exact. Reframe the docs as intent-only and defer the
exact-vs-sketch realisation to L4, matching the module's own rule that the
HashAgg/SortAgg/SketchAgg choice is an L4 cost-aware decision. Keep the
legitimate lowering-time split (heavy-hitter intent vs generic Sort+Limit).
Doc/comment-only; no behavior change.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 179a5de commit 31bf28b
3 files changed
Lines changed: 16 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
| |||
66 | 70 | | |
67 | 71 | | |
68 | 72 | | |
69 | | - | |
70 | | - | |
| 73 | + | |
| 74 | + | |
71 | 75 | | |
72 | 76 | | |
73 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
561 | 561 | | |
562 | 562 | | |
563 | 563 | | |
564 | | - | |
| 564 | + | |
565 | 565 | | |
566 | 566 | | |
567 | 567 | | |
| |||
0 commit comments