-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* removed delete_placeholder to use delete_condition properly * added delete_condition example * fixed list options * fixed options render * Increment version for build * fixed the dictionary of options * fixed the missing commas * added heartbeat_table to options * added parse_json_columns * Fix typo in macro name --------- Co-authored-by: Tanya Shemet <[email protected]>
- Loading branch information
Showing
10 changed files
with
70 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
version = "0.2.0" | ||
version = "0.2.1" |
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
2 changes: 1 addition & 1 deletion
2
dbt/include/upsolver/macros/materializations/incremental/create_insert_job.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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{{ config( materialized='incremental', | ||
incremental_strategy='merge', | ||
map_columns_by_name=True, | ||
sync=True, | ||
options={'START_FROM': 'NOW', | ||
'ADD_MISSING_COLUMNS': True, | ||
'RUN_INTERVAL': '1 MINUTE'}, | ||
primary_key=[{'field':'orderid', 'type':'string'}], | ||
delete_condition='nettotal > 1000' ) | ||
}} | ||
|
||
SELECT | ||
* | ||
FROM {{ source('upsert_records_new', 'orders_raw_data_for_upsert_2') }} | ||
WHERE $event_time BETWEEN run_start_time() AND run_end_time() |
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,10 @@ | ||
version: 2 | ||
|
||
sources: | ||
- name: upsert_records_new | ||
database: default_glue_catalog | ||
schema: database_16e61b | ||
tables: | ||
- name: insert_orders_upsert_2 | ||
- name: merge_orders_upsert_2 | ||
- name: orders_raw_data_for_upsert_2 |