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>
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>
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>
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>
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>
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>
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>
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>