-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Swap aliases ordering and add node parameter to generate_schema_name
Fix many tests Support single-arg generate_schema_name macros Add repeat flag to warn_or_error to suppress duplicate warnings Add a warning if a user's macro does not take a second argument
- Loading branch information
Jacob Beck
committed
May 30, 2019
1 parent
8d2138b
commit 1278662
Showing
7 changed files
with
87 additions
and
12 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
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
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
6 changes: 6 additions & 0 deletions
6
test/integration/006_simple_dependency_test/schema_override_legacy_macros/schema.sql
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 generate_schema_name(schema_name) -%} | ||
|
||
{{ schema_name }}_{{ target.schema }}_macro | ||
|
||
{%- endmacro %} |
4 changes: 2 additions & 2 deletions
4
test/integration/006_simple_dependency_test/schema_override_macros/schema.sql
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
{% macro generate_schema_name(schema_name) -%} | ||
{% macro generate_schema_name(schema_name, node) -%} | ||
|
||
{{ schema_name }}_{{ target.schema }}_macro | ||
{{ schema_name }}_{{ node.schema }}_macro | ||
|
||
{%- 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
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