-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add snapshot tests * Fix snapshot refs * Bump version
- Loading branch information
1 parent
235dfc9
commit acbb79b
Showing
36 changed files
with
445 additions
and
9 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
11 changes: 11 additions & 0 deletions
11
integration_tests/_template/models/marts/snapshot_example.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,11 @@ | ||
select | ||
source_target, | ||
source_database, | ||
source_schema, | ||
source_model, | ||
'{{ target.name }}' as this_target, | ||
'{{ this.database }}' as this_database, | ||
'{{ this.schema }}' as this_schema, | ||
'{{ this.name }}' as this_model | ||
from | ||
{{ ref('snp__example') }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{% snapshot snp__example %} | ||
|
||
select | ||
'{{ target.name }}' as source_target, | ||
'{{ this.database }}' as source_database, | ||
'{{ this.schema }}' as source_schema, | ||
'{{ this.name }}' as source_model, | ||
1 as id, | ||
current_timestamp as updated_at | ||
|
||
{% endsnapshot %} |
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
11 changes: 11 additions & 0 deletions
11
integration_tests/dev_db/models/marts/snapshot_example.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,11 @@ | ||
select | ||
source_target, | ||
source_database, | ||
source_schema, | ||
source_model, | ||
'{{ target.name }}' as this_target, | ||
'{{ this.database }}' as this_database, | ||
'{{ this.schema }}' as this_schema, | ||
'{{ this.name }}' as this_model | ||
from | ||
{{ ref('snp__example') }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{% snapshot snp__example %} | ||
|
||
select | ||
'{{ target.name }}' as source_target, | ||
'{{ this.database }}' as source_database, | ||
'{{ this.schema }}' as source_schema, | ||
'{{ this.name }}' as source_model, | ||
1 as id, | ||
current_timestamp as updated_at | ||
|
||
{% endsnapshot %} |
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
11 changes: 11 additions & 0 deletions
11
integration_tests/dev_db_dev_sch/models/marts/snapshot_example.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,11 @@ | ||
select | ||
source_target, | ||
source_database, | ||
source_schema, | ||
source_model, | ||
'{{ target.name }}' as this_target, | ||
'{{ this.database }}' as this_database, | ||
'{{ this.schema }}' as this_schema, | ||
'{{ this.name }}' as this_model | ||
from | ||
{{ ref('snp__example') }} |
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
11 changes: 11 additions & 0 deletions
11
integration_tests/dev_db_dev_sch/snapshots/snp__example.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,11 @@ | ||
{% snapshot snp__example %} | ||
|
||
select | ||
'{{ target.name }}' as source_target, | ||
'{{ this.database }}' as source_database, | ||
'{{ this.schema }}' as source_schema, | ||
'{{ this.name }}' as source_model, | ||
1 as id, | ||
current_timestamp as updated_at | ||
|
||
{% endsnapshot %} |
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
11 changes: 11 additions & 0 deletions
11
integration_tests/dev_db_env_sch/models/marts/snapshot_example.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,11 @@ | ||
select | ||
source_target, | ||
source_database, | ||
source_schema, | ||
source_model, | ||
'{{ target.name }}' as this_target, | ||
'{{ this.database }}' as this_database, | ||
'{{ this.schema }}' as this_schema, | ||
'{{ this.name }}' as this_model | ||
from | ||
{{ ref('snp__example') }} |
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
11 changes: 11 additions & 0 deletions
11
integration_tests/dev_db_env_sch/snapshots/snp__example.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,11 @@ | ||
{% snapshot snp__example %} | ||
|
||
select | ||
'{{ target.name }}' as source_target, | ||
'{{ this.database }}' as source_database, | ||
'{{ this.schema }}' as source_schema, | ||
'{{ this.name }}' as source_model, | ||
1 as id, | ||
current_timestamp as updated_at | ||
|
||
{% endsnapshot %} |
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
11 changes: 11 additions & 0 deletions
11
integration_tests/dev_db_replace/models/marts/snapshot_example.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,11 @@ | ||
select | ||
source_target, | ||
source_database, | ||
source_schema, | ||
source_model, | ||
'{{ target.name }}' as this_target, | ||
'{{ this.database }}' as this_database, | ||
'{{ this.schema }}' as this_schema, | ||
'{{ this.name }}' as this_model | ||
from | ||
{{ ref('snp__example') }} |
Oops, something went wrong.