From 6a9f4c343a3873296ecea20c6e4350fd76d373f6 Mon Sep 17 00:00:00 2001 From: Julius Remigio <14811322+juls858@users.noreply.github.com> Date: Tue, 5 Nov 2024 08:59:37 -0800 Subject: [PATCH] Fix typo in README.md and update macro in evm_live_views.sql to fix `to_latest` --- README.md | 2 +- macros/evm/evm_live_views.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4e64cd9..eb6ccb0 100644 --- a/README.md +++ b/README.md @@ -469,7 +469,7 @@ When False, none of the on-run-start macros are executed on model run Default values are False * Usage: -`dbt run --var '{"UPDATE_UDFS_AND_SPS":True}' -m ...` +`dbt run --vars` '{"UPDATE_UDFS_AND_SPS":True}' -m ...` Dropping and creating udfs can also be done without running a model: diff --git a/macros/evm/evm_live_views.sql b/macros/evm/evm_live_views.sql index daa39d6..680fa2f 100644 --- a/macros/evm/evm_live_views.sql +++ b/macros/evm/evm_live_views.sql @@ -1,7 +1,7 @@ {% macro evm_live_view_latest_block_height(schema, blockchain, network) %} SELECT {{ schema }}.udf_rpc('eth_blockNumber', []) as result, - utils.udf_hex_to_int(result:result)::integer AS latest_block_height, + utils.udf_hex_to_int(result)::integer AS latest_block_height, COALESCE( block_height, latest_block_height