Expand description
Differ for statistics. Per-statistic granular diff:
- Structural change (columns / kinds / target) →
ReplaceStatistic(skip the rest). statistics_targetdiffers →AlterStatisticSetTarget.- owner differs (lenient) →
AlterObjectOwner. - comment differs →
CommentOnStatistic.
Lenient: target-only statistics do NOT emit DropStatistic (surfaces via
unmanaged-statistic lint in Stage 9).
Spec: docs/superpowers/specs/2026-05-27-statistics-and-check-option-design.md.
Functions§
- diff_
statistics - Compute granular statistic changes needed to converge
targettowardsource. Appends all emitted changes toout.