Skip to content

check_staging_dependent_on_staging

This check validates that a staging model does not depend on any other staging models.

Version History

Added in Debby v0.2.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):
        upstream_staging_models = [p for p in parents if is_staging_model(p)]
        assert not any(upstream_staging_models)