Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/concepts/models/python_models.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ import typing as t
from datetime import datetime

import pandas as pd
from sqlglot.expressions import to_column
from sqlmesh import ExecutionContext, model

@model(
Expand All @@ -317,7 +318,7 @@ from sqlmesh import ExecutionContext, model
"name": "Name corresponding to the ID",
},
audits=[
("not_null", {"columns": ["id"]}),
("not_null", {"columns": [to_column("id")]}),
],
)
def execute(
Expand Down