Commit 73f569b
Increase default TDigest compression for star-tree from 100 to 500
t-digest 3.3 has higher merge-order sensitivity than 3.2. At the
previous default compression=100, multi-level merge in star-tree
building produces ~0.35% error vs ground truth (compared to 0.06%
with 3.2). Increasing to 500 brings error back to ~0.09%.
Changes:
- PercentileTDigestValueAggregator: DEFAULT_TDIGEST_COMPRESSION 100->500
- StarTreeBuilderUtils: always inject default compression into
expression context so the aggregator receives it explicitly
- StarTreeV2BuilderConfig: persist compression=500 in
functionParameters when using old functionColumnPairs syntax,
so canUseStarTree() can distinguish old segments (no metadata,
compression=100) from new segments (metadata=500)
Backward compatibility:
- Old segments have no compressionFactor in metadata -> canUseStarTree()
treats them as compression=100 -> matched by queries with default
compression (100)
- New segments have compressionFactor=500 in metadata -> matched by
queries explicitly specifying compression=500
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 0b130ef commit 73f569b
3 files changed
Lines changed: 34 additions & 3 deletions
File tree
- pinot-segment-local/src/main/java/org/apache/pinot/segment/local
- aggregator
- startree
- v2/builder
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
395 | 396 | | |
396 | 397 | | |
397 | 398 | | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
398 | 405 | | |
399 | 406 | | |
400 | 407 | | |
| |||
Lines changed: 22 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| |||
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
83 | | - | |
| 85 | + | |
| 86 | + | |
84 | 87 | | |
85 | 88 | | |
86 | 89 | | |
| |||
323 | 326 | | |
324 | 327 | | |
325 | 328 | | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
326 | 347 | | |
0 commit comments