We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e07c5fe commit e0a05b9Copy full SHA for e0a05b9
sqlmesh/core/model/definition.py
@@ -2453,7 +2453,7 @@ def _create_model(
2453
statements.extend(property_values.expressions)
2454
2455
jinja_macro_references, used_variables = extract_macro_references_and_variables(
2456
- *(gen(e) for e in statements)
+ *(gen(e if isinstance(e, exp.Expression) else e[0]) for e in statements)
2457
)
2458
2459
if jinja_macros:
0 commit comments