Is Contained In¶
Check: is-contained-in-check
Purpose: Validates that column values belong to a predefined set of allowed values. Use this to enforce domain constraints and catch unexpected or invalid categorical values early in the pipeline.
This check supports any data type comparable by equality (strings, integers, dates, etc.).
Typical Use Cases¶
- Validate that status fields contain only permitted operational states.
- Ensure country codes or region identifiers belong to a known reference set.
- Detect ingestion errors where unrecognized or malformed categorical values are introduced.