Skip to content

Commit fea4507

Browse files
authored
Fix: make sqlglot generator overriding more robust (#3650)
1 parent a977aea commit fea4507

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlmesh/core/dialect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,7 @@ def extend_sqlglot() -> None:
10141014
exp.Whens: _whens_sql,
10151015
}
10161016
)
1017-
1017+
if MacroDef not in generator.WITH_SEPARATED_COMMENTS:
10181018
generator.WITH_SEPARATED_COMMENTS = (
10191019
*generator.WITH_SEPARATED_COMMENTS,
10201020
Model,

0 commit comments

Comments
 (0)