prometheus/tsdb/chunks
George Krajcsovits 223f016c44
feat(tsdb): allow using ST capable XOR chunks - retain format on read (#18013)
* feat(tsdb): allow appending to ST capable XOR chunk optionally

Only for float samples as of now.  Supports for in-order and out-of-order
samples.

Make sure that on readout the ST capable chunks are returned automatically.
When the chunks are returned as is, this is trivially true.
When a chunk needs to be re-coded due to deletion (tombstone) markers,
we take the encoding of the original chunk.
When a chunk needs to be created from overlapping chunks, we observe
whether ST is zero or not and create the new chunk based on that.

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
2026-02-20 09:15:51 +01:00
..
chunk_write_queue.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
chunk_write_queue_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
chunks.go feat(tsdb): allow using ST capable XOR chunks - retain format on read (#18013) 2026-02-20 09:15:51 +01:00
chunks_test.go feat(tsdb): allow using ST capable XOR chunks - retain format on read (#18013) 2026-02-20 09:15:51 +01:00
head_chunks.go Refactor various tsdb sub-packages (#17847) 2026-01-13 13:38:58 +00:00
head_chunks_other.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
head_chunks_test.go feat(tsdb): new AppenderV2 and AtST interface for chunks 2026-01-14 13:15:09 +01:00
head_chunks_windows.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
queue.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
queue_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
samples.go feat(tsdb): new AppenderV2 and AtST interface for chunks 2026-01-14 13:15:09 +01:00