Skip to content

Commit

Permalink
fix incremental strategy from append to merge into (#1204)
Browse files Browse the repository at this point in the history
  • Loading branch information
soispoke authored Jun 22, 2022
1 parent 1289781 commit 1861c60
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 10 deletions.
4 changes: 3 additions & 1 deletion spellbook/models/magiceden/magiceden_trades.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{{ config(
alias ='trades',
materialized ='incremental',
file_format ='delta'
file_format ='delta',
incremental_strategy='merge',
unique_key='unique_trade_id'
)
}}

Expand Down
4 changes: 3 additions & 1 deletion spellbook/models/nft/nft_trades.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{{ config(
alias ='trades',
materialized ='incremental',
file_format ='delta'
file_format ='delta',
incremental_strategy='merge',
unique_key='unique_trade_id'
)
}}

Expand Down
4 changes: 3 additions & 1 deletion spellbook/models/opensea/opensea_trades.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{{ config(
alias ='trades',
materialized ='incremental',
file_format ='delta'
file_format ='delta',
incremental_strategy='merge',
unique_key='unique_trade_id'
)
}}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{{ config(
alias ='erc1155_agg_day',
materialized ='incremental',
file_format ='delta'
file_format ='delta',
incremental_strategy='merge',
unique_key='unique_transfer_id'
)
}}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{{ config(
alias ='erc1155_agg_hour',
materialized ='incremental',
file_format ='delta'
file_format ='delta',
incremental_strategy='merge',
unique_key='unique_transfer_id'
)
}}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{{ config(
alias ='erc20_agg_day',
materialized ='incremental',
file_format ='delta'
file_format ='delta',
incremental_strategy='merge',
unique_key='unique_transfer_id'
)
}}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{{ config(
alias ='erc20_agg_hour',
materialized ='incremental',
file_format ='delta'
file_format ='delta',
incremental_strategy='merge',
unique_key='unique_transfer_id'
)
}}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{{ config(
alias ='erc721_agg_day',
materialized ='incremental',
file_format ='delta'
file_format ='delta',
incremental_strategy='merge',
unique_key='unique_transfer_id'
)
}}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{{ config(
alias ='erc721_agg_hour',
materialized ='incremental',
file_format ='delta'
file_format ='delta',
incremental_strategy='merge',
unique_key='unique_transfer_id'
)
}}

Expand Down
4 changes: 3 additions & 1 deletion spellbook/models/uniswap/uniswap_trades.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{{ config(
alias ='trades',
materialized ='incremental',
file_format ='delta'
file_format ='delta',
incremental_strategy='merge',
unique_key='unique_trade_id'
)
}}

Expand Down

0 comments on commit 1861c60

Please sign in to comment.