From f7e5eb502b3dd9ac89d0b68a5227702f099a3dd0 Mon Sep 17 00:00:00 2001 From: Meghan Heintz Date: Tue, 23 Aug 2022 21:55:29 -0400 Subject: [PATCH] Update transfers_optimism_eth.sql (#1418) Brief comments on the purpose of your changes: bug in incremental block *For Dune Engine V2* 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 * [ ] if adding a new model, I added a test * [ ] the filename is unique and ends with .sql * [ ] each sql file is a select statement and has only one view, table or function defined * [ ] column names are `lowercase_snake_cased` When you are ready for a review, tag duneanalytics/data-experience. We will re-open your forked pull request as an internal pull request. Then your spells will run in dbt and the logs will be avaiable in Github Actions DBT Slim CI. This job will only run the models and tests changed by your PR compared to the production project. --- .../models/transfers/optimism/eth/transfers_optimism_eth.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spellbook/models/transfers/optimism/eth/transfers_optimism_eth.sql b/spellbook/models/transfers/optimism/eth/transfers_optimism_eth.sql index 4e19445d508..44d82756043 100644 --- a/spellbook/models/transfers/optimism/eth/transfers_optimism_eth.sql +++ b/spellbook/models/transfers/optimism/eth/transfers_optimism_eth.sql @@ -57,7 +57,7 @@ with eth_transfers as ( and t.success and r.value > 0 {% if is_incremental() %} -- this filter will only be applied on an incremental run - and r.block_time >= (select max(tx_block_time) - interval 2 days from {{ this }}) + and r.evt_block_time >= (select max(tx_block_time) - interval 2 days from {{ this }}) {% endif %} ) select * from eth_transfers order by tx_block_time