-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Jacob Beck
committed
Apr 12, 2019
1 parent
1eb5003
commit ff94d87
Showing
15 changed files
with
497 additions
and
511 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
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
22 changes: 11 additions & 11 deletions
22
test/integration/004_simple_archive_test/invalidate_postgres.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,27 +1,27 @@ | ||
|
||
-- update records 11 - 21. Change email and updated_at field | ||
update {schema}.seed set | ||
"updated_at" = "updated_at" + interval '1 hour', | ||
"email" = 'new_' || "email" | ||
where "id" >= 10 and "id" <= 20; | ||
updated_at = updated_at + interval '1 hour', | ||
email = 'new_' || email | ||
where id >= 10 and id <= 20; | ||
|
||
|
||
-- invalidate records 11 - 21 | ||
update {schema}.archive_expected set | ||
"dbt_valid_to" = "updated_at" + interval '1 hour' | ||
where "id" >= 10 and "id" <= 20; | ||
dbt_valid_to = updated_at + interval '1 hour' | ||
where id >= 10 and id <= 20; | ||
|
||
|
||
update {schema}.archive_castillo_expected set | ||
"dbt_valid_to" = "updated_at" + interval '1 hour' | ||
where "id" >= 10 and "id" <= 20; | ||
dbt_valid_to = updated_at + interval '1 hour' | ||
where id >= 10 and id <= 20; | ||
|
||
|
||
update {schema}.archive_alvarez_expected set | ||
"dbt_valid_to" = "updated_at" + interval '1 hour' | ||
where "id" >= 10 and "id" <= 20; | ||
dbt_valid_to = updated_at + interval '1 hour' | ||
where id >= 10 and id <= 20; | ||
|
||
|
||
update {schema}.archive_kelly_expected set | ||
"dbt_valid_to" = "updated_at" + interval '1 hour' | ||
where "id" >= 10 and "id" <= 20; | ||
dbt_valid_to = updated_at + interval '1 hour' | ||
where id >= 10 and id <= 20; |
10 changes: 5 additions & 5 deletions
10
test/integration/004_simple_archive_test/invalidate_snowflake.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,12 +1,12 @@ | ||
|
||
-- update records 11 - 21. Change email and updated_at field | ||
update {database}.{schema}.seed set | ||
"updated_at" = DATEADD(hour, 1, "updated_at"), | ||
"email" = 'new_' || "email" | ||
where "id" >= 10 and "id" <= 20; | ||
updated_at = DATEADD(hour, 1, updated_at), | ||
email = 'new_' || email | ||
where id >= 10 and id <= 20; | ||
|
||
|
||
-- invalidate records 11 - 21 | ||
update {database}.{schema}.archive_expected set | ||
"dbt_valid_to" = DATEADD(hour, 1, "updated_at") | ||
where "id" >= 10 and "id" <= 20; | ||
dbt_valid_to = DATEADD(hour, 1, updated_at) | ||
where id >= 10 and id <= 20; |
Oops, something went wrong.