-
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.
- Loading branch information
Justin Larsen
committed
Nov 8, 2019
1 parent
2d0f938
commit a703924
Showing
6 changed files
with
77 additions
and
1 deletion.
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
File renamed without changes.
6 changes: 6 additions & 0 deletions
6
test/integration/008_schema_tests_test/macros-v2/malformed/tests.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 @@ | ||
-- tries to build a macro that always returns an empty set | ||
{% macro test_empty_aggregation(model, column_name) %} | ||
|
||
SELECT * from {{ model }} WHERE 1=0 | ||
|
||
{% endmacro %} |
12 changes: 12 additions & 0 deletions
12
test/integration/008_schema_tests_test/models-v2/custom-bad-test-macro/schema.yml
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,12 @@ | ||
version: 2 | ||
|
||
models: | ||
- name: table_copy | ||
description: "A copy of the table" | ||
columns: | ||
- name: email | ||
tests: | ||
- not_null | ||
# should throw a runtime error | ||
tests: | ||
- empty_aggregation |
8 changes: 8 additions & 0 deletions
8
test/integration/008_schema_tests_test/models-v2/custom-bad-test-macro/table_copy.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,8 @@ | ||
|
||
{{ | ||
config( | ||
materialized='table' | ||
) | ||
}} | ||
|
||
select * from {{ this.schema }}.seed |
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