Skip to content

Commit b70220b

Browse files
address comments
1 parent 73b530c commit b70220b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sqlmesh/core/model/definition.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@
7474
logger = logging.getLogger(__name__)
7575

7676

77-
UNRENDERABLE_MODEL_FIELDS = {"cron", "description"}
78-
7977
PROPERTIES = {"physical_properties", "session_properties", "virtual_properties"}
8078

8179
RUNTIME_RENDERED_MODEL_FIELDS = {
@@ -84,7 +82,7 @@
8482
"merge_filter",
8583
} | PROPERTIES
8684

87-
CRON_ALIASES = {
85+
CRON_SHORTCUTS = {
8886
"@midnight",
8987
"@hourly",
9088
"@daily",
@@ -2782,7 +2780,9 @@ def render_field_value(value: t.Any) -> t.Any:
27822780

27832781
# We don't want to parse python model cron="@..." kwargs (e.g. @daily) into MacroVar
27842782
if (
2785-
field == "cron" and isinstance(field_value, str) and field_value.lower() in CRON_ALIASES
2783+
field == "cron"
2784+
and isinstance(field_value, str)
2785+
and field_value.lower() in CRON_SHORTCUTS
27862786
) or field_value is None:
27872787
continue
27882788

0 commit comments

Comments
 (0)