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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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