Skip to content

Commit

Permalink
Update transfers_optimism_eth.sql (#1418)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dot2dotseurat authored Aug 24, 2022
1 parent 9899965 commit f7e5eb5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f7e5eb5

Please sign in to comment.