Files
Yingwen 216135381b feat(mito): integrate opt-in authoritative Narthex storage (#10526)
* feat(mito): integrate opt-in authoritative Narthex storage

Signed-off-by: evenyag <realevenyag@gmail.com>

* fix(mito): restrict Narthex storage to one value field

Signed-off-by: evenyag <realevenyag@gmail.com>

* fix(cmd): handle Narthex in direct SST fixture writer

Signed-off-by: evenyag <realevenyag@gmail.com>

* refactor(mito): clarify Narthex encoded bulk part support

Signed-off-by: evenyag <realevenyag@gmail.com>

* refactor(mito): type Parquet bulk iterator inputs explicitly

Signed-off-by: evenyag <realevenyag@gmail.com>

* refactor(mito): route Narthex storage by region format

Signed-off-by: evenyag <realevenyag@gmail.com>

* fix(mito): address authoritative Narthex review findings

Signed-off-by: evenyag <realevenyag@gmail.com>

* docs: remove implementation notes from samples format spec

Signed-off-by: evenyag <realevenyag@gmail.com>

* fix(mito): rely on canonical metric write keys

Signed-off-by: evenyag <realevenyag@gmail.com>

* fix(mito): refine Narthex scan and copy semantics

Signed-off-by: evenyag <realevenyag@gmail.com>

* fix(mito): reject raw sparse writes and exclude series scans from windowed sort

Signed-off-by: evenyag <realevenyag@gmail.com>

* fix(mito): allow sparse bulk companion tags and simplify manifest admission

Signed-off-by: evenyag <realevenyag@gmail.com>

* refactor(mito): make Narthex scan preparation optional

Signed-off-by: evenyag <realevenyag@gmail.com>

* fix(mito): prune Narthex samples in stored time units and share bulk blocks

Signed-off-by: evenyag <realevenyag@gmail.com>

* test: track sparse exemplar write failures

Signed-off-by: evenyag <realevenyag@gmail.com>

* test: track remaining observed sparse exemplar failures

Signed-off-by: evenyag <realevenyag@gmail.com>

* test: isolate sparse write regressions across ingestion paths

Signed-off-by: evenyag <realevenyag@gmail.com>

---------

Signed-off-by: evenyag <realevenyag@gmail.com>
2026-11-24 06:15:03 +00:00

30 lines
815 B
SQL

CREATE TABLE narthex_physical (
ts TIMESTAMP TIME INDEX,
host STRING PRIMARY KEY,
cpu DOUBLE
) ENGINE=metric WITH (physical_metric_table='true', sst_format='narthex');
CREATE TABLE narthex_cpu (
ts TIMESTAMP TIME INDEX,
host STRING PRIMARY KEY,
cpu DOUBLE
) ENGINE=metric WITH (on_physical_table='narthex_physical');
INSERT INTO narthex_cpu (ts, host, cpu) VALUES (1000, 'a', 1.5), (2000, 'b', 2.5);
SELECT host, cpu FROM narthex_cpu ORDER BY host;
ADMIN FLUSH_TABLE('narthex_physical');
INSERT INTO narthex_cpu (ts, host, cpu) VALUES (3000, 'a', 3.0);
SELECT host, SUM(cpu) FROM narthex_cpu GROUP BY host ORDER BY host;
SELECT ts, host, cpu FROM narthex_cpu ORDER BY ts;
SELECT ts, host, cpu FROM narthex_cpu ORDER BY ts DESC;
DROP TABLE narthex_cpu;
DROP TABLE narthex_physical;