We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb104a5 commit 17c2c35Copy full SHA for 17c2c35
sqlmesh/core/model/definition.py
@@ -1479,7 +1479,9 @@ def load_sql_based_model(
1479
if query_or_seed_insert is not None and isinstance(
1480
query_or_seed_insert, (exp.Query, d.JinjaQuery)
1481
):
1482
- jinja_macro_references.update(extract_macro_references(query_or_seed_insert.sql()))
+ jinja_macro_references.update(
1483
+ extract_macro_references(query_or_seed_insert.sql(dialect=dialect))
1484
+ )
1485
return create_sql_model(
1486
name,
1487
query_or_seed_insert,
0 commit comments