sqb diff compares VDE ref sets within the same physical target. It shows which models have different version hashes and, for changed models, reports schema and row-level differences.
Basic usage
<left_vde>:<right_vde>. Both VDEs must exist in the active physical target’s state store.
What diff shows
- Ref comparison - which models have different version hashes between the two VDEs
- Schema differences - column additions, removals, and type changes for changed models
- Row differences - row counts, matched/unmatched rows, and changed column values
Options
Working VDE guard
If either VDE is working (has stale models that haven’t been built yet), diff is blocked by default because the comparison may be incomplete:Comparison with standard-mode diff
In standard mode,sqb diff prod:dev compares physical target schemas and data directly in the warehouse. In virtual mode, sqb diff dev:pr_123 compares VDE pointer sets within a single physical target, then inspects the physical versions those pointers reference.
The output format is the same - schema diffs, row counts, changed columns, and example rows. The difference is what is being compared: physical targets vs virtual pointer sets.
