Skip to content

Commit

Permalink
Fixes deployer lookup tables from the google blockchain public datase…
Browse files Browse the repository at this point in the history
…ts (#1230)

* Fixes deployer lookup tables from the google blockchain public datasets

* Add comment
  • Loading branch information
ravenac95 authored Apr 15, 2024
1 parent 6ad3fa1 commit dd3377c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion warehouse/dbt/macros/models/goog_blockchain_deployers.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

{% macro goog_blockchain_deployers(network_name) %}
WITH {% if is_incremental() %} max_block_timestamp AS (
SELECT MAX(block_timestamp)
{# If there's no existing max time then we arbitrarily query at unix time 0 #}
SELECT COALESCE(MAX(block_timestamp), '1970-01-01') as ts
FROM {{ this }}
),
{% endif %}
Expand Down

0 comments on commit dd3377c

Please sign in to comment.