Skip to content

test(engine-bar): run a sqllogictest corpus on both engines - #147

Merged
Sannrox merged 1 commit into
mainfrom
test/115
Nov 27, 2026
Merged

Sannrox merged 1 commit into
mainfrom
test/115

Conversation

@Sannrox

@Sannrox Sannrox commented Nov 27, 2026

Copy link
Copy Markdown
Owner

Closes #115

A named sqllogictest corpus under scripts/engine-bar/slt/ runs as kako jobs on both engines. CREATE/INSERT become CSV inputs; each query is COPY (SELECT …) so the mizuchi adapter can run it. Equality is exact integers, float relative 1e-6, and sorted rows when there is no ORDER BY. skipif records are listed as unsupported, never dropped silently.

Pull-request CI runs the default engine in process (engine_bar_slt). The weekly Engine bar workflow runs both engines through kako run and prints a sqllogictest pass/fail/unsupported row.

Lane

  • Claim branch: test/115
  • Worktree: .worktrees/issue-115
  • Base SHA: 769cd5f1bbd8769ada4d9f9704356e7ff2a3d2b6
  • Published SHA: 06adb4b114ab6671563f1e145da2d7b445ffe68d
  • Authority: land

Reuse decision

  • Job: parse a statement corpus, execute each query on one or two SQL engines through the existing job runner, compare result rows with typed equality, emit pass/fail/unsupported counts
  • Verdict: Generalize
  • Concept: engine-bar harness (scripts/engine-bar/, in-process engine_bar_sf, report.py equality, Engine bar workflow)
  • Edge: SLT parse, CREATE/INSERT to CSV, COPY wrapper, skipif listing
  • Searched: engine-bar run.sh/sf, report.py, engine_bar_sf.rs, kako job JSON, mizuchi COPY-only adapter; rejected a new crate and an in-process Arrow table store

Prior art

Pattern from the existing SLT parser in the opt-in engine's tests. Not depended on as a library (wrong runtime: in-process tables, not kako jobs). SQLite-style C harness skipped (wrong stack).

Simplify-change

No new crate, workflow, or engine API. One Python harness owns parse/compare; the Rust test only executes. SEMI/ANTI stay as explicit skipif duckdb_sql rather than a second dialect file. Growth is the corpus plus harness; splitting would ship an unrun corpus.

Verification

Published SHA 06adb4b114ab6671563f1e145da2d7b445ffe68d, clean tree.

  • cargo fmt --all -- --check
  • cargo build --locked --workspace --all-targets
  • cargo clippy --locked --workspace --all-targets -- -D warnings
  • cargo clippy --locked -p kako-source-sekai --features sekai-client --all-targets -- -D warnings
  • cargo test --locked --workspace
  • cargo test --locked -p kako-source-sekai --features sekai-client
  • python3 -m unittest discover -s tests -t .
  • python3 scripts/adr-index --check
  • bash scripts/validate-workflow-skills.sh
  • bash scripts/check-workflows.sh

kako run of the corpus needs linux_native; that path is the weekly job, not local cargo test. pip install of tests/requirements.txt was skipped (externally managed Python); PyYAML was already present.

Autoreview

--mode local on the published tree: scoped-clean, no accepted/actionable findings (P0).

validate-behavior

Skipped: CI/harness change with no operator-facing flow beyond the report row, which the unittest and in-process corpus test cover.

Compatibility

No JobSource, receipt, sandbox pin, or runtime image change. Unsupported statements must appear in the slt report, not as silent skips.

Add a named .slt corpus under scripts/engine-bar/slt, run each query as a
kako job, and report pass/fail/unsupported. Pull-request CI covers the
default engine in process; the weekly engine-bar workflow runs both engines
through kako run.

Closes #115
@Sannrox
Sannrox marked this pull request as ready for review November 27, 2026 20:15
@Sannrox
Sannrox merged commit 72ecdf7 into main Nov 27, 2026
24 of 25 checks passed
@Sannrox
Sannrox deleted the test/115 branch November 27, 2026 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(engine-bar): sqllogictest corpus run against both engines

1 participant