explain-differ

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Command explain-differ dumps the planned PHYSICAL plan shape of every query in the yamsql conformance corpus to a stable text baseline, and diffs two such baselines.

RFC-183 §6 deliverable: removing the nil-inner shell plans changes plan hashes and costs, which can silently flip which plan wins. A flipped-but- still-correct plan passes every row-level test, so the corpus-wide plan diff is the only check that can see it.

Typical use — before/after a planner change:

git stash                                              # or a worktree on master
go run ./cmd/explain-differ dump -out /tmp/before.txt
git stash pop
go run ./cmd/explain-differ dump -out /tmp/after.txt
go run ./cmd/explain-differ diff /tmp/before.txt /tmp/after.txt

`diff` exits 1 when the baselines differ, so it drops straight into CI or a pre-merge gate.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL