Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
izeigerman opened this issue Mar 11, 2025 · 0 comments
Labels
Improvement Improves existing functionality

Comments

@izeigerman
Copy link
Member

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.

@izeigerman izeigerman added the Improvement Improves existing functionality label Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement Improves existing functionality
Projects
None yet
Development

No branches or pull requests

1 participant