Repository navigation
Commit daaa0be
committed
Store buckets of samples in the TimeSeries samples table
A row of the samples tables now holds the samples of one series within one
time bucket: `samples` (a sorted array merged by `timeSeriesGroupArray`),
`bucket`, `min_time`, `max_time`, in an `AggregatingMergeTree` ordered by
`(id, bucket)`. The bucket steps are set by `samples_bucket_step_seconds` and
`recent_samples_bucket_step_seconds`. `timeSeriesSelector` returns `id, samples`,
the new function `timeSeriesSliceSortedArray` cuts an interval out of a bucket.1 parent c6e4b71 commit daaa0be
114 files changed
Lines changed: 3973 additions & 1328 deletions
File tree
- src
- AggregateFunctions/TimeSeries
- Common
- Functions
- TimeSeries
- tests
- Parsers/Prometheus
- Storages
- TimeSeries
- PrometheusQueryToSQL
- tests
- TableFunctions
- tests
- integration
- test_backup_restore_s3
- test_prometheus_protocols
- test_replicated_database
- test_timeseries_partition_key_timezone
- queries/0_stateless
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | 13 | | |
22 | 14 | | |
23 | 15 | | |
| |||
55 | 47 | | |
56 | 48 | | |
57 | 49 | | |
58 | | - | |
| 50 | + | |
59 | 51 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 52 | + | |
| 53 | + | |
65 | 54 | | |
66 | 55 | | |
67 | 56 | | |
| |||
110 | 99 | | |
111 | 100 | | |
112 | 101 | | |
113 | | - | |
| 102 | + | |
114 | 103 | | |
115 | 104 | | |
116 | 105 | | |
| |||
128 | 117 | | |
129 | 118 | | |
130 | 119 | | |
131 | | - | |
132 | 120 | | |
133 | 121 | | |
134 | 122 | | |
| |||
150 | 138 | | |
151 | 139 | | |
152 | 140 | | |
153 | | - | |
154 | 141 | | |
155 | 142 | | |
156 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
187 | 186 | | |
188 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
189 | 196 | | |
190 | 197 | | |
191 | 198 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | 443 | | |
461 | 444 | | |
462 | 445 | | |
| |||
514 | 497 | | |
515 | 498 | | |
516 | 499 | | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
517 | 517 | | |
518 | 518 | | |
519 | 519 | | |
| |||
0 commit comments