Skip to content

Adding an audit is a metadata change and it doesn't run on plan application #3970

Open
@izeigerman

Description

@izeigerman

In which case the audit's behavior is not validating when testing in dev. A problematic workflow may look like following:

  1. The user adds a new audit to an existing model and references a non-existing projection in its query
  2. SQLMesh detects a metadata change and applies the plan without evaluating anything
  3. The user deploys to production where the audit fails during the next sqlmesh run execution

We need to come up with a way to verify added audits without evaluating associated models when applying the plan in a dev environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ImprovementImproves existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions