wiring.check_specs()
Return the asset check specs for the schema’s rules, plus the column-schema check.
Usage
wiring.check_specs(
schema,
*,
asset,
check_granularity=None,
schema_rules=None,
)Parameters
check_granularity: Granularity | None = None-
How many checks report the schema’s rules. Changing it on an asset that has already run starts a new check history.
NoneusesDAGSTER_DATAFRAMELY_CHECK_GRANULARITYif set, elserule. schema_rules: SchemaRules | None = None-
Which checks report the schema-level rules at
columngranularity.NoneusesDAGSTER_DATAFRAMELY_SCHEMA_RULESif set, elsecollapsed.
Returns
The column-schema check’s spec first, then one spec per rule set.
Raises
InvalidSettingError-
A setting’s argument or environment variable has a value the setting does not allow.
ReservedColumnError-
A column name is in the reserved
dy_namespace. InvalidColumnNameError-
A column name has a character Dagster does not allow in an asset check name.
CheckNameCollisionError- Two rules produce the same asset check name.