check_drift: Check for drift from committed snapshot
Description
Compares current data against its committed reference snapshot.
When both snapshots are keyed with the same key columns, returns a
cell-level diff. Otherwise falls back to structural comparison.
Usage
check_drift(.data, reference = NULL)
Value
A drift report (class keyed_drift_report), or NULL if no
snapshot found.
Arguments
.data
A data frame with a snapshot reference.
reference
Optional content hash to compare against.
If NULL, uses the attached snapshot reference.