Skip to content

Commit e0a05b9

Browse files
committed
Fix: bug in model creation related to metadata-only statements
1 parent e07c5fe commit e0a05b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlmesh/core/model/definition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2453,7 +2453,7 @@ def _create_model(
24532453
statements.extend(property_values.expressions)
24542454

24552455
jinja_macro_references, used_variables = extract_macro_references_and_variables(
2456-
*(gen(e) for e in statements)
2456+
*(gen(e if isinstance(e, exp.Expression) else e[0]) for e in statements)
24572457
)
24582458

24592459
if jinja_macros:

0 commit comments

Comments
 (0)