Skip to content

Commit

Permalink
Fix incremental run time issues (#1195)
Browse files Browse the repository at this point in the history
Fix small typo for magiceden materialization

I've checked that:

* [ ] I tested the query on dune.com after compiling the model with dbt compile (compiled queries are written to the target directory)
* [ ] I used "refs" to reference other models in this repo and "sources" to reference raw or decoded tables 
* [ ] the directory tree matches the pattern /sector/blockchain/ e.g. /tokens/ethereum
* [ ] if adding a new model, I added a test
* [ ] the filename is unique and ends with .sql
* [ ] each file has only one view, table or function defined  
* [ ] column names are `lowercase_snake_cased`
  • Loading branch information
soispoke authored Jun 20, 2022
1 parent 19e8270 commit 1195d2f
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 18 deletions.
8 changes: 5 additions & 3 deletions spellbook/models/magiceden/magiceden_trades.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{{
config(
alias='trades', materialize = 'incremental')
{{ config(
alias ='trades',
materialized ='incremental',
file_format ='delta'
)
}}

SELECT blockchain, 'magiceden' as project, '' as version, tx_hash, block_time, amount_usd, amount, token_symbol, token_address, unique_trade_id
Expand Down
8 changes: 5 additions & 3 deletions spellbook/models/nft/nft_trades.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{{
config(
alias='trades', materialize = 'incremental')
{{ config(
alias ='trades',
materialized ='incremental',
file_format ='delta'
)
}}

SELECT blockchain, project, version, tx_hash, block_time, amount_usd, amount, token_symbol, token_address, unique_trade_id FROM
Expand Down
8 changes: 5 additions & 3 deletions spellbook/models/opensea/opensea_trades.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{{
config(
alias='trades', materialize = 'incremental')
{{ config(
alias ='trades',
materialized ='incremental',
file_format ='delta'
)
}}

SELECT blockchain, 'opensea' as project, 'v1' as version, tx_hash, block_time, amount_usd, amount, token_symbol, token_address, unique_trade_id FROM
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{{ config(
alias ='erc1155_agg_day',
materialized ='incremental'
materialized ='incremental',
file_format ='delta'
)
}}

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

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

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

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

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

Expand Down
8 changes: 5 additions & 3 deletions spellbook/models/uniswap/uniswap_trades.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{{
config(
alias='trades', materialize = 'incremental')
{{ config(
alias ='trades',
materialized ='incremental',
file_format ='delta'
)
}}

SELECT blockchain, project, version, block_time, token_a_symbol, token_b_symbol,
Expand Down

0 comments on commit 1195d2f

Please sign in to comment.