You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/concepts/macros/jinja_macros.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -321,6 +321,6 @@ Some SQL dialects interpret double and single quotes differently. We could repla
321
321
322
322
## Mixing macro systems
323
323
324
-
SQLMesh supports both the Jinja and [SQLMesh](./sqlmesh_macros.md) macro systems. We strongly recommend using only one system in a single model - if both are present, they may fail or behave in unintuitive ways.
324
+
SQLMesh supports both the Jinja and [SQLMesh](./sqlmesh_macros.md) macro systems.
325
325
326
-
[Predefined SQLMesh macro variables](./macro_variables.md) can be used in a query containing user-defined Jinja variables and functions. However, predefined variables passed as arguments to a user-defined Jinja macro function must use the Jinja curly brace syntax`{{ start_ds }}` instead of the SQLMesh macro `@` prefix syntax`@start_ds`. Note that curly brace syntax may require quoting to generate the equivalent of the `@` syntax.
326
+
Mixing the two systems is not supported, i.e., a SQL model may either use Jinja syntax, or SQLMesh macro syntax, but not both.
Copy file name to clipboardExpand all lines: docs/concepts/macros/sqlmesh_macros.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2119,4 +2119,6 @@ Typed macros in SQLMesh not only enhance the development experience by making ma
2119
2119
2120
2120
## Mixing macro systems
2121
2121
2122
-
SQLMesh supports both SQLMesh and [Jinja](./jinja_macros.md) macro systems. We strongly recommend using only one system in a model - if both are present, they may fail or behave in unintuitive ways.
2122
+
SQLMesh supports both the Jinja and [SQLMesh](./sqlmesh_macros.md) macro systems.
2123
+
2124
+
Mixing the two systems is not supported, i.e., a SQL model may either use Jinja syntax, or SQLMesh macro syntax, but not both.
0 commit comments