compare_sources
Compare two sources for schema differences and distribution drift, returning a drop-in verdict (safe/risky/incompatible) with PSI/KS/chi-square stats. Samples large sources; optional key overlap.
Instructions
Schema diff + per-column distribution drift between two loaded sources.
Returns a 'drop-in verdict' (safe / risky / incompatible). Numeric drift
via PSI (Population Stability Index, scale-invariant) + KS test p-value.
Categorical drift via PSI + chi-square + value-set diff. Auto-samples
sources over 500K rows. Pass `keys` for join-key overlap stats.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | No | ||
| source_a | Yes | ||
| source_b | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||