Skip to content

check_staging_dependent_on_downstream

This check identifies instances where a staging model depends on an intermediate or mart model.

Version History

Added in Debby v0.3.0

Parameters

This check does not support any custom parameters.

Info

For more information about how to set custom parameters for a check, see the documentation on configuration.

Source

def check(model: dict, parents: list[dict]):
    if is_staging_model(model):
        for parent in parents:
            assert not is_mart_model(parent)
            assert not is_intermediate_model(parent)