Skip to content

Commit 4ad15cd

Browse files
committed
docs: address review feedback
Signed-off-by: gps23 <143864435+gps23@users.noreply.github.com>
1 parent e70e31d commit 4ad15cd

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎docs/concepts/audits.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ Standalone audits are defined independently rather than being attached to a spec
164164

165165
Unlike model-level audits, standalone audits can be used to validate data across one or more models without being associated with a single model.
166166

167-
```sql
167+
Standalone audits run as scheduled nodes during both `sqlmesh plan` and `sqlmesh run`.
168+
169+
```sql linenums="1"
168170
AUDIT (
169171
name assert_item_price_is_not_null,
170172
dialect spark,
@@ -183,7 +185,7 @@ WHERE
183185

184186
In this example, the audit checks that the `price` column in `sushi.items` does not contain `NULL` values for the selected date range.
185187

186-
Standalone audits must declare the models they depend on using `depends_on`, since they are not attached to a model definition.
188+
Standalone audits can declare dependencies using the `depends_on` property. SQLMesh can often infer dependencies directly from the audit query, but using `depends_on` is recommended when inference isn't sufficient.
187189

188190
!!! note
189191

0 commit comments

Comments
 (0)