Repository navigation
Todo
Labels
Description
Parent issue
Parent issue: #26154
Goal
Provide the compatibility, differential, storage-race, lifecycle, and E2E evidence required to ship Substrait sidecar offload. Matching rows alone is insufficient: tests must prove the expected backend executed and every terminal resource was released.
Delivered foundation
#26660 added:
- a runner contract with query-scoped execution evidence and explicit native/offloaded expectations;
- schema-first, byte-exact typed row comparison preserving NULL/text/binary distinctions and duplicate multiplicity;
- stable SQL error comparison;
- ordered, exact unordered, and bounded failure-path comparisons; and
- deterministic permission-restricted, secret-redacted failure artifacts.
Remaining coverage
- All-22 TPC-H differential: load an eligible flushed dataset, run Q1-Q22 natively and through the sidecar, compare typed results, and require actual Sirius GPU execution with no DuckDB CPU fallback.
- Semantic counterexamples: join NULLs/duplicates/empty sides; decimal precision, scale, rounding, overflow and division errors; date epoch/leap boundaries;
CASE,IN,LIKE, prefix, extraction and substring; empty/global/grouped aggregates; ordering and limit ties; and Q15's accepted shared-plan representation. - Contract/version skew: canonical capability mismatch, malformed anchors/types/references,
TaeReadbinding failures, schema drift, ticket replay, and unsupported descendants must fail or fall back at the specified boundary. - Storage/lifecycle: interleave admission with flush/delete/commit, schema change, compaction and GC; exercise slow clients, cancellation, disconnect, sidecar crash, CN shutdown, decoder failure and MySQL write failure; assert no leaked execution, worker, ticket, resolver entry, object pin, or lease.
- CI tiers: retain a compact CPU-only contract/differential gate and add GPU/object-store/fault-injection coverage with an explicit required summary where infrastructure permits.
Acceptance criteria
- Every declared relation, type, and overload has positive and negative deterministic coverage.
- Q1-Q22 match MatrixOne native results and record real Sirius GPU execution.
- Unsupported or unsafe inputs fall back before visible output; post-visibility failures never replay.
- Failure injection proves exactly-once terminal cleanup and no surviving read after cancellation acknowledgement.
Activity
aunjgr commentedon Jul 24, 2026
Detailed design decisions
Differential oracle. Each test executes native MatrixOne and sidecar offload against fixtures loaded once and pinned to the same snapshot lease. Compare result schema, column metadata, values, NULLs, and statement errors. For unordered queries, canonicalize only in the test harness; do not accidentally require an order absent from SQL.
Backend proof. Correct rows alone do not prove offload: the sidecar can fall back to DuckDB CPU. Integration tests must expose and assert an execution-backend metric/trace (
sirius_gpu,duckdb_cpu_fallback, or rejected) and requiresirius_gpufor cases intended to validate GPU execution.Storage race suite. Add deterministic hooks around manifest creation, object pinning, manifest retrieval, scan start, cancellation, and lease release. Exercise expiry, revocation, compaction/GC attempts, in-memory/unflushed visibility, tombstone presence, and sidecar crash without using timing sleeps as the oracle.
Fuzz and negative corpus. Fuzz bounded Substrait decoding and the
Anyextension parser. Maintain a corpus for unknown anchors, duplicate fields, invalid field references, schema mismatches, oversized plans, malformed Arrow messages, and tickets from the wrong identity. Every case must fail before a scan or GPU allocation.Rollout telemetry. Define dashboards/counters before broad testing: eligibility rejection by reason, validation failure, native fallback phase, lease failures, backend selected, queue time, GPU memory, bytes read/returned, cancellation latency, and native/offloaded latency. Promotion requires both semantic coverage and evidence that the selected workload benefits.
CI tiers. Keep exporter/validator and fake-Flight tests CPU-only. Run Sirius+TAE integration fixtures in a separately provisioned GPU lane. The GPU lane is additive; it must not be the only coverage for correctness gates.
feat: enable local Sirius TPC-H benchmark (#27202)
feat: enable local Sirius TPC-H benchmark (matrixorigin#27202)
feat: enable local Sirius TPC-H benchmark (matrixorigin#27202)
feat: enable local Sirius TPC-H benchmark (matrixorigin#27202)