Commit Graph
5319 Commits
Author SHA1 Message Date
discord9 8191e52cf8 fix(query): preserve cooperative native series scheduling
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-16 04:59:02 +08:00
discord9 17980304f3 fix(query): resolve scan filters against source schema
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-16 04:16:46 +08:00
discord9 658bcee96e feat(query): execute bound raw-series reads over Flight
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-16 03:47:49 +08:00
discord9 1b13ded508 feat(query): bind raw-series requests to prepared scans
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-16 03:31:37 +08:00
discord9 527acc1fba fix(query): preserve remote series frame schema identity
Validate all reserved series-frame metadata and exact Arrow fields before
MergeScan replaces a remote schema with its local schema. Recognize frame
metadata on either side, including unknown reserved keys, while retaining
ordinary SQL metadata, timezone and JSON compatibility.

Cover empty advertised streams, later inner-batch divergence after a valid
frame, field identity, and complete typed payload and column sharing through
the existing MergeScan execution boundary.

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-16 02:24:38 +08:00
discord9 d21e0d02a6 feat(promql): merge ordered raw series inputs
Merge explicitly supplied compatible primary-key streams by complete read key
and timestamp before label materialization. Preserve every projected field and
shared payload slice; reject duplicate timestamps instead of choosing a winner.

Keep one head and owned ordering history per input plus a pending output.
Compute finality across all supplied streams and release inputs and retained
payloads on cancellation, EOF or a terminal error without replay.

Expose the existing Legacy scan ordering through the raw-stream enum while
leaving TwoPhase streams Contiguous. Exercise real regional partitions, MVCC,
filters, projected fields, Frame roundtrips, complete labels and buffer lifetimes.

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-16 01:36:14 +08:00
discord9 f926111784 feat(promql): materialize complete raw source labels
Decode native primary-key labels through the stream's bound metadata snapshot
using the existing complete-label decoder. Preserve explicit identities and all
raw keys, timestamps, fields, buffer owners, ordering and stream-local finality.

Validate raw schema, label mode and local chunk shape without adding another
cross-chunk validator. Release the owned upstream and decoder on EOF or error;
do not replay, merge input streams or infer authorization or global completion.

Exercise focused ownership and lifecycle contracts and the real Mito physical
Frame/unpack path against its existing visibility and label/sample oracles.

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-16 00:02:43 +08:00
discord9 440a765043 chore: combine native Source execution and bound label decoding
Combine the independently reviewed native Frame scan and primary-key label decoder on the next feature branch, without adding a public query route.

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 23:21:36 +08:00
discord9 a6462d3242 feat(query): execute prepared native raw-series scans
Select native Frame leaves through a non-consuming scanner schema preflight.
Keep the default raw scan TODO and ordinary input behavior unchanged when the
capability is absent. Reuse one Mito eligibility and typed-predicate preparation
for preflight and execution, declining live dynamic wrappers before native use.

Bind and revalidate the native schema, label source and partition count; never
replay a selected native execution through the ordinary scanner. Reuse existing
Frame packing, tracing, output metrics, memory tracking and reset behavior.

Exercise actual Mito physical execution with MVCC, projection, multi-field/null
results, original Int64 predicate precision, empty output and dynamic wrappers,
plus focused binding, ownership, quota and no-replay regression tests.

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 22:56:01 +08:00
discord9 d87f52b402 chore: synchronize native series source parents
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 22:16:11 +08:00
discord9 3b719c9ecc feat(query): adapt ordered record batches to raw series
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 21:56:30 +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 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 8f757e6949 feat(mito-codec): decode scan-bound primary key labels
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 20:28:54 +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
discord9 db702dc894 chore: synchronize Mito raw series stack base
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 18:22:52 +08:00
discord9 489c9453cd chore: synchronize series frame stack base
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 18:22:41 +08:00
discord9 380fde19df chore: synchronize merged histogram foundations
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 18:21:36 +08:00
discord9 1164877b5a chore: synchronize merged series samples
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 18:18:18 +08:00
discord9 ad1d1ee0fb refactor(datatypes): share series time validation
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 18:15:01 +08:00
discord9 70a6c4551f refactor(query): share native histogram bucket assembly
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 18:14:47 +08:00
discord9 44b3022a73 chore: synchronize merged series foundation
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 18:08:39 +08:00
discord9 bdc12034e5 fix(datatypes): address series foundation review feedback
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 17:56:57 +08:00
discord9 ac5ba11255 fix(mito): filter typed residuals before raw sample conversion
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 17:56:48 +08:00
discord9 696259a1ce feat(query): add incremental raw series frame streams
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 17:16:16 +08:00
discord9 3717cc2e2a fix(datatypes): retain histogram table views across frame densification
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 16:31:56 +08:00
discord9 8ca73a813f chore: address raw series candidate lint findings
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 16:16:58 +08:00
discord9 0f8e5330f7 feat(mito2): expose scan-bound raw series candidates
Adapt the existing series reader through an optional scanner entrypoint with
owned snapshot-bound label metadata and complete encoded series keys. Preserve
selected field order and Arrow segment views without eager label decoding.

Keep ordinary storage pushdown and MVCC semantics. Inexact field predicates
can leave false-positive candidates; callers must retain residual columns and
evaluate the ordinary residual filter before final projection. This adds no
public native query consumer or replacement filter evaluator.

Exercise both internal batch forms, stream finality/time/error/drop boundaries,
real Mito candidate parity, and logical metric routing with immutable binding.

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 15:56:52 +08:00
discord9 cdca81ed9e chore: sync reviewed series foundation fixes
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 15:37:25 +08:00
discord9 69c73740ec feat(datatypes): add raw series frame codec
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 15:35:59 +08:00
discord9 4f0cc3244a chore: sync histogram-only densification fix
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 14:47:37 +08:00
discord9 4769ddd939 chore: sync histogram-only densification fix
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 14:46:17 +08:00
discord9 cb0a75f2c0 fix(datatypes): skip float buffers for histogram-only densification
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 14:45:36 +08:00
discord9 bb84af91a8 chore: sync reviewed series test cleanup
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 14:34:16 +08:00
discord9 57e1c51eb5 chore: sync reviewed series test cleanup
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 14:33:24 +08:00
discord9 1bfef429e7 chore: sync reviewed foundation test cleanup
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 14:30:55 +08:00
discord9 10dd49564a test(series): assert densification values without table layout
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 14:29:58 +08:00
discord9 78e94ced92 test(series): clarify histogram nullable-item schema coverage
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 14:29:45 +08:00
discord9 8d0278876d Merge commit '971e1893973233332b51201c67bfcdab8b556dea' into feat/narthex-raw-contract
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 13:38:50 +08:00
discord9 971e189397 Merge commit '4ca29e88b12c07d0a0e623043afe8dd296db6468' into feat/narthex-borrowed-histogram
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 13:37:58 +08:00
discord9 4ca29e88b1 fix(datatypes): retain shared histogram tables when densifying
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 13:36:48 +08:00
discord9 a8bb74cbf9 feat(storage): define raw series and optional scanner contract
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 13:32:32 +08:00
discord9 9a4d53ea64 feat(query): normalize stored histograms into shared samples
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
2026-10-15 13:08:24 +08:00