From ac23da21237620b6251226d6db9fa0a2ba7f9a6a Mon Sep 17 00:00:00 2001 From: soispoke <66172107+soispoke@users.noreply.github.com> Date: Thu, 7 Jul 2022 10:44:04 +0200 Subject: [PATCH] Expose erc20 transfers as a table, not view (#1258) Brief comments on the purpose of your changes: *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. --- spellbook/macros/alter_table_properties.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spellbook/macros/alter_table_properties.sql b/spellbook/macros/alter_table_properties.sql index 7d324dcbb97..461d7a8ee7b 100644 --- a/spellbook/macros/alter_table_properties.sql +++ b/spellbook/macros/alter_table_properties.sql @@ -146,7 +146,7 @@ ALTER VIEW tokens_ethereum.erc20 SET TBLPROPERTIES ('dune.public'='true', {% endset %} {% set transfers_ethereum_erc20 %} -ALTER VIEW transfers_ethereum.erc20 SET TBLPROPERTIES('dune.public'='true', +ALTER TABLE transfers_ethereum.erc20 SET TBLPROPERTIES('dune.public'='true', 'dune.data_explorer.blockchains'='["ethereum"]', 'dune.data_explorer.category'='abstraction', 'dune.data_explorer.abstraction.type'='sector',