Commit Graph
5347 Commits
Author SHA1 Message Date
Dennis Zhuang a98c21e880 fix(promql): check smoothing factors at the first non-empty window
Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
2026-10-18 00:20:41 +08:00
Dennis Zhuang b300f02ebf chore: merge feat/narthex-window-eval into feat/narthex-window-eval-rate
Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
2026-10-18 00:20:03 +08:00
Dennis Zhuang f0086a354c fix(promql): keep no samples once the last window is evaluated
Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
2026-10-18 00:18:42 +08:00
Dennis Zhuang 4caa7209a4 fix(promql): order signed zeros like Prometheus in quantile_over_time
Prometheus treats +0 and -0 as equal and sorts short windows by
insertion, keeping them in window order; sorting -0 before +0 picked
the other zero and flipped the sign of an infinite reciprocal.

Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
2026-10-17 23:18:59 +08:00
Dennis Zhuang 1a32a74927 chore: merge feat/narthex-window-eval into feat/narthex-window-eval-rate
Signed-off-by: Dennis Zhuang <killme2008@gmail.com>

# Conflicts:
#	src/promql/src/range_eval/tests.rs
2026-10-17 22:49:51 +08:00
Dennis Zhuang db555de0fc fix(promql): drop samples behind the next window while waiting for it
The evaluator stopped at a grid point whose window was not complete yet
before advancing past the samples that window cannot use, so a long gap
between grid points kept every sample pushed in the meantime.

Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
2026-10-17 22:48:27 +08:00
Dennis Zhuang 2bf0bf4247 fix(promql): drop metadata labels from range function results
Prometheus drops __name__, __type__ and __unit__ from the result of every
range function except last_over_time and first_over_time; the evaluator
passed the metric through unchanged.

Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
2026-10-17 22:30:39 +08:00
Dennis Zhuang 3ff496da1e fix(promql): follow Prometheus arithmetic in range function kernels
Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
2026-10-17 18:14:35 +08:00
Dennis Zhuang 7a3cfca086 refactor(promql): drop unused EdgeKind derives
Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
2026-10-17 17:09:34 +08:00
Dennis Zhuang 51b48d4b24 fix(promql): center predict_linear on the evaluation time plus the selector offset
Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
2026-10-17 17:04:59 +08:00
Dennis Zhuang 9fd9729b7e feat(promql): evaluate resets, changes, deriv, predict_linear and double_exponential_smoothing over range windows
Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
2026-10-17 16:50:55 +08:00
Dennis Zhuang 63749be0aa chore: merge feat/narthex-window-eval-rate into feat/narthex-window-eval-overtime
Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
2026-10-17 15:50:56 +08:00
Dennis Zhuang 2987ad0941 refactor(promql): take RangeFunction in RangeEvaluator::try_new and keep kernels crate-private
Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
2026-10-17 15:50:19 +08:00
Dennis Zhuang a5cdece76d chore: merge feat/narthex-window-eval-rate into feat/narthex-window-eval-overtime
Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
2026-10-17 15:48:28 +08:00
Dennis Zhuang 5f1a0c3a2b chore: merge feat/narthex-window-eval into feat/narthex-window-eval-rate
Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
2026-10-17 15:48:28 +08:00
Dennis Zhuang 65d2536fe3 docs(promql): separate the reuse-after-error note in RangeEvaluator::push
Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
2026-10-17 15:48:19 +08:00
Dennis Zhuang 105748c40e feat(promql): evaluate float *_over_time functions over range windows
Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
2026-10-17 15:45:07 +08:00
Dennis Zhuang e1496265db feat(promql): evaluate rate, increase, delta, irate and idelta over range windows
Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
2026-10-17 15:26:42 +08:00
Dennis Zhuang 6cb77b5438 feat(promql): evaluate range windows over raw series into trimmed grid series
Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
2026-10-17 15:14:39 +08:00
discord9 c0eab0edbb chore: sync raw producer with merged series frame parent
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-16 19:21:26 +08:00
discord9 6468d87784 chore: synchronize merged raw series contract parent
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-16 18:05:10 +08:00
discord9 ac5b74d81f fix(mito2): retain typed filter regression without indexed loop lint
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-16 17:45:50 +08:00
discord9 5f0890ebea chore: synchronize clippy-clean frame codec parent
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-16 17:45:05 +08:00
discord9 ba88f817cd fix(datatypes): keep frame flush guard clippy clean
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-16 17:44:58 +08:00
discord9 9871adc90c chore: synchronize checked multirow frame parent
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-16 17:40:35 +08:00
discord9 1d710776c0 chore: synchronize checked raw series contract parent
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-16 17:40:10 +08:00
discord9 7943896880 fix(store-api): retain reversed range test without clippy lint
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-16 17:05:00 +08:00
discord9 eddd595b82 perf(query): batch raw series across stream chunks
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-16 16:38:09 +08:00
discord9 928284bea8 Merge branch 'fix/narthex-frame-source-followup-20261016' into fix/narthex-9607-9611-batching-20261016 2026-10-16 16:33:24 +08:00
discord9 3406a53345 perf(datatypes): encode bounded multirow series frames
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-16 16:32:50 +08:00
discord9 2c04075baa chore: synchronize shared series contract parent
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

