* refactor(mito2): retire Parquet companion indexes and two-phase series scans Signed-off-by: evenyag <realevenyag@gmail.com> * refactor(mito2): read native series files with SST lifetime pins Signed-off-by: evenyag <realevenyag@gmail.com> * refactor(mito2): remove retired scan and cache plumbing Signed-off-by: evenyag <realevenyag@gmail.com> * refactor(mito2): finish isolating Narthex scan preparation Signed-off-by: evenyag <realevenyag@gmail.com> * test(mito2): verify retries while a failed range reader is pinned Signed-off-by: evenyag <realevenyag@gmail.com> * fix(mito2): import the set used by Narthex partition filters Signed-off-by: evenyag <realevenyag@gmail.com> * fix(mito2): remove stale series scan errors and lint failures Signed-off-by: evenyag <realevenyag@gmail.com> * refactor(mito2): centralize Narthex manifest paths Signed-off-by: evenyag <realevenyag@gmail.com> * fix(mito2): propagate per-series scan errors and account for buffered batches Signed-off-by: evenyag <realevenyag@gmail.com> * refactor(mito2): use Narthex names for series-index maintenance Signed-off-by: evenyag <realevenyag@gmail.com> * refactor(mito2): read Narthex samples through the owning SST handle Signed-off-by: evenyag <realevenyag@gmail.com> * refactor(mito2): keep the original Parquet series distributor Signed-off-by: evenyag <realevenyag@gmail.com> --------- Signed-off-by: evenyag <realevenyag@gmail.com>
Mito columnar samples version 1
This fixture freezes the version-1 sample wire contract in
mito-samples.md. It is exercised by
the owning Mito Rust test, not SQLness discovery:
cargo nextest run -p mito2 frozen_v1_samples_fixture_is_rejected
v1-manifest.json and v1-part.hex describe a 397-byte part with raw compression,
one leaf/root, and two samples for (table_id=7, tsid=42) at timestamp 100 ms.
The first row is a put with sequence 9 and Float64 negative zero. The second is a
delete with sequence 8 and a null field. Both rows must survive decoding.
The part was assembled independently of the Rust writer, using explicit little-endian fields and XXH64 with seed zero. Its layout is:
| Range | Content |
|---|---|
| 0..16 | Header |
| 16..32 | Constant-step timestamps: first 100, step 0 |
| 32..41 | Delta sequences: first 9, ZigZag delta -1 |
| 41..43 | Raw operations: put 1, delete 0 |
| 43..53 | Nullable XOR: bitmap mode, validity 0x01, negative-zero bits |
| 53..285 | Leaf/root: one block, four column references |
| 285..397 | Trailer with root reference and checksum |
The current reader writes the same wire version as this fixture, so the version
number alone does not reject it. The manifest carries no identity_encoding
discriminator, and the part records only (table_id, tsid), which is a hash: a
part whose two series were merged is structurally valid and ordered exactly like a
correct one. The test installs these exact bytes and recorded object sizes and
asserts that opening them through the samples reader fails on the missing
identity_encoding discriminator.
The part bytes above also predate two later version-1 shapes, neither of which is
migrated: block descriptors now carry a fixed-size key reference into a separate key
area instead of the key bytes, and the trailer records that area (key_end) and is
120 bytes, not 112. The fixture is still rejected for the same reason — the
discriminator is missing — and that rejection happens while opening the manifest,
before any part byte is decoded, so the frozen bytes are not a reader for the current
part layout and must not be regenerated to look like one.
Do not regenerate this fixture just to make a reader change pass. Preserve its bytes for future reader compatibility; introduce a separate versioned fixture when the approved format changes. This is a frozen-byte compatibility check, not a cross-binary upgrade/downgrade test.