Skip to main content

sqb plan

Shows the execution plan without making any changes. Useful for inspecting change detection, backfill policies, and selector scope before building.

Usage

Flags

Output

First run:
Steady state:
When query or schema changes are detected, the plan shows the affected models with backfill actions and cascade information.

Missing upstream dependencies

Planning a scoped selection whose upstream inputs were never built in the target fails with S301 rather than producing a plan that would break at build time:
Build the upstream chain first, or select it along with the model: sqb build --select +fact_orders. On targets with reuse_from configured, missing upstream inputs can instead be cloned from the reuse origin.