prometheus/tsdb/chunkenc
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
..
benchmark_test.go Add cases with jitter in the start time as well 2026-02-11 16:34:44 +01:00
bstream.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
bstream_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
chunk.go feat(tsdb): allow using ST capable XOR chunks - retain format on read (#18013) 2026-02-20 09:15:51 +01:00
chunk_test.go fix issue with seeking to last sample again 2026-01-22 18:08:41 +01:00
float_histogram.go feat(tsdb): new AppenderV2 and AtST interface for chunks 2026-01-14 13:15:09 +01:00
float_histogram_test.go feat(tsdb): new AppenderV2 and AtST interface for chunks 2026-01-14 13:15:09 +01:00
histogram.go feat(tsdb): new AppenderV2 and AtST interface for chunks 2026-01-14 13:15:09 +01:00
histogram_meta.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
histogram_meta_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
histogram_test.go feat(tsdb): new AppenderV2 and AtST interface for chunks 2026-01-14 13:15:09 +01:00
st_helper_test.go test(chunkenc): test that appender can contonue chunks 2026-02-06 15:35:20 +01:00
varbit.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
varbit_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
xor.go feat(tsdb): new AppenderV2 and AtST interface for chunks 2026-01-14 13:15:09 +01:00
xor_test.go feat(tsdb): new AppenderV2 and AtST interface for chunks 2026-01-14 13:15:09 +01:00
xoroptst.go fix(chunkenc): bug in initializing appender on existing chunk 2026-02-06 15:35:45 +01:00
xoroptst_test.go reduce footprint of the xoroptst chunk iterator object 2026-01-26 11:07:52 +01:00