# Conflicts:
#	src/datatypes/src/series/raw.rs
#	src/store-api/src/region_engine.rs
#	src/store-api/src/region_engine/prepared_series_tests.rs
2026-10-16 16:04:07 +08:00
discord9 3ed6b5df67 fix(mito2): adapt raw readers to shared series contracts
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-16 15:53:57 +08:00
discord9 d018031823 feat(datatypes): share series ordering and expose source label binding
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-16 15:48:49 +08:00
discord9 1fc0c1c7d6 feat(storage): separate prepared series selection from raw readers
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-16 15:48:12 +08:00
discord9 b0af8b3eaf feat(datatypes): share series ordering and expose source label binding
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-16 15:46:52 +08:00
discord9 650ee58c22 feat(datatypes): share series ordering and expose source label binding
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-16 15:45:42 +08:00
discord9 1284c043e5 feat(storage): separate prepared series selection from raw readers
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-16 15:00:20 +08:00
discord9 cfc777f55c feat(storage): separate prepared series selection from raw readers
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-16 15:00:20 +08:00
discord9 d639f1569e feat(storage): separate prepared series selection from raw readers
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-16 15:00:04 +08:00
discord9 a7ca3cce4e fix(query): preserve raw time axis lifecycle proof across contract update
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 21:19:20 +08:00
discord9 35ba224c18 chore: synchronize reviewed raw time axis contract
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 21:17:46 +08:00
discord9 24ebc2e030 fix(mito2): synchronize reviewed raw scan contract
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 21:07:55 +08:00
discord9 4053026374 fix(mito2): share raw key buffers and validate legacy key order
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 20:55:24 +08:00
discord9 5fa4fed582 fix(datatypes): share raw axis validation and expose explicit buffer
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 20:53:35 +08:00
discord9 0428b4217d fix(query): verify logical frame field bindings
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 20:45:46 +08:00
discord9 d4a3f67f65 fix(datatypes): preserve series frame field names
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 20:37:16 +08:00
discord9 d47d28da2b style(mito): import raw series types by name
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 20:31:21 +08:00
discord9 4ad0ce71fe fix(store-api): mark default raw series scan as todo
Leave the raw entrypoint explicitly unimplemented until a scanner overrides it. Document the default panic and keep the real scanner regression proving that its legacy input remains readable after the placeholder is caught.

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 19:35:48 +08:00
discord9 b774c32075 fix(query): bound raw frame validation history and empty polling
Keep only adjacent sequence state instead of retaining every completed key. The producer remains responsible for contiguous key runs; ordered streams still reject key regressions.

Yield after 32 validated empty batches per unpack poll without losing pending rows or terminal errors. Preserve whole-batch atomicity and document the producer contract.

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 19:18:07 +08:00
discord9 cfb66f5f2e chore: synchronize raw frame stream stack base
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 18:23:37 +08:00