wiring.get_check_name_for_rule()

Return the asset check name for the Dataframely rule named rule_name.

Usage

Source

wiring.get_check_name_for_rule(rule_name)

The error rows’ rule columns have this name, and so does the check of every rule at rule granularity and of every schema-level rule at column.

Parameters

rule_name: str
The rule’s name as Dataframely reports it: <column>|<rule> for a column rule, or the method name for a @dy.rule().

Returns

str
dy_rule__ followed by rule_name with | replaced by __.

Examples

import dagster_dataframely as dd

dd.wiring.get_check_name_for_rule("amount|min")
'dy_rule__amount__min'