-
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.
Improve error handling on invalid archive configs
Added a special archive-only node that has extra config restrictions add tests for invalid archive config
- Loading branch information
Jacob Beck
committed
Apr 9, 2019
1 parent
41f4bfa
commit f1a5bce
Showing
4 changed files
with
93 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
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
14 changes: 14 additions & 0 deletions
14
test/integration/004_simple_archive_test/test-archives-invalid/archive.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,14 @@ | ||
{% archive archive_sad %} | ||
|
||
{# missing target_database #} | ||
{{ | ||
config( | ||
target_schema=schema, | ||
unique_key='"id" || ' ~ "'-'" ~ ' || "first_name"', | ||
strategy='timestamp', | ||
updated_at='"updated_at"', | ||
) | ||
}} | ||
select * from {{database}}.{{schema}}.seed | ||
|
||
{% endarchive %} |
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