-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a75d996
commit 5d47d50
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{% macro learn_logging() %} | ||
{{ log("Call your mom!") }} | ||
{{ log("Call your dad!", info=True) }} --> Logs to the screen, too | ||
-- {{ log("Call your dad!", info=True) }} --> This will be put to the screen | ||
{% log("Call your dad!", info=True) %} --> This won't be executed | ||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{% macro learn_variables() %} | ||
|
||
{% set your_name_jinja = "Zoltan" %} | ||
{{ log("Hello " ~ your_name_jinja, info=True) }} | ||
|
||
{{ log("Hello dbt user " ~ var("user_name", "NO USERNAME IS SET!!") ~ "!", info=True) }} | ||
|
||
{% if var("in_test", False) %} | ||
{{ log("In test", info=True) }} | ||
{% else %} | ||
{{ log("NOT in test", info=True) }} | ||
{% endif %} | ||
|
||
{% endmacro %} |