From c8087ce6a67e347ff474cc54838dd7c2c0930bb3 Mon Sep 17 00:00:00 2001 From: github-actions Date: Fri, 10 Oct 2025 16:26:34 +0000 Subject: [PATCH] Auto-update docs --- .user.yml | 1 + docs/catalog.json | 1 + docs/index.html | 75 ++++++++++++++++++++++++++++++++++++++++++++++ docs/manifest.json | 1 + package-lock.yml | 6 ++-- 5 files changed, 81 insertions(+), 3 deletions(-) create mode 100644 .user.yml create mode 100644 docs/catalog.json create mode 100644 docs/index.html create mode 100644 docs/manifest.json diff --git a/.user.yml b/.user.yml new file mode 100644 index 0000000..7581721 --- /dev/null +++ b/.user.yml @@ -0,0 +1 @@ +id: bf4e8794-72f9-4e1d-acd0-2ded6a2c5719 diff --git a/docs/catalog.json b/docs/catalog.json new file mode 100644 index 0000000..7283bf7 --- /dev/null +++ b/docs/catalog.json @@ -0,0 +1 @@ +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.7.19", "generated_at": "2025-10-10T16:26:30.585932Z", "invocation_id": "f3fd32af-64d3-4c75-bfb6-95e2946ea073", "env": {}}, "nodes": {"model.external_models.bronze__defillama_protocol_tvl": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "DEFILLAMA_PROTOCOL_TVL", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TIMESTAMP": {"type": "DATE", "index": 1, "name": "TIMESTAMP", "comment": ""}, "PROTOCOL_ID": {"type": "TEXT", "index": 2, "name": "PROTOCOL_ID", "comment": ""}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": ""}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": ""}, "MARKET_CAP": {"type": "FLOAT", "index": 5, "name": "MARKET_CAP", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 6, "name": "SYMBOL", "comment": ""}, "TVL": {"type": "FLOAT", "index": 7, "name": "TVL", "comment": ""}, "TVL_PREV_DAY": {"type": "FLOAT", "index": 8, "name": "TVL_PREV_DAY", "comment": ""}, "TVL_PREV_WEEK": {"type": "FLOAT", "index": 9, "name": "TVL_PREV_WEEK", "comment": ""}, "TVL_PREV_MONTH": {"type": "FLOAT", "index": 10, "name": "TVL_PREV_MONTH", "comment": ""}, "CHAIN": {"type": "TEXT", "index": 11, "name": "CHAIN", "comment": ""}, "CHAIN_TVL": {"type": "NUMBER", "index": 12, "name": "CHAIN_TVL", "comment": ""}, "CHAIN_TVL_PREV_DAY": {"type": "NUMBER", "index": 13, "name": "CHAIN_TVL_PREV_DAY", "comment": ""}, "CHAIN_TVL_PREV_WEEK": {"type": "NUMBER", "index": 14, "name": "CHAIN_TVL_PREV_WEEK", "comment": ""}, "CHAIN_TVL_PREV_MONTH": {"type": "NUMBER", "index": 15, "name": "CHAIN_TVL_PREV_MONTH", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(chain)", "include": true, "description": "The key used to cluster this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 08:45UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 413910528, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 9392894, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__defillama_protocol_tvl"}, "model.external_models.bronze__dnv_tokens": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "DNV_TOKENS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RESP": {"type": "VARIANT", "index": 1, "name": "RESP", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "_INSERTED_TIMESTAMP", "comment": null}, "COLLECTION_SLUG": {"type": "TEXT", "index": 3, "name": "COLLECTION_SLUG", "comment": null}, "_ID": {"type": "TEXT", "index": 4, "name": "_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-01-12 02:25UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 3748047872, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 8292, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__dnv_tokens"}, "model.external_models.bronze__flashbots_protect_txs_fr": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "FLASHBOTS_PROTECT_TXS_FR", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 1, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 2, "name": "TX_HASH", "comment": ""}, "FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "FROM_ADDRESS", "comment": ""}, "TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "TO_ADDRESS", "comment": ""}, "CREATED_AT_BLOCK_NUMBER": {"type": "NUMBER", "index": 5, "name": "CREATED_AT_BLOCK_NUMBER", "comment": ""}, "TX_ID": {"type": "TEXT", "index": 6, "name": "TX_ID", "comment": ""}, "HINTS_SELECTED": {"type": "TEXT", "index": 7, "name": "HINTS_SELECTED", "comment": ""}, "NUM_OF_BUILDERS_SHARED": {"type": "NUMBER", "index": 8, "name": "NUM_OF_BUILDERS_SHARED", "comment": ""}, "REFUND_PERCENT": {"type": "NUMBER", "index": 9, "name": "REFUND_PERCENT", "comment": ""}, "VALUE": {"type": "VARIANT", "index": 10, "name": "VALUE", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__flashbots_protect_txs_fr"}, "model.external_models.bronze__defillama_stablecoin_metrics_FR": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "DEFILLAMA_STABLECOIN_METRICS_FR", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATA": {"type": "VARIANT", "index": 1, "name": "DATA", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 3, "name": "PARTITION_KEY", "comment": ""}, "VALUE": {"type": "VARIANT", "index": 4, "name": "VALUE", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 5, "name": "FILE_NAME", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__defillama_stablecoin_metrics_FR"}, "model.external_models.bronze__defillama_stablecoin_metrics": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "DEFILLAMA_STABLECOIN_METRICS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATA": {"type": "VARIANT", "index": 1, "name": "DATA", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 3, "name": "PARTITION_KEY", "comment": ""}, "VALUE": {"type": "VARIANT", "index": 4, "name": "VALUE", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 5, "name": "FILE_NAME", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__defillama_stablecoin_metrics"}, "model.external_models.bronze__oklink_FR": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "OKLINK_FR", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE_DAY": {"type": "DATE", "index": 1, "name": "DATE_DAY", "comment": ""}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": ""}, "METRIC": {"type": "TEXT", "index": 3, "name": "METRIC", "comment": ""}, "DATA": {"type": "VARIANT", "index": 4, "name": "DATA", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 6, "name": "PARTITION_KEY", "comment": ""}, "VALUE": {"type": "VARIANT", "index": 7, "name": "VALUE", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 8, "name": "FILE_NAME", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__oklink_FR"}, "seed.external_models.bronze__verified_tokenlist_seed": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "VERIFIED_TOKENLIST_SEED", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"INDEX": {"type": "NUMBER", "index": 1, "name": "INDEX", "comment": null}, "TOKEN_LIST": {"type": "TEXT", "index": 2, "name": "TOKEN_LIST", "comment": null}, "API_URL": {"type": "TEXT", "index": 3, "name": "API_URL", "comment": null}, "IS_ENABLED": {"type": "BOOLEAN", "index": 4, "name": "IS_ENABLED", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-29 15:40UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 3072, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 34, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.external_models.bronze__verified_tokenlist_seed"}, "model.external_models.bronze__defillama_stablecoins": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "DEFILLAMA_STABLECOINS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"STABLECOIN_ID": {"type": "TEXT", "index": 1, "name": "STABLECOIN_ID", "comment": ""}, "STABLECOIN": {"type": "TEXT", "index": 2, "name": "STABLECOIN", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": ""}, "PEG_TYPE": {"type": "TEXT", "index": 4, "name": "PEG_TYPE", "comment": ""}, "PEG_MECHANISM": {"type": "TEXT", "index": 5, "name": "PEG_MECHANISM", "comment": ""}, "PRICE_SOURCE": {"type": "TEXT", "index": 6, "name": "PRICE_SOURCE", "comment": ""}, "CHAINS": {"type": "VARIANT", "index": 7, "name": "CHAINS", "comment": ""}, "ROW_NUM": {"type": "NUMBER", "index": 8, "name": "ROW_NUM", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 08:07UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 24576, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 299, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__defillama_stablecoins"}, "model.external_models.bronze__bitquery": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "BITQUERY", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE_DAY": {"type": "DATE", "index": 1, "name": "DATE_DAY", "comment": ""}, "DATE_DAY_2": {"type": "DATE", "index": 2, "name": "DATE_DAY_2", "comment": ""}, "BLOCKCHAIN": {"type": "TEXT", "index": 3, "name": "BLOCKCHAIN", "comment": ""}, "METRIC": {"type": "TEXT", "index": 4, "name": "METRIC", "comment": ""}, "DATA": {"type": "VARIANT", "index": 5, "name": "DATA", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 7, "name": "PARTITION_KEY", "comment": ""}, "VALUE": {"type": "VARIANT", "index": 8, "name": "VALUE", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 9, "name": "FILE_NAME", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__bitquery"}, "model.external_models.bronze__polymarket_markets": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "POLYMARKET_MARKETS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CONDITION_ID": {"type": "TEXT", "index": 1, "name": "CONDITION_ID", "comment": ""}, "QUESTION": {"type": "TEXT", "index": 2, "name": "QUESTION", "comment": ""}, "DESCRIPTION": {"type": "TEXT", "index": 3, "name": "DESCRIPTION", "comment": ""}, "TOKENS": {"type": "VARIANT", "index": 4, "name": "TOKENS", "comment": ""}, "TOKEN_1_TOKEN_ID": {"type": "TEXT", "index": 5, "name": "TOKEN_1_TOKEN_ID", "comment": ""}, "TOKEN_1_OUTCOME": {"type": "TEXT", "index": 6, "name": "TOKEN_1_OUTCOME", "comment": ""}, "TOKEN_1_WINNER": {"type": "TEXT", "index": 7, "name": "TOKEN_1_WINNER", "comment": ""}, "TOKEN_2_TOKEN_ID": {"type": "TEXT", "index": 8, "name": "TOKEN_2_TOKEN_ID", "comment": ""}, "TOKEN_2_OUTCOME": {"type": "TEXT", "index": 9, "name": "TOKEN_2_OUTCOME", "comment": ""}, "TOKEN_2_WINNER": {"type": "TEXT", "index": 10, "name": "TOKEN_2_WINNER", "comment": ""}, "ENABLE_ORDER_BOOK": {"type": "TEXT", "index": 11, "name": "ENABLE_ORDER_BOOK", "comment": ""}, "ACTIVE": {"type": "BOOLEAN", "index": 12, "name": "ACTIVE", "comment": ""}, "CLOSED": {"type": "BOOLEAN", "index": 13, "name": "CLOSED", "comment": ""}, "ARCHIVED": {"type": "BOOLEAN", "index": 14, "name": "ARCHIVED", "comment": ""}, "ACCEPTING_ORDERS": {"type": "BOOLEAN", "index": 15, "name": "ACCEPTING_ORDERS", "comment": ""}, "ACCEPTING_ORDER_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "ACCEPTING_ORDER_TIMESTAMP", "comment": ""}, "MINIMUM_ORDER_SIZE": {"type": "NUMBER", "index": 17, "name": "MINIMUM_ORDER_SIZE", "comment": ""}, "MINIMUM_TICK_SIZE": {"type": "NUMBER", "index": 18, "name": "MINIMUM_TICK_SIZE", "comment": ""}, "QUESTION_ID": {"type": "TEXT", "index": 19, "name": "QUESTION_ID", "comment": ""}, "MARKET_SLUG": {"type": "TEXT", "index": 20, "name": "MARKET_SLUG", "comment": ""}, "END_DATE_ISO": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "END_DATE_ISO", "comment": ""}, "GAME_START_TIME": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "GAME_START_TIME", "comment": ""}, "SECONDS_DELAY": {"type": "NUMBER", "index": 23, "name": "SECONDS_DELAY", "comment": ""}, "FPMM": {"type": "TEXT", "index": 24, "name": "FPMM", "comment": ""}, "MAKER_BASE_FEE": {"type": "NUMBER", "index": 25, "name": "MAKER_BASE_FEE", "comment": ""}, "TAKER_BASE_FEE": {"type": "NUMBER", "index": 26, "name": "TAKER_BASE_FEE", "comment": ""}, "NOTIFICATIONS_ENABLED": {"type": "BOOLEAN", "index": 27, "name": "NOTIFICATIONS_ENABLED", "comment": ""}, "NEG_RISK": {"type": "BOOLEAN", "index": 28, "name": "NEG_RISK", "comment": ""}, "NEG_RISK_MARKET_ID": {"type": "TEXT", "index": 29, "name": "NEG_RISK_MARKET_ID", "comment": ""}, "NEG_RISK_REQUEST_ID": {"type": "TEXT", "index": 30, "name": "NEG_RISK_REQUEST_ID", "comment": ""}, "REWARDS": {"type": "VARIANT", "index": 31, "name": "REWARDS", "comment": ""}, "TAGS": {"type": "VARIANT", "index": 32, "name": "TAGS", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 33, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "PAGE_NUMBER": {"type": "NUMBER", "index": 34, "name": "PAGE_NUMBER", "comment": ""}, "COUNT": {"type": "TEXT", "index": 35, "name": "COUNT", "comment": ""}, "CURSOR": {"type": "TEXT", "index": 36, "name": "CURSOR", "comment": ""}, "POLYMARKET_MARKET_ID": {"type": "TEXT", "index": 37, "name": "POLYMARKET_MARKET_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 08:23UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 12550105088, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 17176184, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__polymarket_markets"}, "model.external_models.bronze__artemis_FR": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "ARTEMIS_FR", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE_DAY": {"type": "DATE", "index": 1, "name": "DATE_DAY", "comment": ""}, "RAW_DATA": {"type": "VARIANT", "index": 2, "name": "RAW_DATA", "comment": ""}, "DATA": {"type": "VARIANT", "index": 3, "name": "DATA", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 5, "name": "PARTITION_KEY", "comment": ""}, "VALUE": {"type": "VARIANT", "index": 6, "name": "VALUE", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 7, "name": "FILE_NAME", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__artemis_FR"}, "model.external_models.bronze__layerzero_txs_snapshot1": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "LAYERZERO_TXS_SNAPSHOT1", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"SOURCE_CHAIN": {"type": "TEXT", "index": 1, "name": "SOURCE_CHAIN", "comment": ""}, "SOURCE_TRANSACTION_HASH": {"type": "TEXT", "index": 2, "name": "SOURCE_TRANSACTION_HASH", "comment": ""}, "SOURCE_CONTRACT": {"type": "TEXT", "index": 3, "name": "SOURCE_CONTRACT", "comment": ""}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 4, "name": "DESTINATION_CHAIN", "comment": ""}, "DESTINATION_TRANSACTION_HASH": {"type": "TEXT", "index": 5, "name": "DESTINATION_TRANSACTION_HASH", "comment": ""}, "DESTINATION_CONTRACT": {"type": "TEXT", "index": 6, "name": "DESTINATION_CONTRACT", "comment": ""}, "SENDER_WALLET": {"type": "TEXT", "index": 7, "name": "SENDER_WALLET", "comment": ""}, "SOURCE_TIMESTAMP_UTC": {"type": "TEXT", "index": 8, "name": "SOURCE_TIMESTAMP_UTC", "comment": ""}, "PROJECT": {"type": "TEXT", "index": 9, "name": "PROJECT", "comment": ""}, "NATIVE_DROP_USD": {"type": "TEXT", "index": 10, "name": "NATIVE_DROP_USD", "comment": ""}, "STARGATE_SWAP_USD": {"type": "TEXT", "index": 11, "name": "STARGATE_SWAP_USD", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "SNAPSHOT_VERSION": {"type": "TEXT", "index": 13, "name": "SNAPSHOT_VERSION", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__layerzero_txs_snapshot1"}, "model.external_models.bronze__defillama_bridges": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "DEFILLAMA_BRIDGES", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BRIDGE_ID": {"type": "TEXT", "index": 1, "name": "BRIDGE_ID", "comment": ""}, "BRIDGE": {"type": "TEXT", "index": 2, "name": "BRIDGE", "comment": ""}, "BRIDGE_NAME": {"type": "TEXT", "index": 3, "name": "BRIDGE_NAME", "comment": ""}, "CHAINS": {"type": "VARIANT", "index": 4, "name": "CHAINS", "comment": ""}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 5, "name": "DESTINATION_CHAIN", "comment": ""}, "ROW_NUM": {"type": "NUMBER", "index": 6, "name": "ROW_NUM", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 08:07UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 17920, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 94, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__defillama_bridges"}, "model.external_models.bronze__defillama_perp_metrics_FR": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "DEFILLAMA_PERP_METRICS_FR", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATA": {"type": "VARIANT", "index": 1, "name": "DATA", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 3, "name": "PARTITION_KEY", "comment": ""}, "VALUE": {"type": "VARIANT", "index": 4, "name": "VALUE", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 5, "name": "FILE_NAME", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__defillama_perp_metrics_FR"}, "model.external_models.bronze__blast_leaderboard": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "BLAST_LEADERBOARD", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE": {"type": "DATE", "index": 1, "name": "DATE", "comment": ""}, "LEADERBOARD_TYPE": {"type": "TEXT", "index": 2, "name": "LEADERBOARD_TYPE", "comment": ""}, "RANK": {"type": "NUMBER", "index": 3, "name": "RANK", "comment": ""}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": ""}, "POINTS_AMOUNT": {"type": "NUMBER", "index": 5, "name": "POINTS_AMOUNT", "comment": ""}, "GOLD_AMOUNT": {"type": "FLOAT", "index": 6, "name": "GOLD_AMOUNT", "comment": ""}, "INVITED_BY": {"type": "TEXT", "index": 7, "name": "INVITED_BY", "comment": ""}, "ID": {"type": "TEXT", "index": 8, "name": "ID", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 08:07UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 23593984, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 499000, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__blast_leaderboard"}, "model.external_models.bronze__oklink": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "OKLINK", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE_DAY": {"type": "DATE", "index": 1, "name": "DATE_DAY", "comment": ""}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": ""}, "METRIC": {"type": "TEXT", "index": 3, "name": "METRIC", "comment": ""}, "DATA": {"type": "VARIANT", "index": 4, "name": "DATA", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 6, "name": "PARTITION_KEY", "comment": ""}, "VALUE": {"type": "VARIANT", "index": 7, "name": "VALUE", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 8, "name": "FILE_NAME", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__oklink"}, "model.external_models.bronze__artemis": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "ARTEMIS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE_DAY": {"type": "DATE", "index": 1, "name": "DATE_DAY", "comment": ""}, "RAW_DATA": {"type": "VARIANT", "index": 2, "name": "RAW_DATA", "comment": ""}, "DATA": {"type": "VARIANT", "index": 3, "name": "DATA", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 5, "name": "PARTITION_KEY", "comment": ""}, "VALUE": {"type": "VARIANT", "index": 6, "name": "VALUE", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 7, "name": "FILE_NAME", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__artemis"}, "model.external_models.bronze__snapshot_spaces": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "SNAPSHOT_SPACES", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"SPACE_ID": {"type": "TEXT", "index": 1, "name": "SPACE_ID", "comment": ""}, "SPACE": {"type": "TEXT", "index": 2, "name": "SPACE", "comment": ""}, "ABOUT": {"type": "TEXT", "index": 3, "name": "ABOUT", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": ""}, "NETWORK": {"type": "TEXT", "index": 5, "name": "NETWORK", "comment": ""}, "CATEGORIES": {"type": "VARIANT", "index": 6, "name": "CATEGORIES", "comment": ""}, "DOMAIN": {"type": "TEXT", "index": 7, "name": "DOMAIN", "comment": ""}, "IS_PRIVATE": {"type": "BOOLEAN", "index": 8, "name": "IS_PRIVATE", "comment": ""}, "IS_VERIFIED": {"type": "BOOLEAN", "index": 9, "name": "IS_VERIFIED", "comment": ""}, "ADMINS": {"type": "VARIANT", "index": 10, "name": "ADMINS", "comment": ""}, "MEMBERS": {"type": "VARIANT", "index": 11, "name": "MEMBERS", "comment": ""}, "TREASURIES": {"type": "VARIANT", "index": 12, "name": "TREASURIES", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 16:17UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 9814528, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 90800, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__snapshot_spaces"}, "model.external_models.bronze__all_tokenlists": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "ALL_TOKENLISTS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"API_URL": {"type": "TEXT", "index": 1, "name": "API_URL", "comment": ""}, "REQUEST": {"type": "VARIANT", "index": 2, "name": "REQUEST", "comment": ""}, "KEYWORDS": {"type": "VARIANT", "index": 3, "name": "KEYWORDS", "comment": ""}, "LOGO_URI": {"type": "TEXT", "index": 4, "name": "LOGO_URI", "comment": ""}, "LIST_NAME": {"type": "TEXT", "index": 5, "name": "LIST_NAME", "comment": ""}, "LIST_TAGS": {"type": "VARIANT", "index": 6, "name": "LIST_TAGS", "comment": ""}, "ROW_NUM": {"type": "NUMBER", "index": 7, "name": "ROW_NUM", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "ALL_TOKENLISTS_ID": {"type": "TEXT", "index": 9, "name": "ALL_TOKENLISTS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-06 07:04UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 71155712, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1714, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__all_tokenlists"}, "model.external_models.layerzero__fact_transactions_snapshot": {"metadata": {"type": "VIEW", "schema": "LAYERZERO", "name": "FACT_TRANSACTIONS_SNAPSHOT", "database": "EXTERNAL", "comment": "This table records transactions data provided by LayerZero in their Sybil Reporting effort. You may refer to this github link for more information - https://github.com/LayerZero-Labs/sybil-report/?tab=readme-ov-file . Please reach out to the LayerZero team for any data discrepancies or questions.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"SOURCE_CHAIN": {"type": "TEXT", "index": 1, "name": "SOURCE_CHAIN", "comment": "The chain where the transaction originated from."}, "SOURCE_TRANSACTION_HASH": {"type": "TEXT", "index": 2, "name": "SOURCE_TRANSACTION_HASH", "comment": "The transaction hash from the source chain."}, "SOURCE_CONTRACT": {"type": "TEXT", "index": 3, "name": "SOURCE_CONTRACT", "comment": "The contract address from the source transaction."}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 4, "name": "DESTINATION_CHAIN", "comment": "The chain where the transaction is directed to."}, "DESTINATION_TRANSACTION_HASH": {"type": "TEXT", "index": 5, "name": "DESTINATION_TRANSACTION_HASH", "comment": "The transaction hash on the destination chain."}, "DESTINATION_CONTRACT": {"type": "TEXT", "index": 6, "name": "DESTINATION_CONTRACT", "comment": "The contract address from the destination transaction."}, "SENDER_WALLET": {"type": "TEXT", "index": 7, "name": "SENDER_WALLET", "comment": "The wallet address that initiated the source transaction hash."}, "SOURCE_TIMESTAMP_UTC": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "SOURCE_TIMESTAMP_UTC", "comment": "The timestamp of the source transaction hash in UTC."}, "PROJECT": {"type": "TEXT", "index": 9, "name": "PROJECT", "comment": "The name of the project."}, "NATIVE_DROP_USD": {"type": "TEXT", "index": 10, "name": "NATIVE_DROP_USD", "comment": "The native drop in USD."}, "STARGATE_SWAP_USD": {"type": "TEXT", "index": 11, "name": "STARGATE_SWAP_USD", "comment": "The stargate swap in USD."}, "SNAPSHOT_VERSION": {"type": "TEXT", "index": 12, "name": "SNAPSHOT_VERSION", "comment": "The version number of the snapshot taken."}, "LAYERZERO_TXS_SNAPSHOT_ID": {"type": "TEXT", "index": 13, "name": "LAYERZERO_TXS_SNAPSHOT_ID", "comment": "The unique identifier for each row in the table."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INSERTED_TIMESTAMP", "comment": "The utc timestamp at which the row was inserted into the table."}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "MODIFIED_TIMESTAMP", "comment": "The utc timestamp at which the row was last modified."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.layerzero__fact_transactions_snapshot"}, "model.external_models.bronze__defillama_dexes": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "DEFILLAMA_DEXES", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DEX_ID": {"type": "TEXT", "index": 1, "name": "DEX_ID", "comment": ""}, "DEX": {"type": "TEXT", "index": 2, "name": "DEX", "comment": ""}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": ""}, "CHAINS": {"type": "VARIANT", "index": 4, "name": "CHAINS", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 08:07UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 40960, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1017, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__defillama_dexes"}, "model.external_models.bronze__flashbots_mev_txs_fr": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "FLASHBOTS_MEV_TXS_FR", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 1, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIME": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIME", "comment": ""}, "BLOCK_HASH": {"type": "TEXT", "index": 4, "name": "BLOCK_HASH", "comment": ""}, "EXTRA_DATA": {"type": "TEXT", "index": 5, "name": "EXTRA_DATA", "comment": ""}, "FEE_RECIPIENT_ADDRESS": {"type": "TEXT", "index": 6, "name": "FEE_RECIPIENT_ADDRESS", "comment": ""}, "BUNDLE_ID": {"type": "NUMBER", "index": 7, "name": "BUNDLE_ID", "comment": ""}, "USER_TX_HASH": {"type": "TEXT", "index": 8, "name": "USER_TX_HASH", "comment": ""}, "USER_TX_FROM": {"type": "TEXT", "index": 9, "name": "USER_TX_FROM", "comment": ""}, "USER_TX_TO": {"type": "TEXT", "index": 10, "name": "USER_TX_TO", "comment": ""}, "BACKRUN_TX_HASH": {"type": "TEXT", "index": 11, "name": "BACKRUN_TX_HASH", "comment": ""}, "BACKRUN_TX_FROM": {"type": "TEXT", "index": 12, "name": "BACKRUN_TX_FROM", "comment": ""}, "BACKRUN_TX_TO": {"type": "TEXT", "index": 13, "name": "BACKRUN_TX_TO", "comment": ""}, "REFUND_TX_HASH": {"type": "TEXT", "index": 14, "name": "REFUND_TX_HASH", "comment": ""}, "REFUND_FROM": {"type": "TEXT", "index": 15, "name": "REFUND_FROM", "comment": ""}, "REFUND_TO": {"type": "TEXT", "index": 16, "name": "REFUND_TO", "comment": ""}, "REFUND_VALUE_ETH": {"type": "TEXT", "index": 17, "name": "REFUND_VALUE_ETH", "comment": ""}, "IS_MEVSHARE": {"type": "TEXT", "index": 18, "name": "IS_MEVSHARE", "comment": ""}, "VALUE": {"type": "VARIANT", "index": 19, "name": "VALUE", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__flashbots_mev_txs_fr"}, "model.external_models.bronze__defillama_protocol_historical": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "DEFILLAMA_PROTOCOL_HISTORICAL", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROTOCOL_ID": {"type": "NUMBER", "index": 1, "name": "PROTOCOL_ID", "comment": ""}, "DATA": {"type": "VARIANT", "index": 2, "name": "DATA", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 4, "name": "PARTITION_KEY", "comment": ""}, "VALUE": {"type": "VARIANT", "index": 5, "name": "VALUE", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 6, "name": "FILE_NAME", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__defillama_protocol_historical"}, "model.external_models.bronze__defillama_raises": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "DEFILLAMA_RAISES", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"FUNDING_DATE": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "FUNDING_DATE", "comment": ""}, "PROJECT_NAME": {"type": "TEXT", "index": 2, "name": "PROJECT_NAME", "comment": ""}, "FUNDING_ROUND": {"type": "TEXT", "index": 3, "name": "FUNDING_ROUND", "comment": ""}, "AMOUNT_RAISED": {"type": "FLOAT", "index": 4, "name": "AMOUNT_RAISED", "comment": ""}, "CHAINS": {"type": "VARIANT", "index": 5, "name": "CHAINS", "comment": ""}, "SECTOR": {"type": "TEXT", "index": 6, "name": "SECTOR", "comment": ""}, "CATEGORY": {"type": "TEXT", "index": 7, "name": "CATEGORY", "comment": ""}, "CATEGORY_GROUP": {"type": "TEXT", "index": 8, "name": "CATEGORY_GROUP", "comment": ""}, "SOURCE": {"type": "TEXT", "index": 9, "name": "SOURCE", "comment": ""}, "LEAD_INVESTORS": {"type": "VARIANT", "index": 10, "name": "LEAD_INVESTORS", "comment": ""}, "OTHER_INVESTORS": {"type": "VARIANT", "index": 11, "name": "OTHER_INVESTORS", "comment": ""}, "VALUATION": {"type": "NUMBER", "index": 12, "name": "VALUATION", "comment": ""}, "DEFILLAMA_ID": {"type": "TEXT", "index": 13, "name": "DEFILLAMA_ID", "comment": ""}, "RAISE_ID": {"type": "TEXT", "index": 14, "name": "RAISE_ID", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 08:07UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1087488, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 6526, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__defillama_raises"}, "model.external_models.bronze__snapshot_users": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "SNAPSHOT_USERS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": ""}, "NAME": {"type": "TEXT", "index": 2, "name": "NAME", "comment": ""}, "ABOUT": {"type": "TEXT", "index": 3, "name": "ABOUT", "comment": ""}, "AVATAR": {"type": "TEXT", "index": 4, "name": "AVATAR", "comment": ""}, "IPFS": {"type": "TEXT", "index": 5, "name": "IPFS", "comment": ""}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "CREATED_AT", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 16:17UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 7349760, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 52283, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__snapshot_users"}, "model.external_models.bronze__snapshot_proposals": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "SNAPSHOT_PROPOSALS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROPOSAL_ID": {"type": "TEXT", "index": 1, "name": "PROPOSAL_ID", "comment": ""}, "IPFS": {"type": "TEXT", "index": 2, "name": "IPFS", "comment": ""}, "CHOICES": {"type": "ARRAY", "index": 3, "name": "CHOICES", "comment": ""}, "PROPOSAL_AUTHOR": {"type": "TEXT", "index": 4, "name": "PROPOSAL_AUTHOR", "comment": ""}, "PROPOSAL_TITLE": {"type": "TEXT", "index": 5, "name": "PROPOSAL_TITLE", "comment": ""}, "PROPOSAL_TEXT": {"type": "TEXT", "index": 6, "name": "PROPOSAL_TEXT", "comment": ""}, "DELAY": {"type": "NUMBER", "index": 7, "name": "DELAY", "comment": ""}, "QUORUM": {"type": "NUMBER", "index": 8, "name": "QUORUM", "comment": ""}, "VOTING_PERIOD": {"type": "NUMBER", "index": 9, "name": "VOTING_PERIOD", "comment": ""}, "VOTING_TYPE": {"type": "TEXT", "index": 10, "name": "VOTING_TYPE", "comment": ""}, "SPACE_ID": {"type": "TEXT", "index": 11, "name": "SPACE_ID", "comment": ""}, "NETWORK": {"type": "TEXT", "index": 12, "name": "NETWORK", "comment": ""}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "CREATED_AT", "comment": ""}, "PROPOSAL_START_TIME": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "PROPOSAL_START_TIME", "comment": ""}, "PROPOSAL_END_TIME": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "PROPOSAL_END_TIME", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 16:17UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 179782656, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 441219, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__snapshot_proposals"}, "model.external_models.bronze__defillama_chainlist": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "DEFILLAMA_CHAINLIST", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": ""}, "CHAIN_SYMBOL": {"type": "TEXT", "index": 2, "name": "CHAIN_SYMBOL", "comment": ""}, "TOKEN_NAME": {"type": "TEXT", "index": 3, "name": "TOKEN_NAME", "comment": ""}, "TOKEN_DECIMALS": {"type": "NUMBER", "index": 4, "name": "TOKEN_DECIMALS", "comment": ""}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 5, "name": "TOKEN_SYMBOL", "comment": ""}, "CHAIN_ID": {"type": "TEXT", "index": 6, "name": "CHAIN_ID", "comment": ""}, "NETWORK_ID": {"type": "TEXT", "index": 7, "name": "NETWORK_ID", "comment": ""}, "ICON": {"type": "TEXT", "index": 8, "name": "ICON", "comment": ""}, "RPC": {"type": "VARIANT", "index": 9, "name": "RPC", "comment": ""}, "FAUCETS": {"type": "VARIANT", "index": 10, "name": "FAUCETS", "comment": ""}, "INFO_URL": {"type": "TEXT", "index": 11, "name": "INFO_URL", "comment": ""}, "SHORT_NAME": {"type": "TEXT", "index": 12, "name": "SHORT_NAME", "comment": ""}, "EXPLORERS": {"type": "VARIANT", "index": 13, "name": "EXPLORERS", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 08:07UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 262656, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 2393, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__defillama_chainlist"}, "model.external_models.bronze__defillama_protocols_FR": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "DEFILLAMA_PROTOCOLS_FR", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATA": {"type": "VARIANT", "index": 1, "name": "DATA", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 3, "name": "PARTITION_KEY", "comment": ""}, "VALUE": {"type": "VARIANT", "index": 4, "name": "VALUE", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 5, "name": "FILE_NAME", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__defillama_protocols_FR"}, "model.external_models.bronze__flashbots_protect_txs": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "FLASHBOTS_PROTECT_TXS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 1, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 2, "name": "TX_HASH", "comment": ""}, "FROM_ADDRESS": {"type": "TEXT", "index": 3, "name": "FROM_ADDRESS", "comment": ""}, "TO_ADDRESS": {"type": "TEXT", "index": 4, "name": "TO_ADDRESS", "comment": ""}, "CREATED_AT_BLOCK_NUMBER": {"type": "NUMBER", "index": 5, "name": "CREATED_AT_BLOCK_NUMBER", "comment": ""}, "TX_ID": {"type": "TEXT", "index": 6, "name": "TX_ID", "comment": ""}, "HINTS_SELECTED": {"type": "TEXT", "index": 7, "name": "HINTS_SELECTED", "comment": ""}, "NUM_OF_BUILDERS_SHARED": {"type": "NUMBER", "index": 8, "name": "NUM_OF_BUILDERS_SHARED", "comment": ""}, "REFUND_PERCENT": {"type": "NUMBER", "index": 9, "name": "REFUND_PERCENT", "comment": ""}, "VALUE": {"type": "VARIANT", "index": 10, "name": "VALUE", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__flashbots_protect_txs"}, "model.external_models.bronze__bitquery_FR": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "BITQUERY_FR", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE_DAY": {"type": "DATE", "index": 1, "name": "DATE_DAY", "comment": ""}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": ""}, "METRIC": {"type": "TEXT", "index": 3, "name": "METRIC", "comment": ""}, "DATA": {"type": "VARIANT", "index": 4, "name": "DATA", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 6, "name": "PARTITION_KEY", "comment": ""}, "VALUE": {"type": "VARIANT", "index": 7, "name": "VALUE", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 8, "name": "FILE_NAME", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__bitquery_FR"}, "model.external_models.bronze__streamline_fr_valuations": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "STREAMLINE_FR_VALUATIONS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE_PART": {"type": "DATE", "index": 1, "name": "DATE_PART", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 2, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "COLLECTION_ADDRESS": {"type": "TEXT", "index": 3, "name": "COLLECTION_ADDRESS", "comment": ""}, "COLLECTION_NAME": {"type": "TEXT", "index": 4, "name": "COLLECTION_NAME", "comment": ""}, "TOKEN_ID": {"type": "NUMBER", "index": 5, "name": "TOKEN_ID", "comment": ""}, "PRICE": {"type": "FLOAT", "index": 6, "name": "PRICE", "comment": ""}, "VALUATION_DATE": {"type": "DATE", "index": 7, "name": "VALUATION_DATE", "comment": ""}, "CURRENCY": {"type": "TEXT", "index": 8, "name": "CURRENCY", "comment": ""}, "COLLECTION_SLUG": {"type": "TEXT", "index": 9, "name": "COLLECTION_SLUG", "comment": ""}, "_FILENAME": {"type": "TEXT", "index": 10, "name": "_FILENAME", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__streamline_fr_valuations"}, "model.external_models.bronze__defillama_protocol_tvl_history": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "DEFILLAMA_PROTOCOL_TVL_HISTORY", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROTOCOL_ID": {"type": "NUMBER", "index": 1, "name": "PROTOCOL_ID", "comment": ""}, "CATEGORY": {"type": "VARIANT", "index": 2, "name": "CATEGORY", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 3, "name": "PARTITION_KEY", "comment": ""}, "RESPONSE": {"type": "VARIANT", "index": 4, "name": "RESPONSE", "comment": ""}, "BRONZE_DEFILLAMA_PROTOCOL_HISTORICAL_ID": {"type": "TEXT", "index": 5, "name": "BRONZE_DEFILLAMA_PROTOCOL_HISTORICAL_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(partition_key)", "include": true, "description": "The key used to cluster this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-05-01 14:54UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 478623232, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5978, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__defillama_protocol_tvl_history"}, "model.external_models.bronze__flashbots_mev_txs": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "FLASHBOTS_MEV_TXS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 1, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIME": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "BLOCK_TIME", "comment": ""}, "BLOCK_HASH": {"type": "TEXT", "index": 4, "name": "BLOCK_HASH", "comment": ""}, "EXTRA_DATA": {"type": "TEXT", "index": 5, "name": "EXTRA_DATA", "comment": ""}, "FEE_RECIPIENT_ADDRESS": {"type": "TEXT", "index": 6, "name": "FEE_RECIPIENT_ADDRESS", "comment": ""}, "BUNDLE_ID": {"type": "NUMBER", "index": 7, "name": "BUNDLE_ID", "comment": ""}, "USER_TX_HASH": {"type": "TEXT", "index": 8, "name": "USER_TX_HASH", "comment": ""}, "USER_TX_FROM": {"type": "TEXT", "index": 9, "name": "USER_TX_FROM", "comment": ""}, "USER_TX_TO": {"type": "TEXT", "index": 10, "name": "USER_TX_TO", "comment": ""}, "BACKRUN_TX_HASH": {"type": "TEXT", "index": 11, "name": "BACKRUN_TX_HASH", "comment": ""}, "BACKRUN_TX_FROM": {"type": "TEXT", "index": 12, "name": "BACKRUN_TX_FROM", "comment": ""}, "BACKRUN_TX_TO": {"type": "TEXT", "index": 13, "name": "BACKRUN_TX_TO", "comment": ""}, "REFUND_TX_HASH": {"type": "TEXT", "index": 14, "name": "REFUND_TX_HASH", "comment": ""}, "REFUND_FROM": {"type": "TEXT", "index": 15, "name": "REFUND_FROM", "comment": ""}, "REFUND_TO": {"type": "TEXT", "index": 16, "name": "REFUND_TO", "comment": ""}, "REFUND_VALUE_ETH": {"type": "TEXT", "index": 17, "name": "REFUND_VALUE_ETH", "comment": ""}, "IS_MEVSHARE": {"type": "TEXT", "index": 18, "name": "IS_MEVSHARE", "comment": ""}, "VALUE": {"type": "VARIANT", "index": 19, "name": "VALUE", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__flashbots_mev_txs"}, "model.external_models.bronze__dnv_collection_slugs": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "DNV_COLLECTION_SLUGS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"COLLECTION_SLUG": {"type": "TEXT", "index": 1, "name": "COLLECTION_SLUG", "comment": null}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 2, "name": "CONTRACT_ADDRESS", "comment": null}, "CREATED_AT": {"type": "TEXT", "index": 3, "name": "CREATED_AT", "comment": null}, "TOTAL_SUPPLY": {"type": "NUMBER", "index": 4, "name": "TOTAL_SUPPLY", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-01-13 20:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 2560, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 7, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__dnv_collection_slugs"}, "model.external_models.bronze__snapshot_votes": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "SNAPSHOT_VOTES", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": ""}, "IPFS": {"type": "TEXT", "index": 2, "name": "IPFS", "comment": ""}, "PROPOSAL_ID": {"type": "TEXT", "index": 3, "name": "PROPOSAL_ID", "comment": ""}, "VOTER": {"type": "TEXT", "index": 4, "name": "VOTER", "comment": ""}, "VOTING_POWER": {"type": "NUMBER", "index": 5, "name": "VOTING_POWER", "comment": ""}, "VOTE_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "VOTE_TIMESTAMP", "comment": ""}, "VOTE_OPTION": {"type": "ARRAY", "index": 7, "name": "VOTE_OPTION", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 16:17UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 9094067712, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 70299736, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__snapshot_votes"}, "model.external_models.bronze__defillama_chains": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "DEFILLAMA_CHAINS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN_ID": {"type": "TEXT", "index": 1, "name": "CHAIN_ID", "comment": ""}, "CHAIN": {"type": "TEXT", "index": 2, "name": "CHAIN", "comment": ""}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 3, "name": "TOKEN_SYMBOL", "comment": ""}, "ROW_NUM": {"type": "NUMBER", "index": 4, "name": "ROW_NUM", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 08:07UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 10240, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 439, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__defillama_chains"}, "model.external_models.bronze__defillama_stablecoin_supply": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "DEFILLAMA_STABLECOIN_SUPPLY", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 2, "name": "SYMBOL", "comment": ""}, "NAME": {"type": "TEXT", "index": 3, "name": "NAME", "comment": ""}, "STABLECOIN_ID": {"type": "TEXT", "index": 4, "name": "STABLECOIN_ID", "comment": ""}, "VALUE": {"type": "VARIANT", "index": 5, "name": "VALUE", "comment": ""}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "TIMESTAMP", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-05-05 17:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1242112, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 150524, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__defillama_stablecoin_supply"}, "model.external_models.bronze__defillama_protocols": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "DEFILLAMA_PROTOCOLS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATA": {"type": "VARIANT", "index": 1, "name": "DATA", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 3, "name": "PARTITION_KEY", "comment": ""}, "VALUE": {"type": "VARIANT", "index": 4, "name": "VALUE", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 5, "name": "FILE_NAME", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__defillama_protocols"}, "model.external_models.bronze__streamline_valuations": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "STREAMLINE_VALUATIONS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE_PART": {"type": "DATE", "index": 1, "name": "DATE_PART", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 2, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "COLLECTION_ADDRESS": {"type": "TEXT", "index": 3, "name": "COLLECTION_ADDRESS", "comment": ""}, "COLLECTION_NAME": {"type": "TEXT", "index": 4, "name": "COLLECTION_NAME", "comment": ""}, "TOKEN_ID": {"type": "NUMBER", "index": 5, "name": "TOKEN_ID", "comment": ""}, "PRICE": {"type": "FLOAT", "index": 6, "name": "PRICE", "comment": ""}, "VALUATION_DATE": {"type": "DATE", "index": 7, "name": "VALUATION_DATE", "comment": ""}, "CURRENCY": {"type": "TEXT", "index": 8, "name": "CURRENCY", "comment": ""}, "COLLECTION_SLUG": {"type": "TEXT", "index": 9, "name": "COLLECTION_SLUG", "comment": ""}, "_FILENAME": {"type": "TEXT", "index": 10, "name": "_FILENAME", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__streamline_valuations"}, "model.external_models.bronze__defillama_perps": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "DEFILLAMA_PERPS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROTOCOL_ID": {"type": "TEXT", "index": 1, "name": "PROTOCOL_ID", "comment": ""}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 2, "name": "PROTOCOL_SLUG", "comment": ""}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": ""}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": ""}, "DISPLAY_NAME": {"type": "TEXT", "index": 5, "name": "DISPLAY_NAME", "comment": ""}, "MODULE": {"type": "TEXT", "index": 6, "name": "MODULE", "comment": ""}, "LOGO": {"type": "TEXT", "index": 7, "name": "LOGO", "comment": ""}, "CHAINS": {"type": "VARIANT", "index": 8, "name": "CHAINS", "comment": ""}, "PROTOCOL_TYPE": {"type": "TEXT", "index": 9, "name": "PROTOCOL_TYPE", "comment": ""}, "METHODOLOGY_URL": {"type": "TEXT", "index": 10, "name": "METHODOLOGY_URL", "comment": ""}, "METHODOLOGY": {"type": "VARIANT", "index": 11, "name": "METHODOLOGY", "comment": ""}, "PARENT_PROTOCOL": {"type": "TEXT", "index": 12, "name": "PARENT_PROTOCOL", "comment": ""}, "LINKED_PROTOCOLS": {"type": "VARIANT", "index": 13, "name": "LINKED_PROTOCOLS", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 17, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(protocol_id)", "include": true, "description": "The key used to cluster this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 08:17UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 43008, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 191, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__defillama_perps"}, "model.external_models.bronze__defillama_usdc_usdt_supply": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "DEFILLAMA_USDC_USDT_SUPPLY", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": ""}, "STABLECOIN_ID": {"type": "NUMBER", "index": 2, "name": "STABLECOIN_ID", "comment": ""}, "READ": {"type": "VARIANT", "index": 3, "name": "READ", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-04 08:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 404026368, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 20016, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__defillama_usdc_usdt_supply"}, "model.external_models.bronze__dnv_collections": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "DNV_COLLECTIONS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RESP": {"type": "VARIANT", "index": 1, "name": "RESP", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "_ID": {"type": "TEXT", "index": 3, "name": "_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-01-13 21:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 3814912, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 4222, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__dnv_collections"}, "model.external_models.bronze__defillama_protocol_historical_FR": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "DEFILLAMA_PROTOCOL_HISTORICAL_FR", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROTOCOL_ID": {"type": "NUMBER", "index": 1, "name": "PROTOCOL_ID", "comment": ""}, "DATA": {"type": "VARIANT", "index": 2, "name": "DATA", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 4, "name": "PARTITION_KEY", "comment": ""}, "VALUE": {"type": "VARIANT", "index": 5, "name": "VALUE", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 6, "name": "FILE_NAME", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__defillama_protocol_historical_FR"}, "seed.external_models.bronze__defillama_usdt_usdc_chain_seed": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "DEFILLAMA_USDT_USDC_CHAIN_SEED", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "STABLECOIN_ID": {"type": "NUMBER", "index": 2, "name": "STABLECOIN_ID", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-04-15 15:41UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 2560, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 144, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.external_models.bronze__defillama_usdt_usdc_chain_seed"}, "model.external_models.bronze__defillama_perp_metrics": {"metadata": {"type": "VIEW", "schema": "BRONZE", "name": "DEFILLAMA_PERP_METRICS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATA": {"type": "VARIANT", "index": 1, "name": "DATA", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 3, "name": "PARTITION_KEY", "comment": ""}, "VALUE": {"type": "VARIANT", "index": 4, "name": "VALUE", "comment": ""}, "FILE_NAME": {"type": "TEXT", "index": 5, "name": "FILE_NAME", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze__defillama_perp_metrics"}, "seed.external_models.bronze__defillama_api_pools_20230209_131432": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "DEFILLAMA_API_POOLS_20230209_131432", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ROW_NUM": {"type": "NUMBER", "index": 1, "name": "ROW_NUM", "comment": null}, "CHAIN": {"type": "TEXT", "index": 2, "name": "CHAIN", "comment": null}, "PROJECT": {"type": "TEXT", "index": 3, "name": "PROJECT", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": null}, "REWARDTOKENS": {"type": "TEXT", "index": 5, "name": "REWARDTOKENS", "comment": null}, "POOL": {"type": "TEXT", "index": 6, "name": "POOL", "comment": null}, "STABLECOIN": {"type": "BOOLEAN", "index": 7, "name": "STABLECOIN", "comment": null}, "ILRISK": {"type": "TEXT", "index": 8, "name": "ILRISK", "comment": null}, "EXPOSURE": {"type": "TEXT", "index": 9, "name": "EXPOSURE", "comment": null}, "POOLMETA": {"type": "TEXT", "index": 10, "name": "POOLMETA", "comment": null}, "UNDERLYINGTOKENS": {"type": "TEXT", "index": 11, "name": "UNDERLYINGTOKENS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-01-11 17:35UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 908800, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 10468, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.external_models.bronze__defillama_api_pools_20230209_131432"}, "seed.external_models.bronze__defillama_protocol_tvl_historical_response_sizes": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "DEFILLAMA_PROTOCOL_TVL_HISTORICAL_RESPONSE_SIZES", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROTOCOL_SLUG": {"type": "TEXT", "index": 1, "name": "PROTOCOL_SLUG", "comment": null}, "PROTOCOL_ID": {"type": "NUMBER", "index": 2, "name": "PROTOCOL_ID", "comment": null}, "SIZE_MB": {"type": "FLOAT", "index": 3, "name": "SIZE_MB", "comment": null}, "STATUS_CODE": {"type": "NUMBER", "index": 4, "name": "STATUS_CODE", "comment": null}, "ERROR": {"type": "NUMBER", "index": 5, "name": "ERROR", "comment": null}, "RETRIES": {"type": "NUMBER", "index": 6, "name": "RETRIES", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-04-30 16:49UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 70144, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5822, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.external_models.bronze__defillama_protocol_tvl_historical_response_sizes"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_bridge_volume__INSERTED_TIMESTAMP__day__2.6817773edd": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER", "name": "DEFILLAMA_BRIDGE_VOLUME", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_bridge_volume__INSERTED_TIMESTAMP__day__2.6817773edd"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_usdc_usdt_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.e35111402d": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_BRONZE", "name": "DEFILLAMA_USDC_USDT_SUPPLY", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-04 09:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_usdc_usdt_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.e35111402d"}, "test.external_models.dbt_utils_unique_combination_of_columns_bronze__snapshot_votes_ID.58b906fcef": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_BRONZE", "name": "SNAPSHOT_VOTES_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bronze__snapshot_votes_ID.58b906fcef"}, "model.external_models.silver__defillama_protocol_fees": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "DEFILLAMA_PROTOCOL_FEES", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": ""}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "TIMESTAMP", "comment": ""}, "PROTOCOL": {"type": "TEXT", "index": 3, "name": "PROTOCOL", "comment": ""}, "DAILY_FEES": {"type": "NUMBER", "index": 4, "name": "DAILY_FEES", "comment": ""}, "FEES_OBJECT": {"type": "VARIANT", "index": 5, "name": "FEES_OBJECT", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "ID": {"type": "TEXT", "index": 7, "name": "ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 08:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 520950272, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1551975, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver__defillama_protocol_fees"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_bridge_volume__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.98985142f9": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "DEFILLAMA_BRIDGE_VOLUME", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_bridge_volume__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.98985142f9"}, "model.external_models.defillama__fact_protocol_fees_revenue": {"metadata": {"type": "VIEW", "schema": "DEFILLAMA", "name": "FACT_PROTOCOL_FEES_REVENUE", "database": "EXTERNAL", "comment": "This table contains historical fees and revenue for the protocols listed on Defillama in `dim_protocols`, where available.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE": {"type": "DATE", "index": 1, "name": "DATE", "comment": "Date associated with the reported records."}, "CHAIN": {"type": "TEXT", "index": 2, "name": "CHAIN", "comment": "The name of the blockchain."}, "PROTOCOL": {"type": "TEXT", "index": 3, "name": "PROTOCOL", "comment": "The name of the protocol."}, "FEES": {"type": "NUMBER", "index": 4, "name": "FEES", "comment": "The total amount of fees earned by the protocol on a daily basis, denominated in USD."}, "REVENUE": {"type": "NUMBER", "index": 5, "name": "REVENUE", "comment": "The total amount of revenue earned by the protocol on a daily basis, denominated in USD."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.defillama__fact_protocol_fees_revenue"}, "test.external_models.not_null_artemis__active_users_ACTIVE_USERS.450401b050": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_ARTEMIS", "name": "ACTIVE_USERS_ACTIVE_USERS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": null}, "METRIC": {"type": "TEXT", "index": 2, "name": "METRIC", "comment": null}, "DESCRIPTION": {"type": "TEXT", "index": 3, "name": "DESCRIPTION", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 4, "name": "BLOCK_DATE", "comment": null}, "ACTIVE_USERS": {"type": "NUMBER", "index": 5, "name": "ACTIVE_USERS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ACTIVE_USERS_ID": {"type": "TEXT", "index": 7, "name": "ACTIVE_USERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 10, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_artemis__active_users_ACTIVE_USERS.450401b050"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_inserted_timestamp__TIMESTAMP_NTZ.f65eb01509": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "DEFILLAMA_PERP_DAILY_VOLUME_INSERTED_TIMESTAMP", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_inserted_timestamp__TIMESTAMP_NTZ.f65eb01509"}, "model.external_models.silver__defillama_perp_daily_volume": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "DEFILLAMA_PERP_DAILY_VOLUME", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE": {"type": "DATE", "index": 1, "name": "DATE", "comment": ""}, "CHAIN": {"type": "TEXT", "index": 2, "name": "CHAIN", "comment": ""}, "PROTOCOL_ID": {"type": "TEXT", "index": 3, "name": "PROTOCOL_ID", "comment": ""}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 4, "name": "PROTOCOL_SLUG", "comment": ""}, "PROTOCOL": {"type": "TEXT", "index": 5, "name": "PROTOCOL", "comment": ""}, "VOLUME": {"type": "FLOAT", "index": 6, "name": "VOLUME", "comment": ""}, "DEFILLAMA_PERP_METRICS_ID": {"type": "TEXT", "index": 7, "name": "DEFILLAMA_PERP_METRICS_ID", "comment": ""}, "DEFILLAMA_PERP_DAILY_VOLUME_ID": {"type": "TEXT", "index": 8, "name": "DEFILLAMA_PERP_DAILY_VOLUME_ID", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(date, chain, protocol_id)", "include": true, "description": "The key used to cluster this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:47UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 4048896, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 134028, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver__defillama_perp_daily_volume"}, "model.external_models.defillama__fact_protocol_tvl": {"metadata": {"type": "VIEW", "schema": "DEFILLAMA", "name": "FACT_PROTOCOL_TVL", "database": "EXTERNAL", "comment": "This table contains protocol TVL at a chain level, where available.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE": {"type": "DATE", "index": 1, "name": "DATE", "comment": "Date associated with the reported records."}, "CHAIN": {"type": "TEXT", "index": 2, "name": "CHAIN", "comment": "The name of the blockchain."}, "PROTOCOL_ID": {"type": "TEXT", "index": 3, "name": "PROTOCOL_ID", "comment": "The Defillama ID of the protocol."}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": "The category the protocol belongs to."}, "PROTOCOL": {"type": "TEXT", "index": 5, "name": "PROTOCOL", "comment": ""}, "MARKET_CAP": {"type": "FLOAT", "index": 6, "name": "MARKET_CAP", "comment": "The total market cap of the protocol. This is not available for all dates as the historical API does not provide this information."}, "SYMBOL": {"type": "TEXT", "index": 7, "name": "SYMBOL", "comment": "The symbol of the token associated with the protocol."}, "CHAIN_TVL": {"type": "NUMBER", "index": 8, "name": "CHAIN_TVL", "comment": "The total value locked on the chain for that protocol."}, "CHAIN_TVL_PREV_DAY": {"type": "NUMBER", "index": 9, "name": "CHAIN_TVL_PREV_DAY", "comment": "The total value locked on the chain for that protocol, for the previous day."}, "CHAIN_TVL_PREV_WEEK": {"type": "NUMBER", "index": 10, "name": "CHAIN_TVL_PREV_WEEK", "comment": "The total value locked on the chain for that protocol, for the previous week."}, "CHAIN_TVL_PREV_MONTH": {"type": "NUMBER", "index": 11, "name": "CHAIN_TVL_PREV_MONTH", "comment": "The total value locked on the chain for that protocol, for the previous month."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.defillama__fact_protocol_tvl"}, "model.external_models.silver__dnv_valuations": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "DNV_VALUATIONS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"VALUATION_DATE": {"type": "DATE", "index": 1, "name": "VALUATION_DATE", "comment": ""}, "COLLECTION_NAME": {"type": "TEXT", "index": 2, "name": "COLLECTION_NAME", "comment": ""}, "COLLECTION_ADDRESS": {"type": "TEXT", "index": 3, "name": "COLLECTION_ADDRESS", "comment": ""}, "TOKEN_ID": {"type": "NUMBER", "index": 4, "name": "TOKEN_ID", "comment": ""}, "CURRENCY": {"type": "TEXT", "index": 5, "name": "CURRENCY", "comment": ""}, "PRICE": {"type": "FLOAT", "index": 6, "name": "PRICE", "comment": ""}, "COLLECTION_SLUG": {"type": "TEXT", "index": 7, "name": "COLLECTION_SLUG", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "_ID": {"type": "TEXT", "index": 9, "name": "_ID", "comment": ""}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(valuation_date::DATE)", "include": true, "description": "The key used to cluster this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-01-12 02:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 4645796352, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 417769829, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver__dnv_valuations"}, "test.external_models.not_null_silver__defillama_usdt_usdc_supply__INSERTED_TIMESTAMP.f669b526df": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_USDT_USDC_SUPPLY", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "DATE", "comment": null}, "STABLECOIN_ID": {"type": "NUMBER", "index": 2, "name": "STABLECOIN_ID", "comment": null}, "STABLECOIN": {"type": "TEXT", "index": 3, "name": "STABLECOIN", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": null}, "CHAIN": {"type": "TEXT", "index": 5, "name": "CHAIN", "comment": null}, "TOTAL_BRIDGED_USD": {"type": "FLOAT", "index": 6, "name": "TOTAL_BRIDGED_USD", "comment": null}, "TOTAL_CIRCULATING": {"type": "FLOAT", "index": 7, "name": "TOTAL_CIRCULATING", "comment": null}, "TOTAL_CIRCULATING_USD": {"type": "FLOAT", "index": 8, "name": "TOTAL_CIRCULATING_USD", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DEFILLAMA_USDC_USDT_SUPPLY_ID": {"type": "TEXT", "index": 10, "name": "DEFILLAMA_USDC_USDT_SUPPLY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 13, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-04 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_usdt_usdc_supply__INSERTED_TIMESTAMP.f669b526df"}, "test.external_models.not_null_bronze__snapshot_votes_VOTE_OPTION.55945386d3": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "SNAPSHOT_VOTES_VOTE_OPTION", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": null}, "IPFS": {"type": "TEXT", "index": 2, "name": "IPFS", "comment": null}, "PROPOSAL_ID": {"type": "TEXT", "index": 3, "name": "PROPOSAL_ID", "comment": null}, "VOTER": {"type": "TEXT", "index": 4, "name": "VOTER", "comment": null}, "VOTING_POWER": {"type": "NUMBER", "index": 5, "name": "VOTING_POWER", "comment": null}, "VOTE_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "VOTE_TIMESTAMP", "comment": null}, "VOTE_OPTION": {"type": "ARRAY", "index": 7, "name": "VOTE_OPTION", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__snapshot_votes_VOTE_OPTION.55945386d3"}, "model.external_models.silver__snapshot_users": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "SNAPSHOT_USERS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": ""}, "NAME": {"type": "TEXT", "index": 2, "name": "NAME", "comment": ""}, "ABOUT": {"type": "TEXT", "index": 3, "name": "ABOUT", "comment": ""}, "AVATAR": {"type": "TEXT", "index": 4, "name": "AVATAR", "comment": ""}, "IPFS": {"type": "TEXT", "index": 5, "name": "IPFS", "comment": ""}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "CREATED_AT", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 16:17UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 7343104, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 52283, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver__snapshot_users"}, "test.external_models.not_null_silver__defillama_options_notional__INSERTED_TIMESTAMP.1b2760a764": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_OPTIONS_NOTIONAL", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "TIMESTAMP", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 3, "name": "PROTOCOL", "comment": null}, "DAILY_VOLUME_NOTIONAL": {"type": "NUMBER", "index": 4, "name": "DAILY_VOLUME_NOTIONAL", "comment": null}, "OPTIONS_OBJECT": {"type": "VARIANT", "index": 5, "name": "OPTIONS_OBJECT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ID": {"type": "TEXT", "index": 7, "name": "ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_options_notional__INSERTED_TIMESTAMP.1b2760a764"}, "model.external_models.farcaster__fact_signers": {"metadata": {"type": "VIEW", "schema": "FARCASTER", "name": "FACT_SIGNERS", "database": "EXTERNAL", "comment": "Stores all registered signers. For more info see [Neynar](https://docs.neynar.com/docs/how-to-query-neynar-sql-playground-for-farcaster-data) or [schema](https://github.com/farcasterxyz/hub-monorepo/tree/51c57245df8ec1c68d616dd3ab8ae5b80edf68fd/apps/replicator)", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ID": {"type": "NUMBER", "index": 1, "name": "ID", "comment": "Generic identifier specific to this DB (a.k.a. surrogate key)"}, "FID": {"type": "NUMBER", "index": 2, "name": "FID", "comment": "FID of the user that authorized this signer."}, "APP_FID": {"type": "NUMBER", "index": 3, "name": "APP_FID", "comment": "FID of the user/app that requested this signer."}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": ""}, "SIGNER": {"type": "BINARY", "index": 5, "name": "SIGNER", "comment": ""}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "TIMESTAMP", "comment": ""}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "CREATED_AT", "comment": "When the row was first created in this DB (not the same as when the key was created on the network!)"}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "UPDATED_AT", "comment": "When the row was last updated."}, "DELETED_AT": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "DELETED_AT", "comment": "Timestamp of the block where this signer was removed."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.farcaster__fact_signers"}, "test.external_models.not_null_silver__defillama_chains_tvl__INSERTED_TIMESTAMP.72b4261db1": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_CHAINS_TVL", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN_ID": {"type": "TEXT", "index": 1, "name": "CHAIN_ID", "comment": null}, "CHAIN": {"type": "TEXT", "index": 2, "name": "CHAIN", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "TIMESTAMP", "comment": null}, "TVL_USD": {"type": "NUMBER", "index": 4, "name": "TVL_USD", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ID": {"type": "TEXT", "index": 6, "name": "ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_chains_tvl__INSERTED_TIMESTAMP.72b4261db1"}, "test.external_models.not_null_silver__defillama_perp_daily_volume_protocol_id.cdcfe05028": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PERP_DAILY_VOLUME_PROTOCOL_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE": {"type": "DATE", "index": 1, "name": "DATE", "comment": null}, "CHAIN": {"type": "TEXT", "index": 2, "name": "CHAIN", "comment": null}, "PROTOCOL_ID": {"type": "TEXT", "index": 3, "name": "PROTOCOL_ID", "comment": null}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 4, "name": "PROTOCOL_SLUG", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 5, "name": "PROTOCOL", "comment": null}, "VOLUME": {"type": "FLOAT", "index": 6, "name": "VOLUME", "comment": null}, "DEFILLAMA_PERP_METRICS_ID": {"type": "TEXT", "index": 7, "name": "DEFILLAMA_PERP_METRICS_ID", "comment": null}, "DEFILLAMA_PERP_DAILY_VOLUME_ID": {"type": "TEXT", "index": 8, "name": "DEFILLAMA_PERP_DAILY_VOLUME_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_perp_daily_volume_protocol_id.cdcfe05028"}, "model.external_models.silver__defillama_protocol_tvl": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "DEFILLAMA_PROTOCOL_TVL", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TIMESTAMP": {"type": "DATE", "index": 1, "name": "TIMESTAMP", "comment": ""}, "PROTOCOL_ID": {"type": "TEXT", "index": 2, "name": "PROTOCOL_ID", "comment": ""}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": ""}, "PROTOCOL": {"type": "TEXT", "index": 4, "name": "PROTOCOL", "comment": ""}, "MARKET_CAP": {"type": "FLOAT", "index": 5, "name": "MARKET_CAP", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 6, "name": "SYMBOL", "comment": ""}, "TVL": {"type": "FLOAT", "index": 7, "name": "TVL", "comment": ""}, "TVL_PREV_DAY": {"type": "FLOAT", "index": 8, "name": "TVL_PREV_DAY", "comment": ""}, "TVL_PREV_WEEK": {"type": "FLOAT", "index": 9, "name": "TVL_PREV_WEEK", "comment": ""}, "TVL_PREV_MONTH": {"type": "FLOAT", "index": 10, "name": "TVL_PREV_MONTH", "comment": ""}, "CHAIN": {"type": "TEXT", "index": 11, "name": "CHAIN", "comment": ""}, "CHAIN_TVL": {"type": "NUMBER", "index": 12, "name": "CHAIN_TVL", "comment": ""}, "CHAIN_TVL_PREV_DAY": {"type": "NUMBER", "index": 13, "name": "CHAIN_TVL_PREV_DAY", "comment": ""}, "CHAIN_TVL_PREV_WEEK": {"type": "NUMBER", "index": 14, "name": "CHAIN_TVL_PREV_WEEK", "comment": ""}, "CHAIN_TVL_PREV_MONTH": {"type": "NUMBER", "index": 15, "name": "CHAIN_TVL_PREV_MONTH", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "DEFILLAMA_TVL_ID": {"type": "TEXT", "index": 17, "name": "DEFILLAMA_TVL_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 20, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(timestamp, protocol_id)", "include": true, "description": "The key used to cluster this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:04UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 436720128, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 9392894, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver__defillama_protocol_tvl"}, "test.external_models.not_null_silver_aptos__lync_metric_count.902d0116f3": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_APTOS", "name": "LYNC_METRIC_COUNT", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"METRIC": {"type": "TEXT", "index": 1, "name": "METRIC", "comment": null}, "METRIC_DATE": {"type": "DATE", "index": 2, "name": "METRIC_DATE", "comment": null}, "METRIC_COUNT": {"type": "NUMBER", "index": 3, "name": "METRIC_COUNT", "comment": null}, "METRIC_AMOUNT": {"type": "FLOAT", "index": 4, "name": "METRIC_AMOUNT", "comment": null}, "METRIC_AMOUNT_IN_USD": {"type": "FLOAT", "index": 5, "name": "METRIC_AMOUNT_IN_USD", "comment": null}, "LYNC_ID": {"type": "TEXT", "index": 6, "name": "LYNC_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver_aptos__lync_metric_count.902d0116f3"}, "model.external_models.streamline__artemis_metrics": {"metadata": {"type": "VIEW", "schema": "STREAMLINE", "name": "ARTEMIS_METRICS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE_DAY": {"type": "DATE", "index": 1, "name": "DATE_DAY", "comment": ""}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": ""}, "METRIC": {"type": "TEXT", "index": 3, "name": "METRIC", "comment": ""}, "ENDPOINT": {"type": "TEXT", "index": 4, "name": "ENDPOINT", "comment": ""}, "URL": {"type": "TEXT", "index": 5, "name": "URL", "comment": ""}, "DESCRIPTION": {"type": "TEXT", "index": 6, "name": "DESCRIPTION", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.streamline__artemis_metrics"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_stablecoin_metrics_DEFILLAMA_STABLECOIN_METRICS_ID.658e9db88b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "DEFILLAMA_STABLECOIN_METRICS_DEFILLAMA_STABLECOIN_METRICS_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DEFILLAMA_STABLECOIN_METRICS_ID": {"type": "TEXT", "index": 1, "name": "DEFILLAMA_STABLECOIN_METRICS_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_stablecoin_metrics_DEFILLAMA_STABLECOIN_METRICS_ID.658e9db88b"}, "test.external_models.not_null_bronze__blast_leaderboard_ID.bb6f4cfb18": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "BLAST_LEADERBOARD_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE": {"type": "DATE", "index": 1, "name": "DATE", "comment": null}, "LEADERBOARD_TYPE": {"type": "TEXT", "index": 2, "name": "LEADERBOARD_TYPE", "comment": null}, "RANK": {"type": "NUMBER", "index": 3, "name": "RANK", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "POINTS_AMOUNT": {"type": "NUMBER", "index": 5, "name": "POINTS_AMOUNT", "comment": null}, "GOLD_AMOUNT": {"type": "FLOAT", "index": 6, "name": "GOLD_AMOUNT", "comment": null}, "INVITED_BY": {"type": "TEXT", "index": 7, "name": "INVITED_BY", "comment": null}, "ID": {"type": "TEXT", "index": 8, "name": "ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__blast_leaderboard_ID.bb6f4cfb18"}, "test.external_models.not_null_silver__defillama_protocol_fees_CHAIN.d434098292": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PROTOCOL_FEES_CHAIN", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "TIMESTAMP", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 3, "name": "PROTOCOL", "comment": null}, "DAILY_FEES": {"type": "NUMBER", "index": 4, "name": "DAILY_FEES", "comment": null}, "FEES_OBJECT": {"type": "VARIANT", "index": 5, "name": "FEES_OBJECT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ID": {"type": "TEXT", "index": 7, "name": "ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_protocol_fees_CHAIN.d434098292"}, "test.external_models.not_null_silver__defillama_perp_metrics_methodology_url.0bf67e7b14": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PERP_METRICS_METHODOLOGY_URL", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TIMESTAMP": {"type": "DATE", "index": 1, "name": "TIMESTAMP", "comment": null}, "PROTOCOL_ID": {"type": "TEXT", "index": 2, "name": "PROTOCOL_ID", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "DISPLAY_NAME": {"type": "TEXT", "index": 5, "name": "DISPLAY_NAME", "comment": null}, "MODULE": {"type": "TEXT", "index": 6, "name": "MODULE", "comment": null}, "LOGO": {"type": "TEXT", "index": 7, "name": "LOGO", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 8, "name": "CHAINS", "comment": null}, "PROTOCOL_TYPE": {"type": "TEXT", "index": 9, "name": "PROTOCOL_TYPE", "comment": null}, "METHODOLOGY_URL": {"type": "TEXT", "index": 10, "name": "METHODOLOGY_URL", "comment": null}, "METHODOLOGY": {"type": "VARIANT", "index": 11, "name": "METHODOLOGY", "comment": null}, "PARENT_PROTOCOL": {"type": "TEXT", "index": 12, "name": "PARENT_PROTOCOL", "comment": null}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 13, "name": "PROTOCOL_SLUG", "comment": null}, "LINKED_PROTOCOLS": {"type": "VARIANT", "index": 14, "name": "LINKED_PROTOCOLS", "comment": null}, "TOTAL_24H": {"type": "FLOAT", "index": 15, "name": "TOTAL_24H", "comment": null}, "TOTAL_48H_TO_24H": {"type": "FLOAT", "index": 16, "name": "TOTAL_48H_TO_24H", "comment": null}, "TOTAL_7D": {"type": "FLOAT", "index": 17, "name": "TOTAL_7D", "comment": null}, "TOTAL_30D": {"type": "FLOAT", "index": 18, "name": "TOTAL_30D", "comment": null}, "TOTAL_ALL_TIME": {"type": "FLOAT", "index": 19, "name": "TOTAL_ALL_TIME", "comment": null}, "CHANGE_1D": {"type": "FLOAT", "index": 20, "name": "CHANGE_1D", "comment": null}, "TOTAL_DATA_CHART_BREAKDOWN": {"type": "VARIANT", "index": 21, "name": "TOTAL_DATA_CHART_BREAKDOWN", "comment": null}, "DEFILLAMA_PERP_METRICS_ID": {"type": "TEXT", "index": 22, "name": "DEFILLAMA_PERP_METRICS_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 65024, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 7, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_perp_metrics_methodology_url.0bf67e7b14"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_perps__inserted_timestamp__TIMESTAMP_NTZ.b78bef6168": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_BRONZE", "name": "DEFILLAMA_PERPS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_perps__inserted_timestamp__TIMESTAMP_NTZ.b78bef6168"}, "model.external_models.streamline__defillama_protocol_historical": {"metadata": {"type": "VIEW", "schema": "STREAMLINE", "name": "DEFILLAMA_PROTOCOL_HISTORICAL", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROTOCOL_ID": {"type": "TEXT", "index": 1, "name": "PROTOCOL_ID", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": ""}, "REQUEST": {"type": "VARIANT", "index": 3, "name": "REQUEST", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.streamline__defillama_protocol_historical"}, "test.external_models.not_null_bronze__defillama_chainlist_CHAIN.5780be5d54": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "DEFILLAMA_CHAINLIST_CHAIN", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "CHAIN_SYMBOL": {"type": "TEXT", "index": 2, "name": "CHAIN_SYMBOL", "comment": null}, "TOKEN_NAME": {"type": "TEXT", "index": 3, "name": "TOKEN_NAME", "comment": null}, "TOKEN_DECIMALS": {"type": "NUMBER", "index": 4, "name": "TOKEN_DECIMALS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 5, "name": "TOKEN_SYMBOL", "comment": null}, "CHAIN_ID": {"type": "TEXT", "index": 6, "name": "CHAIN_ID", "comment": null}, "NETWORK_ID": {"type": "TEXT", "index": 7, "name": "NETWORK_ID", "comment": null}, "ICON": {"type": "TEXT", "index": 8, "name": "ICON", "comment": null}, "RPC": {"type": "VARIANT", "index": 9, "name": "RPC", "comment": null}, "FAUCETS": {"type": "VARIANT", "index": 10, "name": "FAUCETS", "comment": null}, "INFO_URL": {"type": "TEXT", "index": 11, "name": "INFO_URL", "comment": null}, "SHORT_NAME": {"type": "TEXT", "index": 12, "name": "SHORT_NAME", "comment": null}, "EXPLORERS": {"type": "VARIANT", "index": 13, "name": "EXPLORERS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__defillama_chainlist_CHAIN.5780be5d54"}, "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_WITHDRAW_TXS.7117c612b3": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_BRIDGE_VOLUME_BY_CHAIN_WITHDRAW_TXS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BRIDGE_ID": {"type": "TEXT", "index": 1, "name": "BRIDGE_ID", "comment": null}, "BRIDGE": {"type": "TEXT", "index": 2, "name": "BRIDGE", "comment": null}, "BRIDGE_NAME": {"type": "TEXT", "index": 3, "name": "BRIDGE_NAME", "comment": null}, "CHAIN": {"type": "TEXT", "index": 4, "name": "CHAIN", "comment": null}, "BRIDGE_ID_CHAIN": {"type": "TEXT", "index": 5, "name": "BRIDGE_ID_CHAIN", "comment": null}, "DATE": {"type": "DATE", "index": 6, "name": "DATE", "comment": null}, "DEPOSIT_TXS": {"type": "NUMBER", "index": 7, "name": "DEPOSIT_TXS", "comment": null}, "DEPOSIT_USD": {"type": "NUMBER", "index": 8, "name": "DEPOSIT_USD", "comment": null}, "WITHDRAW_TXS": {"type": "NUMBER", "index": 9, "name": "WITHDRAW_TXS", "comment": null}, "WITHDRAW_USD": {"type": "NUMBER", "index": 10, "name": "WITHDRAW_USD", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "MODIFIED_TIMESTAMP", "comment": null}, "DEFILLAMA_BRIDGE_VOL_BY_CHAIN_ID": {"type": "TEXT", "index": 13, "name": "DEFILLAMA_BRIDGE_VOL_BY_CHAIN_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 14, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_WITHDRAW_TXS.7117c612b3"}, "test.external_models.not_null_silver__defillama_stablecoin_supply__INSERTED_TIMESTAMP.7e00b9d5c5": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_STABLECOIN_SUPPLY", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 2, "name": "SYMBOL", "comment": null}, "STABLECOIN": {"type": "TEXT", "index": 3, "name": "STABLECOIN", "comment": null}, "STABLECOIN_ID": {"type": "TEXT", "index": 4, "name": "STABLECOIN_ID", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 5, "name": "CHAINS", "comment": null}, "PEG_TYPE": {"type": "TEXT", "index": 6, "name": "PEG_TYPE", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "TIMESTAMP", "comment": null}, "VALUE": {"type": "VARIANT", "index": 8, "name": "VALUE", "comment": null}, "CIRCULATING": {"type": "NUMBER", "index": 9, "name": "CIRCULATING", "comment": null}, "MINTED": {"type": "NUMBER", "index": 10, "name": "MINTED", "comment": null}, "UNRELEASED": {"type": "NUMBER", "index": 11, "name": "UNRELEASED", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DEFILLAMA_STABLECOIN_SUPPLY_ID": {"type": "TEXT", "index": 13, "name": "DEFILLAMA_STABLECOIN_SUPPLY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 16, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-05-28 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_stablecoin_supply__INSERTED_TIMESTAMP.7e00b9d5c5"}, "test.external_models.not_null_silver__polymarket_markets__INSERTED_TIMESTAMP.3927deb926": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "POLYMARKET_MARKETS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CONDITION_ID": {"type": "TEXT", "index": 1, "name": "CONDITION_ID", "comment": null}, "QUESTION": {"type": "TEXT", "index": 2, "name": "QUESTION", "comment": null}, "DESCRIPTION": {"type": "TEXT", "index": 3, "name": "DESCRIPTION", "comment": null}, "TOKENS": {"type": "VARIANT", "index": 4, "name": "TOKENS", "comment": null}, "TOKEN_1_TOKEN_ID": {"type": "TEXT", "index": 5, "name": "TOKEN_1_TOKEN_ID", "comment": null}, "TOKEN_1_OUTCOME": {"type": "TEXT", "index": 6, "name": "TOKEN_1_OUTCOME", "comment": null}, "TOKEN_1_WINNER": {"type": "TEXT", "index": 7, "name": "TOKEN_1_WINNER", "comment": null}, "TOKEN_2_TOKEN_ID": {"type": "TEXT", "index": 8, "name": "TOKEN_2_TOKEN_ID", "comment": null}, "TOKEN_2_OUTCOME": {"type": "TEXT", "index": 9, "name": "TOKEN_2_OUTCOME", "comment": null}, "TOKEN_2_WINNER": {"type": "TEXT", "index": 10, "name": "TOKEN_2_WINNER", "comment": null}, "ENABLE_ORDER_BOOK": {"type": "TEXT", "index": 11, "name": "ENABLE_ORDER_BOOK", "comment": null}, "ACTIVE": {"type": "BOOLEAN", "index": 12, "name": "ACTIVE", "comment": null}, "CLOSED": {"type": "BOOLEAN", "index": 13, "name": "CLOSED", "comment": null}, "ARCHIVED": {"type": "BOOLEAN", "index": 14, "name": "ARCHIVED", "comment": null}, "ACCEPTING_ORDERS": {"type": "BOOLEAN", "index": 15, "name": "ACCEPTING_ORDERS", "comment": null}, "ACCEPTING_ORDER_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "ACCEPTING_ORDER_TIMESTAMP", "comment": null}, "MINIMUM_ORDER_SIZE": {"type": "NUMBER", "index": 17, "name": "MINIMUM_ORDER_SIZE", "comment": null}, "MINIMUM_TICK_SIZE": {"type": "NUMBER", "index": 18, "name": "MINIMUM_TICK_SIZE", "comment": null}, "QUESTION_ID": {"type": "TEXT", "index": 19, "name": "QUESTION_ID", "comment": null}, "MARKET_SLUG": {"type": "TEXT", "index": 20, "name": "MARKET_SLUG", "comment": null}, "END_DATE_ISO": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "END_DATE_ISO", "comment": null}, "GAME_START_TIME": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "GAME_START_TIME", "comment": null}, "SECONDS_DELAY": {"type": "NUMBER", "index": 23, "name": "SECONDS_DELAY", "comment": null}, "FPMM": {"type": "TEXT", "index": 24, "name": "FPMM", "comment": null}, "MAKER_BASE_FEE": {"type": "NUMBER", "index": 25, "name": "MAKER_BASE_FEE", "comment": null}, "TAKER_BASE_FEE": {"type": "NUMBER", "index": 26, "name": "TAKER_BASE_FEE", "comment": null}, "NOTIFICATIONS_ENABLED": {"type": "BOOLEAN", "index": 27, "name": "NOTIFICATIONS_ENABLED", "comment": null}, "NEG_RISK": {"type": "BOOLEAN", "index": 28, "name": "NEG_RISK", "comment": null}, "NEG_RISK_MARKET_ID": {"type": "TEXT", "index": 29, "name": "NEG_RISK_MARKET_ID", "comment": null}, "NEG_RISK_REQUEST_ID": {"type": "TEXT", "index": 30, "name": "NEG_RISK_REQUEST_ID", "comment": null}, "REWARDS": {"type": "VARIANT", "index": 31, "name": "REWARDS", "comment": null}, "TAGS": {"type": "VARIANT", "index": 32, "name": "TAGS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 33, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DIM_MARKETS_ID": {"type": "TEXT", "index": 34, "name": "DIM_MARKETS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 35, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__polymarket_markets__INSERTED_TIMESTAMP.3927deb926"}, "test.external_models.not_null_bronze__defillama_stablecoin_supply__INSERTED_TIMESTAMP.466594afa2": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "DEFILLAMA_STABLECOIN_SUPPLY", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 2, "name": "SYMBOL", "comment": null}, "NAME": {"type": "TEXT", "index": 3, "name": "NAME", "comment": null}, "STABLECOIN_ID": {"type": "TEXT", "index": 4, "name": "STABLECOIN_ID", "comment": null}, "VALUE": {"type": "VARIANT", "index": 5, "name": "VALUE", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "TIMESTAMP", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-05-28 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__defillama_stablecoin_supply__INSERTED_TIMESTAMP.466594afa2"}, "test.external_models.not_null_farcaster__fact_storage_UPDATED_AT.b84533d887": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_FARCASTER", "name": "FACT_STORAGE_UPDATED_AT", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ID": {"type": "NUMBER", "index": 1, "name": "ID", "comment": null}, "FID": {"type": "NUMBER", "index": 2, "name": "FID", "comment": null}, "UNITS": {"type": "NUMBER", "index": 3, "name": "UNITS", "comment": null}, "EXPIRY": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "EXPIRY", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "TIMESTAMP", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "CREATED_AT", "comment": null}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "UPDATED_AT", "comment": null}, "DELETED_AT": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "DELETED_AT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_farcaster__fact_storage_UPDATED_AT.b84533d887"}, "test.external_models.dbt_utils_unique_combination_of_columns_defillama__fact_usdt_usdc_supply_DEFILLAMA_FACT_USDT_USDC_SUPPLY_ID.af85cd2773": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_DEFILLAMA", "name": "FACT_USDT_USDC_SUPPLY_DEFILLAMA_FACT_USDT_USDC_SUPPLY_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DEFILLAMA_FACT_USDT_USDC_SUPPLY_ID": {"type": "TEXT", "index": 1, "name": "DEFILLAMA_FACT_USDT_USDC_SUPPLY_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-04 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_defillama__fact_usdt_usdc_supply_DEFILLAMA_FACT_USDT_USDC_SUPPLY_ID.af85cd2773"}, "test.external_models.not_null_defillama__ez_stablecoin_metrics_chain.a31537394e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_DEFILLAMA", "name": "EZ_STABLECOIN_METRICS_CHAIN", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "DATE_DAY": {"type": "DATE", "index": 2, "name": "DATE_DAY", "comment": null}, "STABLECOIN_ID": {"type": "TEXT", "index": 3, "name": "STABLECOIN_ID", "comment": null}, "STABLECOIN": {"type": "TEXT", "index": 4, "name": "STABLECOIN", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 5, "name": "SYMBOL", "comment": null}, "PEG_TYPE": {"type": "TEXT", "index": 6, "name": "PEG_TYPE", "comment": null}, "PEG_MECHANISM": {"type": "TEXT", "index": 7, "name": "PEG_MECHANISM", "comment": null}, "TOTAL_CIRCULATING_USD": {"type": "FLOAT", "index": 8, "name": "TOTAL_CIRCULATING_USD", "comment": null}, "TOTAL_MINTED_USD": {"type": "FLOAT", "index": 9, "name": "TOTAL_MINTED_USD", "comment": null}, "TOTAL_CIRCULATING": {"type": "FLOAT", "index": 10, "name": "TOTAL_CIRCULATING", "comment": null}, "TOTAL_BRIDGED_TO_USD": {"type": "FLOAT", "index": 11, "name": "TOTAL_BRIDGED_TO_USD", "comment": null}, "TOTAL_UNRELEASED": {"type": "FLOAT", "index": 12, "name": "TOTAL_UNRELEASED", "comment": null}, "EZ_STABLECOIN_METRICS_ID": {"type": "TEXT", "index": 13, "name": "EZ_STABLECOIN_METRICS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_defillama__ez_stablecoin_metrics_chain.a31537394e"}, "model.external_models.avalanche__fact_p_blocks": {"metadata": {"type": "VIEW", "schema": "AVALANCHE", "name": "FACT_P_BLOCKS", "database": "EXTERNAL", "comment": "Avalanche P-Chain Blocks. Please visit https://discord.gg/avax for any questions.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BLOCK_HASH": {"type": "TEXT", "index": 1, "name": "BLOCK_HASH", "comment": "Unique identifier (hash) for the block"}, "BLOCK_INDEX": {"type": "NUMBER", "index": 2, "name": "BLOCK_INDEX", "comment": "Sequential index of the block within the chain"}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "TIMESTAMP", "comment": "Timestamp when the block was produced"}, "TYPE": {"type": "TEXT", "index": 4, "name": "TYPE", "comment": "Type of block (e.g., proposal, commit, abort, etc.)"}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": "Number of transactions included in the block"}, "BLOCK_SIZE": {"type": "NUMBER", "index": 6, "name": "BLOCK_SIZE", "comment": ""}, "PARENT_HASH": {"type": "TEXT", "index": 7, "name": "PARENT_HASH", "comment": "Hash of the parent block in the chain"}, "PROPOSER_ID": {"type": "TEXT", "index": 8, "name": "PROPOSER_ID", "comment": "Identifier for the entity that proposed the block"}, "PROPOSER_PARENT_ID": {"type": "TEXT", "index": 9, "name": "PROPOSER_PARENT_ID", "comment": ""}, "PROPOSER_NODE_ID": {"type": "TEXT", "index": 10, "name": "PROPOSER_NODE_ID", "comment": "Unique node ID of the block proposer"}, "PROPOSER_P_CHAIN_HEIGHT": {"type": "NUMBER", "index": 11, "name": "PROPOSER_P_CHAIN_HEIGHT", "comment": "The P\u2011Chain height as reported by the proposer (useful for cross-chain consistency checks)"}, "PROPOSER_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "PROPOSER_TIMESTAMP", "comment": "Timestamp recorded by the proposer when creating the block"}, "LAST_UPDATED": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "LAST_UPDATED", "comment": "Timestamp of the last update to this record"}, "LOAD_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "LOAD_TIMESTAMP", "comment": "Timestamp when the block data was loaded into Snowflake"}, "BLOCK_HEIGHT": {"type": "NUMBER", "index": 15, "name": "BLOCK_HEIGHT", "comment": "Block height on the chain indicating its position in the ledger"}, "CURRENT_SUPPLY": {"type": "TEXT", "index": 16, "name": "CURRENT_SUPPLY", "comment": "Current supply of AVAX (or chain native token) following block issuance (stored as VARCHAR for precision/format reasons)"}, "L1_VALIDATOR_EXCESS_GAS": {"type": "NUMBER", "index": 17, "name": "L1_VALIDATOR_EXCESS_GAS", "comment": ""}, "L1_VALIDATOR_ACCRUED_FEES": {"type": "NUMBER", "index": 18, "name": "L1_VALIDATOR_ACCRUED_FEES", "comment": "A fee counter that applies to the balance of all active Avalanche L1 Validators (non-primary network)"}, "L1_VALIDATOR_ACTIVE_COUNT": {"type": "NUMBER", "index": 19, "name": "L1_VALIDATOR_ACTIVE_COUNT", "comment": "Count of active validators on the L1 at the time of block creation"}, "FEE_STATE_EXCESS": {"type": "NUMBER", "index": 20, "name": "FEE_STATE_EXCESS", "comment": ""}, "FEE_STATE_CAPACITY": {"type": "NUMBER", "index": 21, "name": "FEE_STATE_CAPACITY", "comment": ""}, "GAS_PRICE": {"type": "NUMBER", "index": 22, "name": "GAS_PRICE", "comment": "Gas price used for transactions within the block"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.avalanche__fact_p_blocks"}, "test.external_models.not_null_bronze__defillama_raises_PROJECT_NAME.b9ae7b7f38": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "DEFILLAMA_RAISES_PROJECT_NAME", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"FUNDING_DATE": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "FUNDING_DATE", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 2, "name": "PROJECT_NAME", "comment": null}, "FUNDING_ROUND": {"type": "TEXT", "index": 3, "name": "FUNDING_ROUND", "comment": null}, "AMOUNT_RAISED": {"type": "FLOAT", "index": 4, "name": "AMOUNT_RAISED", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 5, "name": "CHAINS", "comment": null}, "SECTOR": {"type": "TEXT", "index": 6, "name": "SECTOR", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 7, "name": "CATEGORY", "comment": null}, "CATEGORY_GROUP": {"type": "TEXT", "index": 8, "name": "CATEGORY_GROUP", "comment": null}, "SOURCE": {"type": "TEXT", "index": 9, "name": "SOURCE", "comment": null}, "LEAD_INVESTORS": {"type": "VARIANT", "index": 10, "name": "LEAD_INVESTORS", "comment": null}, "OTHER_INVESTORS": {"type": "VARIANT", "index": 11, "name": "OTHER_INVESTORS", "comment": null}, "VALUATION": {"type": "NUMBER", "index": 12, "name": "VALUATION", "comment": null}, "DEFILLAMA_ID": {"type": "TEXT", "index": 13, "name": "DEFILLAMA_ID", "comment": null}, "RAISE_ID": {"type": "TEXT", "index": 14, "name": "RAISE_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__defillama_raises_PROJECT_NAME.b9ae7b7f38"}, "model.external_models.farcaster__fact_storage": {"metadata": {"type": "VIEW", "schema": "FARCASTER", "name": "FACT_STORAGE", "database": "EXTERNAL", "comment": "Stores how many units of storage each FID has purchased, and when it expires. For more info see [Neynar](https://docs.neynar.com/docs/how-to-query-neynar-sql-playground-for-farcaster-data) or [schema](https://github.com/farcasterxyz/hub-monorepo/tree/51c57245df8ec1c68d616dd3ab8ae5b80edf68fd/apps/replicator)", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ID": {"type": "NUMBER", "index": 1, "name": "ID", "comment": "Generic identifier specific to this DB (a.k.a. surrogate key)"}, "FID": {"type": "NUMBER", "index": 2, "name": "FID", "comment": "FID that owns the storage."}, "UNITS": {"type": "NUMBER", "index": 3, "name": "UNITS", "comment": "Number of storage units allocated."}, "EXPIRY": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "EXPIRY", "comment": "When this storage allocation will expire."}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "TIMESTAMP", "comment": "Message timestamp in UTC."}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "CREATED_AT", "comment": "When the row was first created in this DB"}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "UPDATED_AT", "comment": "When the row was last updated."}, "DELETED_AT": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "DELETED_AT", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.farcaster__fact_storage"}, "model.external_models.avalanche__fact_c_messages": {"metadata": {"type": "VIEW", "schema": "AVALANCHE", "name": "FACT_C_MESSAGES", "database": "EXTERNAL", "comment": "Avalanche C-Chain Messages. Please visit https://discord.gg/avax for any questions.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BLOCKHASH": {"type": "TEXT", "index": 1, "name": "BLOCKHASH", "comment": "Hash of the block containing this message."}, "BLOCKNUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCKNUMBER", "comment": "Block number as a string"}, "BLOCKTIMESTAMP": {"type": "NUMBER", "index": 3, "name": "BLOCKTIMESTAMP", "comment": "Block timestamp"}, "TRANSACTIONHASH": {"type": "TEXT", "index": 4, "name": "TRANSACTIONHASH", "comment": "Hash of the transaction that included this message."}, "TRANSACTIONMESSAGEFROM": {"type": "TEXT", "index": 5, "name": "TRANSACTIONMESSAGEFROM", "comment": "Sender address for the message."}, "TRANSACTIONMESSAGETO": {"type": "TEXT", "index": 6, "name": "TRANSACTIONMESSAGETO", "comment": "Recipient address for the message."}, "TRANSACTIONMESSAGEGASPRICE": {"type": "NUMBER", "index": 7, "name": "TRANSACTIONMESSAGEGASPRICE", "comment": "Gas price applied to the message transaction."}, "PARTITION_DATE": {"type": "DATE", "index": 8, "name": "PARTITION_DATE", "comment": "This date is derived from the block timestamp"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.avalanche__fact_c_messages"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_chains__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.4cb489c21f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_BRONZE", "name": "DEFILLAMA_CHAINS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_chains__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.4cb489c21f"}, "test.external_models.not_null_bitquery__tx_count_TX_COUNT.5a8345b648": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BITQUERY", "name": "TX_COUNT_TX_COUNT", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": null}, "METRIC": {"type": "TEXT", "index": 2, "name": "METRIC", "comment": null}, "BLOCK_DATE": {"type": "TEXT", "index": 3, "name": "BLOCK_DATE", "comment": null}, "TX_COUNT": {"type": "TEXT", "index": 4, "name": "TX_COUNT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ACCOUNTS_ID": {"type": "TEXT", "index": 6, "name": "ACCOUNTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bitquery__tx_count_TX_COUNT.5a8345b648"}, "model.external_models.defillama__dim_bridges": {"metadata": {"type": "VIEW", "schema": "DEFILLAMA", "name": "DIM_BRIDGES", "database": "EXTERNAL", "comment": "This table contains dimensional information about the bridges listed on Defillama.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BRIDGE_ID": {"type": "TEXT", "index": 1, "name": "BRIDGE_ID", "comment": "Unique identifier of the bridge."}, "BRIDGE": {"type": "TEXT", "index": 2, "name": "BRIDGE", "comment": "The name of the listed bridge."}, "BRIDGE_NAME": {"type": "TEXT", "index": 3, "name": "BRIDGE_NAME", "comment": "The more descriptive, official display name of the bridge."}, "CHAINS": {"type": "VARIANT", "index": 4, "name": "CHAINS", "comment": "Array of the various chains or networks that the bridge interacts with."}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 5, "name": "DESTINATION_CHAIN", "comment": "The chain that serves as the primary destination for the bridge."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.defillama__dim_bridges"}, "model.external_models.streamline__defillama_perp_metrics": {"metadata": {"type": "VIEW", "schema": "STREAMLINE", "name": "DEFILLAMA_PERP_METRICS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROTOCOL_SLUG": {"type": "TEXT", "index": 1, "name": "PROTOCOL_SLUG", "comment": ""}, "PROTOCOL_ID": {"type": "TEXT", "index": 2, "name": "PROTOCOL_ID", "comment": ""}, "RUN_TIMESTAMP": {"type": "NUMBER", "index": 3, "name": "RUN_TIMESTAMP", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 4, "name": "PARTITION_KEY", "comment": ""}, "REQUEST": {"type": "VARIANT", "index": 5, "name": "REQUEST", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.streamline__defillama_perp_metrics"}, "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_BRIDGE_ID.a614975e3c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_BRIDGE_VOLUME_BY_CHAIN_BRIDGE_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BRIDGE_ID": {"type": "TEXT", "index": 1, "name": "BRIDGE_ID", "comment": null}, "BRIDGE": {"type": "TEXT", "index": 2, "name": "BRIDGE", "comment": null}, "BRIDGE_NAME": {"type": "TEXT", "index": 3, "name": "BRIDGE_NAME", "comment": null}, "CHAIN": {"type": "TEXT", "index": 4, "name": "CHAIN", "comment": null}, "BRIDGE_ID_CHAIN": {"type": "TEXT", "index": 5, "name": "BRIDGE_ID_CHAIN", "comment": null}, "DATE": {"type": "DATE", "index": 6, "name": "DATE", "comment": null}, "DEPOSIT_TXS": {"type": "NUMBER", "index": 7, "name": "DEPOSIT_TXS", "comment": null}, "DEPOSIT_USD": {"type": "NUMBER", "index": 8, "name": "DEPOSIT_USD", "comment": null}, "WITHDRAW_TXS": {"type": "NUMBER", "index": 9, "name": "WITHDRAW_TXS", "comment": null}, "WITHDRAW_USD": {"type": "NUMBER", "index": 10, "name": "WITHDRAW_USD", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "MODIFIED_TIMESTAMP", "comment": null}, "DEFILLAMA_BRIDGE_VOL_BY_CHAIN_ID": {"type": "TEXT", "index": 13, "name": "DEFILLAMA_BRIDGE_VOL_BY_CHAIN_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 14, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_BRIDGE_ID.a614975e3c"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_all_time__FLOAT.896c72813b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "DEFILLAMA_PERP_METRICS_TOTAL_ALL_TIME", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_all_time__FLOAT.896c72813b"}, "model.external_models.tokenflow_starknet__l1_data_blocks": {"metadata": {"type": "VIEW", "schema": "TOKENFLOW_STARKNET", "name": "L1_DATA_BLOCKS", "database": "EXTERNAL", "comment": "Table updates ceased after February 1, 2024. This table contains raw block level data for the Starknet blockchain, sourced from Token Flow. For more information on Starknet, please see [Starknet Resources](https://starknet.io/). For more information on Token Flow, please see [Token Flow Resources](https://docs.tokenflow.live/).", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"LOAD_ID": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "LOAD_ID", "comment": ""}, "CHAIN_ID": {"type": "TEXT", "index": 2, "name": "CHAIN_ID", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER", "comment": ""}, "L1_TRANSACTION": {"type": "TEXT", "index": 4, "name": "L1_TRANSACTION", "comment": ""}, "FACT": {"type": "TEXT", "index": 5, "name": "FACT", "comment": ""}, "CONTRACTS_COUNT": {"type": "NUMBER", "index": 6, "name": "CONTRACTS_COUNT", "comment": ""}, "DIFFS_COUNT": {"type": "NUMBER", "index": 7, "name": "DIFFS_COUNT", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.tokenflow_starknet__l1_data_blocks"}, "test.external_models.not_null_artemis__active_users_BLOCK_DATE.d56135f9af": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_ARTEMIS", "name": "ACTIVE_USERS_BLOCK_DATE", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": null}, "METRIC": {"type": "TEXT", "index": 2, "name": "METRIC", "comment": null}, "DESCRIPTION": {"type": "TEXT", "index": 3, "name": "DESCRIPTION", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 4, "name": "BLOCK_DATE", "comment": null}, "ACTIVE_USERS": {"type": "NUMBER", "index": 5, "name": "ACTIVE_USERS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ACTIVE_USERS_ID": {"type": "TEXT", "index": 7, "name": "ACTIVE_USERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 10, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_artemis__active_users_BLOCK_DATE.d56135f9af"}, "test.external_models.not_null_bronze__snapshot_spaces_SPACE.30110840bc": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "SNAPSHOT_SPACES_SPACE", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"SPACE_ID": {"type": "TEXT", "index": 1, "name": "SPACE_ID", "comment": null}, "SPACE": {"type": "TEXT", "index": 2, "name": "SPACE", "comment": null}, "ABOUT": {"type": "TEXT", "index": 3, "name": "ABOUT", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": null}, "NETWORK": {"type": "TEXT", "index": 5, "name": "NETWORK", "comment": null}, "CATEGORIES": {"type": "VARIANT", "index": 6, "name": "CATEGORIES", "comment": null}, "DOMAIN": {"type": "TEXT", "index": 7, "name": "DOMAIN", "comment": null}, "IS_PRIVATE": {"type": "BOOLEAN", "index": 8, "name": "IS_PRIVATE", "comment": null}, "IS_VERIFIED": {"type": "BOOLEAN", "index": 9, "name": "IS_VERIFIED", "comment": null}, "ADMINS": {"type": "VARIANT", "index": 10, "name": "ADMINS", "comment": null}, "MEMBERS": {"type": "VARIANT", "index": 11, "name": "MEMBERS", "comment": null}, "TREASURIES": {"type": "VARIANT", "index": 12, "name": "TREASURIES", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__snapshot_spaces_SPACE.30110840bc"}, "test.external_models.not_null_silver__defillama_raises_PROJECT_NAME.e6a6854bbb": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_RAISES_PROJECT_NAME", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"FUNDING_DATE": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "FUNDING_DATE", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 2, "name": "PROJECT_NAME", "comment": null}, "FUNDING_ROUND": {"type": "TEXT", "index": 3, "name": "FUNDING_ROUND", "comment": null}, "AMOUNT_RAISED": {"type": "FLOAT", "index": 4, "name": "AMOUNT_RAISED", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 5, "name": "CHAINS", "comment": null}, "SECTOR": {"type": "TEXT", "index": 6, "name": "SECTOR", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 7, "name": "CATEGORY", "comment": null}, "CATEGORY_GROUP": {"type": "TEXT", "index": 8, "name": "CATEGORY_GROUP", "comment": null}, "SOURCE": {"type": "TEXT", "index": 9, "name": "SOURCE", "comment": null}, "LEAD_INVESTORS": {"type": "VARIANT", "index": 10, "name": "LEAD_INVESTORS", "comment": null}, "OTHER_INVESTORS": {"type": "VARIANT", "index": 11, "name": "OTHER_INVESTORS", "comment": null}, "VALUATION": {"type": "NUMBER", "index": 12, "name": "VALUATION", "comment": null}, "DEFILLAMA_ID": {"type": "TEXT", "index": 13, "name": "DEFILLAMA_ID", "comment": null}, "RAISE_ID": {"type": "TEXT", "index": 14, "name": "RAISE_ID", "comment": null}, "DEFILLAMA_RAISES_ID": {"type": "TEXT", "index": 15, "name": "DEFILLAMA_RAISES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 19, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_raises_PROJECT_NAME.e6a6854bbb"}, "model.external_models.deepnftvalue__fact_valuations": {"metadata": {"type": "VIEW", "schema": "DEEPNFTVALUE", "name": "FACT_VALUATIONS", "database": "EXTERNAL", "comment": "This table contains a valuation for each token in the Bored Ape Yacht Club, Mutant Ape Yacht Club, Azuki, and CryptoPunks collections, every day. The table is updated daily and pulled from DeepNFTValue's Valuation APIs.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"VALUATION_DATE": {"type": "DATE", "index": 1, "name": "VALUATION_DATE", "comment": "Date of valuation."}, "COLLECTION_NAME": {"type": "TEXT", "index": 2, "name": "COLLECTION_NAME", "comment": "Name of NFT collection, e.g. Azuki or CryptoPunks."}, "COLLECTION_ADDRESS": {"type": "TEXT", "index": 3, "name": "COLLECTION_ADDRESS", "comment": "Contract address of NFT collection."}, "TOKEN_ID": {"type": "NUMBER", "index": 4, "name": "TOKEN_ID", "comment": "Token ID of NFT."}, "CURRENCY": {"type": "TEXT", "index": 5, "name": "CURRENCY", "comment": "Valuation currency."}, "PRICE": {"type": "FLOAT", "index": 6, "name": "PRICE", "comment": "Valuation price."}, "UPDATED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 7, "name": "UPDATED_TIMESTAMP", "comment": "Timestamp of the last update for the token."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.deepnftvalue__fact_valuations"}, "test.external_models.not_null_silver__tokenlists_verified_tokens_API_URL.4d6117cb50": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TOKENLISTS_VERIFIED_TOKENS_API_URL", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"API_URL": {"type": "TEXT", "index": 1, "name": "API_URL", "comment": null}, "NAME": {"type": "TEXT", "index": 2, "name": "NAME", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 4, "name": "ADDRESS", "comment": null}, "CHAIN_ID": {"type": "TEXT", "index": 5, "name": "CHAIN_ID", "comment": null}, "DECIMALS": {"type": "TEXT", "index": 6, "name": "DECIMALS", "comment": null}, "EXTENSIONS": {"type": "VARIANT", "index": 7, "name": "EXTENSIONS", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 8, "name": "PROVIDER", "comment": null}, "LIST_METADATA": {"type": "VARIANT", "index": 9, "name": "LIST_METADATA", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TOKENLISTS_VERIFIED_TOKENS_ID": {"type": "TEXT", "index": 11, "name": "TOKENLISTS_VERIFIED_TOKENS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__tokenlists_verified_tokens_API_URL.4d6117cb50"}, "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_BRIDGE.b6f114b68a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_BRIDGE_VOLUME_BY_CHAIN_BRIDGE", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BRIDGE_ID": {"type": "TEXT", "index": 1, "name": "BRIDGE_ID", "comment": null}, "BRIDGE": {"type": "TEXT", "index": 2, "name": "BRIDGE", "comment": null}, "BRIDGE_NAME": {"type": "TEXT", "index": 3, "name": "BRIDGE_NAME", "comment": null}, "CHAIN": {"type": "TEXT", "index": 4, "name": "CHAIN", "comment": null}, "BRIDGE_ID_CHAIN": {"type": "TEXT", "index": 5, "name": "BRIDGE_ID_CHAIN", "comment": null}, "DATE": {"type": "DATE", "index": 6, "name": "DATE", "comment": null}, "DEPOSIT_TXS": {"type": "NUMBER", "index": 7, "name": "DEPOSIT_TXS", "comment": null}, "DEPOSIT_USD": {"type": "NUMBER", "index": 8, "name": "DEPOSIT_USD", "comment": null}, "WITHDRAW_TXS": {"type": "NUMBER", "index": 9, "name": "WITHDRAW_TXS", "comment": null}, "WITHDRAW_USD": {"type": "NUMBER", "index": 10, "name": "WITHDRAW_USD", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "MODIFIED_TIMESTAMP", "comment": null}, "DEFILLAMA_BRIDGE_VOL_BY_CHAIN_ID": {"type": "TEXT", "index": 13, "name": "DEFILLAMA_BRIDGE_VOL_BY_CHAIN_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 14, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_BRIDGE.b6f114b68a"}, "model.external_models.streamline__bitquery_realtime": {"metadata": {"type": "VIEW", "schema": "STREAMLINE", "name": "BITQUERY_REALTIME", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE_DAY": {"type": "NUMBER", "index": 1, "name": "DATE_DAY", "comment": ""}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": ""}, "METRIC": {"type": "TEXT", "index": 3, "name": "METRIC", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 4, "name": "PARTITION_KEY", "comment": ""}, "REQUEST": {"type": "VARIANT", "index": 5, "name": "REQUEST", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.streamline__bitquery_realtime"}, "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_protocol_tvl_history_PROTOCOL_ID___INSERTED_TIMESTAMP.604bc47379": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_BRONZE", "name": "DEFILLAMA_PROTOCOL_TVL_HISTORY_PROTOCOL_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROTOCOL_ID": {"type": "NUMBER", "index": 1, "name": "PROTOCOL_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_protocol_tvl_history_PROTOCOL_ID___INSERTED_TIMESTAMP.604bc47379"}, "test.external_models.not_null_silver__defillama_options_premium_CHAIN.a58ffe7b2b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_OPTIONS_PREMIUM_CHAIN", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "TIMESTAMP", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 3, "name": "PROTOCOL", "comment": null}, "DAILY_VOLUME_PREMIUM": {"type": "NUMBER", "index": 4, "name": "DAILY_VOLUME_PREMIUM", "comment": null}, "OPTIONS_OBJECT": {"type": "VARIANT", "index": 5, "name": "OPTIONS_OBJECT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ID": {"type": "TEXT", "index": 7, "name": "ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_options_premium_CHAIN.a58ffe7b2b"}, "test.external_models.not_null_silver__defillama_perp_metrics_methodology.8dfe586cb6": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PERP_METRICS_METHODOLOGY", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TIMESTAMP": {"type": "DATE", "index": 1, "name": "TIMESTAMP", "comment": null}, "PROTOCOL_ID": {"type": "TEXT", "index": 2, "name": "PROTOCOL_ID", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "DISPLAY_NAME": {"type": "TEXT", "index": 5, "name": "DISPLAY_NAME", "comment": null}, "MODULE": {"type": "TEXT", "index": 6, "name": "MODULE", "comment": null}, "LOGO": {"type": "TEXT", "index": 7, "name": "LOGO", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 8, "name": "CHAINS", "comment": null}, "PROTOCOL_TYPE": {"type": "TEXT", "index": 9, "name": "PROTOCOL_TYPE", "comment": null}, "METHODOLOGY_URL": {"type": "TEXT", "index": 10, "name": "METHODOLOGY_URL", "comment": null}, "METHODOLOGY": {"type": "VARIANT", "index": 11, "name": "METHODOLOGY", "comment": null}, "PARENT_PROTOCOL": {"type": "TEXT", "index": 12, "name": "PARENT_PROTOCOL", "comment": null}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 13, "name": "PROTOCOL_SLUG", "comment": null}, "LINKED_PROTOCOLS": {"type": "VARIANT", "index": 14, "name": "LINKED_PROTOCOLS", "comment": null}, "TOTAL_24H": {"type": "FLOAT", "index": 15, "name": "TOTAL_24H", "comment": null}, "TOTAL_48H_TO_24H": {"type": "FLOAT", "index": 16, "name": "TOTAL_48H_TO_24H", "comment": null}, "TOTAL_7D": {"type": "FLOAT", "index": 17, "name": "TOTAL_7D", "comment": null}, "TOTAL_30D": {"type": "FLOAT", "index": 18, "name": "TOTAL_30D", "comment": null}, "TOTAL_ALL_TIME": {"type": "FLOAT", "index": 19, "name": "TOTAL_ALL_TIME", "comment": null}, "CHANGE_1D": {"type": "FLOAT", "index": 20, "name": "CHANGE_1D", "comment": null}, "TOTAL_DATA_CHART_BREAKDOWN": {"type": "VARIANT", "index": 21, "name": "TOTAL_DATA_CHART_BREAKDOWN", "comment": null}, "DEFILLAMA_PERP_METRICS_ID": {"type": "TEXT", "index": 22, "name": "DEFILLAMA_PERP_METRICS_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 24576, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_perp_metrics_methodology.8dfe586cb6"}, "model.external_models.polymarket__dim_markets": {"metadata": {"type": "VIEW", "schema": "POLYMARKET", "name": "DIM_MARKETS", "database": "EXTERNAL", "comment": "This table contains all markets and tokens available via the Polymarket CLOB API.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CONDITION_ID": {"type": "TEXT", "index": 1, "name": "CONDITION_ID", "comment": "ID of the specific market."}, "QUESTION": {"type": "TEXT", "index": 2, "name": "QUESTION", "comment": "The actual question the market is based on."}, "DESCRIPTION": {"type": "TEXT", "index": 3, "name": "DESCRIPTION", "comment": "A detailed description of the market."}, "TOKEN_1_TOKEN_ID": {"type": "TEXT", "index": 4, "name": "TOKEN_1_TOKEN_ID", "comment": "Token ID for the first token, available on-chain to make the on-chain data human-readable."}, "TOKEN_1_OUTCOME": {"type": "TEXT", "index": 5, "name": "TOKEN_1_OUTCOME", "comment": "Outcome for the first token, typically \"yes\" or \"no.\""}, "TOKEN_1_WINNER": {"type": "TEXT", "index": 6, "name": "TOKEN_1_WINNER", "comment": "Winner status for the first token."}, "TOKEN_2_TOKEN_ID": {"type": "TEXT", "index": 7, "name": "TOKEN_2_TOKEN_ID", "comment": "Token ID for the second token, available on-chain to make the on-chain data human-readable."}, "TOKEN_2_OUTCOME": {"type": "TEXT", "index": 8, "name": "TOKEN_2_OUTCOME", "comment": "Outcome for the second token, typically \"yes\" or \"no.\""}, "TOKEN_2_WINNER": {"type": "TEXT", "index": 9, "name": "TOKEN_2_WINNER", "comment": "Winner status for the second token."}, "ENABLE_ORDER_BOOK": {"type": "TEXT", "index": 10, "name": "ENABLE_ORDER_BOOK", "comment": "Indicates if the order book is enabled."}, "ACTIVE": {"type": "BOOLEAN", "index": 11, "name": "ACTIVE", "comment": "Indicates if the market is currently live."}, "CLOSED": {"type": "BOOLEAN", "index": 12, "name": "CLOSED", "comment": "Indicates if the market is not currently live."}, "ARCHIVED": {"type": "BOOLEAN", "index": 13, "name": "ARCHIVED", "comment": "Indicates if the market is archived."}, "ACCEPTING_ORDERS": {"type": "BOOLEAN", "index": 14, "name": "ACCEPTING_ORDERS", "comment": "Indicates if the market is accepting orders."}, "ACCEPTING_ORDER_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "ACCEPTING_ORDER_TIMESTAMP", "comment": "Timestamp when the market started accepting orders."}, "MINIMUM_ORDER_SIZE": {"type": "NUMBER", "index": 16, "name": "MINIMUM_ORDER_SIZE", "comment": "Minimum size of an order in the market."}, "MINIMUM_TICK_SIZE": {"type": "NUMBER", "index": 17, "name": "MINIMUM_TICK_SIZE", "comment": "Minimum tick size for the market."}, "QUESTION_ID": {"type": "TEXT", "index": 18, "name": "QUESTION_ID", "comment": "ID of the question associated with the market."}, "MARKET_SLUG": {"type": "TEXT", "index": 19, "name": "MARKET_SLUG", "comment": ""}, "END_DATE_ISO": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "END_DATE_ISO", "comment": "End date of the market in ISO format."}, "GAME_START_TIME": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "GAME_START_TIME", "comment": "Start time of the game/event associated with the market, used to trigger delay."}, "SECONDS_DELAY": {"type": "NUMBER", "index": 22, "name": "SECONDS_DELAY", "comment": "Seconds of match delay for in-game trading."}, "FPMM": {"type": "TEXT", "index": 23, "name": "FPMM", "comment": "Fixed Product Market Maker (FPMM) Polygon address."}, "MAKER_BASE_FEE": {"type": "NUMBER", "index": 24, "name": "MAKER_BASE_FEE", "comment": "Base fee for makers in the market."}, "TAKER_BASE_FEE": {"type": "NUMBER", "index": 25, "name": "TAKER_BASE_FEE", "comment": "Base fee for takers in the market."}, "NEG_RISK": {"type": "BOOLEAN", "index": 26, "name": "NEG_RISK", "comment": "Indicates if negative risk is present in the market."}, "NEG_RISK_MARKET_ID": {"type": "TEXT", "index": 27, "name": "NEG_RISK_MARKET_ID", "comment": "Market ID for negative risk."}, "NEG_RISK_REQUEST_ID": {"type": "TEXT", "index": 28, "name": "NEG_RISK_REQUEST_ID", "comment": "Request ID for negative risk."}, "REWARDS": {"type": "VARIANT", "index": 29, "name": "REWARDS", "comment": "Rewards associated with the market."}, "TAGS": {"type": "VARIANT", "index": 30, "name": "TAGS", "comment": "All the associated tags in the market, contained in an object."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.polymarket__dim_markets"}, "model.external_models.defillama__dim_stablecoins": {"metadata": {"type": "VIEW", "schema": "DEFILLAMA", "name": "DIM_STABLECOINS", "database": "EXTERNAL", "comment": "This table contains dimensional information about the stablecoins listed on Defillama.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"STABLECOIN_ID": {"type": "TEXT", "index": 1, "name": "STABLECOIN_ID", "comment": "Unique identifier of the stablecoin."}, "STABLECOIN": {"type": "TEXT", "index": 2, "name": "STABLECOIN", "comment": "Name of the stablecoin."}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": "Symbol of the stablecoin."}, "PEG_TYPE": {"type": "TEXT", "index": 4, "name": "PEG_TYPE", "comment": "Type of asset that the stablecoin is pegged to."}, "PEG_MECHANISM": {"type": "TEXT", "index": 5, "name": "PEG_MECHANISM", "comment": "The method used for the stablecoin peg (e.g. algorithmic, crypto-backed etc.)."}, "PRICE_SOURCE": {"type": "TEXT", "index": 6, "name": "PRICE_SOURCE", "comment": "The source of the prices listed on Defillama."}, "CHAINS": {"type": "VARIANT", "index": 7, "name": "CHAINS", "comment": "Array of the various chains or networks that the stablecoin is deployed on."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.defillama__dim_stablecoins"}, "test.external_models.not_null_silver__defillama_stablecoin_metrics__INSERTED_TIMESTAMP.e75bd7f082": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_STABLECOIN_METRICS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "DATE_DAY": {"type": "DATE", "index": 2, "name": "DATE_DAY", "comment": null}, "STABLECOIN_ID": {"type": "TEXT", "index": 3, "name": "STABLECOIN_ID", "comment": null}, "TOTAL_CIRCULATING_USD": {"type": "VARIANT", "index": 4, "name": "TOTAL_CIRCULATING_USD", "comment": null}, "TOTAL_MINTED_USD": {"type": "VARIANT", "index": 5, "name": "TOTAL_MINTED_USD", "comment": null}, "TOTAL_CIRCULATING": {"type": "VARIANT", "index": 6, "name": "TOTAL_CIRCULATING", "comment": null}, "TOTAL_BRIDGED_TO_USD": {"type": "VARIANT", "index": 7, "name": "TOTAL_BRIDGED_TO_USD", "comment": null}, "TOTAL_UNRELEASED": {"type": "VARIANT", "index": 8, "name": "TOTAL_UNRELEASED", "comment": null}, "RUN_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "RUN_TIMESTAMP", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 10, "name": "PARTITION_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DEFILLAMA_STABLECOIN_METRICS_ID": {"type": "TEXT", "index": 12, "name": "DEFILLAMA_STABLECOIN_METRICS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 15, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_stablecoin_metrics__INSERTED_TIMESTAMP.e75bd7f082"}, "test.external_models.not_null_silver__snapshot_votes_VOTER.f83f2638d0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SNAPSHOT_VOTES_VOTER", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"VOTE_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "VOTE_TIMESTAMP", "comment": null}, "VOTER": {"type": "TEXT", "index": 2, "name": "VOTER", "comment": null}, "PROPOSAL_ID": {"type": "TEXT", "index": 3, "name": "PROPOSAL_ID", "comment": null}, "VOTE_OPTION": {"type": "ARRAY", "index": 4, "name": "VOTE_OPTION", "comment": null}, "VOTING_POWER": {"type": "NUMBER", "index": 5, "name": "VOTING_POWER", "comment": null}, "IPFS": {"type": "TEXT", "index": 6, "name": "IPFS", "comment": null}, "VOTE_ID": {"type": "TEXT", "index": 7, "name": "VOTE_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__snapshot_votes_VOTER.f83f2638d0"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_chains_tvl__INSERTED_TIMESTAMP__day__2.187b24cdd3": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER", "name": "DEFILLAMA_CHAINS_TVL", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_chains_tvl__INSERTED_TIMESTAMP__day__2.187b24cdd3"}, "model.external_models.silver__defillama_chains_tvl": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "DEFILLAMA_CHAINS_TVL", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN_ID": {"type": "TEXT", "index": 1, "name": "CHAIN_ID", "comment": ""}, "CHAIN": {"type": "TEXT", "index": 2, "name": "CHAIN", "comment": ""}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "TIMESTAMP", "comment": ""}, "TVL_USD": {"type": "NUMBER", "index": 4, "name": "TVL_USD", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "ID": {"type": "TEXT", "index": 6, "name": "ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 08:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 8128512, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 357322, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver__defillama_chains_tvl"}, "model.external_models.defillama__fact_perp_volume": {"metadata": {"type": "VIEW", "schema": "DEFILLAMA", "name": "FACT_PERP_VOLUME", "database": "EXTERNAL", "comment": "This table contains historical perpetual protocol volumes for the protocols listed on Defillama in `defillama__dim_perps`, where available.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE": {"type": "DATE", "index": 1, "name": "DATE", "comment": "Date associated with the reported volume records."}, "CHAIN": {"type": "TEXT", "index": 2, "name": "CHAIN", "comment": "The name of the blockchain where the volume occurred."}, "PROTOCOL_ID": {"type": "TEXT", "index": 3, "name": "PROTOCOL_ID", "comment": "Unique identifier of the protocol from Defillama."}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 4, "name": "PROTOCOL_SLUG", "comment": "URL-friendly slug identifier for the protocol."}, "PROTOCOL": {"type": "TEXT", "index": 5, "name": "PROTOCOL", "comment": "The name of the protocol."}, "VOLUME": {"type": "FLOAT", "index": 6, "name": "VOLUME", "comment": "The total volume driven by the protocol on a daily basis, denominated in USD."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.defillama__fact_perp_volume"}, "test.external_models.not_null_farcaster__fact_verifications_UPDATED_AT.8ec3d8c803": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_FARCASTER", "name": "FACT_VERIFICATIONS_UPDATED_AT", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ID": {"type": "NUMBER", "index": 1, "name": "ID", "comment": null}, "FID": {"type": "NUMBER", "index": 2, "name": "FID", "comment": null}, "CLAIM": {"type": "TEXT", "index": 3, "name": "CLAIM", "comment": null}, "HASH": {"type": "BINARY", "index": 4, "name": "HASH", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "TIMESTAMP", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "CREATED_AT", "comment": null}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "UPDATED_AT", "comment": null}, "DELETED_AT": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "DELETED_AT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_farcaster__fact_verifications_UPDATED_AT.8ec3d8c803"}, "model.external_models.deepnftvalue__fact_collections": {"metadata": {"type": "VIEW", "schema": "DEEPNFTVALUE", "name": "FACT_COLLECTIONS", "database": "EXTERNAL", "comment": "This table contains collection information for Bored Ape Yacht Club, Mutant Ape Yacht Club, Azuki, and CryptoPunks. The table is updated daily and pulled from DeepNFTValue's Collection API.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"COLLECTION_NAME": {"type": "TEXT", "index": 1, "name": "COLLECTION_NAME", "comment": "Name of NFT collection, e.g. Azuki or CryptoPunks."}, "COLLECTION_ADDRESS": {"type": "TEXT", "index": 2, "name": "COLLECTION_ADDRESS", "comment": "Contract address of NFT collection."}, "FLOOR_PRICE": {"type": "FLOAT", "index": 3, "name": "FLOOR_PRICE", "comment": "Floor price of NFT collection."}, "VALUATION_MAX": {"type": "FLOAT", "index": 4, "name": "VALUATION_MAX", "comment": "Maximum valuation of NFT collection."}, "VALUATION_MIN": {"type": "FLOAT", "index": 5, "name": "VALUATION_MIN", "comment": "Minimum valuation of NFT collection."}, "ATTRIBUTES": {"type": "VARIANT", "index": 6, "name": "ATTRIBUTES", "comment": "Attributes of NFT collection."}, "VALUATION_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "VALUATION_TIMESTAMP", "comment": "Timestamp of valuation."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.deepnftvalue__fact_collections"}, "test.external_models.not_null_bronze__snapshot_users_CREATED_AT.2912f9578e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "SNAPSHOT_USERS_CREATED_AT", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": null}, "NAME": {"type": "TEXT", "index": 2, "name": "NAME", "comment": null}, "ABOUT": {"type": "TEXT", "index": 3, "name": "ABOUT", "comment": null}, "AVATAR": {"type": "TEXT", "index": 4, "name": "AVATAR", "comment": null}, "IPFS": {"type": "TEXT", "index": 5, "name": "IPFS", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "CREATED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__snapshot_users_CREATED_AT.2912f9578e"}, "test.external_models.not_null_silver__defillama_perp_daily_volume_protocol.d43869ecf4": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PERP_DAILY_VOLUME_PROTOCOL", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE": {"type": "DATE", "index": 1, "name": "DATE", "comment": null}, "CHAIN": {"type": "TEXT", "index": 2, "name": "CHAIN", "comment": null}, "PROTOCOL_ID": {"type": "TEXT", "index": 3, "name": "PROTOCOL_ID", "comment": null}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 4, "name": "PROTOCOL_SLUG", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 5, "name": "PROTOCOL", "comment": null}, "VOLUME": {"type": "FLOAT", "index": 6, "name": "VOLUME", "comment": null}, "DEFILLAMA_PERP_METRICS_ID": {"type": "TEXT", "index": 7, "name": "DEFILLAMA_PERP_METRICS_ID", "comment": null}, "DEFILLAMA_PERP_DAILY_VOLUME_ID": {"type": "TEXT", "index": 8, "name": "DEFILLAMA_PERP_DAILY_VOLUME_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_perp_daily_volume_protocol.d43869ecf4"}, "test.external_models.unique_artemis__active_users_ACTIVE_USERS_ID.0ba8dead1c": {"metadata": {"type": "BASE TABLE", "schema": "UNIQUE_ARTEMIS", "name": "ACTIVE_USERS_ACTIVE_USERS_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"UNIQUE_FIELD": {"type": "TEXT", "index": 1, "name": "UNIQUE_FIELD", "comment": null}, "N_RECORDS": {"type": "NUMBER", "index": 2, "name": "N_RECORDS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.unique_artemis__active_users_ACTIVE_USERS_ID.0ba8dead1c"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__tokenlists_verified_tokens_API_URL__LOWER_ADDRESS___CHAIN_ID.ce00ef40ce": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "TOKENLISTS_VERIFIED_TOKENS_API_URL", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"API_URL": {"type": "TEXT", "index": 1, "name": "API_URL", "comment": null}, "LOWER(ADDRESS)": {"type": "TEXT", "index": 2, "name": "LOWER(ADDRESS)", "comment": null}, "CHAIN_ID": {"type": "TEXT", "index": 3, "name": "CHAIN_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__tokenlists_verified_tokens_API_URL__LOWER_ADDRESS___CHAIN_ID.ce00ef40ce"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_stablecoin_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.3653e5a1cf": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "DEFILLAMA_STABLECOIN_SUPPLY", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-05-28 09:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_stablecoin_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.3653e5a1cf"}, "model.external_models.silver__defillama_perp_metrics": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "DEFILLAMA_PERP_METRICS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TIMESTAMP": {"type": "DATE", "index": 1, "name": "TIMESTAMP", "comment": ""}, "PROTOCOL_ID": {"type": "TEXT", "index": 2, "name": "PROTOCOL_ID", "comment": ""}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": ""}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": ""}, "DISPLAY_NAME": {"type": "TEXT", "index": 5, "name": "DISPLAY_NAME", "comment": ""}, "MODULE": {"type": "TEXT", "index": 6, "name": "MODULE", "comment": ""}, "LOGO": {"type": "TEXT", "index": 7, "name": "LOGO", "comment": ""}, "CHAINS": {"type": "VARIANT", "index": 8, "name": "CHAINS", "comment": ""}, "PROTOCOL_TYPE": {"type": "TEXT", "index": 9, "name": "PROTOCOL_TYPE", "comment": ""}, "METHODOLOGY_URL": {"type": "TEXT", "index": 10, "name": "METHODOLOGY_URL", "comment": ""}, "METHODOLOGY": {"type": "VARIANT", "index": 11, "name": "METHODOLOGY", "comment": ""}, "PARENT_PROTOCOL": {"type": "TEXT", "index": 12, "name": "PARENT_PROTOCOL", "comment": ""}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 13, "name": "PROTOCOL_SLUG", "comment": ""}, "LINKED_PROTOCOLS": {"type": "VARIANT", "index": 14, "name": "LINKED_PROTOCOLS", "comment": ""}, "TOTAL_24H": {"type": "FLOAT", "index": 15, "name": "TOTAL_24H", "comment": ""}, "TOTAL_48H_TO_24H": {"type": "FLOAT", "index": 16, "name": "TOTAL_48H_TO_24H", "comment": ""}, "TOTAL_7D": {"type": "FLOAT", "index": 17, "name": "TOTAL_7D", "comment": ""}, "TOTAL_30D": {"type": "FLOAT", "index": 18, "name": "TOTAL_30D", "comment": ""}, "TOTAL_ALL_TIME": {"type": "FLOAT", "index": 19, "name": "TOTAL_ALL_TIME", "comment": ""}, "CHANGE_1D": {"type": "FLOAT", "index": 20, "name": "CHANGE_1D", "comment": ""}, "TOTAL_DATA_CHART_BREAKDOWN": {"type": "VARIANT", "index": 21, "name": "TOTAL_DATA_CHART_BREAKDOWN", "comment": ""}, "DEFILLAMA_PERP_METRICS_ID": {"type": "TEXT", "index": 22, "name": "DEFILLAMA_PERP_METRICS_ID", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(timestamp, protocol_id)", "include": true, "description": "The key used to cluster this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:45UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 20161536, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 2985, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver__defillama_perp_metrics"}, "test.external_models.not_null_silver__defillama_perp_metrics_display_name.f6a537f455": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PERP_METRICS_DISPLAY_NAME", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TIMESTAMP": {"type": "DATE", "index": 1, "name": "TIMESTAMP", "comment": null}, "PROTOCOL_ID": {"type": "TEXT", "index": 2, "name": "PROTOCOL_ID", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "DISPLAY_NAME": {"type": "TEXT", "index": 5, "name": "DISPLAY_NAME", "comment": null}, "MODULE": {"type": "TEXT", "index": 6, "name": "MODULE", "comment": null}, "LOGO": {"type": "TEXT", "index": 7, "name": "LOGO", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 8, "name": "CHAINS", "comment": null}, "PROTOCOL_TYPE": {"type": "TEXT", "index": 9, "name": "PROTOCOL_TYPE", "comment": null}, "METHODOLOGY_URL": {"type": "TEXT", "index": 10, "name": "METHODOLOGY_URL", "comment": null}, "METHODOLOGY": {"type": "VARIANT", "index": 11, "name": "METHODOLOGY", "comment": null}, "PARENT_PROTOCOL": {"type": "TEXT", "index": 12, "name": "PARENT_PROTOCOL", "comment": null}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 13, "name": "PROTOCOL_SLUG", "comment": null}, "LINKED_PROTOCOLS": {"type": "VARIANT", "index": 14, "name": "LINKED_PROTOCOLS", "comment": null}, "TOTAL_24H": {"type": "FLOAT", "index": 15, "name": "TOTAL_24H", "comment": null}, "TOTAL_48H_TO_24H": {"type": "FLOAT", "index": 16, "name": "TOTAL_48H_TO_24H", "comment": null}, "TOTAL_7D": {"type": "FLOAT", "index": 17, "name": "TOTAL_7D", "comment": null}, "TOTAL_30D": {"type": "FLOAT", "index": 18, "name": "TOTAL_30D", "comment": null}, "TOTAL_ALL_TIME": {"type": "FLOAT", "index": 19, "name": "TOTAL_ALL_TIME", "comment": null}, "CHANGE_1D": {"type": "FLOAT", "index": 20, "name": "CHANGE_1D", "comment": null}, "TOTAL_DATA_CHART_BREAKDOWN": {"type": "VARIANT", "index": 21, "name": "TOTAL_DATA_CHART_BREAKDOWN", "comment": null}, "DEFILLAMA_PERP_METRICS_ID": {"type": "TEXT", "index": 22, "name": "DEFILLAMA_PERP_METRICS_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 24576, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_perp_metrics_display_name.f6a537f455"}, "model.external_models.farcaster__dim_fids": {"metadata": {"type": "VIEW", "schema": "FARCASTER", "name": "DIM_FIDS", "database": "EXTERNAL", "comment": "Stores all registered FIDs on the Farcaster network. For more info see [Neynar](https://docs.neynar.com/docs/how-to-query-neynar-sql-playground-for-farcaster-data) or [schema](https://github.com/farcasterxyz/hub-monorepo/tree/51c57245df8ec1c68d616dd3ab8ae5b80edf68fd/apps/replicator)", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CUSTODY_ADDRESS": {"type": "BINARY", "index": 1, "name": "CUSTODY_ADDRESS", "comment": "Address that owns the FID."}, "FID": {"type": "NUMBER", "index": 2, "name": "FID", "comment": "FID of the user (primary key)"}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "CREATED_AT", "comment": "When the row was first created in this DB (not the same as registration date!)"}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "UPDATED_AT", "comment": "When the row was last updated."}, "REGISTERED_AT": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "REGISTERED_AT", "comment": "Timestamp of the block in which the user was registered."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.farcaster__dim_fids"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics__inserted_timestamp__TIMESTAMP_NTZ.07b57d6775": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "DEFILLAMA_PERP_METRICS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics__inserted_timestamp__TIMESTAMP_NTZ.07b57d6775"}, "model.external_models.farcaster__fact_blocks": {"metadata": {"type": "VIEW", "schema": "FARCASTER", "name": "FACT_BLOCKS", "database": "EXTERNAL", "comment": "Represents users that have blocked or been blocked. For more info see [Neynar](https://docs.neynar.com/docs/how-to-query-neynar-sql-playground-for-farcaster-data) or [schema](https://github.com/farcasterxyz/hub-monorepo/tree/51c57245df8ec1c68d616dd3ab8ae5b80edf68fd/apps/replicator)", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BLOCKER_FID": {"type": "NUMBER", "index": 1, "name": "BLOCKER_FID", "comment": "The FID of the user that blocked the other user."}, "BLOCKED_FID": {"type": "NUMBER", "index": 2, "name": "BLOCKED_FID", "comment": "The FID of the user that has been blocked."}, "ID": {"type": "NUMBER", "index": 3, "name": "ID", "comment": "Generic identifier specific to this DB (a.k.a. surrogate key)"}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "CREATED_AT", "comment": "When the row was first created in this DB (not the same as the message timestamp!)"}, "DELETED_AT": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "DELETED_AT", "comment": "When the cast was considered deleted/revoked/pruned by the hub (e.g. in response to a CastRemove message, etc.)"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.farcaster__fact_blocks"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__flashbots_protect_txs__ID.cea004070b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "FLASHBOTS_PROTECT_TXS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"_ID": {"type": "TEXT", "index": 1, "name": "_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__flashbots_protect_txs__ID.cea004070b"}, "test.external_models.not_null_defillama__ez_stablecoin_metrics_stablecoin.8bd8a24860": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_DEFILLAMA", "name": "EZ_STABLECOIN_METRICS_STABLECOIN", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "DATE_DAY": {"type": "DATE", "index": 2, "name": "DATE_DAY", "comment": null}, "STABLECOIN_ID": {"type": "TEXT", "index": 3, "name": "STABLECOIN_ID", "comment": null}, "STABLECOIN": {"type": "TEXT", "index": 4, "name": "STABLECOIN", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 5, "name": "SYMBOL", "comment": null}, "PEG_TYPE": {"type": "TEXT", "index": 6, "name": "PEG_TYPE", "comment": null}, "PEG_MECHANISM": {"type": "TEXT", "index": 7, "name": "PEG_MECHANISM", "comment": null}, "TOTAL_CIRCULATING_USD": {"type": "FLOAT", "index": 8, "name": "TOTAL_CIRCULATING_USD", "comment": null}, "TOTAL_MINTED_USD": {"type": "FLOAT", "index": 9, "name": "TOTAL_MINTED_USD", "comment": null}, "TOTAL_CIRCULATING": {"type": "FLOAT", "index": 10, "name": "TOTAL_CIRCULATING", "comment": null}, "TOTAL_BRIDGED_TO_USD": {"type": "FLOAT", "index": 11, "name": "TOTAL_BRIDGED_TO_USD", "comment": null}, "TOTAL_UNRELEASED": {"type": "FLOAT", "index": 12, "name": "TOTAL_UNRELEASED", "comment": null}, "EZ_STABLECOIN_METRICS_ID": {"type": "TEXT", "index": 13, "name": "EZ_STABLECOIN_METRICS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_defillama__ez_stablecoin_metrics_stablecoin.8bd8a24860"}, "model.external_models.silver__snapshot_votes": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "SNAPSHOT_VOTES", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"VOTE_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "VOTE_TIMESTAMP", "comment": ""}, "VOTER": {"type": "TEXT", "index": 2, "name": "VOTER", "comment": ""}, "PROPOSAL_ID": {"type": "TEXT", "index": 3, "name": "PROPOSAL_ID", "comment": ""}, "VOTE_OPTION": {"type": "ARRAY", "index": 4, "name": "VOTE_OPTION", "comment": ""}, "VOTING_POWER": {"type": "NUMBER", "index": 5, "name": "VOTING_POWER", "comment": ""}, "IPFS": {"type": "TEXT", "index": 6, "name": "IPFS", "comment": ""}, "VOTE_ID": {"type": "TEXT", "index": 7, "name": "VOTE_ID", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 16:17UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 8931771904, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 70299736, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver__snapshot_votes"}, "model.external_models.defillama__ez_investors": {"metadata": {"type": "VIEW", "schema": "DEFILLAMA", "name": "EZ_INVESTORS", "database": "EXTERNAL", "comment": "This table contains aggregated information about investors, sourced from Defillama's Raises data, providing easy-to-use metrics.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"INVESTOR": {"type": "TEXT", "index": 1, "name": "INVESTOR", "comment": "Name of the investor or investment firm."}, "DEALS": {"type": "NUMBER", "index": 2, "name": "DEALS", "comment": "Total number of funding deals the investor has participated in."}, "TOTAL_AMOUNT": {"type": "FLOAT", "index": 3, "name": "TOTAL_AMOUNT", "comment": "Total amount invested across all deals (in USD)."}, "MEDIAN_AMOUNT": {"type": "FLOAT", "index": 4, "name": "MEDIAN_AMOUNT", "comment": "Median investment amount per deal (in USD)."}, "CHAINS": {"type": "ARRAY", "index": 5, "name": "CHAINS", "comment": "Array of blockchain networks the investor has invested in."}, "TOP_PROJECT_CATEGORY": {"type": "TEXT", "index": 6, "name": "TOP_PROJECT_CATEGORY", "comment": "Category of the project representing the investor's largest investment."}, "TOP_ROUND_TYPE": {"type": "TEXT", "index": 7, "name": "TOP_ROUND_TYPE", "comment": "Type of funding round for the investor's largest investment."}, "PROJECTS": {"type": "ARRAY", "index": 8, "name": "PROJECTS", "comment": "Array of project names the investor has invested in."}, "DEFILLAMA_INVESTORS_ID": {"type": "TEXT", "index": 9, "name": "DEFILLAMA_INVESTORS_ID", "comment": "Generated surrogate key for the table."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": "Timestamp when the record was first inserted."}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": "Timestamp when the record was last modified."}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": "Internal timestamp for data pipeline tracking."}, "_INVOCATION_ID": {"type": "TEXT", "index": 13, "name": "_INVOCATION_ID", "comment": "DBT invocation identifier for lineage tracking."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.defillama__ez_investors"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_bronze__defillama_raises_FUNDING_DATE__day__30.ca1b778724": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_BRONZE", "name": "DEFILLAMA_RAISES_FUNDING_DATE", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_bronze__defillama_raises_FUNDING_DATE__day__30.ca1b778724"}, "test.external_models.not_null_defillama__ez_stablecoin_metrics_stablecoin_id.550d95d3ce": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_DEFILLAMA", "name": "EZ_STABLECOIN_METRICS_STABLECOIN_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "DATE_DAY": {"type": "DATE", "index": 2, "name": "DATE_DAY", "comment": null}, "STABLECOIN_ID": {"type": "TEXT", "index": 3, "name": "STABLECOIN_ID", "comment": null}, "STABLECOIN": {"type": "TEXT", "index": 4, "name": "STABLECOIN", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 5, "name": "SYMBOL", "comment": null}, "PEG_TYPE": {"type": "TEXT", "index": 6, "name": "PEG_TYPE", "comment": null}, "PEG_MECHANISM": {"type": "TEXT", "index": 7, "name": "PEG_MECHANISM", "comment": null}, "TOTAL_CIRCULATING_USD": {"type": "FLOAT", "index": 8, "name": "TOTAL_CIRCULATING_USD", "comment": null}, "TOTAL_MINTED_USD": {"type": "FLOAT", "index": 9, "name": "TOTAL_MINTED_USD", "comment": null}, "TOTAL_CIRCULATING": {"type": "FLOAT", "index": 10, "name": "TOTAL_CIRCULATING", "comment": null}, "TOTAL_BRIDGED_TO_USD": {"type": "FLOAT", "index": 11, "name": "TOTAL_BRIDGED_TO_USD", "comment": null}, "TOTAL_UNRELEASED": {"type": "FLOAT", "index": 12, "name": "TOTAL_UNRELEASED", "comment": null}, "EZ_STABLECOIN_METRICS_ID": {"type": "TEXT", "index": 13, "name": "EZ_STABLECOIN_METRICS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_defillama__ez_stablecoin_metrics_stablecoin_id.550d95d3ce"}, "model.external_models.silver__defillama_bridge_volume": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "DEFILLAMA_BRIDGE_VOLUME", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BRIDGE_ID": {"type": "TEXT", "index": 1, "name": "BRIDGE_ID", "comment": ""}, "BRIDGE": {"type": "TEXT", "index": 2, "name": "BRIDGE", "comment": ""}, "BRIDGE_NAME": {"type": "TEXT", "index": 3, "name": "BRIDGE_NAME", "comment": ""}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "TIMESTAMP", "comment": ""}, "DEPOSIT_TXS": {"type": "NUMBER", "index": 5, "name": "DEPOSIT_TXS", "comment": ""}, "DEPOSIT_USD": {"type": "NUMBER", "index": 6, "name": "DEPOSIT_USD", "comment": ""}, "WITHDRAW_TXS": {"type": "NUMBER", "index": 7, "name": "WITHDRAW_TXS", "comment": ""}, "WITHDRAW_USD": {"type": "NUMBER", "index": 8, "name": "WITHDRAW_USD", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "ID": {"type": "TEXT", "index": 10, "name": "ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 08:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 920064, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 33901, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver__defillama_bridge_volume"}, "test.livequery_models.test__live_udf_api_post_data_string.e2159319bb": {"metadata": {"type": "BASE TABLE", "schema": "TEST", "name": "LIVE_UDF_API_POST_DATA_STRING", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TEST_NAME": {"type": "TEXT", "index": 1, "name": "TEST_NAME", "comment": null}, "PARAMETERS": {"type": "ARRAY", "index": 2, "name": "PARAMETERS", "comment": null}, "RESULT": {"type": "VARIANT", "index": 3, "name": "RESULT", "comment": null}, "ASSERTION": {"type": "TEXT", "index": 4, "name": "ASSERTION", "comment": null}, "SQL": {"type": "TEXT", "index": 5, "name": "SQL", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-01-12 14:49UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.livequery_models.test__live_udf_api_post_data_string.e2159319bb"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_30d__FLOAT.27077c7b0e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "DEFILLAMA_PERP_METRICS_TOTAL_30D", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_30d__FLOAT.27077c7b0e"}, "model.external_models.tokenflow_starknet__decoded_messages": {"metadata": {"type": "VIEW", "schema": "TOKENFLOW_STARKNET", "name": "DECODED_MESSAGES", "database": "EXTERNAL", "comment": "Table updates ceased after February 1, 2024. This table contains decoded message level data for the Starknet blockchain, sourced from Token Flow. For more information on Starknet, please see [Starknet Resources](https://starknet.io/). For more information on Token Flow, please see [Token Flow Resources](https://docs.tokenflow.live/).", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"LOAD_ID": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "LOAD_ID", "comment": ""}, "CHAIN_ID": {"type": "TEXT", "index": 2, "name": "CHAIN_ID", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER", "comment": ""}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "TIMESTAMP", "comment": ""}, "MESSAGE_ID": {"type": "TEXT", "index": 5, "name": "MESSAGE_ID", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": ""}, "TRACE_ID": {"type": "TEXT", "index": 7, "name": "TRACE_ID", "comment": ""}, "FROM_ADDRESS": {"type": "TEXT", "index": 8, "name": "FROM_ADDRESS", "comment": ""}, "TO_ADDRESS": {"type": "TEXT", "index": 9, "name": "TO_ADDRESS", "comment": ""}, "PAYLOAD": {"type": "ARRAY", "index": 10, "name": "PAYLOAD", "comment": ""}, "MESSAGE_ORDER": {"type": "NUMBER", "index": 11, "name": "MESSAGE_ORDER", "comment": ""}, "CLASS_HASH": {"type": "TEXT", "index": 12, "name": "CLASS_HASH", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.tokenflow_starknet__decoded_messages"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_stablecoin_metrics__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.0771cb7209": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "DEFILLAMA_STABLECOIN_METRICS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_stablecoin_metrics__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.0771cb7209"}, "test.external_models.not_null_silver__defillama_perp_metrics_category.03f85efead": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PERP_METRICS_CATEGORY", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TIMESTAMP": {"type": "DATE", "index": 1, "name": "TIMESTAMP", "comment": null}, "PROTOCOL_ID": {"type": "TEXT", "index": 2, "name": "PROTOCOL_ID", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "DISPLAY_NAME": {"type": "TEXT", "index": 5, "name": "DISPLAY_NAME", "comment": null}, "MODULE": {"type": "TEXT", "index": 6, "name": "MODULE", "comment": null}, "LOGO": {"type": "TEXT", "index": 7, "name": "LOGO", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 8, "name": "CHAINS", "comment": null}, "PROTOCOL_TYPE": {"type": "TEXT", "index": 9, "name": "PROTOCOL_TYPE", "comment": null}, "METHODOLOGY_URL": {"type": "TEXT", "index": 10, "name": "METHODOLOGY_URL", "comment": null}, "METHODOLOGY": {"type": "VARIANT", "index": 11, "name": "METHODOLOGY", "comment": null}, "PARENT_PROTOCOL": {"type": "TEXT", "index": 12, "name": "PARENT_PROTOCOL", "comment": null}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 13, "name": "PROTOCOL_SLUG", "comment": null}, "LINKED_PROTOCOLS": {"type": "VARIANT", "index": 14, "name": "LINKED_PROTOCOLS", "comment": null}, "TOTAL_24H": {"type": "FLOAT", "index": 15, "name": "TOTAL_24H", "comment": null}, "TOTAL_48H_TO_24H": {"type": "FLOAT", "index": 16, "name": "TOTAL_48H_TO_24H", "comment": null}, "TOTAL_7D": {"type": "FLOAT", "index": 17, "name": "TOTAL_7D", "comment": null}, "TOTAL_30D": {"type": "FLOAT", "index": 18, "name": "TOTAL_30D", "comment": null}, "TOTAL_ALL_TIME": {"type": "FLOAT", "index": 19, "name": "TOTAL_ALL_TIME", "comment": null}, "CHANGE_1D": {"type": "FLOAT", "index": 20, "name": "CHANGE_1D", "comment": null}, "TOTAL_DATA_CHART_BREAKDOWN": {"type": "VARIANT", "index": 21, "name": "TOTAL_DATA_CHART_BREAKDOWN", "comment": null}, "DEFILLAMA_PERP_METRICS_ID": {"type": "TEXT", "index": 22, "name": "DEFILLAMA_PERP_METRICS_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 65024, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 7, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_perp_metrics_category.03f85efead"}, "test.external_models.not_null_bitquery__tx_count_BLOCKCHAIN.8ae6357142": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BITQUERY", "name": "TX_COUNT_BLOCKCHAIN", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": null}, "METRIC": {"type": "TEXT", "index": 2, "name": "METRIC", "comment": null}, "BLOCK_DATE": {"type": "TEXT", "index": 3, "name": "BLOCK_DATE", "comment": null}, "TX_COUNT": {"type": "TEXT", "index": 4, "name": "TX_COUNT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ACCOUNTS_ID": {"type": "TEXT", "index": 6, "name": "ACCOUNTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bitquery__tx_count_BLOCKCHAIN.8ae6357142"}, "test.external_models.not_null_silver__defillama_options_notional_CHAIN.17704c94d3": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_OPTIONS_NOTIONAL_CHAIN", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "TIMESTAMP", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 3, "name": "PROTOCOL", "comment": null}, "DAILY_VOLUME_NOTIONAL": {"type": "NUMBER", "index": 4, "name": "DAILY_VOLUME_NOTIONAL", "comment": null}, "OPTIONS_OBJECT": {"type": "VARIANT", "index": 5, "name": "OPTIONS_OBJECT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ID": {"type": "TEXT", "index": 7, "name": "ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_options_notional_CHAIN.17704c94d3"}, "test.external_models.not_null_bronze__snapshot_votes_VOTER.4c90295a96": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "SNAPSHOT_VOTES_VOTER", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": null}, "IPFS": {"type": "TEXT", "index": 2, "name": "IPFS", "comment": null}, "PROPOSAL_ID": {"type": "TEXT", "index": 3, "name": "PROPOSAL_ID", "comment": null}, "VOTER": {"type": "TEXT", "index": 4, "name": "VOTER", "comment": null}, "VOTING_POWER": {"type": "NUMBER", "index": 5, "name": "VOTING_POWER", "comment": null}, "VOTE_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "VOTE_TIMESTAMP", "comment": null}, "VOTE_OPTION": {"type": "ARRAY", "index": 7, "name": "VOTE_OPTION", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__snapshot_votes_VOTER.4c90295a96"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__snapshot_votes__INSERTED_TIMESTAMP__day__1.f824a44d33": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER", "name": "SNAPSHOT_VOTES", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__snapshot_votes__INSERTED_TIMESTAMP__day__1.f824a44d33"}, "test.external_models.not_null_silver__defillama_pool_yields__INSERTED_TIMESTAMP.cf82b3d544": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_POOL_YIELDS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TIMESTAMP": {"type": "DATE", "index": 1, "name": "TIMESTAMP", "comment": null}, "APY": {"type": "FLOAT", "index": 2, "name": "APY", "comment": null}, "APY_BASE": {"type": "FLOAT", "index": 3, "name": "APY_BASE", "comment": null}, "BASE_7D": {"type": "FLOAT", "index": 4, "name": "BASE_7D", "comment": null}, "APY_BASE_INCEPTION": {"type": "FLOAT", "index": 5, "name": "APY_BASE_INCEPTION", "comment": null}, "APY_MEAN_30D": {"type": "FLOAT", "index": 6, "name": "APY_MEAN_30D", "comment": null}, "APY_PCT_1D": {"type": "FLOAT", "index": 7, "name": "APY_PCT_1D", "comment": null}, "APY_PCT_30D": {"type": "FLOAT", "index": 8, "name": "APY_PCT_30D", "comment": null}, "APY_PCT_7D": {"type": "FLOAT", "index": 9, "name": "APY_PCT_7D", "comment": null}, "APY_REWARDS": {"type": "FLOAT", "index": 10, "name": "APY_REWARDS", "comment": null}, "CHAIN": {"type": "TEXT", "index": 11, "name": "CHAIN", "comment": null}, "COUNT": {"type": "NUMBER", "index": 12, "name": "COUNT", "comment": null}, "EXPOSURE": {"type": "TEXT", "index": 13, "name": "EXPOSURE", "comment": null}, "IL_7D": {"type": "FLOAT", "index": 14, "name": "IL_7D", "comment": null}, "IL_RISK": {"type": "TEXT", "index": 15, "name": "IL_RISK", "comment": null}, "MU": {"type": "FLOAT", "index": 16, "name": "MU", "comment": null}, "OUTLIER": {"type": "BOOLEAN", "index": 17, "name": "OUTLIER", "comment": null}, "POOL_ID": {"type": "TEXT", "index": 18, "name": "POOL_ID", "comment": null}, "POOL_META": {"type": "TEXT", "index": 19, "name": "POOL_META", "comment": null}, "PREDICTIONS": {"type": "VARIANT", "index": 20, "name": "PREDICTIONS", "comment": null}, "PROJECTS": {"type": "TEXT", "index": 21, "name": "PROJECTS", "comment": null}, "REWARD_TOKENS": {"type": "VARIANT", "index": 22, "name": "REWARD_TOKENS", "comment": null}, "SIGMA": {"type": "FLOAT", "index": 23, "name": "SIGMA", "comment": null}, "STABLECOIN": {"type": "BOOLEAN", "index": 24, "name": "STABLECOIN", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 25, "name": "SYMBOL", "comment": null}, "TVL_USD": {"type": "NUMBER", "index": 26, "name": "TVL_USD", "comment": null}, "UNDERLYING_TOKENS": {"type": "VARIANT", "index": 27, "name": "UNDERLYING_TOKENS", "comment": null}, "VOLUME_USD_1D": {"type": "FLOAT", "index": 28, "name": "VOLUME_USD_1D", "comment": null}, "VOLUME_USD_7D": {"type": "FLOAT", "index": 29, "name": "VOLUME_USD_7D", "comment": null}, "DEFILLAMA_YIELD_ID": {"type": "TEXT", "index": 30, "name": "DEFILLAMA_YIELD_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 32, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 33, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 34, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_pool_yields__INSERTED_TIMESTAMP.cf82b3d544"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocol_fees__INSERTED_TIMESTAMP__day__2.0405088cbd": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER", "name": "DEFILLAMA_PROTOCOL_FEES", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocol_fees__INSERTED_TIMESTAMP__day__2.0405088cbd"}, "test.external_models.not_null_bronze__snapshot_proposals_PROPOSAL_ID.43feeab1b7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "SNAPSHOT_PROPOSALS_PROPOSAL_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROPOSAL_ID": {"type": "TEXT", "index": 1, "name": "PROPOSAL_ID", "comment": null}, "IPFS": {"type": "TEXT", "index": 2, "name": "IPFS", "comment": null}, "CHOICES": {"type": "ARRAY", "index": 3, "name": "CHOICES", "comment": null}, "PROPOSAL_AUTHOR": {"type": "TEXT", "index": 4, "name": "PROPOSAL_AUTHOR", "comment": null}, "PROPOSAL_TITLE": {"type": "TEXT", "index": 5, "name": "PROPOSAL_TITLE", "comment": null}, "PROPOSAL_TEXT": {"type": "TEXT", "index": 6, "name": "PROPOSAL_TEXT", "comment": null}, "DELAY": {"type": "NUMBER", "index": 7, "name": "DELAY", "comment": null}, "QUORUM": {"type": "NUMBER", "index": 8, "name": "QUORUM", "comment": null}, "VOTING_PERIOD": {"type": "NUMBER", "index": 9, "name": "VOTING_PERIOD", "comment": null}, "VOTING_TYPE": {"type": "TEXT", "index": 10, "name": "VOTING_TYPE", "comment": null}, "SPACE_ID": {"type": "TEXT", "index": 11, "name": "SPACE_ID", "comment": null}, "NETWORK": {"type": "TEXT", "index": 12, "name": "NETWORK", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "CREATED_AT", "comment": null}, "PROPOSAL_START_TIME": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "PROPOSAL_START_TIME", "comment": null}, "PROPOSAL_END_TIME": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "PROPOSAL_END_TIME", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__snapshot_proposals_PROPOSAL_ID.43feeab1b7"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_pool_yields__INSERTED_TIMESTAMP__day__2.2f63a4fa45": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER", "name": "DEFILLAMA_POOL_YIELDS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_pool_yields__INSERTED_TIMESTAMP__day__2.2f63a4fa45"}, "model.external_models.streamline__oklink_complete": {"metadata": {"type": "BASE TABLE", "schema": "STREAMLINE", "name": "OKLINK_COMPLETE", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE_DAY": {"type": "DATE", "index": 1, "name": "DATE_DAY", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": null}, "METRIC": {"type": "TEXT", "index": 3, "name": "METRIC", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 4, "name": "PARTITION_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "MODIFIED_TIMESTAMP", "comment": null}, "FILE_NAME": {"type": "TEXT", "index": 8, "name": "FILE_NAME", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 07:32UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 79360, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 2752, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.streamline__oklink_complete"}, "test.external_models.not_null_bronze__snapshot_spaces__INSERTED_TIMESTAMP.b2a2ca6dee": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "SNAPSHOT_SPACES", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"SPACE_ID": {"type": "TEXT", "index": 1, "name": "SPACE_ID", "comment": null}, "SPACE": {"type": "TEXT", "index": 2, "name": "SPACE", "comment": null}, "ABOUT": {"type": "TEXT", "index": 3, "name": "ABOUT", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": null}, "NETWORK": {"type": "TEXT", "index": 5, "name": "NETWORK", "comment": null}, "CATEGORIES": {"type": "VARIANT", "index": 6, "name": "CATEGORIES", "comment": null}, "DOMAIN": {"type": "TEXT", "index": 7, "name": "DOMAIN", "comment": null}, "IS_PRIVATE": {"type": "BOOLEAN", "index": 8, "name": "IS_PRIVATE", "comment": null}, "IS_VERIFIED": {"type": "BOOLEAN", "index": 9, "name": "IS_VERIFIED", "comment": null}, "ADMINS": {"type": "VARIANT", "index": 10, "name": "ADMINS", "comment": null}, "MEMBERS": {"type": "VARIANT", "index": 11, "name": "MEMBERS", "comment": null}, "TREASURIES": {"type": "VARIANT", "index": 12, "name": "TREASURIES", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__snapshot_spaces__INSERTED_TIMESTAMP.b2a2ca6dee"}, "model.external_models.defillama__fact_pool_yields": {"metadata": {"type": "VIEW", "schema": "DEFILLAMA", "name": "FACT_POOL_YIELDS", "database": "EXTERNAL", "comment": "This table contains yield data at a pool level, where available.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE": {"type": "DATE", "index": 1, "name": "DATE", "comment": "Date associated with the reported records."}, "POOL_ID": {"type": "TEXT", "index": 2, "name": "POOL_ID", "comment": "The Defillama ID of the pool."}, "PROJECTS": {"type": "TEXT", "index": 3, "name": "PROJECTS", "comment": "Projects the pool belongs to."}, "CHAIN": {"type": "TEXT", "index": 4, "name": "CHAIN", "comment": "The name of the blockchain."}, "SYMBOL": {"type": "TEXT", "index": 5, "name": "SYMBOL", "comment": "The symbol of the tokens associated with the pool."}, "APY": {"type": "FLOAT", "index": 6, "name": "APY", "comment": "Base APY + Reward APY."}, "APY_BASE": {"type": "FLOAT", "index": 7, "name": "APY_BASE", "comment": "Annualized percentage yield from trading fees/supplying. For DEXes, we use the 24-hour fees and scale those to a year."}, "BASE_7D": {"type": "FLOAT", "index": 8, "name": "BASE_7D", "comment": "Annualized percentage yield from trading fees from the last 7 days."}, "APY_BASE_INCEPTION": {"type": "FLOAT", "index": 9, "name": "APY_BASE_INCEPTION", "comment": "Annualized percentage yield since inception."}, "APY_MEAN_30D": {"type": "FLOAT", "index": 10, "name": "APY_MEAN_30D", "comment": "Average APY in the last 30 days."}, "APY_PCT_1D": {"type": "FLOAT", "index": 11, "name": "APY_PCT_1D", "comment": "Percent change of APY in the last 24 hours."}, "APY_PCT_7D": {"type": "FLOAT", "index": 12, "name": "APY_PCT_7D", "comment": "Percent change of APY in the last 7 days."}, "APY_PCT_30D": {"type": "FLOAT", "index": 13, "name": "APY_PCT_30D", "comment": "Percent change of APY in the last 30 days."}, "APY_REWARDS": {"type": "FLOAT", "index": 14, "name": "APY_REWARDS", "comment": "Annualized percentage yield from incentives."}, "IL_7D": {"type": "FLOAT", "index": 15, "name": "IL_7D", "comment": "The percentage of impermanent loss between LPing for the last 7 days versus holding the underlying assets instead."}, "IL_RISK": {"type": "TEXT", "index": 16, "name": "IL_RISK", "comment": "Yes or No if the pool has impermanent loss risk."}, "REWARD_TOKENS": {"type": "VARIANT", "index": 17, "name": "REWARD_TOKENS", "comment": "Addresses of the incentive tokens."}, "MU": {"type": "FLOAT", "index": 18, "name": "MU", "comment": "Expected return based on the mean of potential returns of the pool."}, "SIGMA": {"type": "FLOAT", "index": 19, "name": "SIGMA", "comment": "The representation of pool volatility/risk. A higher sigma indicates a higher risk."}, "STABLECOIN": {"type": "BOOLEAN", "index": 20, "name": "STABLECOIN", "comment": "Boolean indicating if the pool is a stablecoin-to-stablecoin pool."}, "TVL_USD": {"type": "NUMBER", "index": 21, "name": "TVL_USD", "comment": "The total value locked in the pool."}, "UNDERLYING_TOKENS": {"type": "VARIANT", "index": 22, "name": "UNDERLYING_TOKENS", "comment": "The addresses of the tokens associated with the pool."}, "VOLUME_USD_1D": {"type": "FLOAT", "index": 23, "name": "VOLUME_USD_1D", "comment": "Total volume of the pool in the last 24 hours."}, "VOLUME_USD_7D": {"type": "FLOAT", "index": 24, "name": "VOLUME_USD_7D", "comment": "Total volume of the pool in the last 7 days."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.defillama__fact_pool_yields"}, "test.external_models.dbt_utils_unique_combination_of_columns_bronze__all_tokenlists_API_URL__REQUEST.3ed201dea9": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_BRONZE", "name": "ALL_TOKENLISTS_API_URL", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"API_URL": {"type": "TEXT", "index": 1, "name": "API_URL", "comment": null}, "REQUEST": {"type": "VARIANT", "index": 2, "name": "REQUEST", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bronze__all_tokenlists_API_URL__REQUEST.3ed201dea9"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_defillama__dim_protocols_MODIFIED_TIMESTAMP__TIMESTAMP_NTZ.390f2a37c8": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_DEFILLAMA", "name": "DIM_PROTOCOLS_MODIFIED_TIMESTAMP", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_defillama__dim_protocols_MODIFIED_TIMESTAMP__TIMESTAMP_NTZ.390f2a37c8"}, "test.external_models.not_null_silver__snapshot_votes_PROPOSAL_ID.a2a1e3cd20": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SNAPSHOT_VOTES_PROPOSAL_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"VOTE_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "VOTE_TIMESTAMP", "comment": null}, "VOTER": {"type": "TEXT", "index": 2, "name": "VOTER", "comment": null}, "PROPOSAL_ID": {"type": "TEXT", "index": 3, "name": "PROPOSAL_ID", "comment": null}, "VOTE_OPTION": {"type": "ARRAY", "index": 4, "name": "VOTE_OPTION", "comment": null}, "VOTING_POWER": {"type": "NUMBER", "index": 5, "name": "VOTING_POWER", "comment": null}, "IPFS": {"type": "TEXT", "index": 6, "name": "IPFS", "comment": null}, "VOTE_ID": {"type": "TEXT", "index": 7, "name": "VOTE_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__snapshot_votes_PROPOSAL_ID.a2a1e3cd20"}, "test.external_models.not_null_silver_aptos__lync_metric_amount.26188f96dc": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_APTOS", "name": "LYNC_METRIC_AMOUNT", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"METRIC": {"type": "TEXT", "index": 1, "name": "METRIC", "comment": null}, "METRIC_DATE": {"type": "DATE", "index": 2, "name": "METRIC_DATE", "comment": null}, "METRIC_COUNT": {"type": "NUMBER", "index": 3, "name": "METRIC_COUNT", "comment": null}, "METRIC_AMOUNT": {"type": "FLOAT", "index": 4, "name": "METRIC_AMOUNT", "comment": null}, "METRIC_AMOUNT_IN_USD": {"type": "FLOAT", "index": 5, "name": "METRIC_AMOUNT_IN_USD", "comment": null}, "LYNC_ID": {"type": "TEXT", "index": 6, "name": "LYNC_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver_aptos__lync_metric_amount.26188f96dc"}, "test.external_models.not_null_farcaster__fact_links_UPDATED_AT.ea41f8a298": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_FARCASTER", "name": "FACT_LINKS_UPDATED_AT", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ID": {"type": "NUMBER", "index": 1, "name": "ID", "comment": null}, "FID": {"type": "NUMBER", "index": 2, "name": "FID", "comment": null}, "TARGET_FID": {"type": "NUMBER", "index": 3, "name": "TARGET_FID", "comment": null}, "HASH": {"type": "BINARY", "index": 4, "name": "HASH", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "TIMESTAMP", "comment": null}, "TYPE": {"type": "TEXT", "index": 6, "name": "TYPE", "comment": null}, "DISPLAY_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "DISPLAY_TIMESTAMP", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "CREATED_AT", "comment": null}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "UPDATED_AT", "comment": null}, "DELETED_AT": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "DELETED_AT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_farcaster__fact_links_UPDATED_AT.ea41f8a298"}, "test.external_models.not_null_silver__defillama_perp_metrics_protocol_slug.2cb6a79b30": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PERP_METRICS_PROTOCOL_SLUG", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TIMESTAMP": {"type": "DATE", "index": 1, "name": "TIMESTAMP", "comment": null}, "PROTOCOL_ID": {"type": "TEXT", "index": 2, "name": "PROTOCOL_ID", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "DISPLAY_NAME": {"type": "TEXT", "index": 5, "name": "DISPLAY_NAME", "comment": null}, "MODULE": {"type": "TEXT", "index": 6, "name": "MODULE", "comment": null}, "LOGO": {"type": "TEXT", "index": 7, "name": "LOGO", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 8, "name": "CHAINS", "comment": null}, "PROTOCOL_TYPE": {"type": "TEXT", "index": 9, "name": "PROTOCOL_TYPE", "comment": null}, "METHODOLOGY_URL": {"type": "TEXT", "index": 10, "name": "METHODOLOGY_URL", "comment": null}, "METHODOLOGY": {"type": "VARIANT", "index": 11, "name": "METHODOLOGY", "comment": null}, "PARENT_PROTOCOL": {"type": "TEXT", "index": 12, "name": "PARENT_PROTOCOL", "comment": null}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 13, "name": "PROTOCOL_SLUG", "comment": null}, "LINKED_PROTOCOLS": {"type": "VARIANT", "index": 14, "name": "LINKED_PROTOCOLS", "comment": null}, "TOTAL_24H": {"type": "FLOAT", "index": 15, "name": "TOTAL_24H", "comment": null}, "TOTAL_48H_TO_24H": {"type": "FLOAT", "index": 16, "name": "TOTAL_48H_TO_24H", "comment": null}, "TOTAL_7D": {"type": "FLOAT", "index": 17, "name": "TOTAL_7D", "comment": null}, "TOTAL_30D": {"type": "FLOAT", "index": 18, "name": "TOTAL_30D", "comment": null}, "TOTAL_ALL_TIME": {"type": "FLOAT", "index": 19, "name": "TOTAL_ALL_TIME", "comment": null}, "CHANGE_1D": {"type": "FLOAT", "index": 20, "name": "CHANGE_1D", "comment": null}, "TOTAL_DATA_CHART_BREAKDOWN": {"type": "VARIANT", "index": 21, "name": "TOTAL_DATA_CHART_BREAKDOWN", "comment": null}, "DEFILLAMA_PERP_METRICS_ID": {"type": "TEXT", "index": 22, "name": "DEFILLAMA_PERP_METRICS_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 24576, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_perp_metrics_protocol_slug.2cb6a79b30"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_usdt_usdc_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.9f973f7fd3": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "DEFILLAMA_USDT_USDC_SUPPLY", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-04 09:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_usdt_usdc_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.9f973f7fd3"}, "test.external_models.not_null_silver__defillama_perp_daily_volume_protocol_slug.5e56702a0d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PERP_DAILY_VOLUME_PROTOCOL_SLUG", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE": {"type": "DATE", "index": 1, "name": "DATE", "comment": null}, "CHAIN": {"type": "TEXT", "index": 2, "name": "CHAIN", "comment": null}, "PROTOCOL_ID": {"type": "TEXT", "index": 3, "name": "PROTOCOL_ID", "comment": null}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 4, "name": "PROTOCOL_SLUG", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 5, "name": "PROTOCOL", "comment": null}, "VOLUME": {"type": "FLOAT", "index": 6, "name": "VOLUME", "comment": null}, "DEFILLAMA_PERP_METRICS_ID": {"type": "TEXT", "index": 7, "name": "DEFILLAMA_PERP_METRICS_ID", "comment": null}, "DEFILLAMA_PERP_DAILY_VOLUME_ID": {"type": "TEXT", "index": 8, "name": "DEFILLAMA_PERP_DAILY_VOLUME_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_perp_daily_volume_protocol_slug.5e56702a0d"}, "test.external_models.not_null_bronze__defillama_raises_FUNDING_DATE.36da197012": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "DEFILLAMA_RAISES_FUNDING_DATE", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"FUNDING_DATE": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "FUNDING_DATE", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 2, "name": "PROJECT_NAME", "comment": null}, "FUNDING_ROUND": {"type": "TEXT", "index": 3, "name": "FUNDING_ROUND", "comment": null}, "AMOUNT_RAISED": {"type": "FLOAT", "index": 4, "name": "AMOUNT_RAISED", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 5, "name": "CHAINS", "comment": null}, "SECTOR": {"type": "TEXT", "index": 6, "name": "SECTOR", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 7, "name": "CATEGORY", "comment": null}, "CATEGORY_GROUP": {"type": "TEXT", "index": 8, "name": "CATEGORY_GROUP", "comment": null}, "SOURCE": {"type": "TEXT", "index": 9, "name": "SOURCE", "comment": null}, "LEAD_INVESTORS": {"type": "VARIANT", "index": 10, "name": "LEAD_INVESTORS", "comment": null}, "OTHER_INVESTORS": {"type": "VARIANT", "index": 11, "name": "OTHER_INVESTORS", "comment": null}, "VALUATION": {"type": "NUMBER", "index": 12, "name": "VALUATION", "comment": null}, "DEFILLAMA_ID": {"type": "TEXT", "index": 13, "name": "DEFILLAMA_ID", "comment": null}, "RAISE_ID": {"type": "TEXT", "index": 14, "name": "RAISE_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__defillama_raises_FUNDING_DATE.36da197012"}, "model.external_models.avalanche__fact_x_blocks": {"metadata": {"type": "VIEW", "schema": "AVALANCHE", "name": "FACT_X_BLOCKS", "database": "EXTERNAL", "comment": "Avalanche X-Chain Blocks. Please visit https://discord.gg/avax for any questions.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BLOCK_HASH": {"type": "TEXT", "index": 1, "name": "BLOCK_HASH", "comment": "Unique identifier (hash) for the block"}, "BLOCK_INDEX": {"type": "NUMBER", "index": 2, "name": "BLOCK_INDEX", "comment": "Sequential index of the block within the chain"}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "TIMESTAMP", "comment": "Timestamp when the block was produced"}, "TYPE": {"type": "TEXT", "index": 4, "name": "TYPE", "comment": "Type of block (e.g., proposal, decision, etc.)"}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": "Number of transactions included in the block"}, "BLOCK_SIZE": {"type": "NUMBER", "index": 6, "name": "BLOCK_SIZE", "comment": ""}, "PARENT_HASH": {"type": "TEXT", "index": 7, "name": "PARENT_HASH", "comment": "Hash of the parent block in the chain"}, "PROPOSER_ID": {"type": "TEXT", "index": 8, "name": "PROPOSER_ID", "comment": "Identifier for the entity that proposed the block"}, "PROPOSER_PARENT_ID": {"type": "TEXT", "index": 9, "name": "PROPOSER_PARENT_ID", "comment": ""}, "PROPOSER_NODE_ID": {"type": "TEXT", "index": 10, "name": "PROPOSER_NODE_ID", "comment": "Unique node ID of the block proposer"}, "PROPOSER_P_CHAIN_HEIGHT": {"type": "NUMBER", "index": 11, "name": "PROPOSER_P_CHAIN_HEIGHT", "comment": ""}, "PROPOSER_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "PROPOSER_TIMESTAMP", "comment": "Timestamp recorded by the proposer when creating the block"}, "LAST_UPDATED": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "LAST_UPDATED", "comment": "Timestamp of the last update to this record"}, "LOAD_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "LOAD_TIMESTAMP", "comment": "Timestamp when the block data was loaded into Snowflake"}, "BLOCK_HEIGHT": {"type": "NUMBER", "index": 15, "name": "BLOCK_HEIGHT", "comment": "Block height on the chain indicating its position in the ledger"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.avalanche__fact_x_blocks"}, "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_DATE.c6d68128a2": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_BRIDGE_VOLUME_BY_CHAIN_DATE", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BRIDGE_ID": {"type": "TEXT", "index": 1, "name": "BRIDGE_ID", "comment": null}, "BRIDGE": {"type": "TEXT", "index": 2, "name": "BRIDGE", "comment": null}, "BRIDGE_NAME": {"type": "TEXT", "index": 3, "name": "BRIDGE_NAME", "comment": null}, "CHAIN": {"type": "TEXT", "index": 4, "name": "CHAIN", "comment": null}, "BRIDGE_ID_CHAIN": {"type": "TEXT", "index": 5, "name": "BRIDGE_ID_CHAIN", "comment": null}, "DATE": {"type": "DATE", "index": 6, "name": "DATE", "comment": null}, "DEPOSIT_TXS": {"type": "NUMBER", "index": 7, "name": "DEPOSIT_TXS", "comment": null}, "DEPOSIT_USD": {"type": "NUMBER", "index": 8, "name": "DEPOSIT_USD", "comment": null}, "WITHDRAW_TXS": {"type": "NUMBER", "index": 9, "name": "WITHDRAW_TXS", "comment": null}, "WITHDRAW_USD": {"type": "NUMBER", "index": 10, "name": "WITHDRAW_USD", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "MODIFIED_TIMESTAMP", "comment": null}, "DEFILLAMA_BRIDGE_VOL_BY_CHAIN_ID": {"type": "TEXT", "index": 13, "name": "DEFILLAMA_BRIDGE_VOL_BY_CHAIN_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 14, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_DATE.c6d68128a2"}, "model.external_models.silver__defillama_protocols": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "DEFILLAMA_PROTOCOLS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RUN_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "RUN_TIMESTAMP", "comment": ""}, "RUN_DATE": {"type": "DATE", "index": 2, "name": "RUN_DATE", "comment": ""}, "PROTOCOL_ID": {"type": "TEXT", "index": 3, "name": "PROTOCOL_ID", "comment": ""}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 4, "name": "PROTOCOL_SLUG", "comment": ""}, "PARENT_PROTOCOL": {"type": "TEXT", "index": 5, "name": "PARENT_PROTOCOL", "comment": ""}, "PROTOCOL": {"type": "TEXT", "index": 6, "name": "PROTOCOL", "comment": ""}, "ADDRESS": {"type": "TEXT", "index": 7, "name": "ADDRESS", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 8, "name": "SYMBOL", "comment": ""}, "DESCRIPTION": {"type": "TEXT", "index": 9, "name": "DESCRIPTION", "comment": ""}, "CHAIN": {"type": "TEXT", "index": 10, "name": "CHAIN", "comment": ""}, "NUM_AUDITS": {"type": "NUMBER", "index": 11, "name": "NUM_AUDITS", "comment": ""}, "AUDIT_NOTE": {"type": "TEXT", "index": 12, "name": "AUDIT_NOTE", "comment": ""}, "CATEGORY": {"type": "TEXT", "index": 13, "name": "CATEGORY", "comment": ""}, "URL": {"type": "TEXT", "index": 14, "name": "URL", "comment": ""}, "LOGO": {"type": "TEXT", "index": 15, "name": "LOGO", "comment": ""}, "TWITTER": {"type": "TEXT", "index": 16, "name": "TWITTER", "comment": ""}, "TVL": {"type": "FLOAT", "index": 17, "name": "TVL", "comment": ""}, "CHAINS": {"type": "VARIANT", "index": 18, "name": "CHAINS", "comment": ""}, "CHAIN_TVLS": {"type": "VARIANT", "index": 19, "name": "CHAIN_TVLS", "comment": ""}, "DATA": {"type": "VARIANT", "index": 20, "name": "DATA", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 24, "name": "_INVOCATION_ID", "comment": ""}, "DEFILLAMA_PROTOCOLS_ID": {"type": "TEXT", "index": 25, "name": "DEFILLAMA_PROTOCOLS_ID", "comment": ""}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(run_date)", "include": true, "description": "The key used to cluster this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:26UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 123872256, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 213068, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver__defillama_protocols"}, "test.external_models.not_null_farcaster__fact_blocks_CREATED_AT.3347167eb8": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_FARCASTER", "name": "FACT_BLOCKS_CREATED_AT", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BLOCKER_FID": {"type": "NUMBER", "index": 1, "name": "BLOCKER_FID", "comment": null}, "BLOCKED_FID": {"type": "NUMBER", "index": 2, "name": "BLOCKED_FID", "comment": null}, "ID": {"type": "NUMBER", "index": 3, "name": "ID", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "CREATED_AT", "comment": null}, "DELETED_AT": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "DELETED_AT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_farcaster__fact_blocks_CREATED_AT.3347167eb8"}, "model.external_models.defillama__fact_raises": {"metadata": {"type": "VIEW", "schema": "DEFILLAMA", "name": "FACT_RAISES", "database": "EXTERNAL", "comment": "This table contains fact-based information about funding raises for projects tracked by Defillama.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"FUNDING_DATE": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "FUNDING_DATE", "comment": "Date when the funding round occurred."}, "PROJECT_NAME": {"type": "TEXT", "index": 2, "name": "PROJECT_NAME", "comment": "Name of the project that received funding."}, "FUNDING_ROUND": {"type": "TEXT", "index": 3, "name": "FUNDING_ROUND", "comment": "Type of funding round (e.g., Series A, Seed, Private, etc.)."}, "AMOUNT_RAISED": {"type": "FLOAT", "index": 4, "name": "AMOUNT_RAISED", "comment": "Amount of money raised in the funding round (in USD)."}, "CHAINS": {"type": "VARIANT", "index": 5, "name": "CHAINS", "comment": "Array of blockchain networks that the project operates on."}, "SECTOR": {"type": "TEXT", "index": 6, "name": "SECTOR", "comment": "Industry sector classification of the project."}, "CATEGORY": {"type": "TEXT", "index": 7, "name": "CATEGORY", "comment": "Specific category classification of the project."}, "CATEGORY_GROUP": {"type": "TEXT", "index": 8, "name": "CATEGORY_GROUP", "comment": "Higher-level category grouping for the project."}, "SOURCE": {"type": "TEXT", "index": 9, "name": "SOURCE", "comment": "Source of the funding information."}, "LEAD_INVESTORS": {"type": "VARIANT", "index": 10, "name": "LEAD_INVESTORS", "comment": "Array of lead investors in the funding round."}, "OTHER_INVESTORS": {"type": "VARIANT", "index": 11, "name": "OTHER_INVESTORS", "comment": "Array of other participating investors in the funding round."}, "VALUATION": {"type": "NUMBER", "index": 12, "name": "VALUATION", "comment": "Company valuation at the time of the funding round (in USD)."}, "DEFILLAMA_ID": {"type": "TEXT", "index": 13, "name": "DEFILLAMA_ID", "comment": "DeFiLlama's unique identifier for the project."}, "RAISE_ID": {"type": "TEXT", "index": 14, "name": "RAISE_ID", "comment": "Unique identifier for the specific funding round."}, "DEFILLAMA_RAISES_ID": {"type": "TEXT", "index": 15, "name": "DEFILLAMA_RAISES_ID", "comment": "Generated surrogate key for the table."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "INSERTED_TIMESTAMP", "comment": "Timestamp when the record was first inserted."}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "MODIFIED_TIMESTAMP", "comment": "Timestamp when the record was last modified."}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": "Internal timestamp for data pipeline tracking."}, "_INVOCATION_ID": {"type": "TEXT", "index": 19, "name": "_INVOCATION_ID", "comment": "DBT invocation identifier for lineage tracking."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.defillama__fact_raises"}, "test.external_models.not_null_bitquery__active_users_AS_OF_DATE.24e6f16d52": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BITQUERY", "name": "ACTIVE_USERS_AS_OF_DATE", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": null}, "METRIC": {"type": "TEXT", "index": 2, "name": "METRIC", "comment": null}, "AS_OF_DATE": {"type": "DATE", "index": 3, "name": "AS_OF_DATE", "comment": null}, "ACTIVE_USERS": {"type": "TEXT", "index": 4, "name": "ACTIVE_USERS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ACTIVE_USERS_ID": {"type": "TEXT", "index": 6, "name": "ACTIVE_USERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bitquery__active_users_AS_OF_DATE.24e6f16d52"}, "test.external_models.not_null_artemis__active_users_BLOCKCHAIN.686f55f021": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_ARTEMIS", "name": "ACTIVE_USERS_BLOCKCHAIN", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": null}, "METRIC": {"type": "TEXT", "index": 2, "name": "METRIC", "comment": null}, "DESCRIPTION": {"type": "TEXT", "index": 3, "name": "DESCRIPTION", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 4, "name": "BLOCK_DATE", "comment": null}, "ACTIVE_USERS": {"type": "NUMBER", "index": 5, "name": "ACTIVE_USERS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ACTIVE_USERS_ID": {"type": "TEXT", "index": 7, "name": "ACTIVE_USERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 10, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_artemis__active_users_BLOCKCHAIN.686f55f021"}, "test.external_models.not_null_bronze__defillama_perps_protocol_id.1c27f19c82": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "DEFILLAMA_PERPS_PROTOCOL_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROTOCOL_ID": {"type": "TEXT", "index": 1, "name": "PROTOCOL_ID", "comment": null}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 2, "name": "PROTOCOL_SLUG", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "DISPLAY_NAME": {"type": "TEXT", "index": 5, "name": "DISPLAY_NAME", "comment": null}, "MODULE": {"type": "TEXT", "index": 6, "name": "MODULE", "comment": null}, "LOGO": {"type": "TEXT", "index": 7, "name": "LOGO", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 8, "name": "CHAINS", "comment": null}, "PROTOCOL_TYPE": {"type": "TEXT", "index": 9, "name": "PROTOCOL_TYPE", "comment": null}, "METHODOLOGY_URL": {"type": "TEXT", "index": 10, "name": "METHODOLOGY_URL", "comment": null}, "METHODOLOGY": {"type": "VARIANT", "index": 11, "name": "METHODOLOGY", "comment": null}, "PARENT_PROTOCOL": {"type": "TEXT", "index": 12, "name": "PARENT_PROTOCOL", "comment": null}, "LINKED_PROTOCOLS": {"type": "VARIANT", "index": 13, "name": "LINKED_PROTOCOLS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 17, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__defillama_perps_protocol_id.1c27f19c82"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_dex_volume__INSERTED_TIMESTAMP__day__1.bef8fa61d0": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER", "name": "DEFILLAMA_DEX_VOLUME", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_dex_volume__INSERTED_TIMESTAMP__day__1.bef8fa61d0"}, "test.external_models.not_null_silver__defillama_perp_daily_volume_volume.dda7a42480": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PERP_DAILY_VOLUME_VOLUME", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE": {"type": "DATE", "index": 1, "name": "DATE", "comment": null}, "CHAIN": {"type": "TEXT", "index": 2, "name": "CHAIN", "comment": null}, "PROTOCOL_ID": {"type": "TEXT", "index": 3, "name": "PROTOCOL_ID", "comment": null}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 4, "name": "PROTOCOL_SLUG", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 5, "name": "PROTOCOL", "comment": null}, "VOLUME": {"type": "FLOAT", "index": 6, "name": "VOLUME", "comment": null}, "DEFILLAMA_PERP_METRICS_ID": {"type": "TEXT", "index": 7, "name": "DEFILLAMA_PERP_METRICS_ID", "comment": null}, "DEFILLAMA_PERP_DAILY_VOLUME_ID": {"type": "TEXT", "index": 8, "name": "DEFILLAMA_PERP_DAILY_VOLUME_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_perp_daily_volume_volume.dda7a42480"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_dex_volume_ID.93100978dc": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "DEFILLAMA_DEX_VOLUME_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_dex_volume_ID.93100978dc"}, "test.external_models.not_null_silver__defillama_stablecoin_metrics_DATE_DAY.897365ca0a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_STABLECOIN_METRICS_DATE_DAY", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "DATE_DAY": {"type": "DATE", "index": 2, "name": "DATE_DAY", "comment": null}, "STABLECOIN_ID": {"type": "TEXT", "index": 3, "name": "STABLECOIN_ID", "comment": null}, "TOTAL_CIRCULATING_USD": {"type": "VARIANT", "index": 4, "name": "TOTAL_CIRCULATING_USD", "comment": null}, "TOTAL_MINTED_USD": {"type": "VARIANT", "index": 5, "name": "TOTAL_MINTED_USD", "comment": null}, "TOTAL_CIRCULATING": {"type": "VARIANT", "index": 6, "name": "TOTAL_CIRCULATING", "comment": null}, "TOTAL_BRIDGED_TO_USD": {"type": "VARIANT", "index": 7, "name": "TOTAL_BRIDGED_TO_USD", "comment": null}, "TOTAL_UNRELEASED": {"type": "VARIANT", "index": 8, "name": "TOTAL_UNRELEASED", "comment": null}, "RUN_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "RUN_TIMESTAMP", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 10, "name": "PARTITION_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DEFILLAMA_STABLECOIN_METRICS_ID": {"type": "TEXT", "index": 12, "name": "DEFILLAMA_STABLECOIN_METRICS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 15, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_stablecoin_metrics_DATE_DAY.897365ca0a"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__snapshot_users_ADDRESS.9ea8a0645c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "SNAPSHOT_USERS_ADDRESS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__snapshot_users_ADDRESS.9ea8a0645c"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume__inserted_timestamp__TIMESTAMP_NTZ.a7334119d7": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "DEFILLAMA_PERP_DAILY_VOLUME", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume__inserted_timestamp__TIMESTAMP_NTZ.a7334119d7"}, "test.external_models.not_null_silver__defillama_perp_daily_volume_date.ed62238679": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PERP_DAILY_VOLUME_DATE", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE": {"type": "DATE", "index": 1, "name": "DATE", "comment": null}, "CHAIN": {"type": "TEXT", "index": 2, "name": "CHAIN", "comment": null}, "PROTOCOL_ID": {"type": "TEXT", "index": 3, "name": "PROTOCOL_ID", "comment": null}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 4, "name": "PROTOCOL_SLUG", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 5, "name": "PROTOCOL", "comment": null}, "VOLUME": {"type": "FLOAT", "index": 6, "name": "VOLUME", "comment": null}, "DEFILLAMA_PERP_METRICS_ID": {"type": "TEXT", "index": 7, "name": "DEFILLAMA_PERP_METRICS_ID", "comment": null}, "DEFILLAMA_PERP_DAILY_VOLUME_ID": {"type": "TEXT", "index": 8, "name": "DEFILLAMA_PERP_DAILY_VOLUME_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_perp_daily_volume_date.ed62238679"}, "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_perps_protocol_id.1b75f4d8fa": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_BRONZE", "name": "DEFILLAMA_PERPS_PROTOCOL_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROTOCOL_ID": {"type": "TEXT", "index": 1, "name": "PROTOCOL_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_perps_protocol_id.1b75f4d8fa"}, "test.external_models.not_null_silver__defillama_options_premium__INSERTED_TIMESTAMP.3d9bd5a105": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_OPTIONS_PREMIUM", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "TIMESTAMP", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 3, "name": "PROTOCOL", "comment": null}, "DAILY_VOLUME_PREMIUM": {"type": "NUMBER", "index": 4, "name": "DAILY_VOLUME_PREMIUM", "comment": null}, "OPTIONS_OBJECT": {"type": "VARIANT", "index": 5, "name": "OPTIONS_OBJECT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ID": {"type": "TEXT", "index": 7, "name": "ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_options_premium__INSERTED_TIMESTAMP.3d9bd5a105"}, "test.external_models.not_null_bronze__snapshot_users__INSERTED_TIMESTAMP.6fb9280682": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "SNAPSHOT_USERS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": null}, "NAME": {"type": "TEXT", "index": 2, "name": "NAME", "comment": null}, "ABOUT": {"type": "TEXT", "index": 3, "name": "ABOUT", "comment": null}, "AVATAR": {"type": "TEXT", "index": 4, "name": "AVATAR", "comment": null}, "IPFS": {"type": "TEXT", "index": 5, "name": "IPFS", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "CREATED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__snapshot_users__INSERTED_TIMESTAMP.6fb9280682"}, "model.external_models.tokenflow_starknet__decoded_blocks": {"metadata": {"type": "VIEW", "schema": "TOKENFLOW_STARKNET", "name": "DECODED_BLOCKS", "database": "EXTERNAL", "comment": "Table updates ceased after February 1, 2024. This table contains decoded block level data for the Starknet blockchain, sourced from Token Flow. For more information on Starknet, please see [Starknet Resources](https://starknet.io/). For more information on Token Flow, please see [Token Flow Resources](https://docs.tokenflow.live/).", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"LOAD_ID": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "LOAD_ID", "comment": ""}, "CHAIN_ID": {"type": "TEXT", "index": 2, "name": "CHAIN_ID", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_HASH": {"type": "TEXT", "index": 4, "name": "BLOCK_HASH", "comment": ""}, "PARENT_HASH": {"type": "TEXT", "index": 5, "name": "PARENT_HASH", "comment": ""}, "STATE_ROOT": {"type": "TEXT", "index": 6, "name": "STATE_ROOT", "comment": ""}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "TIMESTAMP", "comment": ""}, "TX_COUNT": {"type": "NUMBER", "index": 8, "name": "TX_COUNT", "comment": ""}, "GAS_PRICE": {"type": "NUMBER", "index": 9, "name": "GAS_PRICE", "comment": ""}, "SEQUENCER": {"type": "TEXT", "index": 10, "name": "SEQUENCER", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.tokenflow_starknet__decoded_blocks"}, "test.external_models.unique_silver__defillama_protocol_tvl_history_defillama_protocol_tvl_history_id.7a26f80f27": {"metadata": {"type": "BASE TABLE", "schema": "UNIQUE_SILVER", "name": "DEFILLAMA_PROTOCOL_TVL_HISTORY_DEFILLAMA_PROTOCOL_TVL_HISTORY_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"UNIQUE_FIELD": {"type": "TEXT", "index": 1, "name": "UNIQUE_FIELD", "comment": null}, "N_RECORDS": {"type": "NUMBER", "index": 2, "name": "N_RECORDS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.unique_silver__defillama_protocol_tvl_history_defillama_protocol_tvl_history_id.7a26f80f27"}, "test.external_models.not_null_silver__defillama_bridge_volume_BRIDGE_ID.e186492e1d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_BRIDGE_VOLUME_BRIDGE_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BRIDGE_ID": {"type": "TEXT", "index": 1, "name": "BRIDGE_ID", "comment": null}, "BRIDGE": {"type": "TEXT", "index": 2, "name": "BRIDGE", "comment": null}, "BRIDGE_NAME": {"type": "TEXT", "index": 3, "name": "BRIDGE_NAME", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "TIMESTAMP", "comment": null}, "DEPOSIT_TXS": {"type": "NUMBER", "index": 5, "name": "DEPOSIT_TXS", "comment": null}, "DEPOSIT_USD": {"type": "NUMBER", "index": 6, "name": "DEPOSIT_USD", "comment": null}, "WITHDRAW_TXS": {"type": "NUMBER", "index": 7, "name": "WITHDRAW_TXS", "comment": null}, "WITHDRAW_USD": {"type": "NUMBER", "index": 8, "name": "WITHDRAW_USD", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ID": {"type": "TEXT", "index": 10, "name": "ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_bridge_volume_BRIDGE_ID.e186492e1d"}, "test.external_models.not_null_bronze__snapshot_users_ADDRESS.ca42f3f763": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "SNAPSHOT_USERS_ADDRESS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": null}, "NAME": {"type": "TEXT", "index": 2, "name": "NAME", "comment": null}, "ABOUT": {"type": "TEXT", "index": 3, "name": "ABOUT", "comment": null}, "AVATAR": {"type": "TEXT", "index": 4, "name": "AVATAR", "comment": null}, "IPFS": {"type": "TEXT", "index": 5, "name": "IPFS", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "CREATED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__snapshot_users_ADDRESS.ca42f3f763"}, "test.external_models.not_null_bronze__defillama_dexes_DEX.773f1f75f7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "DEFILLAMA_DEXES_DEX", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DEX_ID": {"type": "TEXT", "index": 1, "name": "DEX_ID", "comment": null}, "DEX": {"type": "TEXT", "index": 2, "name": "DEX", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 4, "name": "CHAINS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__defillama_dexes_DEX.773f1f75f7"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_protocol_revenue_ID.f28e235429": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "DEFILLAMA_PROTOCOL_REVENUE_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_protocol_revenue_ID.f28e235429"}, "test.external_models.not_null_bronze__snapshot_proposals_PROPOSAL_START_TIME.e3ff173f25": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "SNAPSHOT_PROPOSALS_PROPOSAL_START_TIME", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROPOSAL_ID": {"type": "TEXT", "index": 1, "name": "PROPOSAL_ID", "comment": null}, "IPFS": {"type": "TEXT", "index": 2, "name": "IPFS", "comment": null}, "CHOICES": {"type": "ARRAY", "index": 3, "name": "CHOICES", "comment": null}, "PROPOSAL_AUTHOR": {"type": "TEXT", "index": 4, "name": "PROPOSAL_AUTHOR", "comment": null}, "PROPOSAL_TITLE": {"type": "TEXT", "index": 5, "name": "PROPOSAL_TITLE", "comment": null}, "PROPOSAL_TEXT": {"type": "TEXT", "index": 6, "name": "PROPOSAL_TEXT", "comment": null}, "DELAY": {"type": "NUMBER", "index": 7, "name": "DELAY", "comment": null}, "QUORUM": {"type": "NUMBER", "index": 8, "name": "QUORUM", "comment": null}, "VOTING_PERIOD": {"type": "NUMBER", "index": 9, "name": "VOTING_PERIOD", "comment": null}, "VOTING_TYPE": {"type": "TEXT", "index": 10, "name": "VOTING_TYPE", "comment": null}, "SPACE_ID": {"type": "TEXT", "index": 11, "name": "SPACE_ID", "comment": null}, "NETWORK": {"type": "TEXT", "index": 12, "name": "NETWORK", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "CREATED_AT", "comment": null}, "PROPOSAL_START_TIME": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "PROPOSAL_START_TIME", "comment": null}, "PROPOSAL_END_TIME": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "PROPOSAL_END_TIME", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__snapshot_proposals_PROPOSAL_START_TIME.e3ff173f25"}, "test.external_models.not_null_silver__defillama_perp_metrics_timestamp.472db55af5": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PERP_METRICS_TIMESTAMP", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TIMESTAMP": {"type": "DATE", "index": 1, "name": "TIMESTAMP", "comment": null}, "PROTOCOL_ID": {"type": "TEXT", "index": 2, "name": "PROTOCOL_ID", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "DISPLAY_NAME": {"type": "TEXT", "index": 5, "name": "DISPLAY_NAME", "comment": null}, "MODULE": {"type": "TEXT", "index": 6, "name": "MODULE", "comment": null}, "LOGO": {"type": "TEXT", "index": 7, "name": "LOGO", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 8, "name": "CHAINS", "comment": null}, "PROTOCOL_TYPE": {"type": "TEXT", "index": 9, "name": "PROTOCOL_TYPE", "comment": null}, "METHODOLOGY_URL": {"type": "TEXT", "index": 10, "name": "METHODOLOGY_URL", "comment": null}, "METHODOLOGY": {"type": "VARIANT", "index": 11, "name": "METHODOLOGY", "comment": null}, "PARENT_PROTOCOL": {"type": "TEXT", "index": 12, "name": "PARENT_PROTOCOL", "comment": null}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 13, "name": "PROTOCOL_SLUG", "comment": null}, "LINKED_PROTOCOLS": {"type": "VARIANT", "index": 14, "name": "LINKED_PROTOCOLS", "comment": null}, "TOTAL_24H": {"type": "FLOAT", "index": 15, "name": "TOTAL_24H", "comment": null}, "TOTAL_48H_TO_24H": {"type": "FLOAT", "index": 16, "name": "TOTAL_48H_TO_24H", "comment": null}, "TOTAL_7D": {"type": "FLOAT", "index": 17, "name": "TOTAL_7D", "comment": null}, "TOTAL_30D": {"type": "FLOAT", "index": 18, "name": "TOTAL_30D", "comment": null}, "TOTAL_ALL_TIME": {"type": "FLOAT", "index": 19, "name": "TOTAL_ALL_TIME", "comment": null}, "CHANGE_1D": {"type": "FLOAT", "index": 20, "name": "CHANGE_1D", "comment": null}, "TOTAL_DATA_CHART_BREAKDOWN": {"type": "VARIANT", "index": 21, "name": "TOTAL_DATA_CHART_BREAKDOWN", "comment": null}, "DEFILLAMA_PERP_METRICS_ID": {"type": "TEXT", "index": 22, "name": "DEFILLAMA_PERP_METRICS_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_perp_metrics_timestamp.472db55af5"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__snapshot_spaces_SPACE_ID.176897c79d": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "SNAPSHOT_SPACES_SPACE_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"SPACE_ID": {"type": "TEXT", "index": 1, "name": "SPACE_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__snapshot_spaces_SPACE_ID.176897c79d"}, "test.external_models.not_null_silver__defillama_protocol_tvl_history_chain.00929371cd": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PROTOCOL_TVL_HISTORY_CHAIN", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TIMESTAMP": {"type": "DATE", "index": 1, "name": "TIMESTAMP", "comment": null}, "PROTOCOL_ID": {"type": "NUMBER", "index": 2, "name": "PROTOCOL_ID", "comment": null}, "CATEGORY": {"type": "VARIANT", "index": 3, "name": "CATEGORY", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 4, "name": "PROTOCOL", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 5, "name": "SYMBOL", "comment": null}, "CHAIN": {"type": "TEXT", "index": 6, "name": "CHAIN", "comment": null}, "CHAIN_TVL": {"type": "NUMBER", "index": 7, "name": "CHAIN_TVL", "comment": null}, "CHAIN_TVL_PREV_DAY": {"type": "NUMBER", "index": 8, "name": "CHAIN_TVL_PREV_DAY", "comment": null}, "CHAIN_TVL_PREV_WEEK": {"type": "NUMBER", "index": 9, "name": "CHAIN_TVL_PREV_WEEK", "comment": null}, "CHAIN_TVL_PREV_MONTH": {"type": "NUMBER", "index": 10, "name": "CHAIN_TVL_PREV_MONTH", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DEFILLAMA_PROTOCOL_TVL_HISTORY_ID": {"type": "TEXT", "index": 12, "name": "DEFILLAMA_PROTOCOL_TVL_HISTORY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 15, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_protocol_tvl_history_chain.00929371cd"}, "test.external_models.unique_silver__artemis_artemis_id.7cc15da134": {"metadata": {"type": "BASE TABLE", "schema": "UNIQUE_SILVER", "name": "ARTEMIS_ARTEMIS_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"UNIQUE_FIELD": {"type": "TEXT", "index": 1, "name": "UNIQUE_FIELD", "comment": null}, "N_RECORDS": {"type": "NUMBER", "index": 2, "name": "N_RECORDS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.unique_silver__artemis_artemis_id.7cc15da134"}, "test.external_models.not_null_farcaster__fact_user_data_UPDATED_AT.c07d179892": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_FARCASTER", "name": "FACT_USER_DATA_UPDATED_AT", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ID": {"type": "NUMBER", "index": 1, "name": "ID", "comment": null}, "FID": {"type": "NUMBER", "index": 2, "name": "FID", "comment": null}, "TYPE": {"type": "NUMBER", "index": 3, "name": "TYPE", "comment": null}, "VALUE": {"type": "TEXT", "index": 4, "name": "VALUE", "comment": null}, "HASH": {"type": "BINARY", "index": 5, "name": "HASH", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "TIMESTAMP", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "CREATED_AT", "comment": null}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "UPDATED_AT", "comment": null}, "DELETED_AT": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "DELETED_AT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_farcaster__fact_user_data_UPDATED_AT.c07d179892"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_stablecoins__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.258f8a2290": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_BRONZE", "name": "DEFILLAMA_STABLECOINS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_stablecoins__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.258f8a2290"}, "model.external_models.farcaster__fact_user_data": {"metadata": {"type": "VIEW", "schema": "FARCASTER", "name": "FACT_USER_DATA", "database": "EXTERNAL", "comment": "Represents data associated with a user (e.g. profile photo, bio, username, etc.) For more info see [Neynar](https://docs.neynar.com/docs/how-to-query-neynar-sql-playground-for-farcaster-data) or [schema](https://github.com/farcasterxyz/hub-monorepo/tree/51c57245df8ec1c68d616dd3ab8ae5b80edf68fd/apps/replicator)", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ID": {"type": "NUMBER", "index": 1, "name": "ID", "comment": "Generic identifier specific to this DB (a.k.a. surrogate key)"}, "FID": {"type": "NUMBER", "index": 2, "name": "FID", "comment": "FID of the user that signed the message."}, "TYPE": {"type": "NUMBER", "index": 3, "name": "TYPE", "comment": "The type of user data (PFP, bio, username, etc.)"}, "VALUE": {"type": "TEXT", "index": 4, "name": "VALUE", "comment": "The string value of the field."}, "HASH": {"type": "BINARY", "index": 5, "name": "HASH", "comment": "Message hash."}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "TIMESTAMP", "comment": "Message timestamp in UTC."}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "CREATED_AT", "comment": "When the row was first created in this DB (not the same as the message timestamp!)"}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "UPDATED_AT", "comment": "When the row was last updated."}, "DELETED_AT": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "DELETED_AT", "comment": "When the data was considered deleted by the hub"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.farcaster__fact_user_data"}, "model.external_models.silver__dates": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "DATES", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE_DAY": {"type": "DATE", "index": 1, "name": "DATE_DAY", "comment": null}, "PRIOR_DATE_DAY": {"type": "DATE", "index": 2, "name": "PRIOR_DATE_DAY", "comment": null}, "NEXT_DATE_DAY": {"type": "DATE", "index": 3, "name": "NEXT_DATE_DAY", "comment": null}, "PRIOR_YEAR_DATE_DAY": {"type": "DATE", "index": 4, "name": "PRIOR_YEAR_DATE_DAY", "comment": null}, "PRIOR_YEAR_OVER_YEAR_DATE_DAY": {"type": "DATE", "index": 5, "name": "PRIOR_YEAR_OVER_YEAR_DATE_DAY", "comment": null}, "DAY_OF_WEEK": {"type": "NUMBER", "index": 6, "name": "DAY_OF_WEEK", "comment": null}, "DAY_OF_WEEK_ISO": {"type": "NUMBER", "index": 7, "name": "DAY_OF_WEEK_ISO", "comment": null}, "DAY_OF_WEEK_NAME": {"type": "TEXT", "index": 8, "name": "DAY_OF_WEEK_NAME", "comment": null}, "DAY_OF_WEEK_NAME_SHORT": {"type": "TEXT", "index": 9, "name": "DAY_OF_WEEK_NAME_SHORT", "comment": null}, "DAY_OF_MONTH": {"type": "NUMBER", "index": 10, "name": "DAY_OF_MONTH", "comment": null}, "DAY_OF_YEAR": {"type": "NUMBER", "index": 11, "name": "DAY_OF_YEAR", "comment": null}, "WEEK_START_DATE": {"type": "DATE", "index": 12, "name": "WEEK_START_DATE", "comment": null}, "WEEK_END_DATE": {"type": "DATE", "index": 13, "name": "WEEK_END_DATE", "comment": null}, "PRIOR_YEAR_WEEK_START_DATE": {"type": "DATE", "index": 14, "name": "PRIOR_YEAR_WEEK_START_DATE", "comment": null}, "PRIOR_YEAR_WEEK_END_DATE": {"type": "DATE", "index": 15, "name": "PRIOR_YEAR_WEEK_END_DATE", "comment": null}, "WEEK_OF_YEAR": {"type": "NUMBER", "index": 16, "name": "WEEK_OF_YEAR", "comment": null}, "ISO_WEEK_START_DATE": {"type": "DATE", "index": 17, "name": "ISO_WEEK_START_DATE", "comment": null}, "ISO_WEEK_END_DATE": {"type": "DATE", "index": 18, "name": "ISO_WEEK_END_DATE", "comment": null}, "PRIOR_YEAR_ISO_WEEK_START_DATE": {"type": "DATE", "index": 19, "name": "PRIOR_YEAR_ISO_WEEK_START_DATE", "comment": null}, "PRIOR_YEAR_ISO_WEEK_END_DATE": {"type": "DATE", "index": 20, "name": "PRIOR_YEAR_ISO_WEEK_END_DATE", "comment": null}, "ISO_WEEK_OF_YEAR": {"type": "NUMBER", "index": 21, "name": "ISO_WEEK_OF_YEAR", "comment": null}, "PRIOR_YEAR_WEEK_OF_YEAR": {"type": "NUMBER", "index": 22, "name": "PRIOR_YEAR_WEEK_OF_YEAR", "comment": null}, "PRIOR_YEAR_ISO_WEEK_OF_YEAR": {"type": "NUMBER", "index": 23, "name": "PRIOR_YEAR_ISO_WEEK_OF_YEAR", "comment": null}, "MONTH_OF_YEAR": {"type": "NUMBER", "index": 24, "name": "MONTH_OF_YEAR", "comment": null}, "MONTH_NAME": {"type": "TEXT", "index": 25, "name": "MONTH_NAME", "comment": null}, "MONTH_NAME_SHORT": {"type": "TEXT", "index": 26, "name": "MONTH_NAME_SHORT", "comment": null}, "MONTH_START_DATE": {"type": "DATE", "index": 27, "name": "MONTH_START_DATE", "comment": null}, "MONTH_END_DATE": {"type": "DATE", "index": 28, "name": "MONTH_END_DATE", "comment": null}, "PRIOR_YEAR_MONTH_START_DATE": {"type": "DATE", "index": 29, "name": "PRIOR_YEAR_MONTH_START_DATE", "comment": null}, "PRIOR_YEAR_MONTH_END_DATE": {"type": "DATE", "index": 30, "name": "PRIOR_YEAR_MONTH_END_DATE", "comment": null}, "QUARTER_OF_YEAR": {"type": "NUMBER", "index": 31, "name": "QUARTER_OF_YEAR", "comment": null}, "QUARTER_START_DATE": {"type": "DATE", "index": 32, "name": "QUARTER_START_DATE", "comment": null}, "QUARTER_END_DATE": {"type": "DATE", "index": 33, "name": "QUARTER_END_DATE", "comment": null}, "YEAR_NUMBER": {"type": "NUMBER", "index": 34, "name": "YEAR_NUMBER", "comment": null}, "YEAR_START_DATE": {"type": "DATE", "index": 35, "name": "YEAR_START_DATE", "comment": null}, "YEAR_END_DATE": {"type": "DATE", "index": 36, "name": "YEAR_END_DATE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 08:07UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 151552, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 4016, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver__dates"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_protocols_DEFILLAMA_PROTOCOLS_ID.8a2a9bf6a7": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "DEFILLAMA_PROTOCOLS_DEFILLAMA_PROTOCOLS_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DEFILLAMA_PROTOCOLS_ID": {"type": "TEXT", "index": 1, "name": "DEFILLAMA_PROTOCOLS_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_protocols_DEFILLAMA_PROTOCOLS_ID.8a2a9bf6a7"}, "test.external_models.not_null_bronze__defillama_perps__inserted_timestamp.7d33dc4b81": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "DEFILLAMA_PERPS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROTOCOL_ID": {"type": "TEXT", "index": 1, "name": "PROTOCOL_ID", "comment": null}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 2, "name": "PROTOCOL_SLUG", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "DISPLAY_NAME": {"type": "TEXT", "index": 5, "name": "DISPLAY_NAME", "comment": null}, "MODULE": {"type": "TEXT", "index": 6, "name": "MODULE", "comment": null}, "LOGO": {"type": "TEXT", "index": 7, "name": "LOGO", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 8, "name": "CHAINS", "comment": null}, "PROTOCOL_TYPE": {"type": "TEXT", "index": 9, "name": "PROTOCOL_TYPE", "comment": null}, "METHODOLOGY_URL": {"type": "TEXT", "index": 10, "name": "METHODOLOGY_URL", "comment": null}, "METHODOLOGY": {"type": "VARIANT", "index": 11, "name": "METHODOLOGY", "comment": null}, "PARENT_PROTOCOL": {"type": "TEXT", "index": 12, "name": "PARENT_PROTOCOL", "comment": null}, "LINKED_PROTOCOLS": {"type": "VARIANT", "index": 13, "name": "LINKED_PROTOCOLS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 17, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__defillama_perps__inserted_timestamp.7d33dc4b81"}, "test.external_models.not_null_silver__snapshot_spaces_SPACE.b594675078": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SNAPSHOT_SPACES_SPACE", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"SPACE_ID": {"type": "TEXT", "index": 1, "name": "SPACE_ID", "comment": null}, "SPACE": {"type": "TEXT", "index": 2, "name": "SPACE", "comment": null}, "ABOUT": {"type": "TEXT", "index": 3, "name": "ABOUT", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": null}, "NETWORK": {"type": "TEXT", "index": 5, "name": "NETWORK", "comment": null}, "CATEGORIES": {"type": "VARIANT", "index": 6, "name": "CATEGORIES", "comment": null}, "DOMAIN": {"type": "TEXT", "index": 7, "name": "DOMAIN", "comment": null}, "IS_PRIVATE": {"type": "BOOLEAN", "index": 8, "name": "IS_PRIVATE", "comment": null}, "IS_VERIFIED": {"type": "BOOLEAN", "index": 9, "name": "IS_VERIFIED", "comment": null}, "ADMINS": {"type": "VARIANT", "index": 10, "name": "ADMINS", "comment": null}, "MEMBERS": {"type": "VARIANT", "index": 11, "name": "MEMBERS", "comment": null}, "TREASURIES": {"type": "VARIANT", "index": 12, "name": "TREASURIES", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__snapshot_spaces_SPACE.b594675078"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_modified_timestamp__TIMESTAMP_NTZ.5559f95279": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "DEFILLAMA_PERP_METRICS_MODIFIED_TIMESTAMP", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_modified_timestamp__TIMESTAMP_NTZ.5559f95279"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_usdt_usdc_supply__INSERTED_TIMESTAMP__day__2.08f1f58f98": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER", "name": "DEFILLAMA_USDT_USDC_SUPPLY", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-04 09:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_usdt_usdc_supply__INSERTED_TIMESTAMP__day__2.08f1f58f98"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocol_tvl__INSERTED_TIMESTAMP__day__1.fcd40b4f7c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER", "name": "DEFILLAMA_PROTOCOL_TVL", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocol_tvl__INSERTED_TIMESTAMP__day__1.fcd40b4f7c"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_bridges__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.47c9c197a2": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_BRONZE", "name": "DEFILLAMA_BRIDGES", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_bridges__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.47c9c197a2"}, "model.external_models.tokenflow_starknet__decoded_traces": {"metadata": {"type": "VIEW", "schema": "TOKENFLOW_STARKNET", "name": "DECODED_TRACES", "database": "EXTERNAL", "comment": "Table updates ceased after February 1, 2024. This table contains decoded trace level data for the Starknet blockchain, sourced from Token Flow. For more information on Starknet, please see [Starknet Resources](https://starknet.io/). For more information on Token Flow, please see [Token Flow Resources](https://docs.tokenflow.live/).", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"LOAD_ID": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "LOAD_ID", "comment": ""}, "CHAIN_ID": {"type": "TEXT", "index": 2, "name": "CHAIN_ID", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER", "comment": ""}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "TIMESTAMP", "comment": ""}, "TRACE_ID": {"type": "TEXT", "index": 5, "name": "TRACE_ID", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": ""}, "TRACE_PATH": {"type": "TEXT", "index": 7, "name": "TRACE_PATH", "comment": ""}, "TRACE_TYPE": {"type": "TEXT", "index": 8, "name": "TRACE_TYPE", "comment": ""}, "CALLER": {"type": "TEXT", "index": 9, "name": "CALLER", "comment": ""}, "CONTRACT": {"type": "TEXT", "index": 10, "name": "CONTRACT", "comment": ""}, "CLASS_HASH": {"type": "TEXT", "index": 11, "name": "CLASS_HASH", "comment": ""}, "ENTRY_POINT_TYPE": {"type": "TEXT", "index": 12, "name": "ENTRY_POINT_TYPE", "comment": ""}, "ENTRY_POINT_SELECTOR": {"type": "TEXT", "index": 13, "name": "ENTRY_POINT_SELECTOR", "comment": ""}, "FUNCTION": {"type": "TEXT", "index": 14, "name": "FUNCTION", "comment": ""}, "INPUTS": {"type": "ARRAY", "index": 15, "name": "INPUTS", "comment": ""}, "OUTPUTS": {"type": "ARRAY", "index": 16, "name": "OUTPUTS", "comment": ""}, "EXECUTION_RESOURCES": {"type": "OBJECT", "index": 17, "name": "EXECUTION_RESOURCES", "comment": ""}, "INVOCATION_TYPE": {"type": "TEXT", "index": 18, "name": "INVOCATION_TYPE", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.tokenflow_starknet__decoded_traces"}, "test.external_models.not_null_silver__flashbots_mev_txs__INSERTED_TIMESTAMP.6abaa9d8f7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "FLASHBOTS_MEV_TXS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIME": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIME", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 3, "name": "BLOCK_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 4, "name": "EXTRA_DATA", "comment": null}, "FEE_RECIPIENT_ADDRESS": {"type": "TEXT", "index": 5, "name": "FEE_RECIPIENT_ADDRESS", "comment": null}, "BUNDLE_ID": {"type": "NUMBER", "index": 6, "name": "BUNDLE_ID", "comment": null}, "USER_TX_HASH": {"type": "TEXT", "index": 7, "name": "USER_TX_HASH", "comment": null}, "USER_TX_FROM": {"type": "TEXT", "index": 8, "name": "USER_TX_FROM", "comment": null}, "USER_TX_TO": {"type": "TEXT", "index": 9, "name": "USER_TX_TO", "comment": null}, "BACKRUN_TX_HASH": {"type": "TEXT", "index": 10, "name": "BACKRUN_TX_HASH", "comment": null}, "BACKRUN_TX_FROM": {"type": "TEXT", "index": 11, "name": "BACKRUN_TX_FROM", "comment": null}, "BACKRUN_TX_TO": {"type": "TEXT", "index": 12, "name": "BACKRUN_TX_TO", "comment": null}, "REFUND_TX_HASH": {"type": "TEXT", "index": 13, "name": "REFUND_TX_HASH", "comment": null}, "REFUND_FROM": {"type": "TEXT", "index": 14, "name": "REFUND_FROM", "comment": null}, "REFUND_TO": {"type": "TEXT", "index": 15, "name": "REFUND_TO", "comment": null}, "REFUND_VALUE_ETH": {"type": "TEXT", "index": 16, "name": "REFUND_VALUE_ETH", "comment": null}, "IS_MEVSHARE": {"type": "BOOLEAN", "index": 17, "name": "IS_MEVSHARE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_ID": {"type": "TEXT", "index": 19, "name": "_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__flashbots_mev_txs__INSERTED_TIMESTAMP.6abaa9d8f7"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_proposals__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.fbe74d6bb1": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_BRONZE", "name": "SNAPSHOT_PROPOSALS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_proposals__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.fbe74d6bb1"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__snapshot_votes_VOTE_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.449807ec08": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "SNAPSHOT_VOTES_VOTE_TIMESTAMP", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__snapshot_votes_VOTE_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.449807ec08"}, "model.external_models.bitquery__active_users": {"metadata": {"type": "BASE TABLE", "schema": "BITQUERY", "name": "ACTIVE_USERS", "database": "EXTERNAL", "comment": "This model returns the number of active users for each blockchain and as of date. The distinct number of users is from the 30 days prior to the as of date.\n", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": "The blockchain where the active users are from.\n"}, "METRIC": {"type": "TEXT", "index": 2, "name": "METRIC", "comment": "The metric name - always 'active_users'.\n"}, "AS_OF_DATE": {"type": "DATE", "index": 3, "name": "AS_OF_DATE", "comment": "The date when the active users are counted.\n"}, "ACTIVE_USERS": {"type": "TEXT", "index": 4, "name": "ACTIVE_USERS", "comment": "The number of active users. The distinct number of users is from the 30 days prior to the as of date.\n"}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "ACTIVE_USERS_ID": {"type": "TEXT", "index": 6, "name": "ACTIVE_USERS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 08:07UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 125440, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1944, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bitquery__active_users"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_bitquery__tx_count_BLOCK_DATE__day__2.706e3ce251": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_BITQUERY", "name": "TX_COUNT_BLOCK_DATE", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_bitquery__tx_count_BLOCK_DATE__day__2.706e3ce251"}, "model.external_models.streamline__oklink_metrics": {"metadata": {"type": "VIEW", "schema": "STREAMLINE", "name": "OKLINK_METRICS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE_DAY": {"type": "DATE", "index": 1, "name": "DATE_DAY", "comment": ""}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": ""}, "METRIC": {"type": "TEXT", "index": 3, "name": "METRIC", "comment": ""}, "ENDPOINT": {"type": "TEXT", "index": 4, "name": "ENDPOINT", "comment": ""}, "CHAIN_SHORT_NAME": {"type": "TEXT", "index": 5, "name": "CHAIN_SHORT_NAME", "comment": ""}, "XTIME": {"type": "TEXT", "index": 6, "name": "XTIME", "comment": ""}, "DESCRIPTION": {"type": "TEXT", "index": 7, "name": "DESCRIPTION", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.streamline__oklink_metrics"}, "model.external_models.defillama__fact_dex_volume": {"metadata": {"type": "VIEW", "schema": "DEFILLAMA", "name": "FACT_DEX_VOLUME", "database": "EXTERNAL", "comment": "This table contains historical decentralized exchange volumes for the protocols listed on Defillama in `dim_protocols`, where available.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE": {"type": "DATE", "index": 1, "name": "DATE", "comment": "Date associated with the reported records."}, "CHAIN": {"type": "TEXT", "index": 2, "name": "CHAIN", "comment": "The name of the blockchain."}, "PROTOCOL": {"type": "TEXT", "index": 3, "name": "PROTOCOL", "comment": "The name of the protocol."}, "VOLUME": {"type": "NUMBER", "index": 4, "name": "VOLUME", "comment": "The total volume driven by the protocol on a daily basis, denominated in USD."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.defillama__fact_dex_volume"}, "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_protocol_tvl_PROTOCOL_ID__CHAIN___INSERTED_TIMESTAMP.5be1ec25fb": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_BRONZE", "name": "DEFILLAMA_PROTOCOL_TVL_PROTOCOL_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROTOCOL_ID": {"type": "TEXT", "index": 1, "name": "PROTOCOL_ID", "comment": null}, "CHAIN": {"type": "TEXT", "index": 2, "name": "CHAIN", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_protocol_tvl_PROTOCOL_ID__CHAIN___INSERTED_TIMESTAMP.5be1ec25fb"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_protocol_tvl__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.3adf7c0003": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_BRONZE", "name": "DEFILLAMA_PROTOCOL_TVL", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_protocol_tvl__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.3adf7c0003"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_dex_volume__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.8e26780493": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "DEFILLAMA_DEX_VOLUME", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_dex_volume__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.8e26780493"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__blast_leaderboard__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.d51e63d1b6": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_BRONZE", "name": "BLAST_LEADERBOARD", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__blast_leaderboard__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.d51e63d1b6"}, "model.external_models.silver__defillama_investors": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "DEFILLAMA_INVESTORS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"INVESTOR": {"type": "TEXT", "index": 1, "name": "INVESTOR", "comment": ""}, "DEALS": {"type": "NUMBER", "index": 2, "name": "DEALS", "comment": ""}, "TOTAL_AMOUNT": {"type": "FLOAT", "index": 3, "name": "TOTAL_AMOUNT", "comment": ""}, "MEDIAN_AMOUNT": {"type": "FLOAT", "index": 4, "name": "MEDIAN_AMOUNT", "comment": ""}, "CHAINS": {"type": "ARRAY", "index": 5, "name": "CHAINS", "comment": ""}, "TOP_PROJECT_CATEGORY": {"type": "TEXT", "index": 6, "name": "TOP_PROJECT_CATEGORY", "comment": ""}, "TOP_ROUND_TYPE": {"type": "TEXT", "index": 7, "name": "TOP_ROUND_TYPE", "comment": ""}, "PROJECTS": {"type": "ARRAY", "index": 8, "name": "PROJECTS", "comment": ""}, "DEFILLAMA_INVESTORS_ID": {"type": "TEXT", "index": 9, "name": "DEFILLAMA_INVESTORS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 13, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 08:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 412672, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 3695, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver__defillama_investors"}, "test.external_models.not_null_bronze__defillama_chains_CHAIN.c988effa27": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "DEFILLAMA_CHAINS_CHAIN", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN_ID": {"type": "TEXT", "index": 1, "name": "CHAIN_ID", "comment": null}, "CHAIN": {"type": "TEXT", "index": 2, "name": "CHAIN", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 3, "name": "TOKEN_SYMBOL", "comment": null}, "ROW_NUM": {"type": "NUMBER", "index": 4, "name": "ROW_NUM", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__defillama_chains_CHAIN.c988effa27"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_votes__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.ca2bd30b51": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_BRONZE", "name": "SNAPSHOT_VOTES", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_votes__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.ca2bd30b51"}, "test.external_models.not_null_silver__defillama_protocol_fees_ID.e292c7143d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PROTOCOL_FEES_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "TIMESTAMP", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 3, "name": "PROTOCOL", "comment": null}, "DAILY_FEES": {"type": "NUMBER", "index": 4, "name": "DAILY_FEES", "comment": null}, "FEES_OBJECT": {"type": "VARIANT", "index": 5, "name": "FEES_OBJECT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ID": {"type": "TEXT", "index": 7, "name": "ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_protocol_fees_ID.e292c7143d"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_raises_RAISE_ID.cbd412cee8": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "DEFILLAMA_RAISES_RAISE_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RAISE_ID": {"type": "TEXT", "index": 1, "name": "RAISE_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_raises_RAISE_ID.cbd412cee8"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__polymarket_markets__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.de6501ee0b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_BRONZE", "name": "POLYMARKET_MARKETS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__polymarket_markets__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.de6501ee0b"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_bridge_volume_by_chain_INSERTED_TIMESTAMP__TIMESTAMP_NTZ.886365f9bf": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "DEFILLAMA_BRIDGE_VOLUME_BY_CHAIN_INSERTED_TIMESTAMP", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_bridge_volume_by_chain_INSERTED_TIMESTAMP__TIMESTAMP_NTZ.886365f9bf"}, "test.external_models.not_null_bronze__defillama_perps_display_name.38f88c8b75": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "DEFILLAMA_PERPS_DISPLAY_NAME", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROTOCOL_ID": {"type": "TEXT", "index": 1, "name": "PROTOCOL_ID", "comment": null}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 2, "name": "PROTOCOL_SLUG", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "DISPLAY_NAME": {"type": "TEXT", "index": 5, "name": "DISPLAY_NAME", "comment": null}, "MODULE": {"type": "TEXT", "index": 6, "name": "MODULE", "comment": null}, "LOGO": {"type": "TEXT", "index": 7, "name": "LOGO", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 8, "name": "CHAINS", "comment": null}, "PROTOCOL_TYPE": {"type": "TEXT", "index": 9, "name": "PROTOCOL_TYPE", "comment": null}, "METHODOLOGY_URL": {"type": "TEXT", "index": 10, "name": "METHODOLOGY_URL", "comment": null}, "METHODOLOGY": {"type": "VARIANT", "index": 11, "name": "METHODOLOGY", "comment": null}, "PARENT_PROTOCOL": {"type": "TEXT", "index": 12, "name": "PARENT_PROTOCOL", "comment": null}, "LINKED_PROTOCOLS": {"type": "VARIANT", "index": 13, "name": "LINKED_PROTOCOLS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 17, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__defillama_perps_display_name.38f88c8b75"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_modified_timestamp__TIMESTAMP_NTZ.23255c8acd": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "DEFILLAMA_PERP_DAILY_VOLUME_MODIFIED_TIMESTAMP", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_modified_timestamp__TIMESTAMP_NTZ.23255c8acd"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_timestamp__DATE.81996737ac": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "DEFILLAMA_PERP_METRICS_TIMESTAMP", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_timestamp__DATE.81996737ac"}, "model.fsc_utils._datashare___create_gold": {"metadata": {"type": "BASE TABLE", "schema": "_DATASHARE", "name": "_CREATE_GOLD", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DDL": {"type": "TEXT", "index": 1, "name": "DDL", "comment": null}, "DDL_HASH": {"type": "TEXT", "index": 2, "name": "DDL_HASH", "comment": null}, "DDL_CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "DDL_CREATED_AT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-01-11 16:31UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 7680, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.fsc_utils._datashare___create_gold"}, "test.external_models.not_null_silver__defillama_investors_INVESTOR.2b2a8c6e9a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_INVESTORS_INVESTOR", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"INVESTOR": {"type": "TEXT", "index": 1, "name": "INVESTOR", "comment": null}, "DEALS": {"type": "NUMBER", "index": 2, "name": "DEALS", "comment": null}, "TOTAL_AMOUNT": {"type": "FLOAT", "index": 3, "name": "TOTAL_AMOUNT", "comment": null}, "MEDIAN_AMOUNT": {"type": "FLOAT", "index": 4, "name": "MEDIAN_AMOUNT", "comment": null}, "CHAINS": {"type": "ARRAY", "index": 5, "name": "CHAINS", "comment": null}, "TOP_PROJECT_CATEGORY": {"type": "TEXT", "index": 6, "name": "TOP_PROJECT_CATEGORY", "comment": null}, "TOP_ROUND_TYPE": {"type": "TEXT", "index": 7, "name": "TOP_ROUND_TYPE", "comment": null}, "PROJECTS": {"type": "ARRAY", "index": 8, "name": "PROJECTS", "comment": null}, "DEFILLAMA_INVESTORS_ID": {"type": "TEXT", "index": 9, "name": "DEFILLAMA_INVESTORS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 13, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_investors_INVESTOR.2b2a8c6e9a"}, "test.external_models.not_null_silver__defillama_perp_metrics_defillama_perp_metrics_id.ec9ff8860a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PERP_METRICS_DEFILLAMA_PERP_METRICS_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TIMESTAMP": {"type": "DATE", "index": 1, "name": "TIMESTAMP", "comment": null}, "PROTOCOL_ID": {"type": "TEXT", "index": 2, "name": "PROTOCOL_ID", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "DISPLAY_NAME": {"type": "TEXT", "index": 5, "name": "DISPLAY_NAME", "comment": null}, "MODULE": {"type": "TEXT", "index": 6, "name": "MODULE", "comment": null}, "LOGO": {"type": "TEXT", "index": 7, "name": "LOGO", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 8, "name": "CHAINS", "comment": null}, "PROTOCOL_TYPE": {"type": "TEXT", "index": 9, "name": "PROTOCOL_TYPE", "comment": null}, "METHODOLOGY_URL": {"type": "TEXT", "index": 10, "name": "METHODOLOGY_URL", "comment": null}, "METHODOLOGY": {"type": "VARIANT", "index": 11, "name": "METHODOLOGY", "comment": null}, "PARENT_PROTOCOL": {"type": "TEXT", "index": 12, "name": "PARENT_PROTOCOL", "comment": null}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 13, "name": "PROTOCOL_SLUG", "comment": null}, "LINKED_PROTOCOLS": {"type": "VARIANT", "index": 14, "name": "LINKED_PROTOCOLS", "comment": null}, "TOTAL_24H": {"type": "FLOAT", "index": 15, "name": "TOTAL_24H", "comment": null}, "TOTAL_48H_TO_24H": {"type": "FLOAT", "index": 16, "name": "TOTAL_48H_TO_24H", "comment": null}, "TOTAL_7D": {"type": "FLOAT", "index": 17, "name": "TOTAL_7D", "comment": null}, "TOTAL_30D": {"type": "FLOAT", "index": 18, "name": "TOTAL_30D", "comment": null}, "TOTAL_ALL_TIME": {"type": "FLOAT", "index": 19, "name": "TOTAL_ALL_TIME", "comment": null}, "CHANGE_1D": {"type": "FLOAT", "index": 20, "name": "CHANGE_1D", "comment": null}, "TOTAL_DATA_CHART_BREAKDOWN": {"type": "VARIANT", "index": 21, "name": "TOTAL_DATA_CHART_BREAKDOWN", "comment": null}, "DEFILLAMA_PERP_METRICS_ID": {"type": "TEXT", "index": 22, "name": "DEFILLAMA_PERP_METRICS_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_perp_metrics_defillama_perp_metrics_id.ec9ff8860a"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocol_tvl__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.67afb5c2b5": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "DEFILLAMA_PROTOCOL_TVL", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocol_tvl__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.67afb5c2b5"}, "test.external_models.not_null_silver__defillama_perp_daily_volume_defillama_perp_metrics_id.fc9e7a49b1": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PERP_DAILY_VOLUME_DEFILLAMA_PERP_METRICS_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE": {"type": "DATE", "index": 1, "name": "DATE", "comment": null}, "CHAIN": {"type": "TEXT", "index": 2, "name": "CHAIN", "comment": null}, "PROTOCOL_ID": {"type": "TEXT", "index": 3, "name": "PROTOCOL_ID", "comment": null}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 4, "name": "PROTOCOL_SLUG", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 5, "name": "PROTOCOL", "comment": null}, "VOLUME": {"type": "FLOAT", "index": 6, "name": "VOLUME", "comment": null}, "DEFILLAMA_PERP_METRICS_ID": {"type": "TEXT", "index": 7, "name": "DEFILLAMA_PERP_METRICS_ID", "comment": null}, "DEFILLAMA_PERP_DAILY_VOLUME_ID": {"type": "TEXT", "index": 8, "name": "DEFILLAMA_PERP_DAILY_VOLUME_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_perp_daily_volume_defillama_perp_metrics_id.fc9e7a49b1"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_stablecoin_metrics__INSERTED_TIMESTAMP__day__2.f04ba5a494": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER", "name": "DEFILLAMA_STABLECOIN_METRICS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_stablecoin_metrics__INSERTED_TIMESTAMP__day__2.f04ba5a494"}, "test.external_models.not_null_silver__defillama_protocol_tvl_history__inserted_timestamp.3a00bdcdaf": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PROTOCOL_TVL_HISTORY", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TIMESTAMP": {"type": "DATE", "index": 1, "name": "TIMESTAMP", "comment": null}, "PROTOCOL_ID": {"type": "NUMBER", "index": 2, "name": "PROTOCOL_ID", "comment": null}, "CATEGORY": {"type": "VARIANT", "index": 3, "name": "CATEGORY", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 4, "name": "PROTOCOL", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 5, "name": "SYMBOL", "comment": null}, "CHAIN": {"type": "TEXT", "index": 6, "name": "CHAIN", "comment": null}, "CHAIN_TVL": {"type": "NUMBER", "index": 7, "name": "CHAIN_TVL", "comment": null}, "CHAIN_TVL_PREV_DAY": {"type": "NUMBER", "index": 8, "name": "CHAIN_TVL_PREV_DAY", "comment": null}, "CHAIN_TVL_PREV_WEEK": {"type": "NUMBER", "index": 9, "name": "CHAIN_TVL_PREV_WEEK", "comment": null}, "CHAIN_TVL_PREV_MONTH": {"type": "NUMBER", "index": 10, "name": "CHAIN_TVL_PREV_MONTH", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DEFILLAMA_PROTOCOL_TVL_HISTORY_ID": {"type": "TEXT", "index": 12, "name": "DEFILLAMA_PROTOCOL_TVL_HISTORY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 15, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_protocol_tvl_history__inserted_timestamp.3a00bdcdaf"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_bridge_volume_BRIDGE_ID__TIMESTAMP.84d1376ea1": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "DEFILLAMA_BRIDGE_VOLUME_BRIDGE_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BRIDGE_ID": {"type": "TEXT", "index": 1, "name": "BRIDGE_ID", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_bridge_volume_BRIDGE_ID__TIMESTAMP.84d1376ea1"}, "test.external_models.not_null_bronze__defillama_chainlist_CHAIN_ID.25192577da": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "DEFILLAMA_CHAINLIST_CHAIN_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "CHAIN_SYMBOL": {"type": "TEXT", "index": 2, "name": "CHAIN_SYMBOL", "comment": null}, "TOKEN_NAME": {"type": "TEXT", "index": 3, "name": "TOKEN_NAME", "comment": null}, "TOKEN_DECIMALS": {"type": "NUMBER", "index": 4, "name": "TOKEN_DECIMALS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 5, "name": "TOKEN_SYMBOL", "comment": null}, "CHAIN_ID": {"type": "TEXT", "index": 6, "name": "CHAIN_ID", "comment": null}, "NETWORK_ID": {"type": "TEXT", "index": 7, "name": "NETWORK_ID", "comment": null}, "ICON": {"type": "TEXT", "index": 8, "name": "ICON", "comment": null}, "RPC": {"type": "VARIANT", "index": 9, "name": "RPC", "comment": null}, "FAUCETS": {"type": "VARIANT", "index": 10, "name": "FAUCETS", "comment": null}, "INFO_URL": {"type": "TEXT", "index": 11, "name": "INFO_URL", "comment": null}, "SHORT_NAME": {"type": "TEXT", "index": 12, "name": "SHORT_NAME", "comment": null}, "EXPLORERS": {"type": "VARIANT", "index": 13, "name": "EXPLORERS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__defillama_chainlist_CHAIN_ID.25192577da"}, "test.external_models.not_null_silver__defillama_perp_metrics_name.7b2aa5872c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PERP_METRICS_NAME", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TIMESTAMP": {"type": "DATE", "index": 1, "name": "TIMESTAMP", "comment": null}, "PROTOCOL_ID": {"type": "TEXT", "index": 2, "name": "PROTOCOL_ID", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "DISPLAY_NAME": {"type": "TEXT", "index": 5, "name": "DISPLAY_NAME", "comment": null}, "MODULE": {"type": "TEXT", "index": 6, "name": "MODULE", "comment": null}, "LOGO": {"type": "TEXT", "index": 7, "name": "LOGO", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 8, "name": "CHAINS", "comment": null}, "PROTOCOL_TYPE": {"type": "TEXT", "index": 9, "name": "PROTOCOL_TYPE", "comment": null}, "METHODOLOGY_URL": {"type": "TEXT", "index": 10, "name": "METHODOLOGY_URL", "comment": null}, "METHODOLOGY": {"type": "VARIANT", "index": 11, "name": "METHODOLOGY", "comment": null}, "PARENT_PROTOCOL": {"type": "TEXT", "index": 12, "name": "PARENT_PROTOCOL", "comment": null}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 13, "name": "PROTOCOL_SLUG", "comment": null}, "LINKED_PROTOCOLS": {"type": "VARIANT", "index": 14, "name": "LINKED_PROTOCOLS", "comment": null}, "TOTAL_24H": {"type": "FLOAT", "index": 15, "name": "TOTAL_24H", "comment": null}, "TOTAL_48H_TO_24H": {"type": "FLOAT", "index": 16, "name": "TOTAL_48H_TO_24H", "comment": null}, "TOTAL_7D": {"type": "FLOAT", "index": 17, "name": "TOTAL_7D", "comment": null}, "TOTAL_30D": {"type": "FLOAT", "index": 18, "name": "TOTAL_30D", "comment": null}, "TOTAL_ALL_TIME": {"type": "FLOAT", "index": 19, "name": "TOTAL_ALL_TIME", "comment": null}, "CHANGE_1D": {"type": "FLOAT", "index": 20, "name": "CHANGE_1D", "comment": null}, "TOTAL_DATA_CHART_BREAKDOWN": {"type": "VARIANT", "index": 21, "name": "TOTAL_DATA_CHART_BREAKDOWN", "comment": null}, "DEFILLAMA_PERP_METRICS_ID": {"type": "TEXT", "index": 22, "name": "DEFILLAMA_PERP_METRICS_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 24576, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_perp_metrics_name.7b2aa5872c"}, "test.external_models.not_null_bronze__defillama_perps_category.966373d4f7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "DEFILLAMA_PERPS_CATEGORY", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROTOCOL_ID": {"type": "TEXT", "index": 1, "name": "PROTOCOL_ID", "comment": null}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 2, "name": "PROTOCOL_SLUG", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "DISPLAY_NAME": {"type": "TEXT", "index": 5, "name": "DISPLAY_NAME", "comment": null}, "MODULE": {"type": "TEXT", "index": 6, "name": "MODULE", "comment": null}, "LOGO": {"type": "TEXT", "index": 7, "name": "LOGO", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 8, "name": "CHAINS", "comment": null}, "PROTOCOL_TYPE": {"type": "TEXT", "index": 9, "name": "PROTOCOL_TYPE", "comment": null}, "METHODOLOGY_URL": {"type": "TEXT", "index": 10, "name": "METHODOLOGY_URL", "comment": null}, "METHODOLOGY": {"type": "VARIANT", "index": 11, "name": "METHODOLOGY", "comment": null}, "PARENT_PROTOCOL": {"type": "TEXT", "index": 12, "name": "PARENT_PROTOCOL", "comment": null}, "LINKED_PROTOCOLS": {"type": "VARIANT", "index": 13, "name": "LINKED_PROTOCOLS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 17, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__defillama_perps_category.966373d4f7"}, "model.external_models.tokenflow_starknet__decoded_transactions": {"metadata": {"type": "VIEW", "schema": "TOKENFLOW_STARKNET", "name": "DECODED_TRANSACTIONS", "database": "EXTERNAL", "comment": "Table updates ceased after February 1, 2024. This table contains decoded transaction level data for the Starknet blockchain, sourced from Token Flow. For more information on Starknet, please see [Starknet Resources](https://starknet.io/). For more information on Token Flow, please see [Token Flow Resources](https://docs.tokenflow.live/).", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"LOAD_ID": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "LOAD_ID", "comment": ""}, "CHAIN_ID": {"type": "TEXT", "index": 2, "name": "CHAIN_ID", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER", "comment": ""}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "TIMESTAMP", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 5, "name": "TX_HASH", "comment": ""}, "SIGNATURE": {"type": "ARRAY", "index": 6, "name": "SIGNATURE", "comment": ""}, "TYPE": {"type": "TEXT", "index": 7, "name": "TYPE", "comment": ""}, "CONTRACT": {"type": "TEXT", "index": 8, "name": "CONTRACT", "comment": ""}, "ERROR": {"type": "TEXT", "index": 9, "name": "ERROR", "comment": ""}, "TX_INDEX": {"type": "NUMBER", "index": 10, "name": "TX_INDEX", "comment": ""}, "ENTRY_POINT_SELECTOR": {"type": "TEXT", "index": 11, "name": "ENTRY_POINT_SELECTOR", "comment": ""}, "ENTRY_POINT_TYPE": {"type": "TEXT", "index": 12, "name": "ENTRY_POINT_TYPE", "comment": ""}, "FUNCTION": {"type": "TEXT", "index": 13, "name": "FUNCTION", "comment": ""}, "INPUTS": {"type": "ARRAY", "index": 14, "name": "INPUTS", "comment": ""}, "OUTPUTS": {"type": "ARRAY", "index": 15, "name": "OUTPUTS", "comment": ""}, "L1_MESSAGE_NONCE": {"type": "NUMBER", "index": 16, "name": "L1_MESSAGE_NONCE", "comment": ""}, "MAX_FEE": {"type": "NUMBER", "index": 17, "name": "MAX_FEE", "comment": ""}, "ACTUAL_FEE": {"type": "NUMBER", "index": 18, "name": "ACTUAL_FEE", "comment": ""}, "EXECUTION_RESOURCES": {"type": "OBJECT", "index": 19, "name": "EXECUTION_RESOURCES", "comment": ""}, "CLASS_HASH": {"type": "TEXT", "index": 20, "name": "CLASS_HASH", "comment": ""}, "VERSION": {"type": "NUMBER", "index": 21, "name": "VERSION", "comment": ""}, "NONCE": {"type": "NUMBER", "index": 22, "name": "NONCE", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.tokenflow_starknet__decoded_transactions"}, "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_stablecoins_STABLECOIN_ID.626bc22a29": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_BRONZE", "name": "DEFILLAMA_STABLECOINS_STABLECOIN_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"STABLECOIN_ID": {"type": "TEXT", "index": 1, "name": "STABLECOIN_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_stablecoins_STABLECOIN_ID.626bc22a29"}, "test.external_models.not_null_bronze__defillama_usdc_usdt_supply__INSERTED_TIMESTAMP.5706d592c1": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "DEFILLAMA_USDC_USDT_SUPPLY", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "STABLECOIN_ID": {"type": "NUMBER", "index": 2, "name": "STABLECOIN_ID", "comment": null}, "READ": {"type": "VARIANT", "index": 3, "name": "READ", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-04 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__defillama_usdc_usdt_supply__INSERTED_TIMESTAMP.5706d592c1"}, "test.external_models.not_null_bronze__snapshot_proposals_CHOICES.9871e8bf95": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "SNAPSHOT_PROPOSALS_CHOICES", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROPOSAL_ID": {"type": "TEXT", "index": 1, "name": "PROPOSAL_ID", "comment": null}, "IPFS": {"type": "TEXT", "index": 2, "name": "IPFS", "comment": null}, "CHOICES": {"type": "ARRAY", "index": 3, "name": "CHOICES", "comment": null}, "PROPOSAL_AUTHOR": {"type": "TEXT", "index": 4, "name": "PROPOSAL_AUTHOR", "comment": null}, "PROPOSAL_TITLE": {"type": "TEXT", "index": 5, "name": "PROPOSAL_TITLE", "comment": null}, "PROPOSAL_TEXT": {"type": "TEXT", "index": 6, "name": "PROPOSAL_TEXT", "comment": null}, "DELAY": {"type": "NUMBER", "index": 7, "name": "DELAY", "comment": null}, "QUORUM": {"type": "NUMBER", "index": 8, "name": "QUORUM", "comment": null}, "VOTING_PERIOD": {"type": "NUMBER", "index": 9, "name": "VOTING_PERIOD", "comment": null}, "VOTING_TYPE": {"type": "TEXT", "index": 10, "name": "VOTING_TYPE", "comment": null}, "SPACE_ID": {"type": "TEXT", "index": 11, "name": "SPACE_ID", "comment": null}, "NETWORK": {"type": "TEXT", "index": 12, "name": "NETWORK", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "CREATED_AT", "comment": null}, "PROPOSAL_START_TIME": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "PROPOSAL_START_TIME", "comment": null}, "PROPOSAL_END_TIME": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "PROPOSAL_END_TIME", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__snapshot_proposals_CHOICES.9871e8bf95"}, "test.external_models.not_null_bronze__snapshot_proposals__INSERTED_TIMESTAMP.aa2872ddc3": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "SNAPSHOT_PROPOSALS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROPOSAL_ID": {"type": "TEXT", "index": 1, "name": "PROPOSAL_ID", "comment": null}, "IPFS": {"type": "TEXT", "index": 2, "name": "IPFS", "comment": null}, "CHOICES": {"type": "ARRAY", "index": 3, "name": "CHOICES", "comment": null}, "PROPOSAL_AUTHOR": {"type": "TEXT", "index": 4, "name": "PROPOSAL_AUTHOR", "comment": null}, "PROPOSAL_TITLE": {"type": "TEXT", "index": 5, "name": "PROPOSAL_TITLE", "comment": null}, "PROPOSAL_TEXT": {"type": "TEXT", "index": 6, "name": "PROPOSAL_TEXT", "comment": null}, "DELAY": {"type": "NUMBER", "index": 7, "name": "DELAY", "comment": null}, "QUORUM": {"type": "NUMBER", "index": 8, "name": "QUORUM", "comment": null}, "VOTING_PERIOD": {"type": "NUMBER", "index": 9, "name": "VOTING_PERIOD", "comment": null}, "VOTING_TYPE": {"type": "TEXT", "index": 10, "name": "VOTING_TYPE", "comment": null}, "SPACE_ID": {"type": "TEXT", "index": 11, "name": "SPACE_ID", "comment": null}, "NETWORK": {"type": "TEXT", "index": 12, "name": "NETWORK", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "CREATED_AT", "comment": null}, "PROPOSAL_START_TIME": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "PROPOSAL_START_TIME", "comment": null}, "PROPOSAL_END_TIME": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "PROPOSAL_END_TIME", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__snapshot_proposals__INSERTED_TIMESTAMP.aa2872ddc3"}, "test.external_models.not_null_defillama__dim_protocols_INSERTED_TIMESTAMP.46acb9a7da": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_DEFILLAMA", "name": "DIM_PROTOCOLS_INSERTED_TIMESTAMP", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROTOCOL_ID": {"type": "TEXT", "index": 1, "name": "PROTOCOL_ID", "comment": null}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 2, "name": "PROTOCOL_SLUG", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 3, "name": "PROTOCOL", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 4, "name": "ADDRESS", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 5, "name": "SYMBOL", "comment": null}, "DESCRIPTION": {"type": "TEXT", "index": 6, "name": "DESCRIPTION", "comment": null}, "CHAIN": {"type": "TEXT", "index": 7, "name": "CHAIN", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 8, "name": "CHAINS", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 9, "name": "CATEGORY", "comment": null}, "NUM_AUDITS": {"type": "NUMBER", "index": 10, "name": "NUM_AUDITS", "comment": null}, "AUDIT_NOTE": {"type": "TEXT", "index": 11, "name": "AUDIT_NOTE", "comment": null}, "TWITTER": {"type": "TEXT", "index": 12, "name": "TWITTER", "comment": null}, "TVL": {"type": "FLOAT", "index": 13, "name": "TVL", "comment": null}, "CHAIN_TVLS": {"type": "VARIANT", "index": 14, "name": "CHAIN_TVLS", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "MODIFIED_TIMESTAMP", "comment": null}, "DIM_PROTOCOLS_ID": {"type": "TEXT", "index": 17, "name": "DIM_PROTOCOLS_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_defillama__dim_protocols_INSERTED_TIMESTAMP.46acb9a7da"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_markets__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.eb4c915e91": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "POLYMARKET_MARKETS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_markets__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.eb4c915e91"}, "test.external_models.not_null_bitquery__active_users_BLOCKCHAIN.914a87f4a8": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BITQUERY", "name": "ACTIVE_USERS_BLOCKCHAIN", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": null}, "METRIC": {"type": "TEXT", "index": 2, "name": "METRIC", "comment": null}, "AS_OF_DATE": {"type": "DATE", "index": 3, "name": "AS_OF_DATE", "comment": null}, "ACTIVE_USERS": {"type": "TEXT", "index": 4, "name": "ACTIVE_USERS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ACTIVE_USERS_ID": {"type": "TEXT", "index": 6, "name": "ACTIVE_USERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bitquery__active_users_BLOCKCHAIN.914a87f4a8"}, "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_raises_RAISE_ID.c194c48903": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_BRONZE", "name": "DEFILLAMA_RAISES_RAISE_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RAISE_ID": {"type": "TEXT", "index": 1, "name": "RAISE_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_raises_RAISE_ID.c194c48903"}, "model.external_models.silver__defillama_pool_yields": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "DEFILLAMA_POOL_YIELDS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TIMESTAMP": {"type": "DATE", "index": 1, "name": "TIMESTAMP", "comment": ""}, "APY": {"type": "FLOAT", "index": 2, "name": "APY", "comment": ""}, "APY_BASE": {"type": "FLOAT", "index": 3, "name": "APY_BASE", "comment": ""}, "BASE_7D": {"type": "FLOAT", "index": 4, "name": "BASE_7D", "comment": ""}, "APY_BASE_INCEPTION": {"type": "FLOAT", "index": 5, "name": "APY_BASE_INCEPTION", "comment": ""}, "APY_MEAN_30D": {"type": "FLOAT", "index": 6, "name": "APY_MEAN_30D", "comment": ""}, "APY_PCT_1D": {"type": "FLOAT", "index": 7, "name": "APY_PCT_1D", "comment": ""}, "APY_PCT_30D": {"type": "FLOAT", "index": 8, "name": "APY_PCT_30D", "comment": ""}, "APY_PCT_7D": {"type": "FLOAT", "index": 9, "name": "APY_PCT_7D", "comment": ""}, "APY_REWARDS": {"type": "FLOAT", "index": 10, "name": "APY_REWARDS", "comment": ""}, "CHAIN": {"type": "TEXT", "index": 11, "name": "CHAIN", "comment": ""}, "COUNT": {"type": "NUMBER", "index": 12, "name": "COUNT", "comment": ""}, "EXPOSURE": {"type": "TEXT", "index": 13, "name": "EXPOSURE", "comment": ""}, "IL_7D": {"type": "FLOAT", "index": 14, "name": "IL_7D", "comment": ""}, "IL_RISK": {"type": "TEXT", "index": 15, "name": "IL_RISK", "comment": ""}, "MU": {"type": "FLOAT", "index": 16, "name": "MU", "comment": ""}, "OUTLIER": {"type": "BOOLEAN", "index": 17, "name": "OUTLIER", "comment": ""}, "POOL_ID": {"type": "TEXT", "index": 18, "name": "POOL_ID", "comment": ""}, "POOL_META": {"type": "TEXT", "index": 19, "name": "POOL_META", "comment": ""}, "PREDICTIONS": {"type": "VARIANT", "index": 20, "name": "PREDICTIONS", "comment": ""}, "PROJECTS": {"type": "TEXT", "index": 21, "name": "PROJECTS", "comment": ""}, "REWARD_TOKENS": {"type": "VARIANT", "index": 22, "name": "REWARD_TOKENS", "comment": ""}, "SIGMA": {"type": "FLOAT", "index": 23, "name": "SIGMA", "comment": ""}, "STABLECOIN": {"type": "BOOLEAN", "index": 24, "name": "STABLECOIN", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 25, "name": "SYMBOL", "comment": ""}, "TVL_USD": {"type": "NUMBER", "index": 26, "name": "TVL_USD", "comment": ""}, "UNDERLYING_TOKENS": {"type": "VARIANT", "index": 27, "name": "UNDERLYING_TOKENS", "comment": ""}, "VOLUME_USD_1D": {"type": "FLOAT", "index": 28, "name": "VOLUME_USD_1D", "comment": ""}, "VOLUME_USD_7D": {"type": "FLOAT", "index": 29, "name": "VOLUME_USD_7D", "comment": ""}, "DEFILLAMA_YIELD_ID": {"type": "TEXT", "index": 30, "name": "DEFILLAMA_YIELD_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 32, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 33, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 34, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 08:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1792019968, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 8638628, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver__defillama_pool_yields"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocols__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.54e4afda8f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "DEFILLAMA_PROTOCOLS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocols__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.54e4afda8f"}, "model.external_models.silver__snapshot_proposals": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "SNAPSHOT_PROPOSALS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROPOSAL_ID": {"type": "TEXT", "index": 1, "name": "PROPOSAL_ID", "comment": ""}, "IPFS": {"type": "TEXT", "index": 2, "name": "IPFS", "comment": ""}, "CHOICES": {"type": "ARRAY", "index": 3, "name": "CHOICES", "comment": ""}, "PROPOSAL_AUTHOR": {"type": "TEXT", "index": 4, "name": "PROPOSAL_AUTHOR", "comment": ""}, "PROPOSAL_TITLE": {"type": "TEXT", "index": 5, "name": "PROPOSAL_TITLE", "comment": ""}, "PROPOSAL_TEXT": {"type": "TEXT", "index": 6, "name": "PROPOSAL_TEXT", "comment": ""}, "DELAY": {"type": "NUMBER", "index": 7, "name": "DELAY", "comment": ""}, "QUORUM": {"type": "NUMBER", "index": 8, "name": "QUORUM", "comment": ""}, "VOTING_PERIOD": {"type": "NUMBER", "index": 9, "name": "VOTING_PERIOD", "comment": ""}, "VOTING_TYPE": {"type": "TEXT", "index": 10, "name": "VOTING_TYPE", "comment": ""}, "SPACE_ID": {"type": "TEXT", "index": 11, "name": "SPACE_ID", "comment": ""}, "NETWORK_ID": {"type": "TEXT", "index": 12, "name": "NETWORK_ID", "comment": ""}, "NETWORK": {"type": "TEXT", "index": 13, "name": "NETWORK", "comment": ""}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "CREATED_AT", "comment": ""}, "PROPOSAL_START_TIME": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "PROPOSAL_START_TIME", "comment": ""}, "PROPOSAL_END_TIME": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "PROPOSAL_END_TIME", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 16:17UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 189558784, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 441219, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver__snapshot_proposals"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_users__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.61c6d4b19e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_BRONZE", "name": "SNAPSHOT_USERS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_users__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.61c6d4b19e"}, "test.external_models.not_null_bronze__defillama_bridges_BRIDGE_ID.2ba6c21db0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "DEFILLAMA_BRIDGES_BRIDGE_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BRIDGE_ID": {"type": "TEXT", "index": 1, "name": "BRIDGE_ID", "comment": null}, "BRIDGE": {"type": "TEXT", "index": 2, "name": "BRIDGE", "comment": null}, "BRIDGE_NAME": {"type": "TEXT", "index": 3, "name": "BRIDGE_NAME", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 4, "name": "CHAINS", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 5, "name": "DESTINATION_CHAIN", "comment": null}, "ROW_NUM": {"type": "NUMBER", "index": 6, "name": "ROW_NUM", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__defillama_bridges_BRIDGE_ID.2ba6c21db0"}, "test.external_models.dbt_utils_unique_combination_of_columns_bronze__blast_leaderboard_ID.c3d87330d2": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_BRONZE", "name": "BLAST_LEADERBOARD_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bronze__blast_leaderboard_ID.c3d87330d2"}, "test.external_models.not_null_silver__snapshot_proposals_PROPOSAL_END_TIME.5f14be541b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SNAPSHOT_PROPOSALS_PROPOSAL_END_TIME", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROPOSAL_ID": {"type": "TEXT", "index": 1, "name": "PROPOSAL_ID", "comment": null}, "IPFS": {"type": "TEXT", "index": 2, "name": "IPFS", "comment": null}, "CHOICES": {"type": "ARRAY", "index": 3, "name": "CHOICES", "comment": null}, "PROPOSAL_AUTHOR": {"type": "TEXT", "index": 4, "name": "PROPOSAL_AUTHOR", "comment": null}, "PROPOSAL_TITLE": {"type": "TEXT", "index": 5, "name": "PROPOSAL_TITLE", "comment": null}, "PROPOSAL_TEXT": {"type": "TEXT", "index": 6, "name": "PROPOSAL_TEXT", "comment": null}, "DELAY": {"type": "NUMBER", "index": 7, "name": "DELAY", "comment": null}, "QUORUM": {"type": "NUMBER", "index": 8, "name": "QUORUM", "comment": null}, "VOTING_PERIOD": {"type": "NUMBER", "index": 9, "name": "VOTING_PERIOD", "comment": null}, "VOTING_TYPE": {"type": "TEXT", "index": 10, "name": "VOTING_TYPE", "comment": null}, "SPACE_ID": {"type": "TEXT", "index": 11, "name": "SPACE_ID", "comment": null}, "NETWORK_ID": {"type": "TEXT", "index": 12, "name": "NETWORK_ID", "comment": null}, "NETWORK": {"type": "TEXT", "index": 13, "name": "NETWORK", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "CREATED_AT", "comment": null}, "PROPOSAL_START_TIME": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "PROPOSAL_START_TIME", "comment": null}, "PROPOSAL_END_TIME": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "PROPOSAL_END_TIME", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__snapshot_proposals_PROPOSAL_END_TIME.5f14be541b"}, "test.external_models.not_null_silver_aptos__lync_metric.3d12e974b6": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_APTOS", "name": "LYNC_METRIC", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"METRIC": {"type": "TEXT", "index": 1, "name": "METRIC", "comment": null}, "METRIC_DATE": {"type": "DATE", "index": 2, "name": "METRIC_DATE", "comment": null}, "METRIC_COUNT": {"type": "NUMBER", "index": 3, "name": "METRIC_COUNT", "comment": null}, "METRIC_AMOUNT": {"type": "FLOAT", "index": 4, "name": "METRIC_AMOUNT", "comment": null}, "METRIC_AMOUNT_IN_USD": {"type": "FLOAT", "index": 5, "name": "METRIC_AMOUNT_IN_USD", "comment": null}, "LYNC_ID": {"type": "TEXT", "index": 6, "name": "LYNC_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver_aptos__lync_metric.3d12e974b6"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_options_notional__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.954e6abb0e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "DEFILLAMA_OPTIONS_NOTIONAL", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_options_notional__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.954e6abb0e"}, "model.external_models.tokenflow_starknet__l1_data_messages": {"metadata": {"type": "VIEW", "schema": "TOKENFLOW_STARKNET", "name": "L1_DATA_MESSAGES", "database": "EXTERNAL", "comment": "Table updates ceased after February 1, 2024. This table contains raw message level data for the Starknet blockchain, sourced from Token Flow. For more information on Starknet, please see [Starknet Resources](https://starknet.io/). For more information on Token Flow, please see [Token Flow Resources](https://docs.tokenflow.live/).", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"LOAD_ID": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "LOAD_ID", "comment": ""}, "CHAIN_ID": {"type": "TEXT", "index": 2, "name": "CHAIN_ID", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER", "comment": ""}, "L1_ADDRESS": {"type": "TEXT", "index": 4, "name": "L1_ADDRESS", "comment": ""}, "L2_ADDRESS": {"type": "TEXT", "index": 5, "name": "L2_ADDRESS", "comment": ""}, "SELECTOR": {"type": "TEXT", "index": 6, "name": "SELECTOR", "comment": ""}, "PAYLOAD": {"type": "ARRAY", "index": 7, "name": "PAYLOAD", "comment": ""}, "NONCE": {"type": "NUMBER", "index": 8, "name": "NONCE", "comment": ""}, "FEE": {"type": "NUMBER", "index": 9, "name": "FEE", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.tokenflow_starknet__l1_data_messages"}, "test.external_models.not_null_farcaster__dim_fnames_UPDATED_AT.724d9bd760": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_FARCASTER", "name": "DIM_FNAMES_UPDATED_AT", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"FID": {"type": "NUMBER", "index": 1, "name": "FID", "comment": null}, "FNAME": {"type": "TEXT", "index": 2, "name": "FNAME", "comment": null}, "CUSTODY_ADDRESS": {"type": "BINARY", "index": 3, "name": "CUSTODY_ADDRESS", "comment": null}, "EXPIRES_AT": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "EXPIRES_AT", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "CREATED_AT", "comment": null}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "UPDATED_AT", "comment": null}, "DELETED_AT": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "DELETED_AT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_farcaster__dim_fnames_UPDATED_AT.724d9bd760"}, "test.external_models.not_null_bronze__defillama_protocol_tvl_history_PROTOCOL_ID.f49602e496": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "DEFILLAMA_PROTOCOL_TVL_HISTORY_PROTOCOL_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROTOCOL_ID": {"type": "NUMBER", "index": 1, "name": "PROTOCOL_ID", "comment": null}, "CATEGORY": {"type": "VARIANT", "index": 2, "name": "CATEGORY", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 3, "name": "PARTITION_KEY", "comment": null}, "RESPONSE": {"type": "VARIANT", "index": 4, "name": "RESPONSE", "comment": null}, "BRONZE_DEFILLAMA_PROTOCOL_HISTORICAL_ID": {"type": "TEXT", "index": 5, "name": "BRONZE_DEFILLAMA_PROTOCOL_HISTORICAL_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__defillama_protocol_tvl_history_PROTOCOL_ID.f49602e496"}, "test.external_models.not_null_silver__flashbots_mev_txs_BLOCK_TIME.43b2a3dd1c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "FLASHBOTS_MEV_TXS_BLOCK_TIME", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIME": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIME", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 3, "name": "BLOCK_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 4, "name": "EXTRA_DATA", "comment": null}, "FEE_RECIPIENT_ADDRESS": {"type": "TEXT", "index": 5, "name": "FEE_RECIPIENT_ADDRESS", "comment": null}, "BUNDLE_ID": {"type": "NUMBER", "index": 6, "name": "BUNDLE_ID", "comment": null}, "USER_TX_HASH": {"type": "TEXT", "index": 7, "name": "USER_TX_HASH", "comment": null}, "USER_TX_FROM": {"type": "TEXT", "index": 8, "name": "USER_TX_FROM", "comment": null}, "USER_TX_TO": {"type": "TEXT", "index": 9, "name": "USER_TX_TO", "comment": null}, "BACKRUN_TX_HASH": {"type": "TEXT", "index": 10, "name": "BACKRUN_TX_HASH", "comment": null}, "BACKRUN_TX_FROM": {"type": "TEXT", "index": 11, "name": "BACKRUN_TX_FROM", "comment": null}, "BACKRUN_TX_TO": {"type": "TEXT", "index": 12, "name": "BACKRUN_TX_TO", "comment": null}, "REFUND_TX_HASH": {"type": "TEXT", "index": 13, "name": "REFUND_TX_HASH", "comment": null}, "REFUND_FROM": {"type": "TEXT", "index": 14, "name": "REFUND_FROM", "comment": null}, "REFUND_TO": {"type": "TEXT", "index": 15, "name": "REFUND_TO", "comment": null}, "REFUND_VALUE_ETH": {"type": "TEXT", "index": 16, "name": "REFUND_VALUE_ETH", "comment": null}, "IS_MEVSHARE": {"type": "BOOLEAN", "index": 17, "name": "IS_MEVSHARE", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_ID": {"type": "TEXT", "index": 19, "name": "_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__flashbots_mev_txs_BLOCK_TIME.43b2a3dd1c"}, "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_stablecoin_supply_STABLECOIN_ID__TIMESTAMP.a73b0531bc": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_BRONZE", "name": "DEFILLAMA_STABLECOIN_SUPPLY_STABLECOIN_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"STABLECOIN_ID": {"type": "TEXT", "index": 1, "name": "STABLECOIN_ID", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-05-28 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_stablecoin_supply_STABLECOIN_ID__TIMESTAMP.a73b0531bc"}, "test.external_models.not_null_silver__snapshot_proposals_CREATED_AT.6da88af9f6": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SNAPSHOT_PROPOSALS_CREATED_AT", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROPOSAL_ID": {"type": "TEXT", "index": 1, "name": "PROPOSAL_ID", "comment": null}, "IPFS": {"type": "TEXT", "index": 2, "name": "IPFS", "comment": null}, "CHOICES": {"type": "ARRAY", "index": 3, "name": "CHOICES", "comment": null}, "PROPOSAL_AUTHOR": {"type": "TEXT", "index": 4, "name": "PROPOSAL_AUTHOR", "comment": null}, "PROPOSAL_TITLE": {"type": "TEXT", "index": 5, "name": "PROPOSAL_TITLE", "comment": null}, "PROPOSAL_TEXT": {"type": "TEXT", "index": 6, "name": "PROPOSAL_TEXT", "comment": null}, "DELAY": {"type": "NUMBER", "index": 7, "name": "DELAY", "comment": null}, "QUORUM": {"type": "NUMBER", "index": 8, "name": "QUORUM", "comment": null}, "VOTING_PERIOD": {"type": "NUMBER", "index": 9, "name": "VOTING_PERIOD", "comment": null}, "VOTING_TYPE": {"type": "TEXT", "index": 10, "name": "VOTING_TYPE", "comment": null}, "SPACE_ID": {"type": "TEXT", "index": 11, "name": "SPACE_ID", "comment": null}, "NETWORK_ID": {"type": "TEXT", "index": 12, "name": "NETWORK_ID", "comment": null}, "NETWORK": {"type": "TEXT", "index": 13, "name": "NETWORK", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "CREATED_AT", "comment": null}, "PROPOSAL_START_TIME": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "PROPOSAL_START_TIME", "comment": null}, "PROPOSAL_END_TIME": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "PROPOSAL_END_TIME", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__snapshot_proposals_CREATED_AT.6da88af9f6"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__polymarket_markets_CONDITION_ID.079735fed9": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "POLYMARKET_MARKETS_CONDITION_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CONDITION_ID": {"type": "TEXT", "index": 1, "name": "CONDITION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__polymarket_markets_CONDITION_ID.079735fed9"}, "test.external_models.not_null_bitquery__tx_count_METRIC.74279a41fa": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BITQUERY", "name": "TX_COUNT_METRIC", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": null}, "METRIC": {"type": "TEXT", "index": 2, "name": "METRIC", "comment": null}, "BLOCK_DATE": {"type": "TEXT", "index": 3, "name": "BLOCK_DATE", "comment": null}, "TX_COUNT": {"type": "TEXT", "index": 4, "name": "TX_COUNT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ACCOUNTS_ID": {"type": "TEXT", "index": 6, "name": "ACCOUNTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bitquery__tx_count_METRIC.74279a41fa"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_usdt_usdc_supply_DEFILLAMA_USDC_USDT_SUPPLY_ID.7a5a092f00": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "DEFILLAMA_USDT_USDC_SUPPLY_DEFILLAMA_USDC_USDT_SUPPLY_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DEFILLAMA_USDC_USDT_SUPPLY_ID": {"type": "TEXT", "index": 1, "name": "DEFILLAMA_USDC_USDT_SUPPLY_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-04 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_usdt_usdc_supply_DEFILLAMA_USDC_USDT_SUPPLY_ID.7a5a092f00"}, "test.external_models.not_null_silver__defillama_stablecoin_supply_DEFILLAMA_STABLECOIN_SUPPLY_ID.072450f5e2": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_STABLECOIN_SUPPLY_DEFILLAMA_STABLECOIN_SUPPLY_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 2, "name": "SYMBOL", "comment": null}, "STABLECOIN": {"type": "TEXT", "index": 3, "name": "STABLECOIN", "comment": null}, "STABLECOIN_ID": {"type": "TEXT", "index": 4, "name": "STABLECOIN_ID", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 5, "name": "CHAINS", "comment": null}, "PEG_TYPE": {"type": "TEXT", "index": 6, "name": "PEG_TYPE", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "TIMESTAMP", "comment": null}, "VALUE": {"type": "VARIANT", "index": 8, "name": "VALUE", "comment": null}, "CIRCULATING": {"type": "NUMBER", "index": 9, "name": "CIRCULATING", "comment": null}, "MINTED": {"type": "NUMBER", "index": 10, "name": "MINTED", "comment": null}, "UNRELEASED": {"type": "NUMBER", "index": 11, "name": "UNRELEASED", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DEFILLAMA_STABLECOIN_SUPPLY_ID": {"type": "TEXT", "index": 13, "name": "DEFILLAMA_STABLECOIN_SUPPLY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 16, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-05-28 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_stablecoin_supply_DEFILLAMA_STABLECOIN_SUPPLY_ID.072450f5e2"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__flashbots_mev_txs__ID.a3773be3b5": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "FLASHBOTS_MEV_TXS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"_ID": {"type": "TEXT", "index": 1, "name": "_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__flashbots_mev_txs__ID.a3773be3b5"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_protocol_tvl_history__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.565c8d7976": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_BRONZE", "name": "DEFILLAMA_PROTOCOL_TVL_HISTORY", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_protocol_tvl_history__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.565c8d7976"}, "model.external_models.silver__defillama_options_notional": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "DEFILLAMA_OPTIONS_NOTIONAL", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": ""}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "TIMESTAMP", "comment": ""}, "PROTOCOL": {"type": "TEXT", "index": 3, "name": "PROTOCOL", "comment": ""}, "DAILY_VOLUME_NOTIONAL": {"type": "NUMBER", "index": 4, "name": "DAILY_VOLUME_NOTIONAL", "comment": ""}, "OPTIONS_OBJECT": {"type": "VARIANT", "index": 5, "name": "OPTIONS_OBJECT", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "ID": {"type": "TEXT", "index": 7, "name": "ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 08:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1457152, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 28020, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver__defillama_options_notional"}, "test.external_models.not_null_silver_aptos__lync_metric_amount_in_usd.c567ac53f1": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_APTOS", "name": "LYNC_METRIC_AMOUNT_IN_USD", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"METRIC": {"type": "TEXT", "index": 1, "name": "METRIC", "comment": null}, "METRIC_DATE": {"type": "DATE", "index": 2, "name": "METRIC_DATE", "comment": null}, "METRIC_COUNT": {"type": "NUMBER", "index": 3, "name": "METRIC_COUNT", "comment": null}, "METRIC_AMOUNT": {"type": "FLOAT", "index": 4, "name": "METRIC_AMOUNT", "comment": null}, "METRIC_AMOUNT_IN_USD": {"type": "FLOAT", "index": 5, "name": "METRIC_AMOUNT_IN_USD", "comment": null}, "LYNC_ID": {"type": "TEXT", "index": 6, "name": "LYNC_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver_aptos__lync_metric_amount_in_usd.c567ac53f1"}, "model.external_models.silver__defillama_stablecoin_metrics": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "DEFILLAMA_STABLECOIN_METRICS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": ""}, "DATE_DAY": {"type": "DATE", "index": 2, "name": "DATE_DAY", "comment": ""}, "STABLECOIN_ID": {"type": "TEXT", "index": 3, "name": "STABLECOIN_ID", "comment": ""}, "TOTAL_CIRCULATING_USD": {"type": "VARIANT", "index": 4, "name": "TOTAL_CIRCULATING_USD", "comment": ""}, "TOTAL_MINTED_USD": {"type": "VARIANT", "index": 5, "name": "TOTAL_MINTED_USD", "comment": ""}, "TOTAL_CIRCULATING": {"type": "VARIANT", "index": 6, "name": "TOTAL_CIRCULATING", "comment": ""}, "TOTAL_BRIDGED_TO_USD": {"type": "VARIANT", "index": 7, "name": "TOTAL_BRIDGED_TO_USD", "comment": ""}, "TOTAL_UNRELEASED": {"type": "VARIANT", "index": 8, "name": "TOTAL_UNRELEASED", "comment": ""}, "RUN_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "RUN_TIMESTAMP", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 10, "name": "PARTITION_KEY", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "DEFILLAMA_STABLECOIN_METRICS_ID": {"type": "TEXT", "index": 12, "name": "DEFILLAMA_STABLECOIN_METRICS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 15, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(date_day, chain)", "include": true, "description": "The key used to cluster this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 11:04UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 908678144, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 28301654, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver__defillama_stablecoin_metrics"}, "test.external_models.not_null_defillama__ez_stablecoin_metrics_symbol.b7badaccb5": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_DEFILLAMA", "name": "EZ_STABLECOIN_METRICS_SYMBOL", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "DATE_DAY": {"type": "DATE", "index": 2, "name": "DATE_DAY", "comment": null}, "STABLECOIN_ID": {"type": "TEXT", "index": 3, "name": "STABLECOIN_ID", "comment": null}, "STABLECOIN": {"type": "TEXT", "index": 4, "name": "STABLECOIN", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 5, "name": "SYMBOL", "comment": null}, "PEG_TYPE": {"type": "TEXT", "index": 6, "name": "PEG_TYPE", "comment": null}, "PEG_MECHANISM": {"type": "TEXT", "index": 7, "name": "PEG_MECHANISM", "comment": null}, "TOTAL_CIRCULATING_USD": {"type": "FLOAT", "index": 8, "name": "TOTAL_CIRCULATING_USD", "comment": null}, "TOTAL_MINTED_USD": {"type": "FLOAT", "index": 9, "name": "TOTAL_MINTED_USD", "comment": null}, "TOTAL_CIRCULATING": {"type": "FLOAT", "index": 10, "name": "TOTAL_CIRCULATING", "comment": null}, "TOTAL_BRIDGED_TO_USD": {"type": "FLOAT", "index": 11, "name": "TOTAL_BRIDGED_TO_USD", "comment": null}, "TOTAL_UNRELEASED": {"type": "FLOAT", "index": 12, "name": "TOTAL_UNRELEASED", "comment": null}, "EZ_STABLECOIN_METRICS_ID": {"type": "TEXT", "index": 13, "name": "EZ_STABLECOIN_METRICS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_defillama__ez_stablecoin_metrics_symbol.b7badaccb5"}, "test.external_models.not_null_defillama__ez_stablecoin_metrics_date_day.8be6c5ded3": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_DEFILLAMA", "name": "EZ_STABLECOIN_METRICS_DATE_DAY", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "DATE_DAY": {"type": "DATE", "index": 2, "name": "DATE_DAY", "comment": null}, "STABLECOIN_ID": {"type": "TEXT", "index": 3, "name": "STABLECOIN_ID", "comment": null}, "STABLECOIN": {"type": "TEXT", "index": 4, "name": "STABLECOIN", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 5, "name": "SYMBOL", "comment": null}, "PEG_TYPE": {"type": "TEXT", "index": 6, "name": "PEG_TYPE", "comment": null}, "PEG_MECHANISM": {"type": "TEXT", "index": 7, "name": "PEG_MECHANISM", "comment": null}, "TOTAL_CIRCULATING_USD": {"type": "FLOAT", "index": 8, "name": "TOTAL_CIRCULATING_USD", "comment": null}, "TOTAL_MINTED_USD": {"type": "FLOAT", "index": 9, "name": "TOTAL_MINTED_USD", "comment": null}, "TOTAL_CIRCULATING": {"type": "FLOAT", "index": 10, "name": "TOTAL_CIRCULATING", "comment": null}, "TOTAL_BRIDGED_TO_USD": {"type": "FLOAT", "index": 11, "name": "TOTAL_BRIDGED_TO_USD", "comment": null}, "TOTAL_UNRELEASED": {"type": "FLOAT", "index": 12, "name": "TOTAL_UNRELEASED", "comment": null}, "EZ_STABLECOIN_METRICS_ID": {"type": "TEXT", "index": 13, "name": "EZ_STABLECOIN_METRICS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_defillama__ez_stablecoin_metrics_date_day.8be6c5ded3"}, "test.external_models.not_null_silver__defillama_perp_daily_volume_defillama_perp_daily_volume_id.050418fda4": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PERP_DAILY_VOLUME_DEFILLAMA_PERP_DAILY_VOLUME_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE": {"type": "DATE", "index": 1, "name": "DATE", "comment": null}, "CHAIN": {"type": "TEXT", "index": 2, "name": "CHAIN", "comment": null}, "PROTOCOL_ID": {"type": "TEXT", "index": 3, "name": "PROTOCOL_ID", "comment": null}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 4, "name": "PROTOCOL_SLUG", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 5, "name": "PROTOCOL", "comment": null}, "VOLUME": {"type": "FLOAT", "index": 6, "name": "VOLUME", "comment": null}, "DEFILLAMA_PERP_METRICS_ID": {"type": "TEXT", "index": 7, "name": "DEFILLAMA_PERP_METRICS_ID", "comment": null}, "DEFILLAMA_PERP_DAILY_VOLUME_ID": {"type": "TEXT", "index": 8, "name": "DEFILLAMA_PERP_DAILY_VOLUME_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_perp_daily_volume_defillama_perp_daily_volume_id.050418fda4"}, "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_CHAIN.eff9323ee0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_BRIDGE_VOLUME_BY_CHAIN_CHAIN", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BRIDGE_ID": {"type": "TEXT", "index": 1, "name": "BRIDGE_ID", "comment": null}, "BRIDGE": {"type": "TEXT", "index": 2, "name": "BRIDGE", "comment": null}, "BRIDGE_NAME": {"type": "TEXT", "index": 3, "name": "BRIDGE_NAME", "comment": null}, "CHAIN": {"type": "TEXT", "index": 4, "name": "CHAIN", "comment": null}, "BRIDGE_ID_CHAIN": {"type": "TEXT", "index": 5, "name": "BRIDGE_ID_CHAIN", "comment": null}, "DATE": {"type": "DATE", "index": 6, "name": "DATE", "comment": null}, "DEPOSIT_TXS": {"type": "NUMBER", "index": 7, "name": "DEPOSIT_TXS", "comment": null}, "DEPOSIT_USD": {"type": "NUMBER", "index": 8, "name": "DEPOSIT_USD", "comment": null}, "WITHDRAW_TXS": {"type": "NUMBER", "index": 9, "name": "WITHDRAW_TXS", "comment": null}, "WITHDRAW_USD": {"type": "NUMBER", "index": 10, "name": "WITHDRAW_USD", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "MODIFIED_TIMESTAMP", "comment": null}, "DEFILLAMA_BRIDGE_VOL_BY_CHAIN_ID": {"type": "TEXT", "index": 13, "name": "DEFILLAMA_BRIDGE_VOL_BY_CHAIN_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 14, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_CHAIN.eff9323ee0"}, "test.external_models.not_null_silver__snapshot_proposals_PROPOSAL_ID.7025c6df25": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SNAPSHOT_PROPOSALS_PROPOSAL_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROPOSAL_ID": {"type": "TEXT", "index": 1, "name": "PROPOSAL_ID", "comment": null}, "IPFS": {"type": "TEXT", "index": 2, "name": "IPFS", "comment": null}, "CHOICES": {"type": "ARRAY", "index": 3, "name": "CHOICES", "comment": null}, "PROPOSAL_AUTHOR": {"type": "TEXT", "index": 4, "name": "PROPOSAL_AUTHOR", "comment": null}, "PROPOSAL_TITLE": {"type": "TEXT", "index": 5, "name": "PROPOSAL_TITLE", "comment": null}, "PROPOSAL_TEXT": {"type": "TEXT", "index": 6, "name": "PROPOSAL_TEXT", "comment": null}, "DELAY": {"type": "NUMBER", "index": 7, "name": "DELAY", "comment": null}, "QUORUM": {"type": "NUMBER", "index": 8, "name": "QUORUM", "comment": null}, "VOTING_PERIOD": {"type": "NUMBER", "index": 9, "name": "VOTING_PERIOD", "comment": null}, "VOTING_TYPE": {"type": "TEXT", "index": 10, "name": "VOTING_TYPE", "comment": null}, "SPACE_ID": {"type": "TEXT", "index": 11, "name": "SPACE_ID", "comment": null}, "NETWORK_ID": {"type": "TEXT", "index": 12, "name": "NETWORK_ID", "comment": null}, "NETWORK": {"type": "TEXT", "index": 13, "name": "NETWORK", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "CREATED_AT", "comment": null}, "PROPOSAL_START_TIME": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "PROPOSAL_START_TIME", "comment": null}, "PROPOSAL_END_TIME": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "PROPOSAL_END_TIME", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__snapshot_proposals_PROPOSAL_ID.7025c6df25"}, "test.external_models.unique_defillama__ez_stablecoin_metrics_ez_stablecoin_metrics_id.bf19235079": {"metadata": {"type": "BASE TABLE", "schema": "UNIQUE_DEFILLAMA", "name": "EZ_STABLECOIN_METRICS_EZ_STABLECOIN_METRICS_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"UNIQUE_FIELD": {"type": "TEXT", "index": 1, "name": "UNIQUE_FIELD", "comment": null}, "N_RECORDS": {"type": "NUMBER", "index": 2, "name": "N_RECORDS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.unique_defillama__ez_stablecoin_metrics_ez_stablecoin_metrics_id.bf19235079"}, "test.external_models.not_null_bronze__defillama_raises_RAISE_ID.5d70470335": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "DEFILLAMA_RAISES_RAISE_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"FUNDING_DATE": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "FUNDING_DATE", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 2, "name": "PROJECT_NAME", "comment": null}, "FUNDING_ROUND": {"type": "TEXT", "index": 3, "name": "FUNDING_ROUND", "comment": null}, "AMOUNT_RAISED": {"type": "FLOAT", "index": 4, "name": "AMOUNT_RAISED", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 5, "name": "CHAINS", "comment": null}, "SECTOR": {"type": "TEXT", "index": 6, "name": "SECTOR", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 7, "name": "CATEGORY", "comment": null}, "CATEGORY_GROUP": {"type": "TEXT", "index": 8, "name": "CATEGORY_GROUP", "comment": null}, "SOURCE": {"type": "TEXT", "index": 9, "name": "SOURCE", "comment": null}, "LEAD_INVESTORS": {"type": "VARIANT", "index": 10, "name": "LEAD_INVESTORS", "comment": null}, "OTHER_INVESTORS": {"type": "VARIANT", "index": 11, "name": "OTHER_INVESTORS", "comment": null}, "VALUATION": {"type": "NUMBER", "index": 12, "name": "VALUATION", "comment": null}, "DEFILLAMA_ID": {"type": "TEXT", "index": 13, "name": "DEFILLAMA_ID", "comment": null}, "RAISE_ID": {"type": "TEXT", "index": 14, "name": "RAISE_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__defillama_raises_RAISE_ID.5d70470335"}, "test.external_models.not_null_bronze__defillama_chains__INSERTED_TIMESTAMP.826ea39a44": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "DEFILLAMA_CHAINS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN_ID": {"type": "TEXT", "index": 1, "name": "CHAIN_ID", "comment": null}, "CHAIN": {"type": "TEXT", "index": 2, "name": "CHAIN", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 3, "name": "TOKEN_SYMBOL", "comment": null}, "ROW_NUM": {"type": "NUMBER", "index": 4, "name": "ROW_NUM", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__defillama_chains__INSERTED_TIMESTAMP.826ea39a44"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_protocol_fees_ID.03cc375156": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "DEFILLAMA_PROTOCOL_FEES_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_protocol_fees_ID.03cc375156"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_defillama__ez_stablecoin_metrics_modified_timestamp__day__2.a305d6efe9": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_DEFILLAMA", "name": "EZ_STABLECOIN_METRICS_MODIFIED_TIMESTAMP", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_defillama__ez_stablecoin_metrics_modified_timestamp__day__2.a305d6efe9"}, "model.external_models.tokenflow_starknet__l1_data_contracts": {"metadata": {"type": "VIEW", "schema": "TOKENFLOW_STARKNET", "name": "L1_DATA_CONTRACTS", "database": "EXTERNAL", "comment": "Table updates ceased after February 1, 2024. This table contains raw contract level data for the Starknet blockchain, sourced from Token Flow. For more information on Starknet, please see [Starknet Resources](https://starknet.io/). For more information on Token Flow, please see [Token Flow Resources](https://docs.tokenflow.live/).", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"LOAD_ID": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "LOAD_ID", "comment": ""}, "CHAIN_ID": {"type": "TEXT", "index": 2, "name": "CHAIN_ID", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER", "comment": ""}, "ADDRESS": {"type": "TEXT", "index": 4, "name": "ADDRESS", "comment": ""}, "CLASS_HASH": {"type": "TEXT", "index": 5, "name": "CLASS_HASH", "comment": ""}, "CONSTRUCTOR_ARGS": {"type": "ARRAY", "index": 6, "name": "CONSTRUCTOR_ARGS", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.tokenflow_starknet__l1_data_contracts"}, "test.external_models.not_null_bronze__all_tokenlists_REQUEST.1e7047c6c4": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "ALL_TOKENLISTS_REQUEST", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"API_URL": {"type": "TEXT", "index": 1, "name": "API_URL", "comment": null}, "REQUEST": {"type": "VARIANT", "index": 2, "name": "REQUEST", "comment": null}, "KEYWORDS": {"type": "VARIANT", "index": 3, "name": "KEYWORDS", "comment": null}, "LOGO_URI": {"type": "TEXT", "index": 4, "name": "LOGO_URI", "comment": null}, "LIST_NAME": {"type": "TEXT", "index": 5, "name": "LIST_NAME", "comment": null}, "LIST_TAGS": {"type": "VARIANT", "index": 6, "name": "LIST_TAGS", "comment": null}, "ROW_NUM": {"type": "NUMBER", "index": 7, "name": "ROW_NUM", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ALL_TOKENLISTS_ID": {"type": "TEXT", "index": 9, "name": "ALL_TOKENLISTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__all_tokenlists_REQUEST.1e7047c6c4"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__layerzero_txs_snapshot_LAYERZERO_TXS_SNAPSHOT_ID.e37099fee0": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "LAYERZERO_TXS_SNAPSHOT_LAYERZERO_TXS_SNAPSHOT_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"LAYERZERO_TXS_SNAPSHOT_ID": {"type": "TEXT", "index": 1, "name": "LAYERZERO_TXS_SNAPSHOT_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__layerzero_txs_snapshot_LAYERZERO_TXS_SNAPSHOT_ID.e37099fee0"}, "test.external_models.not_null_silver__defillama_bridge_volume_BRIDGE.2758ecc03f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_BRIDGE_VOLUME_BRIDGE", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BRIDGE_ID": {"type": "TEXT", "index": 1, "name": "BRIDGE_ID", "comment": null}, "BRIDGE": {"type": "TEXT", "index": 2, "name": "BRIDGE", "comment": null}, "BRIDGE_NAME": {"type": "TEXT", "index": 3, "name": "BRIDGE_NAME", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "TIMESTAMP", "comment": null}, "DEPOSIT_TXS": {"type": "NUMBER", "index": 5, "name": "DEPOSIT_TXS", "comment": null}, "DEPOSIT_USD": {"type": "NUMBER", "index": 6, "name": "DEPOSIT_USD", "comment": null}, "WITHDRAW_TXS": {"type": "NUMBER", "index": 7, "name": "WITHDRAW_TXS", "comment": null}, "WITHDRAW_USD": {"type": "NUMBER", "index": 8, "name": "WITHDRAW_USD", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ID": {"type": "TEXT", "index": 10, "name": "ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_bridge_volume_BRIDGE.2758ecc03f"}, "test.external_models.not_null_silver__defillama_protocol_revenue__INSERTED_TIMESTAMP.960b8d7b66": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PROTOCOL_REVENUE", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "TIMESTAMP", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 3, "name": "PROTOCOL", "comment": null}, "DAILY_REV": {"type": "NUMBER", "index": 4, "name": "DAILY_REV", "comment": null}, "REV_OBJECT": {"type": "VARIANT", "index": 5, "name": "REV_OBJECT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ID": {"type": "TEXT", "index": 7, "name": "ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_protocol_revenue__INSERTED_TIMESTAMP.960b8d7b66"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_defillama__dim_protocols_INSERTED_TIMESTAMP__TIMESTAMP_NTZ.3e63f796d0": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_DEFILLAMA", "name": "DIM_PROTOCOLS_INSERTED_TIMESTAMP", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_defillama__dim_protocols_INSERTED_TIMESTAMP__TIMESTAMP_NTZ.3e63f796d0"}, "test.external_models.not_null_bronze__defillama_dexes_DEX_ID.279f415a10": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "DEFILLAMA_DEXES_DEX_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DEX_ID": {"type": "TEXT", "index": 1, "name": "DEX_ID", "comment": null}, "DEX": {"type": "TEXT", "index": 2, "name": "DEX", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 4, "name": "CHAINS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__defillama_dexes_DEX_ID.279f415a10"}, "test.external_models.not_null_bronze__polymarket_markets_CONDITION_ID.e746168184": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "POLYMARKET_MARKETS_CONDITION_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CONDITION_ID": {"type": "TEXT", "index": 1, "name": "CONDITION_ID", "comment": null}, "QUESTION": {"type": "TEXT", "index": 2, "name": "QUESTION", "comment": null}, "DESCRIPTION": {"type": "TEXT", "index": 3, "name": "DESCRIPTION", "comment": null}, "TOKENS": {"type": "VARIANT", "index": 4, "name": "TOKENS", "comment": null}, "TOKEN_1_TOKEN_ID": {"type": "TEXT", "index": 5, "name": "TOKEN_1_TOKEN_ID", "comment": null}, "TOKEN_1_OUTCOME": {"type": "TEXT", "index": 6, "name": "TOKEN_1_OUTCOME", "comment": null}, "TOKEN_1_WINNER": {"type": "TEXT", "index": 7, "name": "TOKEN_1_WINNER", "comment": null}, "TOKEN_2_TOKEN_ID": {"type": "TEXT", "index": 8, "name": "TOKEN_2_TOKEN_ID", "comment": null}, "TOKEN_2_OUTCOME": {"type": "TEXT", "index": 9, "name": "TOKEN_2_OUTCOME", "comment": null}, "TOKEN_2_WINNER": {"type": "TEXT", "index": 10, "name": "TOKEN_2_WINNER", "comment": null}, "ENABLE_ORDER_BOOK": {"type": "TEXT", "index": 11, "name": "ENABLE_ORDER_BOOK", "comment": null}, "ACTIVE": {"type": "BOOLEAN", "index": 12, "name": "ACTIVE", "comment": null}, "CLOSED": {"type": "BOOLEAN", "index": 13, "name": "CLOSED", "comment": null}, "ARCHIVED": {"type": "BOOLEAN", "index": 14, "name": "ARCHIVED", "comment": null}, "ACCEPTING_ORDERS": {"type": "BOOLEAN", "index": 15, "name": "ACCEPTING_ORDERS", "comment": null}, "ACCEPTING_ORDER_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "ACCEPTING_ORDER_TIMESTAMP", "comment": null}, "MINIMUM_ORDER_SIZE": {"type": "NUMBER", "index": 17, "name": "MINIMUM_ORDER_SIZE", "comment": null}, "MINIMUM_TICK_SIZE": {"type": "NUMBER", "index": 18, "name": "MINIMUM_TICK_SIZE", "comment": null}, "QUESTION_ID": {"type": "TEXT", "index": 19, "name": "QUESTION_ID", "comment": null}, "MARKET_SLUG": {"type": "TEXT", "index": 20, "name": "MARKET_SLUG", "comment": null}, "END_DATE_ISO": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "END_DATE_ISO", "comment": null}, "GAME_START_TIME": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "GAME_START_TIME", "comment": null}, "SECONDS_DELAY": {"type": "NUMBER", "index": 23, "name": "SECONDS_DELAY", "comment": null}, "FPMM": {"type": "TEXT", "index": 24, "name": "FPMM", "comment": null}, "MAKER_BASE_FEE": {"type": "NUMBER", "index": 25, "name": "MAKER_BASE_FEE", "comment": null}, "TAKER_BASE_FEE": {"type": "NUMBER", "index": 26, "name": "TAKER_BASE_FEE", "comment": null}, "NOTIFICATIONS_ENABLED": {"type": "BOOLEAN", "index": 27, "name": "NOTIFICATIONS_ENABLED", "comment": null}, "NEG_RISK": {"type": "BOOLEAN", "index": 28, "name": "NEG_RISK", "comment": null}, "NEG_RISK_MARKET_ID": {"type": "TEXT", "index": 29, "name": "NEG_RISK_MARKET_ID", "comment": null}, "NEG_RISK_REQUEST_ID": {"type": "TEXT", "index": 30, "name": "NEG_RISK_REQUEST_ID", "comment": null}, "REWARDS": {"type": "VARIANT", "index": 31, "name": "REWARDS", "comment": null}, "TAGS": {"type": "VARIANT", "index": 32, "name": "TAGS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 33, "name": "_INSERTED_TIMESTAMP", "comment": null}, "PAGE_NUMBER": {"type": "NUMBER", "index": 34, "name": "PAGE_NUMBER", "comment": null}, "COUNT": {"type": "TEXT", "index": 35, "name": "COUNT", "comment": null}, "CURSOR": {"type": "TEXT", "index": 36, "name": "CURSOR", "comment": null}, "POLYMARKET_MARKET_ID": {"type": "TEXT", "index": 37, "name": "POLYMARKET_MARKET_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__polymarket_markets_CONDITION_ID.e746168184"}, "test.external_models.not_null_silver__defillama_protocol_tvl__INSERTED_TIMESTAMP.df3fc95018": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PROTOCOL_TVL", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TIMESTAMP": {"type": "DATE", "index": 1, "name": "TIMESTAMP", "comment": null}, "PROTOCOL_ID": {"type": "TEXT", "index": 2, "name": "PROTOCOL_ID", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 4, "name": "PROTOCOL", "comment": null}, "MARKET_CAP": {"type": "FLOAT", "index": 5, "name": "MARKET_CAP", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 6, "name": "SYMBOL", "comment": null}, "TVL": {"type": "FLOAT", "index": 7, "name": "TVL", "comment": null}, "TVL_PREV_DAY": {"type": "FLOAT", "index": 8, "name": "TVL_PREV_DAY", "comment": null}, "TVL_PREV_WEEK": {"type": "FLOAT", "index": 9, "name": "TVL_PREV_WEEK", "comment": null}, "TVL_PREV_MONTH": {"type": "FLOAT", "index": 10, "name": "TVL_PREV_MONTH", "comment": null}, "CHAIN": {"type": "TEXT", "index": 11, "name": "CHAIN", "comment": null}, "CHAIN_TVL": {"type": "NUMBER", "index": 12, "name": "CHAIN_TVL", "comment": null}, "CHAIN_TVL_PREV_DAY": {"type": "NUMBER", "index": 13, "name": "CHAIN_TVL_PREV_DAY", "comment": null}, "CHAIN_TVL_PREV_WEEK": {"type": "NUMBER", "index": 14, "name": "CHAIN_TVL_PREV_WEEK", "comment": null}, "CHAIN_TVL_PREV_MONTH": {"type": "NUMBER", "index": 15, "name": "CHAIN_TVL_PREV_MONTH", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DEFILLAMA_TVL_ID": {"type": "TEXT", "index": 17, "name": "DEFILLAMA_TVL_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 20, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_protocol_tvl__INSERTED_TIMESTAMP.df3fc95018"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_24h__FLOAT.8ec5c7045d": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "DEFILLAMA_PERP_METRICS_TOTAL_24H", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_24h__FLOAT.8ec5c7045d"}, "test.external_models.dbt_utils_unique_combination_of_columns_bitquery__active_users_BLOCKCHAIN__METRIC__AS_OF_DATE.6fcc49b831": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_BITQUERY", "name": "ACTIVE_USERS_BLOCKCHAIN", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": null}, "METRIC": {"type": "TEXT", "index": 2, "name": "METRIC", "comment": null}, "AS_OF_DATE": {"type": "DATE", "index": 3, "name": "AS_OF_DATE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bitquery__active_users_BLOCKCHAIN__METRIC__AS_OF_DATE.6fcc49b831"}, "test.external_models.not_null_bronze__defillama_protocol_tvl_history__INSERTED_TIMESTAMP.8740370390": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "DEFILLAMA_PROTOCOL_TVL_HISTORY", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROTOCOL_ID": {"type": "NUMBER", "index": 1, "name": "PROTOCOL_ID", "comment": null}, "CATEGORY": {"type": "VARIANT", "index": 2, "name": "CATEGORY", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 3, "name": "PARTITION_KEY", "comment": null}, "RESPONSE": {"type": "VARIANT", "index": 4, "name": "RESPONSE", "comment": null}, "BRONZE_DEFILLAMA_PROTOCOL_HISTORICAL_ID": {"type": "TEXT", "index": 5, "name": "BRONZE_DEFILLAMA_PROTOCOL_HISTORICAL_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__defillama_protocol_tvl_history__INSERTED_TIMESTAMP.8740370390"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_artemis__tx_count_BLOCK_DATE__day__3.9e9badb9b2": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_ARTEMIS", "name": "TX_COUNT_BLOCK_DATE", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_artemis__tx_count_BLOCK_DATE__day__3.9e9badb9b2"}, "test.external_models.not_null_silver__defillama_protocol_tvl_DEFILLAMA_TVL_ID.42ecdf436d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PROTOCOL_TVL_DEFILLAMA_TVL_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TIMESTAMP": {"type": "DATE", "index": 1, "name": "TIMESTAMP", "comment": null}, "PROTOCOL_ID": {"type": "TEXT", "index": 2, "name": "PROTOCOL_ID", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 4, "name": "PROTOCOL", "comment": null}, "MARKET_CAP": {"type": "FLOAT", "index": 5, "name": "MARKET_CAP", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 6, "name": "SYMBOL", "comment": null}, "TVL": {"type": "FLOAT", "index": 7, "name": "TVL", "comment": null}, "TVL_PREV_DAY": {"type": "FLOAT", "index": 8, "name": "TVL_PREV_DAY", "comment": null}, "TVL_PREV_WEEK": {"type": "FLOAT", "index": 9, "name": "TVL_PREV_WEEK", "comment": null}, "TVL_PREV_MONTH": {"type": "FLOAT", "index": 10, "name": "TVL_PREV_MONTH", "comment": null}, "CHAIN": {"type": "TEXT", "index": 11, "name": "CHAIN", "comment": null}, "CHAIN_TVL": {"type": "NUMBER", "index": 12, "name": "CHAIN_TVL", "comment": null}, "CHAIN_TVL_PREV_DAY": {"type": "NUMBER", "index": 13, "name": "CHAIN_TVL_PREV_DAY", "comment": null}, "CHAIN_TVL_PREV_WEEK": {"type": "NUMBER", "index": 14, "name": "CHAIN_TVL_PREV_WEEK", "comment": null}, "CHAIN_TVL_PREV_MONTH": {"type": "NUMBER", "index": 15, "name": "CHAIN_TVL_PREV_MONTH", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DEFILLAMA_TVL_ID": {"type": "TEXT", "index": 17, "name": "DEFILLAMA_TVL_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 20, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_protocol_tvl_DEFILLAMA_TVL_ID.42ecdf436d"}, "test.external_models.not_null_bronze__defillama_raises__INSERTED_TIMESTAMP.92aefadf98": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "DEFILLAMA_RAISES", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"FUNDING_DATE": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "FUNDING_DATE", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 2, "name": "PROJECT_NAME", "comment": null}, "FUNDING_ROUND": {"type": "TEXT", "index": 3, "name": "FUNDING_ROUND", "comment": null}, "AMOUNT_RAISED": {"type": "FLOAT", "index": 4, "name": "AMOUNT_RAISED", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 5, "name": "CHAINS", "comment": null}, "SECTOR": {"type": "TEXT", "index": 6, "name": "SECTOR", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 7, "name": "CATEGORY", "comment": null}, "CATEGORY_GROUP": {"type": "TEXT", "index": 8, "name": "CATEGORY_GROUP", "comment": null}, "SOURCE": {"type": "TEXT", "index": 9, "name": "SOURCE", "comment": null}, "LEAD_INVESTORS": {"type": "VARIANT", "index": 10, "name": "LEAD_INVESTORS", "comment": null}, "OTHER_INVESTORS": {"type": "VARIANT", "index": 11, "name": "OTHER_INVESTORS", "comment": null}, "VALUATION": {"type": "NUMBER", "index": 12, "name": "VALUATION", "comment": null}, "DEFILLAMA_ID": {"type": "TEXT", "index": 13, "name": "DEFILLAMA_ID", "comment": null}, "RAISE_ID": {"type": "TEXT", "index": 14, "name": "RAISE_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__defillama_raises__INSERTED_TIMESTAMP.92aefadf98"}, "test.external_models.not_null_farcaster__dim_fids_UPDATED_AT.da0373fe59": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_FARCASTER", "name": "DIM_FIDS_UPDATED_AT", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CUSTODY_ADDRESS": {"type": "BINARY", "index": 1, "name": "CUSTODY_ADDRESS", "comment": null}, "FID": {"type": "NUMBER", "index": 2, "name": "FID", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "CREATED_AT", "comment": null}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "UPDATED_AT", "comment": null}, "REGISTERED_AT": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "REGISTERED_AT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_farcaster__dim_fids_UPDATED_AT.da0373fe59"}, "test.external_models.not_null_silver__tokenlists_verified_tokens_ADDRESS.d10abba80e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TOKENLISTS_VERIFIED_TOKENS_ADDRESS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"API_URL": {"type": "TEXT", "index": 1, "name": "API_URL", "comment": null}, "NAME": {"type": "TEXT", "index": 2, "name": "NAME", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 4, "name": "ADDRESS", "comment": null}, "CHAIN_ID": {"type": "TEXT", "index": 5, "name": "CHAIN_ID", "comment": null}, "DECIMALS": {"type": "TEXT", "index": 6, "name": "DECIMALS", "comment": null}, "EXTENSIONS": {"type": "VARIANT", "index": 7, "name": "EXTENSIONS", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 8, "name": "PROVIDER", "comment": null}, "LIST_METADATA": {"type": "VARIANT", "index": 9, "name": "LIST_METADATA", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TOKENLISTS_VERIFIED_TOKENS_ID": {"type": "TEXT", "index": 11, "name": "TOKENLISTS_VERIFIED_TOKENS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__tokenlists_verified_tokens_ADDRESS.d10abba80e"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_perp_daily_volume_protocol_id__date__chain.acc3fd514c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "DEFILLAMA_PERP_DAILY_VOLUME_PROTOCOL_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROTOCOL_ID": {"type": "TEXT", "index": 1, "name": "PROTOCOL_ID", "comment": null}, "DATE": {"type": "DATE", "index": 2, "name": "DATE", "comment": null}, "CHAIN": {"type": "TEXT", "index": 3, "name": "CHAIN", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_perp_daily_volume_protocol_id__date__chain.acc3fd514c"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_chains_tvl__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.a067d1eac2": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "DEFILLAMA_CHAINS_TVL", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_chains_tvl__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.a067d1eac2"}, "test.external_models.not_null_farcaster__fact_warpcast_power_users_UPDATED_AT.8008850037": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_FARCASTER", "name": "FACT_WARPCAST_POWER_USERS_UPDATED_AT", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"FID": {"type": "NUMBER", "index": 1, "name": "FID", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "CREATED_AT", "comment": null}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "UPDATED_AT", "comment": null}, "DELETED_AT": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "DELETED_AT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_farcaster__fact_warpcast_power_users_UPDATED_AT.8008850037"}, "test.livequery_models.test__live_udf_api_post_data_object.208f9d5456": {"metadata": {"type": "BASE TABLE", "schema": "TEST", "name": "LIVE_UDF_API_POST_DATA_OBJECT", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TEST_NAME": {"type": "TEXT", "index": 1, "name": "TEST_NAME", "comment": null}, "PARAMETERS": {"type": "ARRAY", "index": 2, "name": "PARAMETERS", "comment": null}, "RESULT": {"type": "VARIANT", "index": 3, "name": "RESULT", "comment": null}, "ASSERTION": {"type": "TEXT", "index": 4, "name": "ASSERTION", "comment": null}, "SQL": {"type": "TEXT", "index": 5, "name": "SQL", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-01-12 14:49UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.livequery_models.test__live_udf_api_post_data_object.208f9d5456"}, "test.external_models.not_null_silver__defillama_perp_metrics_protocol_type.4823df5948": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PERP_METRICS_PROTOCOL_TYPE", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TIMESTAMP": {"type": "DATE", "index": 1, "name": "TIMESTAMP", "comment": null}, "PROTOCOL_ID": {"type": "TEXT", "index": 2, "name": "PROTOCOL_ID", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "DISPLAY_NAME": {"type": "TEXT", "index": 5, "name": "DISPLAY_NAME", "comment": null}, "MODULE": {"type": "TEXT", "index": 6, "name": "MODULE", "comment": null}, "LOGO": {"type": "TEXT", "index": 7, "name": "LOGO", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 8, "name": "CHAINS", "comment": null}, "PROTOCOL_TYPE": {"type": "TEXT", "index": 9, "name": "PROTOCOL_TYPE", "comment": null}, "METHODOLOGY_URL": {"type": "TEXT", "index": 10, "name": "METHODOLOGY_URL", "comment": null}, "METHODOLOGY": {"type": "VARIANT", "index": 11, "name": "METHODOLOGY", "comment": null}, "PARENT_PROTOCOL": {"type": "TEXT", "index": 12, "name": "PARENT_PROTOCOL", "comment": null}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 13, "name": "PROTOCOL_SLUG", "comment": null}, "LINKED_PROTOCOLS": {"type": "VARIANT", "index": 14, "name": "LINKED_PROTOCOLS", "comment": null}, "TOTAL_24H": {"type": "FLOAT", "index": 15, "name": "TOTAL_24H", "comment": null}, "TOTAL_48H_TO_24H": {"type": "FLOAT", "index": 16, "name": "TOTAL_48H_TO_24H", "comment": null}, "TOTAL_7D": {"type": "FLOAT", "index": 17, "name": "TOTAL_7D", "comment": null}, "TOTAL_30D": {"type": "FLOAT", "index": 18, "name": "TOTAL_30D", "comment": null}, "TOTAL_ALL_TIME": {"type": "FLOAT", "index": 19, "name": "TOTAL_ALL_TIME", "comment": null}, "CHANGE_1D": {"type": "FLOAT", "index": 20, "name": "CHANGE_1D", "comment": null}, "TOTAL_DATA_CHART_BREAKDOWN": {"type": "VARIANT", "index": 21, "name": "TOTAL_DATA_CHART_BREAKDOWN", "comment": null}, "DEFILLAMA_PERP_METRICS_ID": {"type": "TEXT", "index": 22, "name": "DEFILLAMA_PERP_METRICS_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 24576, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_perp_metrics_protocol_type.4823df5948"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_stablecoin_metrics_DATE_DAY__DATE.2ef937fbbe": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "DEFILLAMA_STABLECOIN_METRICS_DATE_DAY", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_stablecoin_metrics_DATE_DAY__DATE.2ef937fbbe"}, "model.external_models.defillama__ez_stablecoin_metrics": {"metadata": {"type": "BASE TABLE", "schema": "DEFILLAMA", "name": "EZ_STABLECOIN_METRICS", "database": "EXTERNAL", "comment": "This table provides comprehensive, easy-to-use stablecoin metrics aggregated from Defillama's stablecoin data. \nIt combines stablecoin metadata (name, symbol, peg type, mechanism) with daily metrics (circulating supply, \nminted amount, bridged amounts) across different blockchain networks. The model deduplicates data by selecting \nthe latest record for each stablecoin-chain-date combination and provides a clean interface for analyzing \nstablecoin performance and adoption across various networks.\n\n**Key Features:**\n- Incremental processing for efficient data updates\n- Deduplication of multiple API calls per day\n- Cross-chain stablecoin analysis capabilities\n- Peg type and mechanism classification\n- USD-denominated metrics for easy comparison\n\n**Use Cases:**\n- Stablecoin market analysis and trends\n- Cross-chain stablecoin adoption tracking\n- DeFi protocol stablecoin usage analysis\n- Regulatory reporting on stablecoin circulation\n- Risk assessment of different peg mechanisms\n", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": "The blockchain network where the stablecoin metrics are measured. Values are normalized to lowercase \nwith spaces replaced by underscores (e.g., 'ethereum', 'hyperliquid_l1', 'polygon'). This field \nenables cross-chain analysis of stablecoin adoption and usage patterns.\n"}, "DATE_DAY": {"type": "DATE", "index": 2, "name": "DATE_DAY", "comment": "The date for which the stablecoin metrics are reported. Stored as a DATE type, this field enables \ntime-series analysis of stablecoin performance, including daily trends, seasonal patterns, and \nlong-term growth analysis.\n"}, "STABLECOIN_ID": {"type": "TEXT", "index": 3, "name": "STABLECOIN_ID", "comment": "Unique identifier for the stablecoin as defined by Defillama. This is the primary key used to link \nstablecoin metadata with daily metrics. Used for joining with stablecoin reference data to get \nadditional attributes like name, symbol, and peg mechanism.\n"}, "STABLECOIN": {"type": "TEXT", "index": 4, "name": "STABLECOIN", "comment": "The full name of the stablecoin (e.g., 'Tether USD', 'USD Coin', 'Dai'). This human-readable name \nis useful for reporting and analysis purposes, providing context for the metrics being analyzed.\n"}, "SYMBOL": {"type": "TEXT", "index": 5, "name": "SYMBOL", "comment": "The ticker symbol for the stablecoin (e.g., 'USDT', 'USDC', 'DAI'). This short identifier is \ncommonly used in trading pairs and financial reporting, making it easier to reference specific \nstablecoins in analysis.\n"}, "PEG_TYPE": {"type": "TEXT", "index": 6, "name": "PEG_TYPE", "comment": "The type of peg mechanism used by the stablecoin. Common values include 'peggedUSD', 'peggedEUR', 'peggedCNY', etc. \nThis classification helps analyze the target currency of the stablecoin and its intended use case \nin global markets.\n"}, "PEG_MECHANISM": {"type": "TEXT", "index": 7, "name": "PEG_MECHANISM", "comment": "The technical mechanism used to maintain the stablecoin's peg. Options include 'algorithmic', \n'crypto-backed', 'fiat-backed'. This field is crucial for risk assessment as different mechanisms \nhave varying levels of stability and failure modes.\n"}, "TOTAL_CIRCULATING_USD": {"type": "FLOAT", "index": 8, "name": "TOTAL_CIRCULATING_USD", "comment": "The total circulating supply of the stablecoin denominated in USD. This represents the actual \namount of the stablecoin available in the market for trading and use in DeFi protocols. \n"}, "TOTAL_MINTED_USD": {"type": "FLOAT", "index": 9, "name": "TOTAL_MINTED_USD", "comment": "The total amount of the stablecoin that has been minted (created) denominated in USD. This \nrepresents the maximum supply that has been generated, which may be different from the circulating \nsupply due to burning or other mechanisms.\n"}, "TOTAL_CIRCULATING": {"type": "FLOAT", "index": 10, "name": "TOTAL_CIRCULATING", "comment": "The total circulating supply of the stablecoin in its native units (not USD denominated). This \nprovides the raw token count that is available in the market, useful for understanding the \nactual token distribution and for calculations that require native units. See peg_type for the \nunit of the total_circulating.\n"}, "TOTAL_BRIDGED_TO_USD": {"type": "FLOAT", "index": 11, "name": "TOTAL_BRIDGED_TO_USD", "comment": "The total amount of the stablecoin that has been bridged to other networks, denominated in USD. \nThis metric is particularly important for cross-chain analysis as it shows how much of the \nstablecoin supply is available on different blockchain networks through bridging protocols.\n"}, "TOTAL_UNRELEASED": {"type": "FLOAT", "index": 12, "name": "TOTAL_UNRELEASED", "comment": "The total amount of the stablecoin that has been minted but not yet released to the market, \ndenominated in its native unit. This represents tokens that are held in reserve or locked in contracts, \nproviding insight into the stablecoin issuer's reserve management strategy. See peg_type for the \nunit of the total_unreleased.\n"}, "EZ_STABLECOIN_METRICS_ID": {"type": "TEXT", "index": 13, "name": "EZ_STABLECOIN_METRICS_ID", "comment": "A unique surrogate key generated from the combination of chain, date_day, and stablecoin_id. \nThis serves as the primary key for the table and ensures uniqueness across the combination of \nthese three critical dimensions. Generated using dbt_utils.generate_surrogate_key().\n"}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INSERTED_TIMESTAMP", "comment": "Timestamp when the record was inserted into this table. This is set to the current system time \n(SYSDATE()) when the record is created, providing an audit trail of when data was loaded.\n"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "MODIFIED_TIMESTAMP", "comment": "Timestamp when the record was last modified. Currently set to SYSDATE() on each run, this field \ncan be used for incremental processing and to track when data was last updated.\n"}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(date_day, chain)", "include": true, "description": "The key used to cluster this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 08:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 35163648, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 794364, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.defillama__ez_stablecoin_metrics"}, "test.external_models.not_null_silver__defillama_perp_metrics_protocol_id.14c6ac4f05": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PERP_METRICS_PROTOCOL_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TIMESTAMP": {"type": "DATE", "index": 1, "name": "TIMESTAMP", "comment": null}, "PROTOCOL_ID": {"type": "TEXT", "index": 2, "name": "PROTOCOL_ID", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "DISPLAY_NAME": {"type": "TEXT", "index": 5, "name": "DISPLAY_NAME", "comment": null}, "MODULE": {"type": "TEXT", "index": 6, "name": "MODULE", "comment": null}, "LOGO": {"type": "TEXT", "index": 7, "name": "LOGO", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 8, "name": "CHAINS", "comment": null}, "PROTOCOL_TYPE": {"type": "TEXT", "index": 9, "name": "PROTOCOL_TYPE", "comment": null}, "METHODOLOGY_URL": {"type": "TEXT", "index": 10, "name": "METHODOLOGY_URL", "comment": null}, "METHODOLOGY": {"type": "VARIANT", "index": 11, "name": "METHODOLOGY", "comment": null}, "PARENT_PROTOCOL": {"type": "TEXT", "index": 12, "name": "PARENT_PROTOCOL", "comment": null}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 13, "name": "PROTOCOL_SLUG", "comment": null}, "LINKED_PROTOCOLS": {"type": "VARIANT", "index": 14, "name": "LINKED_PROTOCOLS", "comment": null}, "TOTAL_24H": {"type": "FLOAT", "index": 15, "name": "TOTAL_24H", "comment": null}, "TOTAL_48H_TO_24H": {"type": "FLOAT", "index": 16, "name": "TOTAL_48H_TO_24H", "comment": null}, "TOTAL_7D": {"type": "FLOAT", "index": 17, "name": "TOTAL_7D", "comment": null}, "TOTAL_30D": {"type": "FLOAT", "index": 18, "name": "TOTAL_30D", "comment": null}, "TOTAL_ALL_TIME": {"type": "FLOAT", "index": 19, "name": "TOTAL_ALL_TIME", "comment": null}, "CHANGE_1D": {"type": "FLOAT", "index": 20, "name": "CHANGE_1D", "comment": null}, "TOTAL_DATA_CHART_BREAKDOWN": {"type": "VARIANT", "index": 21, "name": "TOTAL_DATA_CHART_BREAKDOWN", "comment": null}, "DEFILLAMA_PERP_METRICS_ID": {"type": "TEXT", "index": 22, "name": "DEFILLAMA_PERP_METRICS_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 24576, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_perp_metrics_protocol_id.14c6ac4f05"}, "model.external_models.farcaster__fact_warpcast_power_users": {"metadata": {"type": "VIEW", "schema": "FARCASTER", "name": "FACT_WARPCAST_POWER_USERS", "database": "EXTERNAL", "comment": "Represents data associated with power users, based on Warpcast power badges. For more info see [Neynar](https://docs.neynar.com/docs/how-to-query-neynar-sql-playground-for-farcaster-data) or [schema](https://github.com/farcasterxyz/hub-monorepo/tree/51c57245df8ec1c68d616dd3ab8ae5b80edf68fd/apps/replicator)", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"FID": {"type": "NUMBER", "index": 1, "name": "FID", "comment": "FID of the user that signed the message."}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "CREATED_AT", "comment": "When the row was first created in this DB (not the same as the message timestamp!)"}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "UPDATED_AT", "comment": "When the row was last updated."}, "DELETED_AT": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "DELETED_AT", "comment": "When the data was considered deleted by the hub"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.farcaster__fact_warpcast_power_users"}, "test.external_models.not_null_silver__defillama_protocol_tvl_history_timestamp.603a6ed60f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PROTOCOL_TVL_HISTORY_TIMESTAMP", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TIMESTAMP": {"type": "DATE", "index": 1, "name": "TIMESTAMP", "comment": null}, "PROTOCOL_ID": {"type": "NUMBER", "index": 2, "name": "PROTOCOL_ID", "comment": null}, "CATEGORY": {"type": "VARIANT", "index": 3, "name": "CATEGORY", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 4, "name": "PROTOCOL", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 5, "name": "SYMBOL", "comment": null}, "CHAIN": {"type": "TEXT", "index": 6, "name": "CHAIN", "comment": null}, "CHAIN_TVL": {"type": "NUMBER", "index": 7, "name": "CHAIN_TVL", "comment": null}, "CHAIN_TVL_PREV_DAY": {"type": "NUMBER", "index": 8, "name": "CHAIN_TVL_PREV_DAY", "comment": null}, "CHAIN_TVL_PREV_WEEK": {"type": "NUMBER", "index": 9, "name": "CHAIN_TVL_PREV_WEEK", "comment": null}, "CHAIN_TVL_PREV_MONTH": {"type": "NUMBER", "index": 10, "name": "CHAIN_TVL_PREV_MONTH", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DEFILLAMA_PROTOCOL_TVL_HISTORY_ID": {"type": "TEXT", "index": 12, "name": "DEFILLAMA_PROTOCOL_TVL_HISTORY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 15, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_protocol_tvl_history_timestamp.603a6ed60f"}, "test.external_models.not_null_silver__artemis_artemis_id.d82126688b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "ARTEMIS_ARTEMIS_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"METRIC_DATE": {"type": "DATE", "index": 1, "name": "METRIC_DATE", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": null}, "METRIC": {"type": "TEXT", "index": 3, "name": "METRIC", "comment": null}, "METRIC_VALUE": {"type": "VARIANT", "index": 4, "name": "METRIC_VALUE", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 5, "name": "PARTITION_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "FILE_NAME": {"type": "TEXT", "index": 7, "name": "FILE_NAME", "comment": null}, "ARTEMIS_ID": {"type": "TEXT", "index": 8, "name": "ARTEMIS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 11, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__artemis_artemis_id.d82126688b"}, "test.external_models.not_null_bronze__defillama_bridges__INSERTED_TIMESTAMP.cf3a9c3ab5": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "DEFILLAMA_BRIDGES", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BRIDGE_ID": {"type": "TEXT", "index": 1, "name": "BRIDGE_ID", "comment": null}, "BRIDGE": {"type": "TEXT", "index": 2, "name": "BRIDGE", "comment": null}, "BRIDGE_NAME": {"type": "TEXT", "index": 3, "name": "BRIDGE_NAME", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 4, "name": "CHAINS", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 5, "name": "DESTINATION_CHAIN", "comment": null}, "ROW_NUM": {"type": "NUMBER", "index": 6, "name": "ROW_NUM", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__defillama_bridges__INSERTED_TIMESTAMP.cf3a9c3ab5"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocol_revenue__INSERTED_TIMESTAMP__day__2.9255e527b7": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER", "name": "DEFILLAMA_PROTOCOL_REVENUE", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocol_revenue__INSERTED_TIMESTAMP__day__2.9255e527b7"}, "model.external_models.avalanche__fact_p_transactions": {"metadata": {"type": "VIEW", "schema": "AVALANCHE", "name": "FACT_P_TRANSACTIONS", "database": "EXTERNAL", "comment": "Avalanche P-Chain Transactions. Please visit https://discord.gg/avax for any questions.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TRANSACTION_HASH": {"type": "TEXT", "index": 1, "name": "TRANSACTION_HASH", "comment": "Unique identifier for the transaction"}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "TIMESTAMP", "comment": "Timestamp of the transaction"}, "TYPE": {"type": "TEXT", "index": 3, "name": "TYPE", "comment": "Type of transaction (e.g. import, export, reward, etc.)"}, "BLOCK_HASH": {"type": "TEXT", "index": 4, "name": "BLOCK_HASH", "comment": "Hash of the block containing the transaction"}, "BLOCK_INDEX": {"type": "NUMBER", "index": 5, "name": "BLOCK_INDEX", "comment": "Index of the block in which the transaction occured"}, "BLOCK_HEIGHT": {"type": "NUMBER", "index": 6, "name": "BLOCK_HEIGHT", "comment": "Height of the block in the blockchain"}, "MEMO": {"type": "TEXT", "index": 7, "name": "MEMO", "comment": "Optional memo associated with the transaction"}, "FEE": {"type": "NUMBER", "index": 8, "name": "FEE", "comment": "Minimum amount of nAVAX that must be burned for a transaction to be accepted"}, "SOURCE_CHAIN": {"type": "TEXT", "index": 9, "name": "SOURCE_CHAIN", "comment": "Source chain for cross-chain transactions"}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 10, "name": "DESTINATION_CHAIN", "comment": "Destination chain for cross-chain transactions"}, "REWARDED": {"type": "BOOLEAN", "index": 11, "name": "REWARDED", "comment": "Indicates if the transaction earned staking rewards"}, "POTENTIAL_REWARD": {"type": "NUMBER", "index": 12, "name": "POTENTIAL_REWARD", "comment": "Potential reward amount for staking transactions"}, "SUBNET_ID": {"type": "TEXT", "index": 13, "name": "SUBNET_ID", "comment": "Subnet ID associated with the transaction"}, "START_TIME": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "START_TIME", "comment": "Timestamp of the start of the transaction"}, "END_TIME": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "END_TIME", "comment": "Timestamp of the end of the transaction"}, "METADATA": {"type": "TEXT", "index": 16, "name": "METADATA", "comment": "Metadata associated with the transaction"}, "BYTES": {"type": "BINARY", "index": 17, "name": "BYTES", "comment": "Binary data associated with the transaction"}, "LAST_UPDATED": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "LAST_UPDATED", "comment": "Timestamp of the last update to this record"}, "LOAD_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "LOAD_TIMESTAMP", "comment": "Timestamp when data was loaded into Snowflake"}, "IS_LINEAR": {"type": "BOOLEAN", "index": 20, "name": "IS_LINEAR", "comment": "Indicates if the transaction is linear"}, "TX_BLOCK_POSITION": {"type": "NUMBER", "index": 21, "name": "TX_BLOCK_POSITION", "comment": "Position of the transaction in the block"}, "REMOVAL_TIME": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "REMOVAL_TIME", "comment": "Timestamp of the removal of the validator"}, "REMOVAL_TX_HASH": {"type": "TEXT", "index": 23, "name": "REMOVAL_TX_HASH", "comment": "Hash of the removal transaction"}, "STAKING_TX_HASH": {"type": "TEXT", "index": 24, "name": "STAKING_TX_HASH", "comment": "Hash of the staking transaction"}, "NODE_ID": {"type": "TEXT", "index": 25, "name": "NODE_ID", "comment": "Validator node ID associated with staking transactions"}, "REWARD_ADDRESSES": {"type": "VARIANT", "index": 26, "name": "REWARD_ADDRESSES", "comment": "List of addresses receiving staking rewards"}, "L1_VALIDATOR_REMAINING_BALANCE_OWNER_BYTES": {"type": "BINARY", "index": 27, "name": "L1_VALIDATOR_REMAINING_BALANCE_OWNER_BYTES", "comment": "Binary representation of the remaining balance owner"}, "L1_MANAGER_BLOCKCHAIN_ID": {"type": "TEXT", "index": 28, "name": "L1_MANAGER_BLOCKCHAIN_ID", "comment": "Blockchain ID of the L1 manager"}, "L1_MANAGER_CONTRACT_ADDRESS": {"type": "TEXT", "index": 29, "name": "L1_MANAGER_CONTRACT_ADDRESS", "comment": "Address of the L1 manager contract"}, "L1_VALIDATION_ID": {"type": "TEXT", "index": 30, "name": "L1_VALIDATION_ID", "comment": "Unique identifier for an Avalanche L1 Valdiator (not primary network)"}, "L1_VALIDATOR_IS_ACTIVE": {"type": "BOOLEAN", "index": 31, "name": "L1_VALIDATOR_IS_ACTIVE", "comment": "Indicates if the validator is currently active"}, "L1_VALIDATOR_PAYG_BALANCE": {"type": "NUMBER", "index": 32, "name": "L1_VALIDATOR_PAYG_BALANCE", "comment": "Registered Avalanche L1 Validator (not primary network) pay-as-you-go balance in the transaction"}, "L1_VALIDATOR_WEIGHT": {"type": "NUMBER", "index": 33, "name": "L1_VALIDATOR_WEIGHT", "comment": "Stake weight of the validator"}, "L1_VALIDATOR_END_ACCUMULATED_FEE": {"type": "NUMBER", "index": 34, "name": "L1_VALIDATOR_END_ACCUMULATED_FEE", "comment": "The value of the accrued fee for a given L1 Validator when its full balance has been reached."}, "L1_VALIDATOR_ACCRUED_FEES": {"type": "NUMBER", "index": 35, "name": "L1_VALIDATOR_ACCRUED_FEES", "comment": "A fee counter that applies to the balance of all active Avalanche L1 Validators (non-primary network)"}, "L1_VALIDATOR_ACTIVE_COUNT": {"type": "NUMBER", "index": 36, "name": "L1_VALIDATOR_ACTIVE_COUNT", "comment": "Active validators at the time of transaction"}, "GAS_USED": {"type": "NUMBER", "index": 37, "name": "GAS_USED", "comment": "The total amount of gas or computational units expended by a transaction. Data provided post Etna Upgrade (12/16/24)"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.avalanche__fact_p_transactions"}, "model.external_models.artemis__active_users": {"metadata": {"type": "BASE TABLE", "schema": "ARTEMIS", "name": "ACTIVE_USERS", "database": "EXTERNAL", "comment": "This model returns the number of active users for each blockchain and block date", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": "The blockchain where active users are counted from."}, "METRIC": {"type": "TEXT", "index": 2, "name": "METRIC", "comment": "The metric name is always set as 'active_users'"}, "DESCRIPTION": {"type": "TEXT", "index": 3, "name": "DESCRIPTION", "comment": "The metric description"}, "BLOCK_DATE": {"type": "DATE", "index": 4, "name": "BLOCK_DATE", "comment": "The date as of which the active users are counted."}, "ACTIVE_USERS": {"type": "NUMBER", "index": 5, "name": "ACTIVE_USERS", "comment": "The number of active users for the given blockchain and as of date."}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "ACTIVE_USERS_ID": {"type": "TEXT", "index": 7, "name": "ACTIVE_USERS_ID", "comment": "The surrogate key for the tx count."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 10, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 08:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 253952, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5732, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.artemis__active_users"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_date__DATE.fb8b5499bd": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "DEFILLAMA_PERP_DAILY_VOLUME_DATE", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_date__DATE.fb8b5499bd"}, "test.external_models.not_null_silver__defillama_raises_FUNDING_DATE.055464c7e9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_RAISES_FUNDING_DATE", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"FUNDING_DATE": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "FUNDING_DATE", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 2, "name": "PROJECT_NAME", "comment": null}, "FUNDING_ROUND": {"type": "TEXT", "index": 3, "name": "FUNDING_ROUND", "comment": null}, "AMOUNT_RAISED": {"type": "FLOAT", "index": 4, "name": "AMOUNT_RAISED", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 5, "name": "CHAINS", "comment": null}, "SECTOR": {"type": "TEXT", "index": 6, "name": "SECTOR", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 7, "name": "CATEGORY", "comment": null}, "CATEGORY_GROUP": {"type": "TEXT", "index": 8, "name": "CATEGORY_GROUP", "comment": null}, "SOURCE": {"type": "TEXT", "index": 9, "name": "SOURCE", "comment": null}, "LEAD_INVESTORS": {"type": "VARIANT", "index": 10, "name": "LEAD_INVESTORS", "comment": null}, "OTHER_INVESTORS": {"type": "VARIANT", "index": 11, "name": "OTHER_INVESTORS", "comment": null}, "VALUATION": {"type": "NUMBER", "index": 12, "name": "VALUATION", "comment": null}, "DEFILLAMA_ID": {"type": "TEXT", "index": 13, "name": "DEFILLAMA_ID", "comment": null}, "RAISE_ID": {"type": "TEXT", "index": 14, "name": "RAISE_ID", "comment": null}, "DEFILLAMA_RAISES_ID": {"type": "TEXT", "index": 15, "name": "DEFILLAMA_RAISES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 19, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_raises_FUNDING_DATE.055464c7e9"}, "model.external_models.defillama__fact_usdt_usdc_supply": {"metadata": {"type": "VIEW", "schema": "DEFILLAMA", "name": "FACT_USDT_USDC_SUPPLY", "database": "EXTERNAL", "comment": "Daily USDT and USDC supply metrics across different blockchains", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "DATE", "comment": "Date of the supply data point"}, "STABLECOIN_ID": {"type": "NUMBER", "index": 2, "name": "STABLECOIN_ID", "comment": "Unique identifier for the stablecoin from Defillama"}, "STABLECOIN": {"type": "TEXT", "index": 3, "name": "STABLECOIN", "comment": "Name of the stablecoin"}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": "Token symbol (USDC or USDT)"}, "CHAIN": {"type": "TEXT", "index": 5, "name": "CHAIN", "comment": "Blockchain network where the stablecoin is deployed"}, "TOTAL_BRIDGED_USD": {"type": "FLOAT", "index": 6, "name": "TOTAL_BRIDGED_USD", "comment": "Total value of bridged stablecoins in USD"}, "TOTAL_CIRCULATING": {"type": "FLOAT", "index": 7, "name": "TOTAL_CIRCULATING", "comment": "Total circulating supply of the stablecoin"}, "TOTAL_CIRCULATING_USD": {"type": "FLOAT", "index": 8, "name": "TOTAL_CIRCULATING_USD", "comment": "Total circulating supply in USD value"}, "DEFILLAMA_FACT_USDT_USDC_SUPPLY_ID": {"type": "TEXT", "index": 9, "name": "DEFILLAMA_FACT_USDT_USDC_SUPPLY_ID", "comment": "Unique identifier for this record"}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": "Timestamp when the record was inserted"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": "Timestamp when the record was last modified"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.defillama__fact_usdt_usdc_supply"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocol_revenue__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.2025c52a03": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "DEFILLAMA_PROTOCOL_REVENUE", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocol_revenue__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.2025c52a03"}, "model.external_models.deepnftvalue__fact_tokens": {"metadata": {"type": "VIEW", "schema": "DEEPNFTVALUE", "name": "FACT_TOKENS", "database": "EXTERNAL", "comment": "This table contains a row for each token in the Bored Ape Yacht Club, Mutant Ape Yacht Club, Azuki, and CryptoPunks collections. The table is updated daily and pulled from DeepNFTValue's Tokens API.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"COLLECTION_NAME": {"type": "TEXT", "index": 1, "name": "COLLECTION_NAME", "comment": "Name of NFT collection, e.g. Azuki or CryptoPunks."}, "COLLECTION_ADDRESS": {"type": "TEXT", "index": 2, "name": "COLLECTION_ADDRESS", "comment": "Contract address of NFT collection."}, "TOKEN_ID": {"type": "NUMBER", "index": 3, "name": "TOKEN_ID", "comment": "Token ID of NFT."}, "ACTIVE_OFFER": {"type": "VARIANT", "index": 4, "name": "ACTIVE_OFFER", "comment": "Includes information about the active offer for the token, if any."}, "ATTRIBUTES": {"type": "VARIANT", "index": 5, "name": "ATTRIBUTES", "comment": "Attributes of NFT collection."}, "ATTRIBUTES_SYNTHETIC": {"type": "VARIANT", "index": 6, "name": "ATTRIBUTES_SYNTHETIC", "comment": ""}, "IMAGE": {"type": "VARIANT", "index": 7, "name": "IMAGE", "comment": "Image URL of NFT."}, "IS_FLAGGED": {"type": "BOOLEAN", "index": 8, "name": "IS_FLAGGED", "comment": "Indicates whether the token is flagged."}, "LAST_SALE": {"type": "OBJECT", "index": 9, "name": "LAST_SALE", "comment": ""}, "OWNER": {"type": "OBJECT", "index": 10, "name": "OWNER", "comment": "Address of token owner and ENS name, if available."}, "RARITY": {"type": "FLOAT", "index": 11, "name": "RARITY", "comment": "Rarity of NFT."}, "RARITY_RANK": {"type": "NUMBER", "index": 12, "name": "RARITY_RANK", "comment": "Rarity rank of NFT."}, "TOP_BID": {"type": "OBJECT", "index": 13, "name": "TOP_BID", "comment": "Includes information about the top bid for the token, if any."}, "VALUATION": {"type": "OBJECT", "index": 14, "name": "VALUATION", "comment": "Valuation of NFT, as of updated_timestamp."}, "UPDATED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "UPDATED_TIMESTAMP", "comment": "Timestamp of the last update for the token."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.deepnftvalue__fact_tokens"}, "test.external_models.not_null_bronze__snapshot_votes__INSERTED_TIMESTAMP.22e6f3ebe5": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "SNAPSHOT_VOTES", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": null}, "IPFS": {"type": "TEXT", "index": 2, "name": "IPFS", "comment": null}, "PROPOSAL_ID": {"type": "TEXT", "index": 3, "name": "PROPOSAL_ID", "comment": null}, "VOTER": {"type": "TEXT", "index": 4, "name": "VOTER", "comment": null}, "VOTING_POWER": {"type": "NUMBER", "index": 5, "name": "VOTING_POWER", "comment": null}, "VOTE_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "VOTE_TIMESTAMP", "comment": null}, "VOTE_OPTION": {"type": "ARRAY", "index": 7, "name": "VOTE_OPTION", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__snapshot_votes__INSERTED_TIMESTAMP.22e6f3ebe5"}, "test.external_models.dbt_utils_unique_combination_of_columns_bronze__snapshot_proposals_PROPOSAL_ID.4df591b4ac": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_BRONZE", "name": "SNAPSHOT_PROPOSALS_PROPOSAL_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROPOSAL_ID": {"type": "TEXT", "index": 1, "name": "PROPOSAL_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bronze__snapshot_proposals_PROPOSAL_ID.4df591b4ac"}, "model.external_models.flashbots__fact_mevshare_transactions": {"metadata": {"type": "VIEW", "schema": "FLASHBOTS", "name": "FACT_MEVSHARE_TRANSACTIONS", "database": "EXTERNAL", "comment": "This table records all the landed backrun transactions on MEV-share, and its original user transaction that is being backrun, as well as the refund transaction where block builder send searcher's refund back to originating user. These 3 transactions are settled in a bundle with the order of `(user_tx, backrun_tx, refund_tx)`.\nMEV-share is the Order Flow Auction (OFA) product from Flashbots, resharing MEV profits back to users, with parameterized privacy features. MEV-share inherit orderflow coming from Flashbots Protect RPC endpoint. Read more in [Flashbots docs](https://docs.flashbots.net/flashbots-protect/mev-share)!\nPlease reach out to the Flashbots team for any data discrepancies or questions.\n", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": "The number of the block in which transactions were included."}, "BLOCK_TIME": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIME", "comment": "The timestamp for when the block was mined."}, "BLOCK_HASH": {"type": "TEXT", "index": 3, "name": "BLOCK_HASH", "comment": "The hash of the block in which the MEV-share transactions landed."}, "EXTRA_DATA": {"type": "TEXT", "index": 4, "name": "EXTRA_DATA", "comment": "Additional data included in the block, often used for identifying the block builder."}, "FEE_RECIPIENT_ADDRESS": {"type": "TEXT", "index": 5, "name": "FEE_RECIPIENT_ADDRESS", "comment": "The Ethereum address of the recipient of block rewards, which can be the block builder or validator."}, "BUNDLE_ID": {"type": "NUMBER", "index": 6, "name": "BUNDLE_ID", "comment": "A row number partitioned by (`user_tx_hash`, `backrun_tx_hash`) to use as part of the deterministic id for refund bundles."}, "USER_TX_HASH": {"type": "TEXT", "index": 7, "name": "USER_TX_HASH", "comment": "The Ethereum hash of the user's protect transaction."}, "USER_TX_FROM": {"type": "TEXT", "index": 8, "name": "USER_TX_FROM", "comment": "The Ethereum address of the sender of the protect transaction."}, "USER_TX_TO": {"type": "TEXT", "index": 9, "name": "USER_TX_TO", "comment": "The Ethereum address of the recipient of the protect transaction."}, "BACKRUN_TX_HASH": {"type": "TEXT", "index": 10, "name": "BACKRUN_TX_HASH", "comment": "The Ethereum hash of the transaction that backran the user's transaction in MEV-share OFA."}, "BACKRUN_TX_FROM": {"type": "TEXT", "index": 11, "name": "BACKRUN_TX_FROM", "comment": "The Ethereum address of the sender of the backrunning transaction."}, "BACKRUN_TX_TO": {"type": "TEXT", "index": 12, "name": "BACKRUN_TX_TO", "comment": "The Ethereum address of the recipient of the backrunning transaction."}, "REFUND_TX_HASH": {"type": "TEXT", "index": 13, "name": "REFUND_TX_HASH", "comment": "The Ethereum hash of the refund transaction."}, "REFUND_FROM": {"type": "TEXT", "index": 14, "name": "REFUND_FROM", "comment": ""}, "REFUND_TO": {"type": "TEXT", "index": 15, "name": "REFUND_TO", "comment": ""}, "REFUND_VALUE_ETH": {"type": "TEXT", "index": 16, "name": "REFUND_VALUE_ETH", "comment": "The amount of ETH refunded to the protect transaction, as a result of a successful OFA backrun, depending on user's refund percentage setting when sending the transaction."}, "IS_MEVSHARE": {"type": "BOOLEAN", "index": 17, "name": "IS_MEVSHARE", "comment": "If true, mev-share matched the transactions in the bundle. If false, it was sent pre-matched from a third party to mev-share."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.flashbots__fact_mevshare_transactions"}, "model.external_models.artemis__tx_count": {"metadata": {"type": "BASE TABLE", "schema": "ARTEMIS", "name": "TX_COUNT", "database": "EXTERNAL", "comment": "This model returns the number of transactions for each blockchain and block date", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": "The blockchain where tx count is counted from."}, "METRIC": {"type": "TEXT", "index": 2, "name": "METRIC", "comment": "The metric name is always set as 'tx_count'"}, "DESCRIPTION": {"type": "TEXT", "index": 3, "name": "DESCRIPTION", "comment": "The metric description"}, "BLOCK_DATE": {"type": "DATE", "index": 4, "name": "BLOCK_DATE", "comment": "The date as of which the tx count is counted."}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": "The number of tx count for the given blockchain and as of date."}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "TX_COUNT_ID": {"type": "TEXT", "index": 7, "name": "TX_COUNT_ID", "comment": "The surrogate key for the tx count."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 10, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 08:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 205824, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 4565, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.artemis__tx_count"}, "test.external_models.not_null_silver__snapshot_votes_VOTE_OPTION.749d690de9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SNAPSHOT_VOTES_VOTE_OPTION", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"VOTE_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "VOTE_TIMESTAMP", "comment": null}, "VOTER": {"type": "TEXT", "index": 2, "name": "VOTER", "comment": null}, "PROPOSAL_ID": {"type": "TEXT", "index": 3, "name": "PROPOSAL_ID", "comment": null}, "VOTE_OPTION": {"type": "ARRAY", "index": 4, "name": "VOTE_OPTION", "comment": null}, "VOTING_POWER": {"type": "NUMBER", "index": 5, "name": "VOTING_POWER", "comment": null}, "IPFS": {"type": "TEXT", "index": 6, "name": "IPFS", "comment": null}, "VOTE_ID": {"type": "TEXT", "index": 7, "name": "VOTE_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__snapshot_votes_VOTE_OPTION.749d690de9"}, "test.external_models.not_null_bronze__defillama_protocol_tvl__INSERTED_TIMESTAMP.2237722b25": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "DEFILLAMA_PROTOCOL_TVL", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TIMESTAMP": {"type": "DATE", "index": 1, "name": "TIMESTAMP", "comment": null}, "PROTOCOL_ID": {"type": "TEXT", "index": 2, "name": "PROTOCOL_ID", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "MARKET_CAP": {"type": "FLOAT", "index": 5, "name": "MARKET_CAP", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 6, "name": "SYMBOL", "comment": null}, "TVL": {"type": "FLOAT", "index": 7, "name": "TVL", "comment": null}, "TVL_PREV_DAY": {"type": "FLOAT", "index": 8, "name": "TVL_PREV_DAY", "comment": null}, "TVL_PREV_WEEK": {"type": "FLOAT", "index": 9, "name": "TVL_PREV_WEEK", "comment": null}, "TVL_PREV_MONTH": {"type": "FLOAT", "index": 10, "name": "TVL_PREV_MONTH", "comment": null}, "CHAIN": {"type": "TEXT", "index": 11, "name": "CHAIN", "comment": null}, "CHAIN_TVL": {"type": "NUMBER", "index": 12, "name": "CHAIN_TVL", "comment": null}, "CHAIN_TVL_PREV_DAY": {"type": "NUMBER", "index": 13, "name": "CHAIN_TVL_PREV_DAY", "comment": null}, "CHAIN_TVL_PREV_WEEK": {"type": "NUMBER", "index": 14, "name": "CHAIN_TVL_PREV_WEEK", "comment": null}, "CHAIN_TVL_PREV_MONTH": {"type": "NUMBER", "index": 15, "name": "CHAIN_TVL_PREV_MONTH", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__defillama_protocol_tvl__INSERTED_TIMESTAMP.2237722b25"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_chainlist__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.d348817d21": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_BRONZE", "name": "DEFILLAMA_CHAINLIST", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_chainlist__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.d348817d21"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_inserted_timestamp__TIMESTAMP_NTZ.c65246177c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "DEFILLAMA_PERP_METRICS_INSERTED_TIMESTAMP", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_inserted_timestamp__TIMESTAMP_NTZ.c65246177c"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_chains_tvl_CHAIN__TIMESTAMP.1bc2091543": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "DEFILLAMA_CHAINS_TVL_CHAIN", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_chains_tvl_CHAIN__TIMESTAMP.1bc2091543"}, "model.external_models.silver__flashbots_mev_txs": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "FLASHBOTS_MEV_TXS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": ""}, "BLOCK_TIME": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIME", "comment": ""}, "BLOCK_HASH": {"type": "TEXT", "index": 3, "name": "BLOCK_HASH", "comment": ""}, "EXTRA_DATA": {"type": "TEXT", "index": 4, "name": "EXTRA_DATA", "comment": ""}, "FEE_RECIPIENT_ADDRESS": {"type": "TEXT", "index": 5, "name": "FEE_RECIPIENT_ADDRESS", "comment": ""}, "BUNDLE_ID": {"type": "NUMBER", "index": 6, "name": "BUNDLE_ID", "comment": ""}, "USER_TX_HASH": {"type": "TEXT", "index": 7, "name": "USER_TX_HASH", "comment": ""}, "USER_TX_FROM": {"type": "TEXT", "index": 8, "name": "USER_TX_FROM", "comment": ""}, "USER_TX_TO": {"type": "TEXT", "index": 9, "name": "USER_TX_TO", "comment": ""}, "BACKRUN_TX_HASH": {"type": "TEXT", "index": 10, "name": "BACKRUN_TX_HASH", "comment": ""}, "BACKRUN_TX_FROM": {"type": "TEXT", "index": 11, "name": "BACKRUN_TX_FROM", "comment": ""}, "BACKRUN_TX_TO": {"type": "TEXT", "index": 12, "name": "BACKRUN_TX_TO", "comment": ""}, "REFUND_TX_HASH": {"type": "TEXT", "index": 13, "name": "REFUND_TX_HASH", "comment": ""}, "REFUND_FROM": {"type": "TEXT", "index": 14, "name": "REFUND_FROM", "comment": ""}, "REFUND_TO": {"type": "TEXT", "index": 15, "name": "REFUND_TO", "comment": ""}, "REFUND_VALUE_ETH": {"type": "TEXT", "index": 16, "name": "REFUND_VALUE_ETH", "comment": ""}, "IS_MEVSHARE": {"type": "BOOLEAN", "index": 17, "name": "IS_MEVSHARE", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "_ID": {"type": "TEXT", "index": 19, "name": "_ID", "comment": ""}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(round(block_number,-3))", "include": true, "description": "The key used to cluster this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 16:17UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 30507520, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 111928, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver__flashbots_mev_txs"}, "model.external_models.bronze_aptos__shinam_data": {"metadata": {"type": "VIEW", "schema": "BRONZE_APTOS", "name": "SHINAM_DATA", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"METRIC_DATE": {"type": "DATE", "index": 1, "name": "METRIC_DATE", "comment": ""}, "FUND_NAME": {"type": "TEXT", "index": 2, "name": "FUND_NAME", "comment": ""}, "WORKSPACE_NAME": {"type": "TEXT", "index": 3, "name": "WORKSPACE_NAME", "comment": ""}, "CONTACT_EMAIL": {"type": "TEXT", "index": 4, "name": "CONTACT_EMAIL", "comment": ""}, "FUND_BALANCE_REMAINING": {"type": "NUMBER", "index": 5, "name": "FUND_BALANCE_REMAINING", "comment": ""}, "TOTAL_SPONSORSHIPS": {"type": "NUMBER", "index": 6, "name": "TOTAL_SPONSORSHIPS", "comment": ""}, "TOTAL_FEES": {"type": "NUMBER", "index": 7, "name": "TOTAL_FEES", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze_aptos__shinam_data"}, "test.external_models.not_null_bronze__snapshot_votes_ID.03d01283f1": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "SNAPSHOT_VOTES_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": null}, "IPFS": {"type": "TEXT", "index": 2, "name": "IPFS", "comment": null}, "PROPOSAL_ID": {"type": "TEXT", "index": 3, "name": "PROPOSAL_ID", "comment": null}, "VOTER": {"type": "TEXT", "index": 4, "name": "VOTER", "comment": null}, "VOTING_POWER": {"type": "NUMBER", "index": 5, "name": "VOTING_POWER", "comment": null}, "VOTE_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "VOTE_TIMESTAMP", "comment": null}, "VOTE_OPTION": {"type": "ARRAY", "index": 7, "name": "VOTE_OPTION", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__snapshot_votes_ID.03d01283f1"}, "model.external_models.tokenlists__ez_verified_tokens": {"metadata": {"type": "VIEW", "schema": "TOKENLISTS", "name": "EZ_VERIFIED_TOKENS", "database": "EXTERNAL", "comment": "A Uniswap Project, Token Lists is a community-led initiative to improve discoverability, reputation and trust in ERC20 token lists in a manner that is inclusive, transparent, and decentralized. This table contains dimensional information about the tokens listed on https://tokenlists.org/. This EZ view joins in Defillama's dim_chains for additional chain metadata.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TOKEN_ADDRESS": {"type": "TEXT", "index": 1, "name": "TOKEN_ADDRESS", "comment": "The address of the token."}, "NAME": {"type": "TEXT", "index": 2, "name": "NAME", "comment": "The name of the token."}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": "The symbol of the token."}, "DECIMALS": {"type": "TEXT", "index": 4, "name": "DECIMALS", "comment": "The number of decimals of the token."}, "CHAIN_ID": {"type": "TEXT", "index": 5, "name": "CHAIN_ID", "comment": "The unique identifier of the chain where the token is deployed."}, "CHAIN_NAME": {"type": "TEXT", "index": 6, "name": "CHAIN_NAME", "comment": "The name of the chain where the token is deployed. This is derived from `defillama.dim_chains`."}, "CHAIN_SYMBOL": {"type": "TEXT", "index": 7, "name": "CHAIN_SYMBOL", "comment": "The official abbreviation or symbol representing the blockchain. This is derived from `defillama.dim_chains`."}, "TOKEN_EXTENSIONS": {"type": "VARIANT", "index": 8, "name": "TOKEN_EXTENSIONS", "comment": "Extended token information, including mappings of the tokens on other chains."}, "PROVIDER": {"type": "TEXT", "index": 9, "name": "PROVIDER", "comment": "The provider of the token list."}, "LIST_METADATA": {"type": "VARIANT", "index": 10, "name": "LIST_METADATA", "comment": "The metadata of the token list."}, "EZ_VERIFIED_TOKENS_ID": {"type": "TEXT", "index": 11, "name": "EZ_VERIFIED_TOKENS_ID", "comment": "The unique identifier for each row in the table."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "INSERTED_TIMESTAMP", "comment": "The utc timestamp at which the row was inserted into the table."}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "MODIFIED_TIMESTAMP", "comment": "The utc timestamp at which the row was last modified."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.tokenlists__ez_verified_tokens"}, "model.external_models.defillama__dim_perps": {"metadata": {"type": "VIEW", "schema": "DEFILLAMA", "name": "DIM_PERPS", "database": "EXTERNAL", "comment": "This table contains dimensional information about the perpetual protocols listed on Defillama.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROTOCOL_ID": {"type": "TEXT", "index": 1, "name": "PROTOCOL_ID", "comment": "Unique identifier of the protocol from Defillama."}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 2, "name": "PROTOCOL_SLUG", "comment": "URL-friendly slug identifier for the protocol."}, "PROTOCOL": {"type": "TEXT", "index": 3, "name": "PROTOCOL", "comment": "Name of the protocol."}, "CATEGORY": {"type": "TEXT", "index": 4, "name": "CATEGORY", "comment": "The category of protocol (e.g. Dexes, Options, Yield, Derivatives etc.)."}, "CHAINS": {"type": "VARIANT", "index": 5, "name": "CHAINS", "comment": "Array of the various chains or networks that the protocol is deployed on."}, "PARENT_PROTOCOL": {"type": "TEXT", "index": 6, "name": "PARENT_PROTOCOL", "comment": "Parent protocol identifier if this is a sub-protocol."}, "LINKED_PROTOCOLS": {"type": "VARIANT", "index": 7, "name": "LINKED_PROTOCOLS", "comment": "Array of related or linked protocols."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.defillama__dim_perps"}, "test.external_models.not_null_bronze__defillama_stablecoins_STABLECOIN_ID.2e0b05c5d2": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "DEFILLAMA_STABLECOINS_STABLECOIN_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"STABLECOIN_ID": {"type": "TEXT", "index": 1, "name": "STABLECOIN_ID", "comment": null}, "STABLECOIN": {"type": "TEXT", "index": 2, "name": "STABLECOIN", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": null}, "PEG_TYPE": {"type": "TEXT", "index": 4, "name": "PEG_TYPE", "comment": null}, "PEG_MECHANISM": {"type": "TEXT", "index": 5, "name": "PEG_MECHANISM", "comment": null}, "PRICE_SOURCE": {"type": "TEXT", "index": 6, "name": "PRICE_SOURCE", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 7, "name": "CHAINS", "comment": null}, "ROW_NUM": {"type": "NUMBER", "index": 8, "name": "ROW_NUM", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__defillama_stablecoins_STABLECOIN_ID.2e0b05c5d2"}, "test.external_models.not_null_silver__defillama_perp_metrics_logo.cd14f778d5": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PERP_METRICS_LOGO", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TIMESTAMP": {"type": "DATE", "index": 1, "name": "TIMESTAMP", "comment": null}, "PROTOCOL_ID": {"type": "TEXT", "index": 2, "name": "PROTOCOL_ID", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "DISPLAY_NAME": {"type": "TEXT", "index": 5, "name": "DISPLAY_NAME", "comment": null}, "MODULE": {"type": "TEXT", "index": 6, "name": "MODULE", "comment": null}, "LOGO": {"type": "TEXT", "index": 7, "name": "LOGO", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 8, "name": "CHAINS", "comment": null}, "PROTOCOL_TYPE": {"type": "TEXT", "index": 9, "name": "PROTOCOL_TYPE", "comment": null}, "METHODOLOGY_URL": {"type": "TEXT", "index": 10, "name": "METHODOLOGY_URL", "comment": null}, "METHODOLOGY": {"type": "VARIANT", "index": 11, "name": "METHODOLOGY", "comment": null}, "PARENT_PROTOCOL": {"type": "TEXT", "index": 12, "name": "PARENT_PROTOCOL", "comment": null}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 13, "name": "PROTOCOL_SLUG", "comment": null}, "LINKED_PROTOCOLS": {"type": "VARIANT", "index": 14, "name": "LINKED_PROTOCOLS", "comment": null}, "TOTAL_24H": {"type": "FLOAT", "index": 15, "name": "TOTAL_24H", "comment": null}, "TOTAL_48H_TO_24H": {"type": "FLOAT", "index": 16, "name": "TOTAL_48H_TO_24H", "comment": null}, "TOTAL_7D": {"type": "FLOAT", "index": 17, "name": "TOTAL_7D", "comment": null}, "TOTAL_30D": {"type": "FLOAT", "index": 18, "name": "TOTAL_30D", "comment": null}, "TOTAL_ALL_TIME": {"type": "FLOAT", "index": 19, "name": "TOTAL_ALL_TIME", "comment": null}, "CHANGE_1D": {"type": "FLOAT", "index": 20, "name": "CHANGE_1D", "comment": null}, "TOTAL_DATA_CHART_BREAKDOWN": {"type": "VARIANT", "index": 21, "name": "TOTAL_DATA_CHART_BREAKDOWN", "comment": null}, "DEFILLAMA_PERP_METRICS_ID": {"type": "TEXT", "index": 22, "name": "DEFILLAMA_PERP_METRICS_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 24576, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_perp_metrics_logo.cd14f778d5"}, "test.external_models.not_null_silver__snapshot_users_ADDRESS.1dd18cb68e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SNAPSHOT_USERS_ADDRESS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": null}, "NAME": {"type": "TEXT", "index": 2, "name": "NAME", "comment": null}, "ABOUT": {"type": "TEXT", "index": 3, "name": "ABOUT", "comment": null}, "AVATAR": {"type": "TEXT", "index": 4, "name": "AVATAR", "comment": null}, "IPFS": {"type": "TEXT", "index": 5, "name": "IPFS", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "CREATED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__snapshot_users_ADDRESS.1dd18cb68e"}, "test.external_models.not_null_silver__defillama_dex_volume_CHAIN.99ef0dec7d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_DEX_VOLUME_CHAIN", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "TIMESTAMP", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 3, "name": "PROTOCOL", "comment": null}, "DAILY_VOLUME": {"type": "NUMBER", "index": 4, "name": "DAILY_VOLUME", "comment": null}, "DEX_OBJECT": {"type": "VARIANT", "index": 5, "name": "DEX_OBJECT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ID": {"type": "TEXT", "index": 7, "name": "ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_dex_volume_CHAIN.99ef0dec7d"}, "test.external_models.not_null_bronze__snapshot_proposals_SPACE_ID.226caec17f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "SNAPSHOT_PROPOSALS_SPACE_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROPOSAL_ID": {"type": "TEXT", "index": 1, "name": "PROPOSAL_ID", "comment": null}, "IPFS": {"type": "TEXT", "index": 2, "name": "IPFS", "comment": null}, "CHOICES": {"type": "ARRAY", "index": 3, "name": "CHOICES", "comment": null}, "PROPOSAL_AUTHOR": {"type": "TEXT", "index": 4, "name": "PROPOSAL_AUTHOR", "comment": null}, "PROPOSAL_TITLE": {"type": "TEXT", "index": 5, "name": "PROPOSAL_TITLE", "comment": null}, "PROPOSAL_TEXT": {"type": "TEXT", "index": 6, "name": "PROPOSAL_TEXT", "comment": null}, "DELAY": {"type": "NUMBER", "index": 7, "name": "DELAY", "comment": null}, "QUORUM": {"type": "NUMBER", "index": 8, "name": "QUORUM", "comment": null}, "VOTING_PERIOD": {"type": "NUMBER", "index": 9, "name": "VOTING_PERIOD", "comment": null}, "VOTING_TYPE": {"type": "TEXT", "index": 10, "name": "VOTING_TYPE", "comment": null}, "SPACE_ID": {"type": "TEXT", "index": 11, "name": "SPACE_ID", "comment": null}, "NETWORK": {"type": "TEXT", "index": 12, "name": "NETWORK", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "CREATED_AT", "comment": null}, "PROPOSAL_START_TIME": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "PROPOSAL_START_TIME", "comment": null}, "PROPOSAL_END_TIME": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "PROPOSAL_END_TIME", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__snapshot_proposals_SPACE_ID.226caec17f"}, "model.external_models.farcaster__fact_verifications": {"metadata": {"type": "VIEW", "schema": "FARCASTER", "name": "FACT_VERIFICATIONS", "database": "EXTERNAL", "comment": "Represents a user verifying something on the network. Currently, the only verification is proving ownership of an Ethereum wallet address. For more info see [Neynar](https://docs.neynar.com/docs/how-to-query-neynar-sql-playground-for-farcaster-data) or [schema](https://github.com/farcasterxyz/hub-monorepo/tree/51c57245df8ec1c68d616dd3ab8ae5b80edf68fd/apps/replicator)", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ID": {"type": "NUMBER", "index": 1, "name": "ID", "comment": "Generic identifier specific to this DB (a.k.a. surrogate key)"}, "FID": {"type": "NUMBER", "index": 2, "name": "FID", "comment": "FID of the user that signed the message."}, "CLAIM": {"type": "TEXT", "index": 3, "name": "CLAIM", "comment": ""}, "HASH": {"type": "BINARY", "index": 4, "name": "HASH", "comment": "Message hash."}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "TIMESTAMP", "comment": "Message timestamp in UTC."}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "CREATED_AT", "comment": "When the row was first created in this DB (not the same as the message timestamp!)"}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "UPDATED_AT", "comment": "When the row was last updated."}, "DELETED_AT": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "DELETED_AT", "comment": "When the verification was considered deleted by the hub (e.g. in response to a VerificationRemove message, etc.)"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.farcaster__fact_verifications"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_options_notional__INSERTED_TIMESTAMP__day__2.bfa1ced883": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER", "name": "DEFILLAMA_OPTIONS_NOTIONAL", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_options_notional__INSERTED_TIMESTAMP__day__2.bfa1ced883"}, "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_chainlist_CHAIN_ID.7ce0a0b603": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_BRONZE", "name": "DEFILLAMA_CHAINLIST_CHAIN_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN_ID": {"type": "TEXT", "index": 1, "name": "CHAIN_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_chainlist_CHAIN_ID.7ce0a0b603"}, "test.external_models.not_null_bronze__defillama_dexes__INSERTED_TIMESTAMP.27d26ad6e1": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "DEFILLAMA_DEXES", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DEX_ID": {"type": "TEXT", "index": 1, "name": "DEX_ID", "comment": null}, "DEX": {"type": "TEXT", "index": 2, "name": "DEX", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 4, "name": "CHAINS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__defillama_dexes__INSERTED_TIMESTAMP.27d26ad6e1"}, "model.external_models.defillama__dim_protocols": {"metadata": {"type": "BASE TABLE", "schema": "DEFILLAMA", "name": "DIM_PROTOCOLS", "database": "EXTERNAL", "comment": "This table contains dimensional information about the protocols listed on Defillama.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROTOCOL_ID": {"type": "TEXT", "index": 1, "name": "PROTOCOL_ID", "comment": "Unique identifier for the protocol."}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 2, "name": "PROTOCOL_SLUG", "comment": "Slug for the protocol."}, "PROTOCOL": {"type": "TEXT", "index": 3, "name": "PROTOCOL", "comment": "Name of the protocol."}, "ADDRESS": {"type": "TEXT", "index": 4, "name": "ADDRESS", "comment": "Contract address of the protocol."}, "SYMBOL": {"type": "TEXT", "index": 5, "name": "SYMBOL", "comment": "Symbol for the protocol."}, "DESCRIPTION": {"type": "TEXT", "index": 6, "name": "DESCRIPTION", "comment": "Description of the protocol."}, "CHAIN": {"type": "TEXT", "index": 7, "name": "CHAIN", "comment": "Chain the protocol is operating on."}, "CHAINS": {"type": "VARIANT", "index": 8, "name": "CHAINS", "comment": "Chains the protocol is available on."}, "CATEGORY": {"type": "TEXT", "index": 9, "name": "CATEGORY", "comment": "Category the protocol belongs to."}, "NUM_AUDITS": {"type": "NUMBER", "index": 10, "name": "NUM_AUDITS", "comment": "Number of audits the protocol has undergone."}, "AUDIT_NOTE": {"type": "TEXT", "index": 11, "name": "AUDIT_NOTE", "comment": "Notes on the audits of the protocol."}, "TWITTER": {"type": "TEXT", "index": 12, "name": "TWITTER", "comment": "Number of audits the protocol has undergone."}, "TVL": {"type": "FLOAT", "index": 13, "name": "TVL", "comment": "Total value locked of the protocol as of the last run."}, "CHAIN_TVLS": {"type": "VARIANT", "index": 14, "name": "CHAIN_TVLS", "comment": "Total value locked of the protocol on each chain as of the last run."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "DIM_PROTOCOLS_ID": {"type": "TEXT", "index": 17, "name": "DIM_PROTOCOLS_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 08:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1611776, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 6527, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.defillama__dim_protocols"}, "model.external_models.defillama__fact_chain_tvl": {"metadata": {"type": "VIEW", "schema": "DEFILLAMA", "name": "FACT_CHAIN_TVL", "database": "EXTERNAL", "comment": "This table contains historical TVL (Total Value Locked) for the chains listed on Defillama in `dim_chains`.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE": {"type": "DATE", "index": 1, "name": "DATE", "comment": "Date associated with the reported TVL."}, "CHAIN_ID": {"type": "TEXT", "index": 2, "name": "CHAIN_ID", "comment": "Unique identifier of the blockchain."}, "CHAIN": {"type": "TEXT", "index": 3, "name": "CHAIN", "comment": "Name of the blockchain."}, "TVL_USD": {"type": "NUMBER", "index": 4, "name": "TVL_USD", "comment": "Total Value Locked on the blockchain denominated in USD."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.defillama__fact_chain_tvl"}, "test.external_models.not_null_silver__snapshot_spaces__INSERTED_TIMESTAMP.9c97d87460": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SNAPSHOT_SPACES", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"SPACE_ID": {"type": "TEXT", "index": 1, "name": "SPACE_ID", "comment": null}, "SPACE": {"type": "TEXT", "index": 2, "name": "SPACE", "comment": null}, "ABOUT": {"type": "TEXT", "index": 3, "name": "ABOUT", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": null}, "NETWORK": {"type": "TEXT", "index": 5, "name": "NETWORK", "comment": null}, "CATEGORIES": {"type": "VARIANT", "index": 6, "name": "CATEGORIES", "comment": null}, "DOMAIN": {"type": "TEXT", "index": 7, "name": "DOMAIN", "comment": null}, "IS_PRIVATE": {"type": "BOOLEAN", "index": 8, "name": "IS_PRIVATE", "comment": null}, "IS_VERIFIED": {"type": "BOOLEAN", "index": 9, "name": "IS_VERIFIED", "comment": null}, "ADMINS": {"type": "VARIANT", "index": 10, "name": "ADMINS", "comment": null}, "MEMBERS": {"type": "VARIANT", "index": 11, "name": "MEMBERS", "comment": null}, "TREASURIES": {"type": "VARIANT", "index": 12, "name": "TREASURIES", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__snapshot_spaces__INSERTED_TIMESTAMP.9c97d87460"}, "model.external_models.farcaster__fact_casts": {"metadata": {"type": "VIEW", "schema": "FARCASTER", "name": "FACT_CASTS", "database": "EXTERNAL", "comment": "Represents a cast authored by a user. For more info see [Neynar](https://docs.neynar.com/docs/how-to-query-neynar-sql-playground-for-farcaster-data) or [schema](https://github.com/farcasterxyz/hub-monorepo/tree/51c57245df8ec1c68d616dd3ab8ae5b80edf68fd/apps/replicator)", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "TIMESTAMP", "comment": "Message timestamp in UTC."}, "FID": {"type": "NUMBER", "index": 2, "name": "FID", "comment": "FID of the user that signed the message."}, "HASH": {"type": "BINARY", "index": 3, "name": "HASH", "comment": "Message hash."}, "PARENT_HASH": {"type": "BINARY", "index": 4, "name": "PARENT_HASH", "comment": "If this cast was a reply, the hash of the parent cast. null otherwise."}, "PARENT_FID": {"type": "NUMBER", "index": 5, "name": "PARENT_FID", "comment": "If this cast was a reply, the FID of the author of the parent cast. null otherwise."}, "PARENT_URL": {"type": "TEXT", "index": 6, "name": "PARENT_URL", "comment": "If this cast was a reply to a URL (e.g. an NFT, a web URL, etc.), the URL. null otherwise."}, "TEXT": {"type": "TEXT", "index": 7, "name": "TEXT", "comment": "The raw text of the cast with mentions removed."}, "EMBEDS": {"type": "TEXT", "index": 8, "name": "EMBEDS", "comment": "Array of URLs or cast IDs that were embedded with this cast."}, "MENTIONS": {"type": "TEXT", "index": 9, "name": "MENTIONS", "comment": "Array of FIDs mentioned in the cast."}, "MENTIONS_POSITIONS": {"type": "TEXT", "index": 10, "name": "MENTIONS_POSITIONS", "comment": "UTF8 byte offsets of the mentioned FIDs in the cast."}, "ROOT_PARENT_HASH": {"type": "BINARY", "index": 11, "name": "ROOT_PARENT_HASH", "comment": "If this cast was a reply, the hash of the original cast in the reply chain. null otherwise."}, "ROOT_PARENT_URL": {"type": "TEXT", "index": 12, "name": "ROOT_PARENT_URL", "comment": "If this cast was a reply, then the URL that the original cast in the reply chain was replying to."}, "ID": {"type": "NUMBER", "index": 13, "name": "ID", "comment": "Generic identifier specific to this DB (a.k.a. surrogate key)"}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "CREATED_AT", "comment": "When the row was first created in this DB (not the same as the message timestamp!)"}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "UPDATED_AT", "comment": "When the row was last updated."}, "DELETED_AT": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "DELETED_AT", "comment": "When the cast was considered deleted/revoked/pruned by the hub (e.g. in response to a CastRemove message, etc.)"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.farcaster__fact_casts"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__snapshot_proposals_PROPOSAL_ID.07e9b3a85b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "SNAPSHOT_PROPOSALS_PROPOSAL_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROPOSAL_ID": {"type": "TEXT", "index": 1, "name": "PROPOSAL_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__snapshot_proposals_PROPOSAL_ID.07e9b3a85b"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_spaces__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.4a33bbc621": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_BRONZE", "name": "SNAPSHOT_SPACES", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_spaces__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.4a33bbc621"}, "test.external_models.not_null_artemis__tx_count_TX_COUNT.f3522b67b1": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_ARTEMIS", "name": "TX_COUNT_TX_COUNT", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": null}, "METRIC": {"type": "TEXT", "index": 2, "name": "METRIC", "comment": null}, "DESCRIPTION": {"type": "TEXT", "index": 3, "name": "DESCRIPTION", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 4, "name": "BLOCK_DATE", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TX_COUNT_ID": {"type": "TEXT", "index": 7, "name": "TX_COUNT_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 10, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_artemis__tx_count_TX_COUNT.f3522b67b1"}, "test.external_models.dbt_expectations_expect_column_values_to_match_regex_silver__snapshot_votes_VOTER__0_xX_0_9a_fA_F_.441303a55c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_MATCH_REGEX_SILVER", "name": "SNAPSHOT_VOTES_VOTER", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"EXPRESSION": {"type": "BOOLEAN", "index": 1, "name": "EXPRESSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_match_regex_silver__snapshot_votes_VOTER__0_xX_0_9a_fA_F_.441303a55c"}, "test.external_models.not_null_silver__defillama_chains_tvl_ID.4053d1c479": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_CHAINS_TVL_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN_ID": {"type": "TEXT", "index": 1, "name": "CHAIN_ID", "comment": null}, "CHAIN": {"type": "TEXT", "index": 2, "name": "CHAIN", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "TIMESTAMP", "comment": null}, "TVL_USD": {"type": "NUMBER", "index": 4, "name": "TVL_USD", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ID": {"type": "TEXT", "index": 6, "name": "ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_chains_tvl_ID.4053d1c479"}, "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_chains_CHAIN.545e1a28c1": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_BRONZE", "name": "DEFILLAMA_CHAINS_CHAIN", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_chains_CHAIN.545e1a28c1"}, "test.external_models.not_null_silver__defillama_options_notional_ID.797f360571": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_OPTIONS_NOTIONAL_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "TIMESTAMP", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 3, "name": "PROTOCOL", "comment": null}, "DAILY_VOLUME_NOTIONAL": {"type": "NUMBER", "index": 4, "name": "DAILY_VOLUME_NOTIONAL", "comment": null}, "OPTIONS_OBJECT": {"type": "VARIANT", "index": 5, "name": "OPTIONS_OBJECT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ID": {"type": "TEXT", "index": 7, "name": "ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_options_notional_ID.797f360571"}, "model.external_models.silver_aptos__shinam": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_APTOS", "name": "SHINAM", "database": "EXTERNAL", "comment": "Shinam data", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"METRIC_DATE": {"type": "DATE", "index": 1, "name": "METRIC_DATE", "comment": "The date of the metric measurement"}, "FUND_NAME": {"type": "TEXT", "index": 2, "name": "FUND_NAME", "comment": "Then the of the fund"}, "WORKSPACE_NAME": {"type": "TEXT", "index": 3, "name": "WORKSPACE_NAME", "comment": "The name of the workspace"}, "CONTACT_EMAIL": {"type": "TEXT", "index": 4, "name": "CONTACT_EMAIL", "comment": "The contact email of the fund"}, "FUND_BALANCE_REMAINING": {"type": "NUMBER", "index": 5, "name": "FUND_BALANCE_REMAINING", "comment": "The fund balance remaining"}, "TOTAL_SPONSORSHIPS": {"type": "NUMBER", "index": 6, "name": "TOTAL_SPONSORSHIPS", "comment": "The total sponsorships"}, "TOTAL_FEES": {"type": "NUMBER", "index": 7, "name": "TOTAL_FEES", "comment": "The total fees paid by the fund"}, "SHINAM_ID": {"type": "TEXT", "index": 8, "name": "SHINAM_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 11, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 10:38UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 39936, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 610, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver_aptos__shinam"}, "test.external_models.not_null_silver__defillama_protocol_revenue_ID.fc3053c7bf": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PROTOCOL_REVENUE_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "TIMESTAMP", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 3, "name": "PROTOCOL", "comment": null}, "DAILY_REV": {"type": "NUMBER", "index": 4, "name": "DAILY_REV", "comment": null}, "REV_OBJECT": {"type": "VARIANT", "index": 5, "name": "REV_OBJECT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ID": {"type": "TEXT", "index": 7, "name": "ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_protocol_revenue_ID.fc3053c7bf"}, "test.livequery_models.test___utils_udf_introspect.79bd27a18b": {"metadata": {"type": "BASE TABLE", "schema": "TEST", "name": "_UTILS_UDF_INTROSPECT", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TEST_NAME": {"type": "TEXT", "index": 1, "name": "TEST_NAME", "comment": null}, "PARAMETERS": {"type": "ARRAY", "index": 2, "name": "PARAMETERS", "comment": null}, "RESULT": {"type": "TEXT", "index": 3, "name": "RESULT", "comment": null}, "ASSERTION": {"type": "TEXT", "index": 4, "name": "ASSERTION", "comment": null}, "SQL": {"type": "TEXT", "index": 5, "name": "SQL", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-01-12 14:49UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.livequery_models.test___utils_udf_introspect.79bd27a18b"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_options_notional_ID.4ed2e3fa3f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "DEFILLAMA_OPTIONS_NOTIONAL_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_options_notional_ID.4ed2e3fa3f"}, "test.external_models.not_null_silver__defillama_perp_daily_volume_chain.45bd739186": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PERP_DAILY_VOLUME_CHAIN", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE": {"type": "DATE", "index": 1, "name": "DATE", "comment": null}, "CHAIN": {"type": "TEXT", "index": 2, "name": "CHAIN", "comment": null}, "PROTOCOL_ID": {"type": "TEXT", "index": 3, "name": "PROTOCOL_ID", "comment": null}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 4, "name": "PROTOCOL_SLUG", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 5, "name": "PROTOCOL", "comment": null}, "VOLUME": {"type": "FLOAT", "index": 6, "name": "VOLUME", "comment": null}, "DEFILLAMA_PERP_METRICS_ID": {"type": "TEXT", "index": 7, "name": "DEFILLAMA_PERP_METRICS_ID", "comment": null}, "DEFILLAMA_PERP_DAILY_VOLUME_ID": {"type": "TEXT", "index": 8, "name": "DEFILLAMA_PERP_DAILY_VOLUME_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_perp_daily_volume_chain.45bd739186"}, "test.external_models.not_null_bronze__defillama_protocol_tvl_PROTOCOL_ID.45da76f0c4": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "DEFILLAMA_PROTOCOL_TVL_PROTOCOL_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TIMESTAMP": {"type": "DATE", "index": 1, "name": "TIMESTAMP", "comment": null}, "PROTOCOL_ID": {"type": "TEXT", "index": 2, "name": "PROTOCOL_ID", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "MARKET_CAP": {"type": "FLOAT", "index": 5, "name": "MARKET_CAP", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 6, "name": "SYMBOL", "comment": null}, "TVL": {"type": "FLOAT", "index": 7, "name": "TVL", "comment": null}, "TVL_PREV_DAY": {"type": "FLOAT", "index": 8, "name": "TVL_PREV_DAY", "comment": null}, "TVL_PREV_WEEK": {"type": "FLOAT", "index": 9, "name": "TVL_PREV_WEEK", "comment": null}, "TVL_PREV_MONTH": {"type": "FLOAT", "index": 10, "name": "TVL_PREV_MONTH", "comment": null}, "CHAIN": {"type": "TEXT", "index": 11, "name": "CHAIN", "comment": null}, "CHAIN_TVL": {"type": "NUMBER", "index": 12, "name": "CHAIN_TVL", "comment": null}, "CHAIN_TVL_PREV_DAY": {"type": "NUMBER", "index": 13, "name": "CHAIN_TVL_PREV_DAY", "comment": null}, "CHAIN_TVL_PREV_WEEK": {"type": "NUMBER", "index": 14, "name": "CHAIN_TVL_PREV_WEEK", "comment": null}, "CHAIN_TVL_PREV_MONTH": {"type": "NUMBER", "index": 15, "name": "CHAIN_TVL_PREV_MONTH", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__defillama_protocol_tvl_PROTOCOL_ID.45da76f0c4"}, "model.external_models.silver__polymarket_markets": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "POLYMARKET_MARKETS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CONDITION_ID": {"type": "TEXT", "index": 1, "name": "CONDITION_ID", "comment": ""}, "QUESTION": {"type": "TEXT", "index": 2, "name": "QUESTION", "comment": ""}, "DESCRIPTION": {"type": "TEXT", "index": 3, "name": "DESCRIPTION", "comment": ""}, "TOKENS": {"type": "VARIANT", "index": 4, "name": "TOKENS", "comment": ""}, "TOKEN_1_TOKEN_ID": {"type": "TEXT", "index": 5, "name": "TOKEN_1_TOKEN_ID", "comment": ""}, "TOKEN_1_OUTCOME": {"type": "TEXT", "index": 6, "name": "TOKEN_1_OUTCOME", "comment": ""}, "TOKEN_1_WINNER": {"type": "TEXT", "index": 7, "name": "TOKEN_1_WINNER", "comment": ""}, "TOKEN_2_TOKEN_ID": {"type": "TEXT", "index": 8, "name": "TOKEN_2_TOKEN_ID", "comment": ""}, "TOKEN_2_OUTCOME": {"type": "TEXT", "index": 9, "name": "TOKEN_2_OUTCOME", "comment": ""}, "TOKEN_2_WINNER": {"type": "TEXT", "index": 10, "name": "TOKEN_2_WINNER", "comment": ""}, "ENABLE_ORDER_BOOK": {"type": "TEXT", "index": 11, "name": "ENABLE_ORDER_BOOK", "comment": ""}, "ACTIVE": {"type": "BOOLEAN", "index": 12, "name": "ACTIVE", "comment": ""}, "CLOSED": {"type": "BOOLEAN", "index": 13, "name": "CLOSED", "comment": ""}, "ARCHIVED": {"type": "BOOLEAN", "index": 14, "name": "ARCHIVED", "comment": ""}, "ACCEPTING_ORDERS": {"type": "BOOLEAN", "index": 15, "name": "ACCEPTING_ORDERS", "comment": ""}, "ACCEPTING_ORDER_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "ACCEPTING_ORDER_TIMESTAMP", "comment": ""}, "MINIMUM_ORDER_SIZE": {"type": "NUMBER", "index": 17, "name": "MINIMUM_ORDER_SIZE", "comment": ""}, "MINIMUM_TICK_SIZE": {"type": "NUMBER", "index": 18, "name": "MINIMUM_TICK_SIZE", "comment": ""}, "QUESTION_ID": {"type": "TEXT", "index": 19, "name": "QUESTION_ID", "comment": ""}, "MARKET_SLUG": {"type": "TEXT", "index": 20, "name": "MARKET_SLUG", "comment": ""}, "END_DATE_ISO": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "END_DATE_ISO", "comment": ""}, "GAME_START_TIME": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "GAME_START_TIME", "comment": ""}, "SECONDS_DELAY": {"type": "NUMBER", "index": 23, "name": "SECONDS_DELAY", "comment": ""}, "FPMM": {"type": "TEXT", "index": 24, "name": "FPMM", "comment": ""}, "MAKER_BASE_FEE": {"type": "NUMBER", "index": 25, "name": "MAKER_BASE_FEE", "comment": ""}, "TAKER_BASE_FEE": {"type": "NUMBER", "index": 26, "name": "TAKER_BASE_FEE", "comment": ""}, "NOTIFICATIONS_ENABLED": {"type": "BOOLEAN", "index": 27, "name": "NOTIFICATIONS_ENABLED", "comment": ""}, "NEG_RISK": {"type": "BOOLEAN", "index": 28, "name": "NEG_RISK", "comment": ""}, "NEG_RISK_MARKET_ID": {"type": "TEXT", "index": 29, "name": "NEG_RISK_MARKET_ID", "comment": ""}, "NEG_RISK_REQUEST_ID": {"type": "TEXT", "index": 30, "name": "NEG_RISK_REQUEST_ID", "comment": ""}, "REWARDS": {"type": "VARIANT", "index": 31, "name": "REWARDS", "comment": ""}, "TAGS": {"type": "VARIANT", "index": 32, "name": "TAGS", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 33, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "DIM_MARKETS_ID": {"type": "TEXT", "index": 34, "name": "DIM_MARKETS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 35, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "MODIFIED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 08:23UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 88915968, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 123078, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver__polymarket_markets"}, "model.external_models.tokenflow_starknet__decoded_events": {"metadata": {"type": "VIEW", "schema": "TOKENFLOW_STARKNET", "name": "DECODED_EVENTS", "database": "EXTERNAL", "comment": "Table updates ceased after February 1, 2024. This table contains decoded event level data for the Starknet blockchain, sourced from Token Flow. For more information on Starknet, please see [Starknet Resources](https://starknet.io/). For more information on Token Flow, please see [Token Flow Resources](https://docs.tokenflow.live/).", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"LOAD_ID": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "LOAD_ID", "comment": ""}, "CHAIN_ID": {"type": "TEXT", "index": 2, "name": "CHAIN_ID", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER", "comment": ""}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "TIMESTAMP", "comment": ""}, "EVENT_ID": {"type": "TEXT", "index": 5, "name": "EVENT_ID", "comment": ""}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": ""}, "TRACE_ID": {"type": "TEXT", "index": 7, "name": "TRACE_ID", "comment": ""}, "CONTRACT": {"type": "TEXT", "index": 8, "name": "CONTRACT", "comment": ""}, "CLASS_HASH": {"type": "TEXT", "index": 9, "name": "CLASS_HASH", "comment": ""}, "NAME": {"type": "TEXT", "index": 10, "name": "NAME", "comment": ""}, "KEYS": {"type": "ARRAY", "index": 11, "name": "KEYS", "comment": ""}, "PARAMETERS": {"type": "ARRAY", "index": 12, "name": "PARAMETERS", "comment": ""}, "EVENT_ORDER": {"type": "NUMBER", "index": 13, "name": "EVENT_ORDER", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.tokenflow_starknet__decoded_events"}, "model.external_models.silver__defillama_options_premium": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "DEFILLAMA_OPTIONS_PREMIUM", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": ""}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "TIMESTAMP", "comment": ""}, "PROTOCOL": {"type": "TEXT", "index": 3, "name": "PROTOCOL", "comment": ""}, "DAILY_VOLUME_PREMIUM": {"type": "NUMBER", "index": 4, "name": "DAILY_VOLUME_PREMIUM", "comment": ""}, "OPTIONS_OBJECT": {"type": "VARIANT", "index": 5, "name": "OPTIONS_OBJECT", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "ID": {"type": "TEXT", "index": 7, "name": "ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 08:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1420800, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 28249, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver__defillama_options_premium"}, "test.external_models.not_null_defillama__ez_stablecoin_metrics_modified_timestamp.d90908e883": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_DEFILLAMA", "name": "EZ_STABLECOIN_METRICS_MODIFIED_TIMESTAMP", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "DATE_DAY": {"type": "DATE", "index": 2, "name": "DATE_DAY", "comment": null}, "STABLECOIN_ID": {"type": "TEXT", "index": 3, "name": "STABLECOIN_ID", "comment": null}, "STABLECOIN": {"type": "TEXT", "index": 4, "name": "STABLECOIN", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 5, "name": "SYMBOL", "comment": null}, "PEG_TYPE": {"type": "TEXT", "index": 6, "name": "PEG_TYPE", "comment": null}, "PEG_MECHANISM": {"type": "TEXT", "index": 7, "name": "PEG_MECHANISM", "comment": null}, "TOTAL_CIRCULATING_USD": {"type": "FLOAT", "index": 8, "name": "TOTAL_CIRCULATING_USD", "comment": null}, "TOTAL_MINTED_USD": {"type": "FLOAT", "index": 9, "name": "TOTAL_MINTED_USD", "comment": null}, "TOTAL_CIRCULATING": {"type": "FLOAT", "index": 10, "name": "TOTAL_CIRCULATING", "comment": null}, "TOTAL_BRIDGED_TO_USD": {"type": "FLOAT", "index": 11, "name": "TOTAL_BRIDGED_TO_USD", "comment": null}, "TOTAL_UNRELEASED": {"type": "FLOAT", "index": 12, "name": "TOTAL_UNRELEASED", "comment": null}, "EZ_STABLECOIN_METRICS_ID": {"type": "TEXT", "index": 13, "name": "EZ_STABLECOIN_METRICS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_defillama__ez_stablecoin_metrics_modified_timestamp.d90908e883"}, "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_INSERTED_TIMESTAMP.88d1482ef7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_BRIDGE_VOLUME_BY_CHAIN_INSERTED_TIMESTAMP", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BRIDGE_ID": {"type": "TEXT", "index": 1, "name": "BRIDGE_ID", "comment": null}, "BRIDGE": {"type": "TEXT", "index": 2, "name": "BRIDGE", "comment": null}, "BRIDGE_NAME": {"type": "TEXT", "index": 3, "name": "BRIDGE_NAME", "comment": null}, "CHAIN": {"type": "TEXT", "index": 4, "name": "CHAIN", "comment": null}, "BRIDGE_ID_CHAIN": {"type": "TEXT", "index": 5, "name": "BRIDGE_ID_CHAIN", "comment": null}, "DATE": {"type": "DATE", "index": 6, "name": "DATE", "comment": null}, "DEPOSIT_TXS": {"type": "NUMBER", "index": 7, "name": "DEPOSIT_TXS", "comment": null}, "DEPOSIT_USD": {"type": "NUMBER", "index": 8, "name": "DEPOSIT_USD", "comment": null}, "WITHDRAW_TXS": {"type": "NUMBER", "index": 9, "name": "WITHDRAW_TXS", "comment": null}, "WITHDRAW_USD": {"type": "NUMBER", "index": 10, "name": "WITHDRAW_USD", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "MODIFIED_TIMESTAMP", "comment": null}, "DEFILLAMA_BRIDGE_VOL_BY_CHAIN_ID": {"type": "TEXT", "index": 13, "name": "DEFILLAMA_BRIDGE_VOL_BY_CHAIN_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 14, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_INSERTED_TIMESTAMP.88d1482ef7"}, "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_bridges_BRIDGE_ID.ec12df5019": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_BRONZE", "name": "DEFILLAMA_BRIDGES_BRIDGE_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BRIDGE_ID": {"type": "TEXT", "index": 1, "name": "BRIDGE_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_bridges_BRIDGE_ID.ec12df5019"}, "model.external_models.streamline__artemis_complete": {"metadata": {"type": "BASE TABLE", "schema": "STREAMLINE", "name": "ARTEMIS_COMPLETE", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE_DAY": {"type": "DATE", "index": 1, "name": "DATE_DAY", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "MODIFIED_TIMESTAMP", "comment": null}, "FILE_NAME": {"type": "TEXT", "index": 6, "name": "FILE_NAME", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 7, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 07:32UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 9216, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 123, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.streamline__artemis_complete"}, "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_WITHDRAW_USD.279d267331": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_BRIDGE_VOLUME_BY_CHAIN_WITHDRAW_USD", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BRIDGE_ID": {"type": "TEXT", "index": 1, "name": "BRIDGE_ID", "comment": null}, "BRIDGE": {"type": "TEXT", "index": 2, "name": "BRIDGE", "comment": null}, "BRIDGE_NAME": {"type": "TEXT", "index": 3, "name": "BRIDGE_NAME", "comment": null}, "CHAIN": {"type": "TEXT", "index": 4, "name": "CHAIN", "comment": null}, "BRIDGE_ID_CHAIN": {"type": "TEXT", "index": 5, "name": "BRIDGE_ID_CHAIN", "comment": null}, "DATE": {"type": "DATE", "index": 6, "name": "DATE", "comment": null}, "DEPOSIT_TXS": {"type": "NUMBER", "index": 7, "name": "DEPOSIT_TXS", "comment": null}, "DEPOSIT_USD": {"type": "NUMBER", "index": 8, "name": "DEPOSIT_USD", "comment": null}, "WITHDRAW_TXS": {"type": "NUMBER", "index": 9, "name": "WITHDRAW_TXS", "comment": null}, "WITHDRAW_USD": {"type": "NUMBER", "index": 10, "name": "WITHDRAW_USD", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "MODIFIED_TIMESTAMP", "comment": null}, "DEFILLAMA_BRIDGE_VOL_BY_CHAIN_ID": {"type": "TEXT", "index": 13, "name": "DEFILLAMA_BRIDGE_VOL_BY_CHAIN_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 14, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_WITHDRAW_USD.279d267331"}, "test.external_models.not_null_defillama__dim_protocols_MODIFIED_TIMESTAMP.2e3ecb0b3e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_DEFILLAMA", "name": "DIM_PROTOCOLS_MODIFIED_TIMESTAMP", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROTOCOL_ID": {"type": "TEXT", "index": 1, "name": "PROTOCOL_ID", "comment": null}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 2, "name": "PROTOCOL_SLUG", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 3, "name": "PROTOCOL", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 4, "name": "ADDRESS", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 5, "name": "SYMBOL", "comment": null}, "DESCRIPTION": {"type": "TEXT", "index": 6, "name": "DESCRIPTION", "comment": null}, "CHAIN": {"type": "TEXT", "index": 7, "name": "CHAIN", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 8, "name": "CHAINS", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 9, "name": "CATEGORY", "comment": null}, "NUM_AUDITS": {"type": "NUMBER", "index": 10, "name": "NUM_AUDITS", "comment": null}, "AUDIT_NOTE": {"type": "TEXT", "index": 11, "name": "AUDIT_NOTE", "comment": null}, "TWITTER": {"type": "TEXT", "index": 12, "name": "TWITTER", "comment": null}, "TVL": {"type": "FLOAT", "index": 13, "name": "TVL", "comment": null}, "CHAIN_TVLS": {"type": "VARIANT", "index": 14, "name": "CHAIN_TVLS", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "MODIFIED_TIMESTAMP", "comment": null}, "DIM_PROTOCOLS_ID": {"type": "TEXT", "index": 17, "name": "DIM_PROTOCOLS_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_defillama__dim_protocols_MODIFIED_TIMESTAMP.2e3ecb0b3e"}, "model.external_models.avalanche__fact_utxos": {"metadata": {"type": "VIEW", "schema": "AVALANCHE", "name": "FACT_UTXOS", "database": "EXTERNAL", "comment": "Avalanche UTXOs. Please visit https://discord.gg/avax for any questions.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"UTXO_ID": {"type": "TEXT", "index": 1, "name": "UTXO_ID", "comment": "Unique identifier for the UTXO"}, "TRANSACTION_HASH": {"type": "TEXT", "index": 2, "name": "TRANSACTION_HASH", "comment": "Transaction hash associated with the UTXO"}, "BLOCK_INDEX": {"type": "NUMBER", "index": 3, "name": "BLOCK_INDEX", "comment": "Index of the block where the UTXO was created"}, "OUTPUT_INDEX": {"type": "NUMBER", "index": 4, "name": "OUTPUT_INDEX", "comment": "Ordering of the UTXOs within a transaction"}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "TIMESTAMP", "comment": "Timestamp when the UTXO was created"}, "TX_TYPE": {"type": "TEXT", "index": 6, "name": "TX_TYPE", "comment": "Type of transaction that generated the UTXO"}, "OUTPUT_TYPE": {"type": "TEXT", "index": 7, "name": "OUTPUT_TYPE", "comment": ""}, "ADDRESS": {"type": "TEXT", "index": 8, "name": "ADDRESS", "comment": "Blockchain address associated with the UTXO"}, "CONSUMING_TRANSACTION_HASH": {"type": "TEXT", "index": 9, "name": "CONSUMING_TRANSACTION_HASH", "comment": "Transaction hash that consumed the UTXO"}, "ASSET_ID": {"type": "TEXT", "index": 10, "name": "ASSET_ID", "comment": "Asset identifier associated with the UTXO"}, "LOCKTIME": {"type": "NUMBER", "index": 11, "name": "LOCKTIME", "comment": ""}, "THRESHOLD": {"type": "NUMBER", "index": 12, "name": "THRESHOLD", "comment": ""}, "PUBLIC_KEY": {"type": "TEXT", "index": 13, "name": "PUBLIC_KEY", "comment": ""}, "SIGNATURE": {"type": "TEXT", "index": 14, "name": "SIGNATURE", "comment": ""}, "AMOUNT": {"type": "NUMBER", "index": 15, "name": "AMOUNT", "comment": "Amount of the asset stored in the UTXO"}, "GROUP_ID": {"type": "NUMBER", "index": 16, "name": "GROUP_ID", "comment": ""}, "PAYLOAD": {"type": "TEXT", "index": 17, "name": "PAYLOAD", "comment": "Additional payload data associated with the UTXO"}, "FX_ID": {"type": "TEXT", "index": 18, "name": "FX_ID", "comment": ""}, "CREATED_ON": {"type": "TEXT", "index": 19, "name": "CREATED_ON", "comment": "Blockchain ID on which the UTXO was created"}, "CONSUMED_ON": {"type": "TEXT", "index": 20, "name": "CONSUMED_ON", "comment": "Blockchain ID on which the UTXO was consumed"}, "PLATFORM_LOCKTIME": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "PLATFORM_LOCKTIME", "comment": ""}, "STAKED": {"type": "BOOLEAN", "index": 22, "name": "STAKED", "comment": ""}, "STAKEABLE_LOCKTIME": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "STAKEABLE_LOCKTIME", "comment": ""}, "REWARD": {"type": "BOOLEAN", "index": 24, "name": "REWARD", "comment": "Indicates if the UTXO was part of a staking reward"}, "LAST_UPDATED": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "LAST_UPDATED", "comment": ""}, "LOAD_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "LOAD_TIMESTAMP", "comment": "Timestamp when data was loaded into Snowflake"}, "CONSUMING_TRANSACTION_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "CONSUMING_TRANSACTION_TIMESTAMP", "comment": "Timestamp when the UTXO was consumed"}, "STAKING_START_TIME": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "STAKING_START_TIME", "comment": "Start time for staking period"}, "STAKING_END_TIME": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "STAKING_END_TIME", "comment": "End time for staking period"}, "NODE_ID": {"type": "TEXT", "index": 30, "name": "NODE_ID", "comment": "Validator node ID associated with staking UTXOs"}, "REWARD_ADDRESSES": {"type": "VARIANT", "index": 31, "name": "REWARD_ADDRESSES", "comment": "List of addresses receiving staking rewards"}, "CONSUMING_BLOCK_HEIGHT": {"type": "NUMBER", "index": 32, "name": "CONSUMING_BLOCK_HEIGHT", "comment": "Block height at which the UTXO was consumed"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.avalanche__fact_utxos"}, "test.external_models.not_null_bronze__defillama_stablecoins__INSERTED_TIMESTAMP.e8667d321e": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "DEFILLAMA_STABLECOINS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"STABLECOIN_ID": {"type": "TEXT", "index": 1, "name": "STABLECOIN_ID", "comment": null}, "STABLECOIN": {"type": "TEXT", "index": 2, "name": "STABLECOIN", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": null}, "PEG_TYPE": {"type": "TEXT", "index": 4, "name": "PEG_TYPE", "comment": null}, "PEG_MECHANISM": {"type": "TEXT", "index": 5, "name": "PEG_MECHANISM", "comment": null}, "PRICE_SOURCE": {"type": "TEXT", "index": 6, "name": "PRICE_SOURCE", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 7, "name": "CHAINS", "comment": null}, "ROW_NUM": {"type": "NUMBER", "index": 8, "name": "ROW_NUM", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__defillama_stablecoins__INSERTED_TIMESTAMP.e8667d321e"}, "model.external_models.silver__flashbots_protect_txs": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "FLASHBOTS_PROTECT_TXS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": ""}, "FROM_ADDRESS": {"type": "TEXT", "index": 2, "name": "FROM_ADDRESS", "comment": ""}, "TO_ADDRESS": {"type": "TEXT", "index": 3, "name": "TO_ADDRESS", "comment": ""}, "CREATED_AT_BLOCK_NUMBER": {"type": "NUMBER", "index": 4, "name": "CREATED_AT_BLOCK_NUMBER", "comment": ""}, "TX_ID": {"type": "TEXT", "index": 5, "name": "TX_ID", "comment": ""}, "HINTS_SELECTED": {"type": "TEXT", "index": 6, "name": "HINTS_SELECTED", "comment": ""}, "NUM_OF_BUILDERS_SHARED": {"type": "NUMBER", "index": 7, "name": "NUM_OF_BUILDERS_SHARED", "comment": ""}, "REFUND_PERCENT": {"type": "NUMBER", "index": 8, "name": "REFUND_PERCENT", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "_ID": {"type": "TEXT", "index": 10, "name": "_ID", "comment": ""}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(round(created_at_block_number,-3))", "include": true, "description": "The key used to cluster this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 16:19UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 4023091712, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 43468562, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver__flashbots_protect_txs"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_volume__FLOAT.227148bece": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "DEFILLAMA_PERP_DAILY_VOLUME_VOLUME", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_volume__FLOAT.227148bece"}, "test.external_models.not_null_silver__defillama_perp_metrics_total_data_chart_breakdown.eeccb8e45f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PERP_METRICS_TOTAL_DATA_CHART_BREAKDOWN", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TIMESTAMP": {"type": "DATE", "index": 1, "name": "TIMESTAMP", "comment": null}, "PROTOCOL_ID": {"type": "TEXT", "index": 2, "name": "PROTOCOL_ID", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "DISPLAY_NAME": {"type": "TEXT", "index": 5, "name": "DISPLAY_NAME", "comment": null}, "MODULE": {"type": "TEXT", "index": 6, "name": "MODULE", "comment": null}, "LOGO": {"type": "TEXT", "index": 7, "name": "LOGO", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 8, "name": "CHAINS", "comment": null}, "PROTOCOL_TYPE": {"type": "TEXT", "index": 9, "name": "PROTOCOL_TYPE", "comment": null}, "METHODOLOGY_URL": {"type": "TEXT", "index": 10, "name": "METHODOLOGY_URL", "comment": null}, "METHODOLOGY": {"type": "VARIANT", "index": 11, "name": "METHODOLOGY", "comment": null}, "PARENT_PROTOCOL": {"type": "TEXT", "index": 12, "name": "PARENT_PROTOCOL", "comment": null}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 13, "name": "PROTOCOL_SLUG", "comment": null}, "LINKED_PROTOCOLS": {"type": "VARIANT", "index": 14, "name": "LINKED_PROTOCOLS", "comment": null}, "TOTAL_24H": {"type": "FLOAT", "index": 15, "name": "TOTAL_24H", "comment": null}, "TOTAL_48H_TO_24H": {"type": "FLOAT", "index": 16, "name": "TOTAL_48H_TO_24H", "comment": null}, "TOTAL_7D": {"type": "FLOAT", "index": 17, "name": "TOTAL_7D", "comment": null}, "TOTAL_30D": {"type": "FLOAT", "index": 18, "name": "TOTAL_30D", "comment": null}, "TOTAL_ALL_TIME": {"type": "FLOAT", "index": 19, "name": "TOTAL_ALL_TIME", "comment": null}, "CHANGE_1D": {"type": "FLOAT", "index": 20, "name": "CHANGE_1D", "comment": null}, "TOTAL_DATA_CHART_BREAKDOWN": {"type": "VARIANT", "index": 21, "name": "TOTAL_DATA_CHART_BREAKDOWN", "comment": null}, "DEFILLAMA_PERP_METRICS_ID": {"type": "TEXT", "index": 22, "name": "DEFILLAMA_PERP_METRICS_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 24576, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_perp_metrics_total_data_chart_breakdown.eeccb8e45f"}, "test.external_models.not_null_silver__artemis_metric_date.9a93f8e63b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "ARTEMIS_METRIC_DATE", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"METRIC_DATE": {"type": "DATE", "index": 1, "name": "METRIC_DATE", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": null}, "METRIC": {"type": "TEXT", "index": 3, "name": "METRIC", "comment": null}, "METRIC_VALUE": {"type": "VARIANT", "index": 4, "name": "METRIC_VALUE", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 5, "name": "PARTITION_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "FILE_NAME": {"type": "TEXT", "index": 7, "name": "FILE_NAME", "comment": null}, "ARTEMIS_ID": {"type": "TEXT", "index": 8, "name": "ARTEMIS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 11, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__artemis_metric_date.9a93f8e63b"}, "model.external_models.defillama__fact_stablecoin_supply": {"metadata": {"type": "VIEW", "schema": "DEFILLAMA", "name": "FACT_STABLECOIN_SUPPLY", "database": "EXTERNAL", "comment": "This table contains historical circulating supply for the stablecoins in `dim_stablecoins`, where available.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE": {"type": "DATE", "index": 1, "name": "DATE", "comment": "Date associated with the reported records."}, "STABLECOIN_ID": {"type": "TEXT", "index": 2, "name": "STABLECOIN_ID", "comment": "The Defillama ID of the stablecoin."}, "STABLECOIN": {"type": "TEXT", "index": 3, "name": "STABLECOIN", "comment": "The name of the stablecoin."}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": "The symbol of the stablecoin."}, "CHAINS": {"type": "VARIANT", "index": 5, "name": "CHAINS", "comment": "The name of the blockchain."}, "CIRCULATING": {"type": "NUMBER", "index": 6, "name": "CIRCULATING", "comment": "The total circulating supply of the stablecoin for that date."}, "UNRELEASED": {"type": "NUMBER", "index": 7, "name": "UNRELEASED", "comment": "The total unreleased supply of the stablecoin for that date."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.defillama__fact_stablecoin_supply"}, "test.external_models.not_null_defillama__ez_stablecoin_metrics_inserted_timestamp.20f593d022": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_DEFILLAMA", "name": "EZ_STABLECOIN_METRICS_INSERTED_TIMESTAMP", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "DATE_DAY": {"type": "DATE", "index": 2, "name": "DATE_DAY", "comment": null}, "STABLECOIN_ID": {"type": "TEXT", "index": 3, "name": "STABLECOIN_ID", "comment": null}, "STABLECOIN": {"type": "TEXT", "index": 4, "name": "STABLECOIN", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 5, "name": "SYMBOL", "comment": null}, "PEG_TYPE": {"type": "TEXT", "index": 6, "name": "PEG_TYPE", "comment": null}, "PEG_MECHANISM": {"type": "TEXT", "index": 7, "name": "PEG_MECHANISM", "comment": null}, "TOTAL_CIRCULATING_USD": {"type": "FLOAT", "index": 8, "name": "TOTAL_CIRCULATING_USD", "comment": null}, "TOTAL_MINTED_USD": {"type": "FLOAT", "index": 9, "name": "TOTAL_MINTED_USD", "comment": null}, "TOTAL_CIRCULATING": {"type": "FLOAT", "index": 10, "name": "TOTAL_CIRCULATING", "comment": null}, "TOTAL_BRIDGED_TO_USD": {"type": "FLOAT", "index": 11, "name": "TOTAL_BRIDGED_TO_USD", "comment": null}, "TOTAL_UNRELEASED": {"type": "FLOAT", "index": 12, "name": "TOTAL_UNRELEASED", "comment": null}, "EZ_STABLECOIN_METRICS_ID": {"type": "TEXT", "index": 13, "name": "EZ_STABLECOIN_METRICS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_defillama__ez_stablecoin_metrics_inserted_timestamp.20f593d022"}, "model.external_models.silver__defillama_stablecoin_supply": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "DEFILLAMA_STABLECOIN_SUPPLY", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 2, "name": "SYMBOL", "comment": ""}, "STABLECOIN": {"type": "TEXT", "index": 3, "name": "STABLECOIN", "comment": ""}, "STABLECOIN_ID": {"type": "TEXT", "index": 4, "name": "STABLECOIN_ID", "comment": ""}, "CHAINS": {"type": "VARIANT", "index": 5, "name": "CHAINS", "comment": ""}, "PEG_TYPE": {"type": "TEXT", "index": 6, "name": "PEG_TYPE", "comment": ""}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "TIMESTAMP", "comment": ""}, "VALUE": {"type": "VARIANT", "index": 8, "name": "VALUE", "comment": ""}, "CIRCULATING": {"type": "NUMBER", "index": 9, "name": "CIRCULATING", "comment": ""}, "MINTED": {"type": "NUMBER", "index": 10, "name": "MINTED", "comment": ""}, "UNRELEASED": {"type": "NUMBER", "index": 11, "name": "UNRELEASED", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "DEFILLAMA_STABLECOIN_SUPPLY_ID": {"type": "TEXT", "index": 13, "name": "DEFILLAMA_STABLECOIN_SUPPLY_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 16, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-05-05 17:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 4441600, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 150524, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver__defillama_stablecoin_supply"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocol_fees__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.5acc5c41a2": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "DEFILLAMA_PROTOCOL_FEES", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocol_fees__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.5acc5c41a2"}, "test.external_models.not_null_bitquery__active_users_ACTIVE_USERS.c10bdbc8ad": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BITQUERY", "name": "ACTIVE_USERS_ACTIVE_USERS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": null}, "METRIC": {"type": "TEXT", "index": 2, "name": "METRIC", "comment": null}, "AS_OF_DATE": {"type": "DATE", "index": 3, "name": "AS_OF_DATE", "comment": null}, "ACTIVE_USERS": {"type": "TEXT", "index": 4, "name": "ACTIVE_USERS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ACTIVE_USERS_ID": {"type": "TEXT", "index": 6, "name": "ACTIVE_USERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bitquery__active_users_ACTIVE_USERS.c10bdbc8ad"}, "model.external_models.silver__dnv_collections": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "DNV_COLLECTIONS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "ATTRIBUTES": {"type": "VARIANT", "index": 2, "name": "ATTRIBUTES", "comment": ""}, "COLLECTION_ADDRESS": {"type": "TEXT", "index": 3, "name": "COLLECTION_ADDRESS", "comment": ""}, "FLOOR_PRICE": {"type": "FLOAT", "index": 4, "name": "FLOOR_PRICE", "comment": ""}, "COLLECTION_NAME": {"type": "TEXT", "index": 5, "name": "COLLECTION_NAME", "comment": ""}, "VALUATION_MAX": {"type": "FLOAT", "index": 6, "name": "VALUATION_MAX", "comment": ""}, "VALUATION_MIN": {"type": "FLOAT", "index": 7, "name": "VALUATION_MIN", "comment": ""}, "_ID": {"type": "TEXT", "index": 8, "name": "_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-01-13 21:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 23552, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 7, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver__dnv_collections"}, "test.external_models.not_null_bronze__polymarket_markets__INSERTED_TIMESTAMP.b2e066aada": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "POLYMARKET_MARKETS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CONDITION_ID": {"type": "TEXT", "index": 1, "name": "CONDITION_ID", "comment": null}, "QUESTION": {"type": "TEXT", "index": 2, "name": "QUESTION", "comment": null}, "DESCRIPTION": {"type": "TEXT", "index": 3, "name": "DESCRIPTION", "comment": null}, "TOKENS": {"type": "VARIANT", "index": 4, "name": "TOKENS", "comment": null}, "TOKEN_1_TOKEN_ID": {"type": "TEXT", "index": 5, "name": "TOKEN_1_TOKEN_ID", "comment": null}, "TOKEN_1_OUTCOME": {"type": "TEXT", "index": 6, "name": "TOKEN_1_OUTCOME", "comment": null}, "TOKEN_1_WINNER": {"type": "TEXT", "index": 7, "name": "TOKEN_1_WINNER", "comment": null}, "TOKEN_2_TOKEN_ID": {"type": "TEXT", "index": 8, "name": "TOKEN_2_TOKEN_ID", "comment": null}, "TOKEN_2_OUTCOME": {"type": "TEXT", "index": 9, "name": "TOKEN_2_OUTCOME", "comment": null}, "TOKEN_2_WINNER": {"type": "TEXT", "index": 10, "name": "TOKEN_2_WINNER", "comment": null}, "ENABLE_ORDER_BOOK": {"type": "TEXT", "index": 11, "name": "ENABLE_ORDER_BOOK", "comment": null}, "ACTIVE": {"type": "BOOLEAN", "index": 12, "name": "ACTIVE", "comment": null}, "CLOSED": {"type": "BOOLEAN", "index": 13, "name": "CLOSED", "comment": null}, "ARCHIVED": {"type": "BOOLEAN", "index": 14, "name": "ARCHIVED", "comment": null}, "ACCEPTING_ORDERS": {"type": "BOOLEAN", "index": 15, "name": "ACCEPTING_ORDERS", "comment": null}, "ACCEPTING_ORDER_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "ACCEPTING_ORDER_TIMESTAMP", "comment": null}, "MINIMUM_ORDER_SIZE": {"type": "NUMBER", "index": 17, "name": "MINIMUM_ORDER_SIZE", "comment": null}, "MINIMUM_TICK_SIZE": {"type": "NUMBER", "index": 18, "name": "MINIMUM_TICK_SIZE", "comment": null}, "QUESTION_ID": {"type": "TEXT", "index": 19, "name": "QUESTION_ID", "comment": null}, "MARKET_SLUG": {"type": "TEXT", "index": 20, "name": "MARKET_SLUG", "comment": null}, "END_DATE_ISO": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "END_DATE_ISO", "comment": null}, "GAME_START_TIME": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "GAME_START_TIME", "comment": null}, "SECONDS_DELAY": {"type": "NUMBER", "index": 23, "name": "SECONDS_DELAY", "comment": null}, "FPMM": {"type": "TEXT", "index": 24, "name": "FPMM", "comment": null}, "MAKER_BASE_FEE": {"type": "NUMBER", "index": 25, "name": "MAKER_BASE_FEE", "comment": null}, "TAKER_BASE_FEE": {"type": "NUMBER", "index": 26, "name": "TAKER_BASE_FEE", "comment": null}, "NOTIFICATIONS_ENABLED": {"type": "BOOLEAN", "index": 27, "name": "NOTIFICATIONS_ENABLED", "comment": null}, "NEG_RISK": {"type": "BOOLEAN", "index": 28, "name": "NEG_RISK", "comment": null}, "NEG_RISK_MARKET_ID": {"type": "TEXT", "index": 29, "name": "NEG_RISK_MARKET_ID", "comment": null}, "NEG_RISK_REQUEST_ID": {"type": "TEXT", "index": 30, "name": "NEG_RISK_REQUEST_ID", "comment": null}, "REWARDS": {"type": "VARIANT", "index": 31, "name": "REWARDS", "comment": null}, "TAGS": {"type": "VARIANT", "index": 32, "name": "TAGS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 33, "name": "_INSERTED_TIMESTAMP", "comment": null}, "PAGE_NUMBER": {"type": "NUMBER", "index": 34, "name": "PAGE_NUMBER", "comment": null}, "COUNT": {"type": "TEXT", "index": 35, "name": "COUNT", "comment": null}, "CURSOR": {"type": "TEXT", "index": 36, "name": "CURSOR", "comment": null}, "POLYMARKET_MARKET_ID": {"type": "TEXT", "index": 37, "name": "POLYMARKET_MARKET_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__polymarket_markets__INSERTED_TIMESTAMP.b2e066aada"}, "test.external_models.not_null_bronze__defillama_chainlist__INSERTED_TIMESTAMP.540820d90f": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "DEFILLAMA_CHAINLIST", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "CHAIN_SYMBOL": {"type": "TEXT", "index": 2, "name": "CHAIN_SYMBOL", "comment": null}, "TOKEN_NAME": {"type": "TEXT", "index": 3, "name": "TOKEN_NAME", "comment": null}, "TOKEN_DECIMALS": {"type": "NUMBER", "index": 4, "name": "TOKEN_DECIMALS", "comment": null}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 5, "name": "TOKEN_SYMBOL", "comment": null}, "CHAIN_ID": {"type": "TEXT", "index": 6, "name": "CHAIN_ID", "comment": null}, "NETWORK_ID": {"type": "TEXT", "index": 7, "name": "NETWORK_ID", "comment": null}, "ICON": {"type": "TEXT", "index": 8, "name": "ICON", "comment": null}, "RPC": {"type": "VARIANT", "index": 9, "name": "RPC", "comment": null}, "FAUCETS": {"type": "VARIANT", "index": 10, "name": "FAUCETS", "comment": null}, "INFO_URL": {"type": "TEXT", "index": 11, "name": "INFO_URL", "comment": null}, "SHORT_NAME": {"type": "TEXT", "index": 12, "name": "SHORT_NAME", "comment": null}, "EXPLORERS": {"type": "VARIANT", "index": 13, "name": "EXPLORERS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__defillama_chainlist__INSERTED_TIMESTAMP.540820d90f"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocols__INSERTED_TIMESTAMP__day__2.420a65084a": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER", "name": "DEFILLAMA_PROTOCOLS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocols__INSERTED_TIMESTAMP__day__2.420a65084a"}, "test.external_models.not_null_bronze__defillama_stablecoins_STABLECOIN.64b104eca3": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "DEFILLAMA_STABLECOINS_STABLECOIN", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"STABLECOIN_ID": {"type": "TEXT", "index": 1, "name": "STABLECOIN_ID", "comment": null}, "STABLECOIN": {"type": "TEXT", "index": 2, "name": "STABLECOIN", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": null}, "PEG_TYPE": {"type": "TEXT", "index": 4, "name": "PEG_TYPE", "comment": null}, "PEG_MECHANISM": {"type": "TEXT", "index": 5, "name": "PEG_MECHANISM", "comment": null}, "PRICE_SOURCE": {"type": "TEXT", "index": 6, "name": "PRICE_SOURCE", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 7, "name": "CHAINS", "comment": null}, "ROW_NUM": {"type": "NUMBER", "index": 8, "name": "ROW_NUM", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 12, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__defillama_stablecoins_STABLECOIN.64b104eca3"}, "model.external_models.tokenflow_starknet__l1_data_storage_diffs": {"metadata": {"type": "VIEW", "schema": "TOKENFLOW_STARKNET", "name": "L1_DATA_STORAGE_DIFFS", "database": "EXTERNAL", "comment": "Table updates ceased after February 1, 2024. This table contains raw storage level data for the Starknet blockchain, sourced from Token Flow. For more information on Starknet, please see [Starknet Resources](https://starknet.io/). For more information on Token Flow, please see [Token Flow Resources](https://docs.tokenflow.live/).", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"LOAD_ID": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "LOAD_ID", "comment": ""}, "CHAIN_ID": {"type": "TEXT", "index": 2, "name": "CHAIN_ID", "comment": ""}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER", "comment": ""}, "CONTRACT": {"type": "TEXT", "index": 4, "name": "CONTRACT", "comment": ""}, "SLOT": {"type": "TEXT", "index": 5, "name": "SLOT", "comment": ""}, "VALUE": {"type": "TEXT", "index": 6, "name": "VALUE", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.tokenflow_starknet__l1_data_storage_diffs"}, "test.external_models.not_null_bitquery__active_users_METRIC.4a978e38ec": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BITQUERY", "name": "ACTIVE_USERS_METRIC", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": null}, "METRIC": {"type": "TEXT", "index": 2, "name": "METRIC", "comment": null}, "AS_OF_DATE": {"type": "DATE", "index": 3, "name": "AS_OF_DATE", "comment": null}, "ACTIVE_USERS": {"type": "TEXT", "index": 4, "name": "ACTIVE_USERS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ACTIVE_USERS_ID": {"type": "TEXT", "index": 6, "name": "ACTIVE_USERS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bitquery__active_users_METRIC.4a978e38ec"}, "test.external_models.not_null_bronze__snapshot_proposals_CREATED_AT.159e8e2d9c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "SNAPSHOT_PROPOSALS_CREATED_AT", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROPOSAL_ID": {"type": "TEXT", "index": 1, "name": "PROPOSAL_ID", "comment": null}, "IPFS": {"type": "TEXT", "index": 2, "name": "IPFS", "comment": null}, "CHOICES": {"type": "ARRAY", "index": 3, "name": "CHOICES", "comment": null}, "PROPOSAL_AUTHOR": {"type": "TEXT", "index": 4, "name": "PROPOSAL_AUTHOR", "comment": null}, "PROPOSAL_TITLE": {"type": "TEXT", "index": 5, "name": "PROPOSAL_TITLE", "comment": null}, "PROPOSAL_TEXT": {"type": "TEXT", "index": 6, "name": "PROPOSAL_TEXT", "comment": null}, "DELAY": {"type": "NUMBER", "index": 7, "name": "DELAY", "comment": null}, "QUORUM": {"type": "NUMBER", "index": 8, "name": "QUORUM", "comment": null}, "VOTING_PERIOD": {"type": "NUMBER", "index": 9, "name": "VOTING_PERIOD", "comment": null}, "VOTING_TYPE": {"type": "TEXT", "index": 10, "name": "VOTING_TYPE", "comment": null}, "SPACE_ID": {"type": "TEXT", "index": 11, "name": "SPACE_ID", "comment": null}, "NETWORK": {"type": "TEXT", "index": 12, "name": "NETWORK", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "CREATED_AT", "comment": null}, "PROPOSAL_START_TIME": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "PROPOSAL_START_TIME", "comment": null}, "PROPOSAL_END_TIME": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "PROPOSAL_END_TIME", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__snapshot_proposals_CREATED_AT.159e8e2d9c"}, "model.external_models.streamline__bitquery_metrics": {"metadata": {"type": "VIEW", "schema": "STREAMLINE", "name": "BITQUERY_METRICS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE_DAY": {"type": "DATE", "index": 1, "name": "DATE_DAY", "comment": ""}, "DATE_DAY_MINUS_30": {"type": "DATE", "index": 2, "name": "DATE_DAY_MINUS_30", "comment": ""}, "BLOCKCHAIN": {"type": "TEXT", "index": 3, "name": "BLOCKCHAIN", "comment": ""}, "METRIC": {"type": "TEXT", "index": 4, "name": "METRIC", "comment": ""}, "QUERY_TEXT": {"type": "TEXT", "index": 5, "name": "QUERY_TEXT", "comment": ""}, "VARIABLES": {"type": "OBJECT", "index": 6, "name": "VARIABLES", "comment": ""}, "DESCRIPTION": {"type": "TEXT", "index": 7, "name": "DESCRIPTION", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.streamline__bitquery_metrics"}, "test.external_models.not_null_farcaster__fact_channel_follows_UPDATED_AT.da206c58b8": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_FARCASTER", "name": "FACT_CHANNEL_FOLLOWS_UPDATED_AT", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "TIMESTAMP", "comment": null}, "FID": {"type": "NUMBER", "index": 2, "name": "FID", "comment": null}, "CHANNEL_ID": {"type": "TEXT", "index": 3, "name": "CHANNEL_ID", "comment": null}, "ID": {"type": "NUMBER", "index": 4, "name": "ID", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "CREATED_AT", "comment": null}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "UPDATED_AT", "comment": null}, "DELETED_AT": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "DELETED_AT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_farcaster__fact_channel_follows_UPDATED_AT.da206c58b8"}, "test.external_models.not_null_silver__defillama_pool_yields_TIMESTAMP.37b3272aba": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_POOL_YIELDS_TIMESTAMP", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TIMESTAMP": {"type": "DATE", "index": 1, "name": "TIMESTAMP", "comment": null}, "APY": {"type": "FLOAT", "index": 2, "name": "APY", "comment": null}, "APY_BASE": {"type": "FLOAT", "index": 3, "name": "APY_BASE", "comment": null}, "BASE_7D": {"type": "FLOAT", "index": 4, "name": "BASE_7D", "comment": null}, "APY_BASE_INCEPTION": {"type": "FLOAT", "index": 5, "name": "APY_BASE_INCEPTION", "comment": null}, "APY_MEAN_30D": {"type": "FLOAT", "index": 6, "name": "APY_MEAN_30D", "comment": null}, "APY_PCT_1D": {"type": "FLOAT", "index": 7, "name": "APY_PCT_1D", "comment": null}, "APY_PCT_30D": {"type": "FLOAT", "index": 8, "name": "APY_PCT_30D", "comment": null}, "APY_PCT_7D": {"type": "FLOAT", "index": 9, "name": "APY_PCT_7D", "comment": null}, "APY_REWARDS": {"type": "FLOAT", "index": 10, "name": "APY_REWARDS", "comment": null}, "CHAIN": {"type": "TEXT", "index": 11, "name": "CHAIN", "comment": null}, "COUNT": {"type": "NUMBER", "index": 12, "name": "COUNT", "comment": null}, "EXPOSURE": {"type": "TEXT", "index": 13, "name": "EXPOSURE", "comment": null}, "IL_7D": {"type": "FLOAT", "index": 14, "name": "IL_7D", "comment": null}, "IL_RISK": {"type": "TEXT", "index": 15, "name": "IL_RISK", "comment": null}, "MU": {"type": "FLOAT", "index": 16, "name": "MU", "comment": null}, "OUTLIER": {"type": "BOOLEAN", "index": 17, "name": "OUTLIER", "comment": null}, "POOL_ID": {"type": "TEXT", "index": 18, "name": "POOL_ID", "comment": null}, "POOL_META": {"type": "TEXT", "index": 19, "name": "POOL_META", "comment": null}, "PREDICTIONS": {"type": "VARIANT", "index": 20, "name": "PREDICTIONS", "comment": null}, "PROJECTS": {"type": "TEXT", "index": 21, "name": "PROJECTS", "comment": null}, "REWARD_TOKENS": {"type": "VARIANT", "index": 22, "name": "REWARD_TOKENS", "comment": null}, "SIGMA": {"type": "FLOAT", "index": 23, "name": "SIGMA", "comment": null}, "STABLECOIN": {"type": "BOOLEAN", "index": 24, "name": "STABLECOIN", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 25, "name": "SYMBOL", "comment": null}, "TVL_USD": {"type": "NUMBER", "index": 26, "name": "TVL_USD", "comment": null}, "UNDERLYING_TOKENS": {"type": "VARIANT", "index": 27, "name": "UNDERLYING_TOKENS", "comment": null}, "VOLUME_USD_1D": {"type": "FLOAT", "index": 28, "name": "VOLUME_USD_1D", "comment": null}, "VOLUME_USD_7D": {"type": "FLOAT", "index": 29, "name": "VOLUME_USD_7D", "comment": null}, "DEFILLAMA_YIELD_ID": {"type": "TEXT", "index": 30, "name": "DEFILLAMA_YIELD_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 31, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 32, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 33, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 34, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_pool_yields_TIMESTAMP.37b3272aba"}, "test.external_models.unique_artemis__tx_count_TX_COUNT_ID.3fc82084e9": {"metadata": {"type": "BASE TABLE", "schema": "UNIQUE_ARTEMIS", "name": "TX_COUNT_TX_COUNT_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"UNIQUE_FIELD": {"type": "TEXT", "index": 1, "name": "UNIQUE_FIELD", "comment": null}, "N_RECORDS": {"type": "NUMBER", "index": 2, "name": "N_RECORDS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.unique_artemis__tx_count_TX_COUNT_ID.3fc82084e9"}, "model.external_models.silver__defillama_protocol_tvl_history": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "DEFILLAMA_PROTOCOL_TVL_HISTORY", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TIMESTAMP": {"type": "DATE", "index": 1, "name": "TIMESTAMP", "comment": ""}, "PROTOCOL_ID": {"type": "NUMBER", "index": 2, "name": "PROTOCOL_ID", "comment": ""}, "CATEGORY": {"type": "VARIANT", "index": 3, "name": "CATEGORY", "comment": ""}, "PROTOCOL": {"type": "TEXT", "index": 4, "name": "PROTOCOL", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 5, "name": "SYMBOL", "comment": ""}, "CHAIN": {"type": "TEXT", "index": 6, "name": "CHAIN", "comment": ""}, "CHAIN_TVL": {"type": "NUMBER", "index": 7, "name": "CHAIN_TVL", "comment": ""}, "CHAIN_TVL_PREV_DAY": {"type": "NUMBER", "index": 8, "name": "CHAIN_TVL_PREV_DAY", "comment": ""}, "CHAIN_TVL_PREV_WEEK": {"type": "NUMBER", "index": 9, "name": "CHAIN_TVL_PREV_WEEK", "comment": ""}, "CHAIN_TVL_PREV_MONTH": {"type": "NUMBER", "index": 10, "name": "CHAIN_TVL_PREV_MONTH", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "DEFILLAMA_PROTOCOL_TVL_HISTORY_ID": {"type": "TEXT", "index": 12, "name": "DEFILLAMA_PROTOCOL_TVL_HISTORY_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 15, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(timestamp, protocol_id, chain)", "include": true, "description": "The key used to cluster this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-29 17:27UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 395611136, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 11735892, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver__defillama_protocol_tvl_history"}, "model.external_models.silver__dnv_tokens": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "DNV_TOKENS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TOKEN_ID": {"type": "VARIANT", "index": 1, "name": "TOKEN_ID", "comment": ""}, "ACTIVE_OFFER": {"type": "VARIANT", "index": 2, "name": "ACTIVE_OFFER", "comment": ""}, "ATTRIBUTES": {"type": "VARIANT", "index": 3, "name": "ATTRIBUTES", "comment": ""}, "ATTRIBUTES_SYNTHETIC": {"type": "VARIANT", "index": 4, "name": "ATTRIBUTES_SYNTHETIC", "comment": ""}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 5, "name": "CONTRACT_ADDRESS", "comment": ""}, "COLLECTION_NAME": {"type": "TEXT", "index": 6, "name": "COLLECTION_NAME", "comment": ""}, "IMAGE": {"type": "VARIANT", "index": 7, "name": "IMAGE", "comment": ""}, "IS_FLAGGED": {"type": "VARIANT", "index": 8, "name": "IS_FLAGGED", "comment": ""}, "LAST_SALE": {"type": "VARIANT", "index": 9, "name": "LAST_SALE", "comment": ""}, "OWNER": {"type": "VARIANT", "index": 10, "name": "OWNER", "comment": ""}, "RARITY": {"type": "VARIANT", "index": 11, "name": "RARITY", "comment": ""}, "RARITY_RANK": {"type": "VARIANT", "index": 12, "name": "RARITY_RANK", "comment": ""}, "TOP_BID": {"type": "VARIANT", "index": 13, "name": "TOP_BID", "comment": ""}, "VALUATION": {"type": "VARIANT", "index": 14, "name": "VALUATION", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "_ID": {"type": "TEXT", "index": 16, "name": "_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-01-13 21:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 7417344, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 79414, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver__dnv_tokens"}, "test.external_models.not_null_silver__snapshot_proposals__INSERTED_TIMESTAMP.9b86eaedeb": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SNAPSHOT_PROPOSALS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROPOSAL_ID": {"type": "TEXT", "index": 1, "name": "PROPOSAL_ID", "comment": null}, "IPFS": {"type": "TEXT", "index": 2, "name": "IPFS", "comment": null}, "CHOICES": {"type": "ARRAY", "index": 3, "name": "CHOICES", "comment": null}, "PROPOSAL_AUTHOR": {"type": "TEXT", "index": 4, "name": "PROPOSAL_AUTHOR", "comment": null}, "PROPOSAL_TITLE": {"type": "TEXT", "index": 5, "name": "PROPOSAL_TITLE", "comment": null}, "PROPOSAL_TEXT": {"type": "TEXT", "index": 6, "name": "PROPOSAL_TEXT", "comment": null}, "DELAY": {"type": "NUMBER", "index": 7, "name": "DELAY", "comment": null}, "QUORUM": {"type": "NUMBER", "index": 8, "name": "QUORUM", "comment": null}, "VOTING_PERIOD": {"type": "NUMBER", "index": 9, "name": "VOTING_PERIOD", "comment": null}, "VOTING_TYPE": {"type": "TEXT", "index": 10, "name": "VOTING_TYPE", "comment": null}, "SPACE_ID": {"type": "TEXT", "index": 11, "name": "SPACE_ID", "comment": null}, "NETWORK_ID": {"type": "TEXT", "index": 12, "name": "NETWORK_ID", "comment": null}, "NETWORK": {"type": "TEXT", "index": 13, "name": "NETWORK", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "CREATED_AT", "comment": null}, "PROPOSAL_START_TIME": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "PROPOSAL_START_TIME", "comment": null}, "PROPOSAL_END_TIME": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "PROPOSAL_END_TIME", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__snapshot_proposals__INSERTED_TIMESTAMP.9b86eaedeb"}, "model.external_models.streamline__defillama_protocol_historical_complete": {"metadata": {"type": "BASE TABLE", "schema": "STREAMLINE", "name": "DEFILLAMA_PROTOCOL_HISTORICAL_COMPLETE", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROTOCOL_ID": {"type": "NUMBER", "index": 1, "name": "PROTOCOL_ID", "comment": null}, "COMPLETE_DEFILLAMA_PROTOCOL_HISTORICAL_ID": {"type": "TEXT", "index": 2, "name": "COMPLETE_DEFILLAMA_PROTOCOL_HISTORICAL_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 6, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-05-01 14:02UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 219648, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5778, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.streamline__defillama_protocol_historical_complete"}, "test.external_models.not_null_silver__defillama_protocol_tvl_history_protocol_id.e8f35f7758": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PROTOCOL_TVL_HISTORY_PROTOCOL_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TIMESTAMP": {"type": "DATE", "index": 1, "name": "TIMESTAMP", "comment": null}, "PROTOCOL_ID": {"type": "NUMBER", "index": 2, "name": "PROTOCOL_ID", "comment": null}, "CATEGORY": {"type": "VARIANT", "index": 3, "name": "CATEGORY", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 4, "name": "PROTOCOL", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 5, "name": "SYMBOL", "comment": null}, "CHAIN": {"type": "TEXT", "index": 6, "name": "CHAIN", "comment": null}, "CHAIN_TVL": {"type": "NUMBER", "index": 7, "name": "CHAIN_TVL", "comment": null}, "CHAIN_TVL_PREV_DAY": {"type": "NUMBER", "index": 8, "name": "CHAIN_TVL_PREV_DAY", "comment": null}, "CHAIN_TVL_PREV_WEEK": {"type": "NUMBER", "index": 9, "name": "CHAIN_TVL_PREV_WEEK", "comment": null}, "CHAIN_TVL_PREV_MONTH": {"type": "NUMBER", "index": 10, "name": "CHAIN_TVL_PREV_MONTH", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DEFILLAMA_PROTOCOL_TVL_HISTORY_ID": {"type": "TEXT", "index": 12, "name": "DEFILLAMA_PROTOCOL_TVL_HISTORY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 15, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_protocol_tvl_history_protocol_id.e8f35f7758"}, "test.external_models.not_null_silver__defillama_protocol_fees__INSERTED_TIMESTAMP.ce25594587": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PROTOCOL_FEES", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "TIMESTAMP", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 3, "name": "PROTOCOL", "comment": null}, "DAILY_FEES": {"type": "NUMBER", "index": 4, "name": "DAILY_FEES", "comment": null}, "FEES_OBJECT": {"type": "VARIANT", "index": 5, "name": "FEES_OBJECT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ID": {"type": "TEXT", "index": 7, "name": "ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_protocol_fees__INSERTED_TIMESTAMP.ce25594587"}, "model.external_models.silver__artemis": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "ARTEMIS", "database": "EXTERNAL", "comment": "Parsed Artemis blockchain metrics data", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"METRIC_DATE": {"type": "DATE", "index": 1, "name": "METRIC_DATE", "comment": "The date of the metric measurement"}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": "Blockchain name"}, "METRIC": {"type": "TEXT", "index": 3, "name": "METRIC", "comment": ""}, "METRIC_VALUE": {"type": "VARIANT", "index": 4, "name": "METRIC_VALUE", "comment": "Reported metric value"}, "PARTITION_KEY": {"type": "NUMBER", "index": 5, "name": "PARTITION_KEY", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": "Timestamp when record was inserted into the bronze layer"}, "FILE_NAME": {"type": "TEXT", "index": 7, "name": "FILE_NAME", "comment": ""}, "ARTEMIS_ID": {"type": "TEXT", "index": 8, "name": "ARTEMIS_ID", "comment": "Unique identifier for each metric data point"}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 11, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 08:07UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 526848, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 11156, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver__artemis"}, "test.external_models.not_null_silver__snapshot_votes_VOTE_ID.3e87d455f6": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SNAPSHOT_VOTES_VOTE_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"VOTE_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "VOTE_TIMESTAMP", "comment": null}, "VOTER": {"type": "TEXT", "index": 2, "name": "VOTER", "comment": null}, "PROPOSAL_ID": {"type": "TEXT", "index": 3, "name": "PROPOSAL_ID", "comment": null}, "VOTE_OPTION": {"type": "ARRAY", "index": 4, "name": "VOTE_OPTION", "comment": null}, "VOTING_POWER": {"type": "NUMBER", "index": 5, "name": "VOTING_POWER", "comment": null}, "IPFS": {"type": "TEXT", "index": 6, "name": "IPFS", "comment": null}, "VOTE_ID": {"type": "TEXT", "index": 7, "name": "VOTE_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__snapshot_votes_VOTE_ID.3e87d455f6"}, "test.external_models.not_null_bronze__defillama_perps_protocol_slug.b54442faae": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "DEFILLAMA_PERPS_PROTOCOL_SLUG", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROTOCOL_ID": {"type": "TEXT", "index": 1, "name": "PROTOCOL_ID", "comment": null}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 2, "name": "PROTOCOL_SLUG", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "DISPLAY_NAME": {"type": "TEXT", "index": 5, "name": "DISPLAY_NAME", "comment": null}, "MODULE": {"type": "TEXT", "index": 6, "name": "MODULE", "comment": null}, "LOGO": {"type": "TEXT", "index": 7, "name": "LOGO", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 8, "name": "CHAINS", "comment": null}, "PROTOCOL_TYPE": {"type": "TEXT", "index": 9, "name": "PROTOCOL_TYPE", "comment": null}, "METHODOLOGY_URL": {"type": "TEXT", "index": 10, "name": "METHODOLOGY_URL", "comment": null}, "METHODOLOGY": {"type": "VARIANT", "index": 11, "name": "METHODOLOGY", "comment": null}, "PARENT_PROTOCOL": {"type": "TEXT", "index": 12, "name": "PARENT_PROTOCOL", "comment": null}, "LINKED_PROTOCOLS": {"type": "VARIANT", "index": 13, "name": "LINKED_PROTOCOLS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 17, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__defillama_perps_protocol_slug.b54442faae"}, "model.external_models.flashbots__fact_protect_transactions": {"metadata": {"type": "VIEW", "schema": "FLASHBOTS", "name": "FACT_PROTECT_TRANSACTIONS", "database": "EXTERNAL", "comment": "This table contains all the transactions received by Flashbots Protect RPC that are seen landed onchain, including the privacy setting user or application set when sending them. Read more about Flashbots Protect from [documentation](https://docs.flashbots.net/flashbots-protect/quick-start) and [website](https://protect.flashbots.net/)!\nPlease reach out to the Flashbots team for any data discrepancies or questions.\n", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": "The Ethereum transaction hash of the protect transaction."}, "FROM_ADDRESS": {"type": "TEXT", "index": 2, "name": "FROM_ADDRESS", "comment": "The Ethereum address of the sender initiating the transaction."}, "TO_ADDRESS": {"type": "TEXT", "index": 3, "name": "TO_ADDRESS", "comment": "The Ethereum address of the recipient of the transaction."}, "CREATED_AT_BLOCK_NUMBER": {"type": "NUMBER", "index": 4, "name": "CREATED_AT_BLOCK_NUMBER", "comment": "The block number at which the transaction was created (first received by Flashbots server). Note - Due to some reorg/simulation issues, there are some rows where `created_at_block_number` > `included_block_number`"}, "TX_ID": {"type": "TEXT", "index": 5, "name": "TX_ID", "comment": "A row number partitioned by (`tx_hash`, `created_at_block_number`, `included_block_number`) to use as part of the deterministic id for transactions who were submitted multiple times at same block, with different shared configs"}, "HINTS_SELECTED": {"type": "TEXT", "index": 6, "name": "HINTS_SELECTED", "comment": "The hints shared by the user for public streaming to searchers in the MEV-share orderflow auction (OFA)."}, "NUM_OF_BUILDERS_SHARED": {"type": "NUMBER", "index": 7, "name": "NUM_OF_BUILDERS_SHARED", "comment": "The number of block builders the transaction was shared with, higher number will likely help faster inclusion speed onchain."}, "REFUND_PERCENT": {"type": "NUMBER", "index": 8, "name": "REFUND_PERCENT", "comment": "The percentage of OFA backrun profits refunded to the sender (user). The rest can be kept by builders or bided to payout to validator. Flashbots builders keeps 0 profit and send it to validator in the end of block payment transaction."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.flashbots__fact_protect_transactions"}, "model.external_models.silver__defillama_dex_volume": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "DEFILLAMA_DEX_VOLUME", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": ""}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "TIMESTAMP", "comment": ""}, "PROTOCOL": {"type": "TEXT", "index": 3, "name": "PROTOCOL", "comment": ""}, "DAILY_VOLUME": {"type": "NUMBER", "index": 4, "name": "DAILY_VOLUME", "comment": ""}, "DEX_OBJECT": {"type": "VARIANT", "index": 5, "name": "DEX_OBJECT", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "ID": {"type": "TEXT", "index": 7, "name": "ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 08:07UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 123475456, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 983294, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver__defillama_dex_volume"}, "model.external_models.defillama__fact_options_volume": {"metadata": {"type": "VIEW", "schema": "DEFILLAMA", "name": "FACT_OPTIONS_VOLUME", "database": "EXTERNAL", "comment": "This table contains historical options volumes for the protocols listed on Defillama in `dim_protocols`, where available.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE": {"type": "DATE", "index": 1, "name": "DATE", "comment": "Date associated with the reported records."}, "CHAIN": {"type": "TEXT", "index": 2, "name": "CHAIN", "comment": "The name of the blockchain."}, "PROTOCOL": {"type": "TEXT", "index": 3, "name": "PROTOCOL", "comment": "The name of the protocol."}, "VOLUME_PREMIUM": {"type": "NUMBER", "index": 4, "name": "VOLUME_PREMIUM", "comment": "The total premium volume driven by the protocol on a daily basis, denominated in USD."}, "VOLUME_NOTIONAL": {"type": "NUMBER", "index": 5, "name": "VOLUME_NOTIONAL", "comment": "The total notional volume driven by the protocol on a daily basis, denominated in USD."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.defillama__fact_options_volume"}, "model.external_models.farcaster__fact_reactions": {"metadata": {"type": "VIEW", "schema": "FARCASTER", "name": "FACT_REACTIONS", "database": "EXTERNAL", "comment": "Represents a user reacting (liking or recasting) content. For more info see [Neynar](https://docs.neynar.com/docs/how-to-query-neynar-sql-playground-for-farcaster-data) or [schema](https://github.com/farcasterxyz/hub-monorepo/tree/51c57245df8ec1c68d616dd3ab8ae5b80edf68fd/apps/replicator)", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ID": {"type": "NUMBER", "index": 1, "name": "ID", "comment": "Generic identifier specific to this DB (a.k.a. surrogate key)"}, "FID": {"type": "NUMBER", "index": 2, "name": "FID", "comment": "FID of the user that signed the message."}, "TARGET_FID": {"type": "NUMBER", "index": 3, "name": "TARGET_FID", "comment": "If target was a cast, the FID of the author of the cast. null otherwise."}, "TARGET_URL": {"type": "TEXT", "index": 4, "name": "TARGET_URL", "comment": "If target was a URL (e.g. NFT, a web URL, etc.), the URL. null otherwise."}, "REACTION_TYPE": {"type": "NUMBER", "index": 5, "name": "REACTION_TYPE", "comment": "Type of reaction."}, "HASH": {"type": "BINARY", "index": 6, "name": "HASH", "comment": "Message hash."}, "TARGET_HASH": {"type": "BINARY", "index": 7, "name": "TARGET_HASH", "comment": "If target was a cast, the hash of the cast. null otherwise."}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "TIMESTAMP", "comment": "Message timestamp in UTC."}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "CREATED_AT", "comment": "When the row was first created in this DB (not the same as the message timestamp!)"}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "UPDATED_AT", "comment": "When the row was last updated."}, "DELETED_AT": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "DELETED_AT", "comment": "When the reaction was considered deleted by the hub (e.g. in response to a ReactionRemove message, etc.)"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.farcaster__fact_reactions"}, "test.external_models.not_null_defillama__ez_stablecoin_metrics_peg_mechanism.4ca9af4400": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_DEFILLAMA", "name": "EZ_STABLECOIN_METRICS_PEG_MECHANISM", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "DATE_DAY": {"type": "DATE", "index": 2, "name": "DATE_DAY", "comment": null}, "STABLECOIN_ID": {"type": "TEXT", "index": 3, "name": "STABLECOIN_ID", "comment": null}, "STABLECOIN": {"type": "TEXT", "index": 4, "name": "STABLECOIN", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 5, "name": "SYMBOL", "comment": null}, "PEG_TYPE": {"type": "TEXT", "index": 6, "name": "PEG_TYPE", "comment": null}, "PEG_MECHANISM": {"type": "TEXT", "index": 7, "name": "PEG_MECHANISM", "comment": null}, "TOTAL_CIRCULATING_USD": {"type": "FLOAT", "index": 8, "name": "TOTAL_CIRCULATING_USD", "comment": null}, "TOTAL_MINTED_USD": {"type": "FLOAT", "index": 9, "name": "TOTAL_MINTED_USD", "comment": null}, "TOTAL_CIRCULATING": {"type": "FLOAT", "index": 10, "name": "TOTAL_CIRCULATING", "comment": null}, "TOTAL_BRIDGED_TO_USD": {"type": "FLOAT", "index": 11, "name": "TOTAL_BRIDGED_TO_USD", "comment": null}, "TOTAL_UNRELEASED": {"type": "FLOAT", "index": 12, "name": "TOTAL_UNRELEASED", "comment": null}, "EZ_STABLECOIN_METRICS_ID": {"type": "TEXT", "index": 13, "name": "EZ_STABLECOIN_METRICS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_defillama__ez_stablecoin_metrics_peg_mechanism.4ca9af4400"}, "test.external_models.not_null_silver__tokenlists_verified_tokens_CHAIN_ID.8fdd7cfe55": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "TOKENLISTS_VERIFIED_TOKENS_CHAIN_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"API_URL": {"type": "TEXT", "index": 1, "name": "API_URL", "comment": null}, "NAME": {"type": "TEXT", "index": 2, "name": "NAME", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 4, "name": "ADDRESS", "comment": null}, "CHAIN_ID": {"type": "TEXT", "index": 5, "name": "CHAIN_ID", "comment": null}, "DECIMALS": {"type": "TEXT", "index": 6, "name": "DECIMALS", "comment": null}, "EXTENSIONS": {"type": "VARIANT", "index": 7, "name": "EXTENSIONS", "comment": null}, "PROVIDER": {"type": "TEXT", "index": 8, "name": "PROVIDER", "comment": null}, "LIST_METADATA": {"type": "VARIANT", "index": 9, "name": "LIST_METADATA", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TOKENLISTS_VERIFIED_TOKENS_ID": {"type": "TEXT", "index": 11, "name": "TOKENLISTS_VERIFIED_TOKENS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__tokenlists_verified_tokens_CHAIN_ID.8fdd7cfe55"}, "test.external_models.not_null_farcaster__fact_reactions_UPDATED_AT.9a07cc8175": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_FARCASTER", "name": "FACT_REACTIONS_UPDATED_AT", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ID": {"type": "NUMBER", "index": 1, "name": "ID", "comment": null}, "FID": {"type": "NUMBER", "index": 2, "name": "FID", "comment": null}, "TARGET_FID": {"type": "NUMBER", "index": 3, "name": "TARGET_FID", "comment": null}, "TARGET_URL": {"type": "TEXT", "index": 4, "name": "TARGET_URL", "comment": null}, "REACTION_TYPE": {"type": "NUMBER", "index": 5, "name": "REACTION_TYPE", "comment": null}, "HASH": {"type": "BINARY", "index": 6, "name": "HASH", "comment": null}, "TARGET_HASH": {"type": "BINARY", "index": 7, "name": "TARGET_HASH", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "TIMESTAMP", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "CREATED_AT", "comment": null}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "UPDATED_AT", "comment": null}, "DELETED_AT": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "DELETED_AT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_farcaster__fact_reactions_UPDATED_AT.9a07cc8175"}, "model.external_models.streamline__artemis_realtime": {"metadata": {"type": "VIEW", "schema": "STREAMLINE", "name": "ARTEMIS_REALTIME", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE_DAY": {"type": "NUMBER", "index": 1, "name": "DATE_DAY", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": ""}, "REQUEST": {"type": "VARIANT", "index": 3, "name": "REQUEST", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.streamline__artemis_realtime"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_48h_to_24h__FLOAT.ebb833856d": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "DEFILLAMA_PERP_METRICS_TOTAL_48H_TO_24H", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_48h_to_24h__FLOAT.ebb833856d"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_investors_INVESTOR.a7623080b4": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "DEFILLAMA_INVESTORS_INVESTOR", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"INVESTOR": {"type": "TEXT", "index": 1, "name": "INVESTOR", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_investors_INVESTOR.a7623080b4"}, "test.external_models.dbt_utils_unique_combination_of_columns_bitquery__tx_count_BLOCKCHAIN__METRIC__BLOCK_DATE.ec78a68947": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_BITQUERY", "name": "TX_COUNT_BLOCKCHAIN", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": null}, "METRIC": {"type": "TEXT", "index": 2, "name": "METRIC", "comment": null}, "BLOCK_DATE": {"type": "TEXT", "index": 3, "name": "BLOCK_DATE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bitquery__tx_count_BLOCKCHAIN__METRIC__BLOCK_DATE.ec78a68947"}, "test.external_models.not_null_bronze__defillama_bridges_BRIDGE.d073e2edb8": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "DEFILLAMA_BRIDGES_BRIDGE", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BRIDGE_ID": {"type": "TEXT", "index": 1, "name": "BRIDGE_ID", "comment": null}, "BRIDGE": {"type": "TEXT", "index": 2, "name": "BRIDGE", "comment": null}, "BRIDGE_NAME": {"type": "TEXT", "index": 3, "name": "BRIDGE_NAME", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 4, "name": "CHAINS", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 5, "name": "DESTINATION_CHAIN", "comment": null}, "ROW_NUM": {"type": "NUMBER", "index": 6, "name": "ROW_NUM", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__defillama_bridges_BRIDGE.d073e2edb8"}, "model.external_models.bitquery__tx_count": {"metadata": {"type": "BASE TABLE", "schema": "BITQUERY", "name": "TX_COUNT", "database": "EXTERNAL", "comment": "This model returns the number of transactions for each blockchain and block date.\n", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": "The blockchain where the transactions are from.\n"}, "METRIC": {"type": "TEXT", "index": 2, "name": "METRIC", "comment": "The metric name - always 'tx_count'.\n"}, "BLOCK_DATE": {"type": "TEXT", "index": 3, "name": "BLOCK_DATE", "comment": "The date when the transactions are counted.\n"}, "TX_COUNT": {"type": "TEXT", "index": 4, "name": "TX_COUNT", "comment": "The number of transactions for this date.\n"}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "ACCOUNTS_ID": {"type": "TEXT", "index": 6, "name": "ACCOUNTS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 08:07UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 123904, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1902, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bitquery__tx_count"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_defillama__ez_stablecoin_metrics_inserted_timestamp__day__2.acb8be47e0": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_DEFILLAMA", "name": "EZ_STABLECOIN_METRICS_INSERTED_TIMESTAMP", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_defillama__ez_stablecoin_metrics_inserted_timestamp__day__2.acb8be47e0"}, "test.external_models.not_null_silver__defillama_dex_volume__INSERTED_TIMESTAMP.1ccec92206": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_DEX_VOLUME", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "TIMESTAMP", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 3, "name": "PROTOCOL", "comment": null}, "DAILY_VOLUME": {"type": "NUMBER", "index": 4, "name": "DAILY_VOLUME", "comment": null}, "DEX_OBJECT": {"type": "VARIANT", "index": 5, "name": "DEX_OBJECT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ID": {"type": "TEXT", "index": 7, "name": "ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_dex_volume__INSERTED_TIMESTAMP.1ccec92206"}, "test.external_models.not_null_silver__defillama_options_premium_ID.8c8d1dbefe": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_OPTIONS_PREMIUM_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "TIMESTAMP", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 3, "name": "PROTOCOL", "comment": null}, "DAILY_VOLUME_PREMIUM": {"type": "NUMBER", "index": 4, "name": "DAILY_VOLUME_PREMIUM", "comment": null}, "OPTIONS_OBJECT": {"type": "VARIANT", "index": 5, "name": "OPTIONS_OBJECT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ID": {"type": "TEXT", "index": 7, "name": "ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_options_premium_ID.8c8d1dbefe"}, "model.external_models.snapshot__ez_snapshot": {"metadata": {"type": "VIEW", "schema": "SNAPSHOT", "name": "EZ_SNAPSHOT", "database": "EXTERNAL", "comment": "A convenience view that contains all votes on Snapshot and information about the voting space and proposal.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": "A unique identifier assigned to a vote."}, "PROPOSAL_ID": {"type": "TEXT", "index": 2, "name": "PROPOSAL_ID", "comment": "A unique identifier for the proposal being voted on."}, "VOTER": {"type": "TEXT", "index": 3, "name": "VOTER", "comment": "The wallet address of the user that voted on a proposal."}, "VOTE_OPTION": {"type": "ARRAY", "index": 4, "name": "VOTE_OPTION", "comment": "How the user voted on the proposal. Corresponds to the choices array."}, "VOTING_POWER": {"type": "NUMBER", "index": 5, "name": "VOTING_POWER", "comment": "The amount of voting power one holds is proportional to the amount of the token they hold."}, "VOTE_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "VOTE_TIMESTAMP", "comment": "The time at which the vote was cast."}, "CHOICES": {"type": "ARRAY", "index": 7, "name": "CHOICES", "comment": "An array containing the voting options on the proposal."}, "PROPOSAL_AUTHOR": {"type": "TEXT", "index": 8, "name": "PROPOSAL_AUTHOR", "comment": "The address of the wallet that wrote the proposal."}, "PROPOSAL_TITLE": {"type": "TEXT", "index": 9, "name": "PROPOSAL_TITLE", "comment": "The title or name of the proposal."}, "PROPOSAL_TEXT": {"type": "TEXT", "index": 10, "name": "PROPOSAL_TEXT", "comment": "The body of the proposal."}, "SPACE_ID": {"type": "TEXT", "index": 11, "name": "SPACE_ID", "comment": "A way to identify which group, or space, on Snapshot a proposal belongs to."}, "NETWORK": {"type": "TEXT", "index": 12, "name": "NETWORK", "comment": "The default network or blockchain used for the space."}, "DELAY": {"type": "NUMBER", "index": 13, "name": "DELAY", "comment": "The default number of hours of voting delay for the space. The voting delay is the time between proposal submission and the opening of voting."}, "QUORUM": {"type": "NUMBER", "index": 14, "name": "QUORUM", "comment": "The minimum amount of voting power for a proposal to pass."}, "VOTING_PERIOD": {"type": "NUMBER", "index": 15, "name": "VOTING_PERIOD", "comment": "The default time in hours within a space for a proposal to be open for voting."}, "VOTING_TYPE": {"type": "TEXT", "index": 16, "name": "VOTING_TYPE", "comment": "The type of voting system used for this space. If this column is not null, the same voting system will be used for all proposals in this space."}, "PROPOSAL_START_TIME": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "PROPOSAL_START_TIME", "comment": "The time at which voting on the proposal begins."}, "PROPOSAL_END_TIME": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "PROPOSAL_END_TIME", "comment": "The time at which voting on the proposal ends."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.snapshot__ez_snapshot"}, "model.external_models.farcaster__fact_channel_follows": {"metadata": {"type": "VIEW", "schema": "FARCASTER", "name": "FACT_CHANNEL_FOLLOWS", "database": "EXTERNAL", "comment": "Represents follows for a Farcaster channel. For more info see [Neynar](https://docs.neynar.com/docs/how-to-query-neynar-sql-playground-for-farcaster-data) or [schema](https://github.com/farcasterxyz/hub-monorepo/tree/51c57245df8ec1c68d616dd3ab8ae5b80edf68fd/apps/replicator)", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "TIMESTAMP", "comment": "Message timestamp in UTC."}, "FID": {"type": "NUMBER", "index": 2, "name": "FID", "comment": "FID of the user that signed the message."}, "CHANNEL_ID": {"type": "TEXT", "index": 3, "name": "CHANNEL_ID", "comment": "Unique identifier for the channel."}, "ID": {"type": "NUMBER", "index": 4, "name": "ID", "comment": "Generic identifier specific to this DB (a.k.a. surrogate key)"}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "CREATED_AT", "comment": "When the row was first created in this DB (not the same as the message timestamp!)"}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "UPDATED_AT", "comment": "When the row was last updated."}, "DELETED_AT": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "DELETED_AT", "comment": "When the cast was considered deleted/revoked/pruned by the hub (e.g. in response to a CastRemove message, etc.)"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.farcaster__fact_channel_follows"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_protocol_tvl_DEFILLAMA_TVL_ID.8db584bebb": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "DEFILLAMA_PROTOCOL_TVL_DEFILLAMA_TVL_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DEFILLAMA_TVL_ID": {"type": "TEXT", "index": 1, "name": "DEFILLAMA_TVL_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_protocol_tvl_DEFILLAMA_TVL_ID.8db584bebb"}, "test.external_models.not_null_bronze__defillama_perps_name.f711db516d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "DEFILLAMA_PERPS_NAME", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROTOCOL_ID": {"type": "TEXT", "index": 1, "name": "PROTOCOL_ID", "comment": null}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 2, "name": "PROTOCOL_SLUG", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "DISPLAY_NAME": {"type": "TEXT", "index": 5, "name": "DISPLAY_NAME", "comment": null}, "MODULE": {"type": "TEXT", "index": 6, "name": "MODULE", "comment": null}, "LOGO": {"type": "TEXT", "index": 7, "name": "LOGO", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 8, "name": "CHAINS", "comment": null}, "PROTOCOL_TYPE": {"type": "TEXT", "index": 9, "name": "PROTOCOL_TYPE", "comment": null}, "METHODOLOGY_URL": {"type": "TEXT", "index": 10, "name": "METHODOLOGY_URL", "comment": null}, "METHODOLOGY": {"type": "VARIANT", "index": 11, "name": "METHODOLOGY", "comment": null}, "PARENT_PROTOCOL": {"type": "TEXT", "index": 12, "name": "PARENT_PROTOCOL", "comment": null}, "LINKED_PROTOCOLS": {"type": "VARIANT", "index": 13, "name": "LINKED_PROTOCOLS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 17, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__defillama_perps_name.f711db516d"}, "model.external_models.farcaster__dim_fnames": {"metadata": {"type": "VIEW", "schema": "FARCASTER", "name": "DIM_FNAMES", "database": "EXTERNAL", "comment": "Stores all usernames that are currently registered. Note that in the case a username is deregistered, the row is soft-deleted via the `deleted_at` column until a new username is registered for the given FID. For more info see [Neynar](https://docs.neynar.com/docs/how-to-query-neynar-sql-playground-for-farcaster-data) or [schema](https://github.com/farcasterxyz/hub-monorepo/tree/51c57245df8ec1c68d616dd3ab8ae5b80edf68fd/apps/replicator)", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"FID": {"type": "NUMBER", "index": 1, "name": "FID", "comment": "FID the username belongs to."}, "FNAME": {"type": "TEXT", "index": 2, "name": "FNAME", "comment": "Username, e.g. dwr if an fname, or dwr.eth if an ENS name."}, "CUSTODY_ADDRESS": {"type": "BINARY", "index": 3, "name": "CUSTODY_ADDRESS", "comment": "Address that owns the FID."}, "EXPIRES_AT": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "EXPIRES_AT", "comment": ""}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "CREATED_AT", "comment": "When the row was first created in this DB (not the same as when the key was created on the network!)"}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "UPDATED_AT", "comment": "When the row was last updated."}, "DELETED_AT": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "DELETED_AT", "comment": "When the proof was revoked or the fname was otherwise deregistered from this user."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.farcaster__dim_fnames"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_bridge_volume_by_chain_defillama_bridge_vol_by_chain_id.335bdf13f6": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "DEFILLAMA_BRIDGE_VOLUME_BY_CHAIN_DEFILLAMA_BRIDGE_VOL_BY_CHAIN_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DEFILLAMA_BRIDGE_VOL_BY_CHAIN_ID": {"type": "TEXT", "index": 1, "name": "DEFILLAMA_BRIDGE_VOL_BY_CHAIN_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_bridge_volume_by_chain_defillama_bridge_vol_by_chain_id.335bdf13f6"}, "test.external_models.not_null_silver__defillama_protocol_tvl_history_chain_tvl.dd69677c11": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PROTOCOL_TVL_HISTORY_CHAIN_TVL", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TIMESTAMP": {"type": "DATE", "index": 1, "name": "TIMESTAMP", "comment": null}, "PROTOCOL_ID": {"type": "NUMBER", "index": 2, "name": "PROTOCOL_ID", "comment": null}, "CATEGORY": {"type": "VARIANT", "index": 3, "name": "CATEGORY", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 4, "name": "PROTOCOL", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 5, "name": "SYMBOL", "comment": null}, "CHAIN": {"type": "TEXT", "index": 6, "name": "CHAIN", "comment": null}, "CHAIN_TVL": {"type": "NUMBER", "index": 7, "name": "CHAIN_TVL", "comment": null}, "CHAIN_TVL_PREV_DAY": {"type": "NUMBER", "index": 8, "name": "CHAIN_TVL_PREV_DAY", "comment": null}, "CHAIN_TVL_PREV_WEEK": {"type": "NUMBER", "index": 9, "name": "CHAIN_TVL_PREV_WEEK", "comment": null}, "CHAIN_TVL_PREV_MONTH": {"type": "NUMBER", "index": 10, "name": "CHAIN_TVL_PREV_MONTH", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DEFILLAMA_PROTOCOL_TVL_HISTORY_ID": {"type": "TEXT", "index": 12, "name": "DEFILLAMA_PROTOCOL_TVL_HISTORY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 15, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_protocol_tvl_history_chain_tvl.dd69677c11"}, "test.external_models.not_null_silver_aptos__shinam_metric_date.e87ed95074": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER_APTOS", "name": "SHINAM_METRIC_DATE", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"METRIC_DATE": {"type": "DATE", "index": 1, "name": "METRIC_DATE", "comment": null}, "FUND_NAME": {"type": "TEXT", "index": 2, "name": "FUND_NAME", "comment": null}, "WORKSPACE_NAME": {"type": "TEXT", "index": 3, "name": "WORKSPACE_NAME", "comment": null}, "CONTACT_EMAIL": {"type": "TEXT", "index": 4, "name": "CONTACT_EMAIL", "comment": null}, "FUND_BALANCE_REMAINING": {"type": "NUMBER", "index": 5, "name": "FUND_BALANCE_REMAINING", "comment": null}, "TOTAL_SPONSORSHIPS": {"type": "NUMBER", "index": 6, "name": "TOTAL_SPONSORSHIPS", "comment": null}, "TOTAL_FEES": {"type": "NUMBER", "index": 7, "name": "TOTAL_FEES", "comment": null}, "SHINAM_ID": {"type": "TEXT", "index": 8, "name": "SHINAM_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 11, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver_aptos__shinam_metric_date.e87ed95074"}, "test.external_models.not_null_silver__defillama_protocols__INSERTED_TIMESTAMP.59c4e95c9c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PROTOCOLS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RUN_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "RUN_TIMESTAMP", "comment": null}, "RUN_DATE": {"type": "DATE", "index": 2, "name": "RUN_DATE", "comment": null}, "PROTOCOL_ID": {"type": "TEXT", "index": 3, "name": "PROTOCOL_ID", "comment": null}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 4, "name": "PROTOCOL_SLUG", "comment": null}, "PARENT_PROTOCOL": {"type": "TEXT", "index": 5, "name": "PARENT_PROTOCOL", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 6, "name": "PROTOCOL", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 7, "name": "ADDRESS", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 8, "name": "SYMBOL", "comment": null}, "DESCRIPTION": {"type": "TEXT", "index": 9, "name": "DESCRIPTION", "comment": null}, "CHAIN": {"type": "TEXT", "index": 10, "name": "CHAIN", "comment": null}, "NUM_AUDITS": {"type": "NUMBER", "index": 11, "name": "NUM_AUDITS", "comment": null}, "AUDIT_NOTE": {"type": "TEXT", "index": 12, "name": "AUDIT_NOTE", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 13, "name": "CATEGORY", "comment": null}, "URL": {"type": "TEXT", "index": 14, "name": "URL", "comment": null}, "LOGO": {"type": "TEXT", "index": 15, "name": "LOGO", "comment": null}, "TWITTER": {"type": "TEXT", "index": 16, "name": "TWITTER", "comment": null}, "TVL": {"type": "FLOAT", "index": 17, "name": "TVL", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 18, "name": "CHAINS", "comment": null}, "CHAIN_TVLS": {"type": "VARIANT", "index": 19, "name": "CHAIN_TVLS", "comment": null}, "DATA": {"type": "VARIANT", "index": 20, "name": "DATA", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 24, "name": "_INVOCATION_ID", "comment": null}, "DEFILLAMA_PROTOCOLS_ID": {"type": "TEXT", "index": 25, "name": "DEFILLAMA_PROTOCOLS_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_protocols__INSERTED_TIMESTAMP.59c4e95c9c"}, "test.external_models.not_null_silver__snapshot_users_CREATED_AT.0499e8afe9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SNAPSHOT_USERS_CREATED_AT", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": null}, "NAME": {"type": "TEXT", "index": 2, "name": "NAME", "comment": null}, "ABOUT": {"type": "TEXT", "index": 3, "name": "ABOUT", "comment": null}, "AVATAR": {"type": "TEXT", "index": 4, "name": "AVATAR", "comment": null}, "IPFS": {"type": "TEXT", "index": 5, "name": "IPFS", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "CREATED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__snapshot_users_CREATED_AT.0499e8afe9"}, "model.external_models.silver__snapshot_spaces": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "SNAPSHOT_SPACES", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"SPACE_ID": {"type": "TEXT", "index": 1, "name": "SPACE_ID", "comment": ""}, "SPACE": {"type": "TEXT", "index": 2, "name": "SPACE", "comment": ""}, "ABOUT": {"type": "TEXT", "index": 3, "name": "ABOUT", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": ""}, "NETWORK": {"type": "TEXT", "index": 5, "name": "NETWORK", "comment": ""}, "CATEGORIES": {"type": "VARIANT", "index": 6, "name": "CATEGORIES", "comment": ""}, "DOMAIN": {"type": "TEXT", "index": 7, "name": "DOMAIN", "comment": ""}, "IS_PRIVATE": {"type": "BOOLEAN", "index": 8, "name": "IS_PRIVATE", "comment": ""}, "IS_VERIFIED": {"type": "BOOLEAN", "index": 9, "name": "IS_VERIFIED", "comment": ""}, "ADMINS": {"type": "VARIANT", "index": 10, "name": "ADMINS", "comment": ""}, "MEMBERS": {"type": "VARIANT", "index": 11, "name": "MEMBERS", "comment": ""}, "TREASURIES": {"type": "VARIANT", "index": 12, "name": "TREASURIES", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "_INSERTED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 16:17UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 9808896, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 90800, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver__snapshot_spaces"}, "model.external_models.snapshot__dim_spaces": {"metadata": {"type": "VIEW", "schema": "SNAPSHOT", "name": "DIM_SPACES", "database": "EXTERNAL", "comment": "A dimensional view that contains all spaces on Snapshot and related information.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"SPACE_ID": {"type": "TEXT", "index": 1, "name": "SPACE_ID", "comment": "A way to identify which group, or space, on Snapshot a proposal belongs to."}, "SPACE": {"type": "TEXT", "index": 2, "name": "SPACE", "comment": "The name of the space."}, "ABOUT": {"type": "TEXT", "index": 3, "name": "ABOUT", "comment": "The description of the space."}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": "The symbol of the space."}, "NETWORK": {"type": "TEXT", "index": 5, "name": "NETWORK", "comment": "The default network or blockchain used for the space."}, "CATEGORIES": {"type": "VARIANT", "index": 6, "name": "CATEGORIES", "comment": "The category of the space."}, "DOMAIN": {"type": "TEXT", "index": 7, "name": "DOMAIN", "comment": "The domain name of the space."}, "IS_PRIVATE": {"type": "BOOLEAN", "index": 8, "name": "IS_PRIVATE", "comment": "Boolean column to signal whether the space is private or not."}, "IS_VERIFIED": {"type": "BOOLEAN", "index": 9, "name": "IS_VERIFIED", "comment": "Boolean column to signal whether the space is verified or not."}, "ADMINS": {"type": "VARIANT", "index": 10, "name": "ADMINS", "comment": "An array of the admin addresses of the space."}, "MEMBERS": {"type": "VARIANT", "index": 11, "name": "MEMBERS", "comment": "An array of the member addresses of the space."}, "TREASURIES": {"type": "VARIANT", "index": 12, "name": "TREASURIES", "comment": "An object showcasing treasury details for the space."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.snapshot__dim_spaces"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_defillama__dim_protocols_INSERTED_TIMESTAMP__day__2.0f727fed14": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_DEFILLAMA", "name": "DIM_PROTOCOLS_INSERTED_TIMESTAMP", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_defillama__dim_protocols_INSERTED_TIMESTAMP__day__2.0f727fed14"}, "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_DEPOSIT_USD.615b5cbf42": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_BRIDGE_VOLUME_BY_CHAIN_DEPOSIT_USD", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BRIDGE_ID": {"type": "TEXT", "index": 1, "name": "BRIDGE_ID", "comment": null}, "BRIDGE": {"type": "TEXT", "index": 2, "name": "BRIDGE", "comment": null}, "BRIDGE_NAME": {"type": "TEXT", "index": 3, "name": "BRIDGE_NAME", "comment": null}, "CHAIN": {"type": "TEXT", "index": 4, "name": "CHAIN", "comment": null}, "BRIDGE_ID_CHAIN": {"type": "TEXT", "index": 5, "name": "BRIDGE_ID_CHAIN", "comment": null}, "DATE": {"type": "DATE", "index": 6, "name": "DATE", "comment": null}, "DEPOSIT_TXS": {"type": "NUMBER", "index": 7, "name": "DEPOSIT_TXS", "comment": null}, "DEPOSIT_USD": {"type": "NUMBER", "index": 8, "name": "DEPOSIT_USD", "comment": null}, "WITHDRAW_TXS": {"type": "NUMBER", "index": 9, "name": "WITHDRAW_TXS", "comment": null}, "WITHDRAW_USD": {"type": "NUMBER", "index": 10, "name": "WITHDRAW_USD", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "MODIFIED_TIMESTAMP", "comment": null}, "DEFILLAMA_BRIDGE_VOL_BY_CHAIN_ID": {"type": "TEXT", "index": 13, "name": "DEFILLAMA_BRIDGE_VOL_BY_CHAIN_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 14, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_DEPOSIT_USD.615b5cbf42"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_7d__FLOAT.8b6e748f8b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "DEFILLAMA_PERP_METRICS_TOTAL_7D", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_7d__FLOAT.8b6e748f8b"}, "model.external_models.silver__defillama_usdt_usdc_supply": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "DEFILLAMA_USDT_USDC_SUPPLY", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "DATE", "comment": ""}, "STABLECOIN_ID": {"type": "NUMBER", "index": 2, "name": "STABLECOIN_ID", "comment": ""}, "STABLECOIN": {"type": "TEXT", "index": 3, "name": "STABLECOIN", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": ""}, "CHAIN": {"type": "TEXT", "index": 5, "name": "CHAIN", "comment": ""}, "TOTAL_BRIDGED_USD": {"type": "FLOAT", "index": 6, "name": "TOTAL_BRIDGED_USD", "comment": ""}, "TOTAL_CIRCULATING": {"type": "FLOAT", "index": 7, "name": "TOTAL_CIRCULATING", "comment": ""}, "TOTAL_CIRCULATING_USD": {"type": "FLOAT", "index": 8, "name": "TOTAL_CIRCULATING_USD", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "DEFILLAMA_USDC_USDT_SUPPLY_ID": {"type": "TEXT", "index": 10, "name": "DEFILLAMA_USDC_USDT_SUPPLY_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 13, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(chain)", "include": true, "description": "The key used to cluster this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-09-05 06:00UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 8178688, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 137539, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver__defillama_usdt_usdc_supply"}, "model.external_models.defillama__fact_bridge_volume_by_chain": {"metadata": {"type": "VIEW", "schema": "DEFILLAMA", "name": "FACT_BRIDGE_VOLUME_BY_CHAIN", "database": "EXTERNAL", "comment": "This table contains historical deposit and withdraw transaction volume for the bridges by chain listed on Defillama in `dim_bridges`. Only includes data for chains that are supported in the crosschain table.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE": {"type": "DATE", "index": 1, "name": "DATE", "comment": "Date associated with the reported records."}, "CHAIN": {"type": "TEXT", "index": 2, "name": "CHAIN", "comment": "Chain associated with the reported records."}, "BRIDGE_ID": {"type": "TEXT", "index": 3, "name": "BRIDGE_ID", "comment": "Unique identifier of the bridge."}, "BRIDGE": {"type": "TEXT", "index": 4, "name": "BRIDGE", "comment": "Name of the bridge."}, "BRIDGE_NAME": {"type": "TEXT", "index": 5, "name": "BRIDGE_NAME", "comment": "The more descriptive, official display name of the bridge."}, "DEPOSIT_TXS": {"type": "NUMBER", "index": 6, "name": "DEPOSIT_TXS", "comment": "Total number of deposit transactions to the bridge."}, "DEPOSIT_USD": {"type": "NUMBER", "index": 7, "name": "DEPOSIT_USD", "comment": "Total value of deposits to the bridge, denominated in USD."}, "WITHDRAW_TXS": {"type": "NUMBER", "index": 8, "name": "WITHDRAW_TXS", "comment": "Total number of withdrawal transactions to the bridge."}, "WITHDRAW_USD": {"type": "NUMBER", "index": 9, "name": "WITHDRAW_USD", "comment": "Total value of withdrawals to the bridge, denominated in USD."}, "DEFILLAMA_FACT_BRIDGE_VOLUME_BY_CHAIN_ID": {"type": "TEXT", "index": 10, "name": "DEFILLAMA_FACT_BRIDGE_VOLUME_BY_CHAIN_ID", "comment": "Unique identifier for this record"}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "INSERTED_TIMESTAMP", "comment": "Timestamp when the record was inserted"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "MODIFIED_TIMESTAMP", "comment": "Timestamp when the record was last modified"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.defillama__fact_bridge_volume_by_chain"}, "model.external_models.streamline__bitquery_complete": {"metadata": {"type": "BASE TABLE", "schema": "STREAMLINE", "name": "BITQUERY_COMPLETE", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE_DAY": {"type": "DATE", "index": 1, "name": "DATE_DAY", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": null}, "METRIC": {"type": "TEXT", "index": 3, "name": "METRIC", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 4, "name": "PARTITION_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "MODIFIED_TIMESTAMP", "comment": null}, "FILE_NAME": {"type": "TEXT", "index": 8, "name": "FILE_NAME", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 07:32UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 103936, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 3934, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.streamline__bitquery_complete"}, "test.external_models.not_null_bronze__snapshot_proposals_PROPOSAL_END_TIME.4cc9d3d569": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "SNAPSHOT_PROPOSALS_PROPOSAL_END_TIME", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROPOSAL_ID": {"type": "TEXT", "index": 1, "name": "PROPOSAL_ID", "comment": null}, "IPFS": {"type": "TEXT", "index": 2, "name": "IPFS", "comment": null}, "CHOICES": {"type": "ARRAY", "index": 3, "name": "CHOICES", "comment": null}, "PROPOSAL_AUTHOR": {"type": "TEXT", "index": 4, "name": "PROPOSAL_AUTHOR", "comment": null}, "PROPOSAL_TITLE": {"type": "TEXT", "index": 5, "name": "PROPOSAL_TITLE", "comment": null}, "PROPOSAL_TEXT": {"type": "TEXT", "index": 6, "name": "PROPOSAL_TEXT", "comment": null}, "DELAY": {"type": "NUMBER", "index": 7, "name": "DELAY", "comment": null}, "QUORUM": {"type": "NUMBER", "index": 8, "name": "QUORUM", "comment": null}, "VOTING_PERIOD": {"type": "NUMBER", "index": 9, "name": "VOTING_PERIOD", "comment": null}, "VOTING_TYPE": {"type": "TEXT", "index": 10, "name": "VOTING_TYPE", "comment": null}, "SPACE_ID": {"type": "TEXT", "index": 11, "name": "SPACE_ID", "comment": null}, "NETWORK": {"type": "TEXT", "index": 12, "name": "NETWORK", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "CREATED_AT", "comment": null}, "PROPOSAL_START_TIME": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "PROPOSAL_START_TIME", "comment": null}, "PROPOSAL_END_TIME": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "PROPOSAL_END_TIME", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__snapshot_proposals_PROPOSAL_END_TIME.4cc9d3d569"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_stablecoin_metrics_DATE_DAY__day__2.62280edb3d": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER", "name": "DEFILLAMA_STABLECOIN_METRICS_DATE_DAY", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_stablecoin_metrics_DATE_DAY__day__2.62280edb3d"}, "test.external_models.not_null_silver__snapshot_votes_VOTE_TIMESTAMP.bc2c7ab8f4": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SNAPSHOT_VOTES_VOTE_TIMESTAMP", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"VOTE_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "VOTE_TIMESTAMP", "comment": null}, "VOTER": {"type": "TEXT", "index": 2, "name": "VOTER", "comment": null}, "PROPOSAL_ID": {"type": "TEXT", "index": 3, "name": "PROPOSAL_ID", "comment": null}, "VOTE_OPTION": {"type": "ARRAY", "index": 4, "name": "VOTE_OPTION", "comment": null}, "VOTING_POWER": {"type": "NUMBER", "index": 5, "name": "VOTING_POWER", "comment": null}, "IPFS": {"type": "TEXT", "index": 6, "name": "IPFS", "comment": null}, "VOTE_ID": {"type": "TEXT", "index": 7, "name": "VOTE_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__snapshot_votes_VOTE_TIMESTAMP.bc2c7ab8f4"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_stablecoin_supply__INSERTED_TIMESTAMP__day__2.8028729672": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER", "name": "DEFILLAMA_STABLECOIN_SUPPLY", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-05-28 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1024, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_stablecoin_supply__INSERTED_TIMESTAMP__day__2.8028729672"}, "model.external_models.defillama__fact_bridge_volume": {"metadata": {"type": "VIEW", "schema": "DEFILLAMA", "name": "FACT_BRIDGE_VOLUME", "database": "EXTERNAL", "comment": "This table contains historical deposit and withdraw transaction volume for the bridges listed on Defillama in `dim_bridges`.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE": {"type": "DATE", "index": 1, "name": "DATE", "comment": "Date associated with the reported records."}, "BRIDGE_ID": {"type": "TEXT", "index": 2, "name": "BRIDGE_ID", "comment": "Unique identifier of the bridge."}, "BRIDGE": {"type": "TEXT", "index": 3, "name": "BRIDGE", "comment": "Name of the bridge."}, "BRIDGE_NAME": {"type": "TEXT", "index": 4, "name": "BRIDGE_NAME", "comment": "The more descriptive, official display name of the bridge."}, "DEPOSIT_TXS": {"type": "NUMBER", "index": 5, "name": "DEPOSIT_TXS", "comment": "Total number of deposit transactions to the bridge."}, "DEPOSIT_USD": {"type": "NUMBER", "index": 6, "name": "DEPOSIT_USD", "comment": "Total value of deposits to the bridge, denominated in USD."}, "WITHDRAW_TXS": {"type": "NUMBER", "index": 7, "name": "WITHDRAW_TXS", "comment": "Total number of withdrawal transactions to the bridge."}, "WITHDRAW_USD": {"type": "NUMBER", "index": 8, "name": "WITHDRAW_USD", "comment": "Total value of withdrawals to the bridge, denominated in USD."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.defillama__fact_bridge_volume"}, "model.external_models.snapshot__fact_proposals": {"metadata": {"type": "VIEW", "schema": "SNAPSHOT", "name": "FACT_PROPOSALS", "database": "EXTERNAL", "comment": "A fact view that contains all proposals on Snapshot and related information.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "CREATED_AT", "comment": "The time at which the proposal was generated."}, "PROPOSAL_TITLE": {"type": "TEXT", "index": 2, "name": "PROPOSAL_TITLE", "comment": "The title or name of the proposal."}, "PROPOSAL_AUTHOR": {"type": "TEXT", "index": 3, "name": "PROPOSAL_AUTHOR", "comment": "The address of the wallet that wrote the proposal."}, "PROPOSAL_TEXT": {"type": "TEXT", "index": 4, "name": "PROPOSAL_TEXT", "comment": "The body of the proposal."}, "CHOICES": {"type": "ARRAY", "index": 5, "name": "CHOICES", "comment": "An array containing the voting options on the proposal."}, "DELAY": {"type": "NUMBER", "index": 6, "name": "DELAY", "comment": "The default number of hours of voting delay for the space. The voting delay is the time between proposal submission and the opening of voting."}, "QUORUM": {"type": "NUMBER", "index": 7, "name": "QUORUM", "comment": "The minimum amount of voting power for a proposal to pass."}, "VOTING_PERIOD": {"type": "NUMBER", "index": 8, "name": "VOTING_PERIOD", "comment": "The default time in hours within a space for a proposal to be open for voting."}, "VOTING_TYPE": {"type": "TEXT", "index": 9, "name": "VOTING_TYPE", "comment": "The type of voting system used for this space. If this column is not null, the same voting system will be used for all proposals in this space."}, "IPFS": {"type": "TEXT", "index": 10, "name": "IPFS", "comment": "The corresponding IPFS hash."}, "PROPOSAL_START_TIME": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "PROPOSAL_START_TIME", "comment": "The time at which voting on the proposal begins."}, "PROPOSAL_END_TIME": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "PROPOSAL_END_TIME", "comment": "The time at which voting on the proposal ends."}, "SPACE_ID": {"type": "TEXT", "index": 13, "name": "SPACE_ID", "comment": "A way to identify which group, or space, on Snapshot a proposal belongs to."}, "NETWORK": {"type": "TEXT", "index": 14, "name": "NETWORK", "comment": "The default network or blockchain used for the space."}, "NETWORK_ID": {"type": "TEXT", "index": 15, "name": "NETWORK_ID", "comment": "The default network or blockchain unique identifier used for the space."}, "PROPOSAL_ID": {"type": "TEXT", "index": 16, "name": "PROPOSAL_ID", "comment": "A unique identifier for the proposal being voted on."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.snapshot__fact_proposals"}, "test.external_models.not_null_bronze__all_tokenlists_API_URL.4f84b31250": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "ALL_TOKENLISTS_API_URL", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"API_URL": {"type": "TEXT", "index": 1, "name": "API_URL", "comment": null}, "REQUEST": {"type": "VARIANT", "index": 2, "name": "REQUEST", "comment": null}, "KEYWORDS": {"type": "VARIANT", "index": 3, "name": "KEYWORDS", "comment": null}, "LOGO_URI": {"type": "TEXT", "index": 4, "name": "LOGO_URI", "comment": null}, "LIST_NAME": {"type": "TEXT", "index": 5, "name": "LIST_NAME", "comment": null}, "LIST_TAGS": {"type": "VARIANT", "index": 6, "name": "LIST_TAGS", "comment": null}, "ROW_NUM": {"type": "NUMBER", "index": 7, "name": "ROW_NUM", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ALL_TOKENLISTS_ID": {"type": "TEXT", "index": 9, "name": "ALL_TOKENLISTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__all_tokenlists_API_URL.4f84b31250"}, "test.external_models.not_null_bronze__snapshot_votes_PROPOSAL_ID.fd52925536": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "SNAPSHOT_VOTES_PROPOSAL_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": null}, "IPFS": {"type": "TEXT", "index": 2, "name": "IPFS", "comment": null}, "PROPOSAL_ID": {"type": "TEXT", "index": 3, "name": "PROPOSAL_ID", "comment": null}, "VOTER": {"type": "TEXT", "index": 4, "name": "VOTER", "comment": null}, "VOTING_POWER": {"type": "NUMBER", "index": 5, "name": "VOTING_POWER", "comment": null}, "VOTE_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "VOTE_TIMESTAMP", "comment": null}, "VOTE_OPTION": {"type": "ARRAY", "index": 7, "name": "VOTE_OPTION", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__snapshot_votes_PROPOSAL_ID.fd52925536"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_options_premium__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.2280d7f2a6": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "DEFILLAMA_OPTIONS_PREMIUM", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_options_premium__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.2280d7f2a6"}, "test.external_models.not_null_bronze__snapshot_votes_VOTE_TIMESTAMP.3fa3f796a9": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "SNAPSHOT_VOTES_VOTE_TIMESTAMP", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": null}, "IPFS": {"type": "TEXT", "index": 2, "name": "IPFS", "comment": null}, "PROPOSAL_ID": {"type": "TEXT", "index": 3, "name": "PROPOSAL_ID", "comment": null}, "VOTER": {"type": "TEXT", "index": 4, "name": "VOTER", "comment": null}, "VOTING_POWER": {"type": "NUMBER", "index": 5, "name": "VOTING_POWER", "comment": null}, "VOTE_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "VOTE_TIMESTAMP", "comment": null}, "VOTE_OPTION": {"type": "ARRAY", "index": 7, "name": "VOTE_OPTION", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__snapshot_votes_VOTE_TIMESTAMP.3fa3f796a9"}, "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_DEPOSIT_TXS.047faf98b4": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_BRIDGE_VOLUME_BY_CHAIN_DEPOSIT_TXS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BRIDGE_ID": {"type": "TEXT", "index": 1, "name": "BRIDGE_ID", "comment": null}, "BRIDGE": {"type": "TEXT", "index": 2, "name": "BRIDGE", "comment": null}, "BRIDGE_NAME": {"type": "TEXT", "index": 3, "name": "BRIDGE_NAME", "comment": null}, "CHAIN": {"type": "TEXT", "index": 4, "name": "CHAIN", "comment": null}, "BRIDGE_ID_CHAIN": {"type": "TEXT", "index": 5, "name": "BRIDGE_ID_CHAIN", "comment": null}, "DATE": {"type": "DATE", "index": 6, "name": "DATE", "comment": null}, "DEPOSIT_TXS": {"type": "NUMBER", "index": 7, "name": "DEPOSIT_TXS", "comment": null}, "DEPOSIT_USD": {"type": "NUMBER", "index": 8, "name": "DEPOSIT_USD", "comment": null}, "WITHDRAW_TXS": {"type": "NUMBER", "index": 9, "name": "WITHDRAW_TXS", "comment": null}, "WITHDRAW_USD": {"type": "NUMBER", "index": 10, "name": "WITHDRAW_USD", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "MODIFIED_TIMESTAMP", "comment": null}, "DEFILLAMA_BRIDGE_VOL_BY_CHAIN_ID": {"type": "TEXT", "index": 13, "name": "DEFILLAMA_BRIDGE_VOL_BY_CHAIN_ID", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 14, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_DEPOSIT_TXS.047faf98b4"}, "test.external_models.not_null_silver__artemis_blockchain.a0d0dfb71d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "ARTEMIS_BLOCKCHAIN", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"METRIC_DATE": {"type": "DATE", "index": 1, "name": "METRIC_DATE", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": null}, "METRIC": {"type": "TEXT", "index": 3, "name": "METRIC", "comment": null}, "METRIC_VALUE": {"type": "VARIANT", "index": 4, "name": "METRIC_VALUE", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 5, "name": "PARTITION_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "FILE_NAME": {"type": "TEXT", "index": 7, "name": "FILE_NAME", "comment": null}, "ARTEMIS_ID": {"type": "TEXT", "index": 8, "name": "ARTEMIS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 11, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__artemis_blockchain.a0d0dfb71d"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver_aptos__shinam_metric_date__day__3.d346ecf718": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER_APTOS", "name": "SHINAM_METRIC_DATE", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver_aptos__shinam_metric_date__day__3.d346ecf718"}, "model.external_models.farcaster__fact_links": {"metadata": {"type": "VIEW", "schema": "FARCASTER", "name": "FACT_LINKS", "database": "EXTERNAL", "comment": "Represents a link between two FIDs (e.g. a follow, subscription, etc.). For more info see [Neynar](https://docs.neynar.com/docs/how-to-query-neynar-sql-playground-for-farcaster-data) or [schema](https://github.com/farcasterxyz/hub-monorepo/tree/51c57245df8ec1c68d616dd3ab8ae5b80edf68fd/apps/replicator)", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ID": {"type": "NUMBER", "index": 1, "name": "ID", "comment": "Generic identifier specific to this DB (a.k.a. surrogate key)"}, "FID": {"type": "NUMBER", "index": 2, "name": "FID", "comment": "Farcaster ID (the user ID)."}, "TARGET_FID": {"type": "NUMBER", "index": 3, "name": "TARGET_FID", "comment": "Farcaster ID of the target user."}, "HASH": {"type": "BINARY", "index": 4, "name": "HASH", "comment": "Message hash."}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "TIMESTAMP", "comment": "Message timestamp in UTC."}, "TYPE": {"type": "TEXT", "index": 6, "name": "TYPE", "comment": "Type of connection between users, e.g. follow."}, "DISPLAY_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "DISPLAY_TIMESTAMP", "comment": "When the row was last updated."}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "CREATED_AT", "comment": "When the row was first created in this DB (not when the link itself was created on the network!)"}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "UPDATED_AT", "comment": "When the row was last updated"}, "DELETED_AT": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "DELETED_AT", "comment": "When the link was considered deleted by the hub (e.g. in response to a LinkRemoveMessage message, etc.)"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.farcaster__fact_links"}, "test.external_models.dbt_utils_unique_combination_of_columns_bronze__snapshot_users_ADDRESS.9c829aad58": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_BRONZE", "name": "SNAPSHOT_USERS_ADDRESS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bronze__snapshot_users_ADDRESS.9c829aad58"}, "model.external_models.defillama__dim_dexes": {"metadata": {"type": "VIEW", "schema": "DEFILLAMA", "name": "DIM_DEXES", "database": "EXTERNAL", "comment": "This table contains dimensional information about the decentralized exchanges (DEX) listed on Defillama.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DEX_ID": {"type": "TEXT", "index": 1, "name": "DEX_ID", "comment": "Unique identifier of the dex."}, "DEX": {"type": "TEXT", "index": 2, "name": "DEX", "comment": "Name of the dex."}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": "The category of protocol the decentralized exhange belongs to (e.g. Dexes, Options, Yield, Derivatives etc.)."}, "CHAINS": {"type": "VARIANT", "index": 4, "name": "CHAINS", "comment": "Array of the various chains or networks that the dex is deployed on."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.defillama__dim_dexes"}, "test.external_models.dbt_utils_unique_combination_of_columns_bronze__snapshot_spaces_SPACE_ID.dcac8f89f2": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_BRONZE", "name": "SNAPSHOT_SPACES_SPACE_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"SPACE_ID": {"type": "TEXT", "index": 1, "name": "SPACE_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bronze__snapshot_spaces_SPACE_ID.dcac8f89f2"}, "test.external_models.not_null_silver__defillama_investors__INSERTED_TIMESTAMP.a9348ff319": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_INVESTORS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"INVESTOR": {"type": "TEXT", "index": 1, "name": "INVESTOR", "comment": null}, "DEALS": {"type": "NUMBER", "index": 2, "name": "DEALS", "comment": null}, "TOTAL_AMOUNT": {"type": "FLOAT", "index": 3, "name": "TOTAL_AMOUNT", "comment": null}, "MEDIAN_AMOUNT": {"type": "FLOAT", "index": 4, "name": "MEDIAN_AMOUNT", "comment": null}, "CHAINS": {"type": "ARRAY", "index": 5, "name": "CHAINS", "comment": null}, "TOP_PROJECT_CATEGORY": {"type": "TEXT", "index": 6, "name": "TOP_PROJECT_CATEGORY", "comment": null}, "TOP_ROUND_TYPE": {"type": "TEXT", "index": 7, "name": "TOP_ROUND_TYPE", "comment": null}, "PROJECTS": {"type": "ARRAY", "index": 8, "name": "PROJECTS", "comment": null}, "DEFILLAMA_INVESTORS_ID": {"type": "TEXT", "index": 9, "name": "DEFILLAMA_INVESTORS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 13, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_investors__INSERTED_TIMESTAMP.a9348ff319"}, "model.external_models.silver__defillama_protocol_revenue": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "DEFILLAMA_PROTOCOL_REVENUE", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": ""}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "TIMESTAMP", "comment": ""}, "PROTOCOL": {"type": "TEXT", "index": 3, "name": "PROTOCOL", "comment": ""}, "DAILY_REV": {"type": "NUMBER", "index": 4, "name": "DAILY_REV", "comment": ""}, "REV_OBJECT": {"type": "VARIANT", "index": 5, "name": "REV_OBJECT", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "ID": {"type": "TEXT", "index": 7, "name": "ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 08:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 180852736, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1257647, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver__defillama_protocol_revenue"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_stablecoin_supply_DEFILLAMA_STABLECOIN_SUPPLY_ID.7bf8bbe21c": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "DEFILLAMA_STABLECOIN_SUPPLY_DEFILLAMA_STABLECOIN_SUPPLY_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DEFILLAMA_STABLECOIN_SUPPLY_ID": {"type": "TEXT", "index": 1, "name": "DEFILLAMA_STABLECOIN_SUPPLY_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-05-28 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_stablecoin_supply_DEFILLAMA_STABLECOIN_SUPPLY_ID.7bf8bbe21c"}, "model.external_models.avalanche__fact_x_vertices": {"metadata": {"type": "VIEW", "schema": "AVALANCHE", "name": "FACT_X_VERTICES", "database": "EXTERNAL", "comment": "Avalanche X-Chain Vertices. Please visit https://discord.gg/avax for any questions.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"VERTEX_HASH": {"type": "TEXT", "index": 1, "name": "VERTEX_HASH", "comment": "Unique identifier hash for the vertex"}, "PARENT_HASH": {"type": "TEXT", "index": 2, "name": "PARENT_HASH", "comment": "Hash of the parent vertex"}, "VERTEX_HEIGHT": {"type": "NUMBER", "index": 3, "name": "VERTEX_HEIGHT", "comment": ""}, "VERTEX_INDEX": {"type": "NUMBER", "index": 4, "name": "VERTEX_INDEX", "comment": ""}, "VERTEX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "VERTEX_TIMESTAMP", "comment": "Timestamp when the vertex was created"}, "TRANSACTION_COUNT": {"type": "NUMBER", "index": 6, "name": "TRANSACTION_COUNT", "comment": "Number of transactions contained in the vertex"}, "VERTEX_SIZE": {"type": "NUMBER", "index": 7, "name": "VERTEX_SIZE", "comment": ""}, "LAST_UPDATED": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "LAST_UPDATED", "comment": ""}, "LOAD_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "LOAD_TIMESTAMP", "comment": "Timestamp when data was loaded into Snowflake"}, "IS_STOP_VERTEX": {"type": "BOOLEAN", "index": 10, "name": "IS_STOP_VERTEX", "comment": "Indicates if this is a stop vertex in the DAG"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.avalanche__fact_x_vertices"}, "test.external_models.not_null_defillama__ez_stablecoin_metrics_ez_stablecoin_metrics_id.adf99e97ff": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_DEFILLAMA", "name": "EZ_STABLECOIN_METRICS_EZ_STABLECOIN_METRICS_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "DATE_DAY": {"type": "DATE", "index": 2, "name": "DATE_DAY", "comment": null}, "STABLECOIN_ID": {"type": "TEXT", "index": 3, "name": "STABLECOIN_ID", "comment": null}, "STABLECOIN": {"type": "TEXT", "index": 4, "name": "STABLECOIN", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 5, "name": "SYMBOL", "comment": null}, "PEG_TYPE": {"type": "TEXT", "index": 6, "name": "PEG_TYPE", "comment": null}, "PEG_MECHANISM": {"type": "TEXT", "index": 7, "name": "PEG_MECHANISM", "comment": null}, "TOTAL_CIRCULATING_USD": {"type": "FLOAT", "index": 8, "name": "TOTAL_CIRCULATING_USD", "comment": null}, "TOTAL_MINTED_USD": {"type": "FLOAT", "index": 9, "name": "TOTAL_MINTED_USD", "comment": null}, "TOTAL_CIRCULATING": {"type": "FLOAT", "index": 10, "name": "TOTAL_CIRCULATING", "comment": null}, "TOTAL_BRIDGED_TO_USD": {"type": "FLOAT", "index": 11, "name": "TOTAL_BRIDGED_TO_USD", "comment": null}, "TOTAL_UNRELEASED": {"type": "FLOAT", "index": 12, "name": "TOTAL_UNRELEASED", "comment": null}, "EZ_STABLECOIN_METRICS_ID": {"type": "TEXT", "index": 13, "name": "EZ_STABLECOIN_METRICS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_defillama__ez_stablecoin_metrics_ez_stablecoin_metrics_id.adf99e97ff"}, "test.external_models.not_null_silver__defillama_raises__INSERTED_TIMESTAMP.09318375f6": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_RAISES", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"FUNDING_DATE": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "FUNDING_DATE", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 2, "name": "PROJECT_NAME", "comment": null}, "FUNDING_ROUND": {"type": "TEXT", "index": 3, "name": "FUNDING_ROUND", "comment": null}, "AMOUNT_RAISED": {"type": "FLOAT", "index": 4, "name": "AMOUNT_RAISED", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 5, "name": "CHAINS", "comment": null}, "SECTOR": {"type": "TEXT", "index": 6, "name": "SECTOR", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 7, "name": "CATEGORY", "comment": null}, "CATEGORY_GROUP": {"type": "TEXT", "index": 8, "name": "CATEGORY_GROUP", "comment": null}, "SOURCE": {"type": "TEXT", "index": 9, "name": "SOURCE", "comment": null}, "LEAD_INVESTORS": {"type": "VARIANT", "index": 10, "name": "LEAD_INVESTORS", "comment": null}, "OTHER_INVESTORS": {"type": "VARIANT", "index": 11, "name": "OTHER_INVESTORS", "comment": null}, "VALUATION": {"type": "NUMBER", "index": 12, "name": "VALUATION", "comment": null}, "DEFILLAMA_ID": {"type": "TEXT", "index": 13, "name": "DEFILLAMA_ID", "comment": null}, "RAISE_ID": {"type": "TEXT", "index": 14, "name": "RAISE_ID", "comment": null}, "DEFILLAMA_RAISES_ID": {"type": "TEXT", "index": 15, "name": "DEFILLAMA_RAISES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 19, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_raises__INSERTED_TIMESTAMP.09318375f6"}, "model.external_models.silver__defillama_raises": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "DEFILLAMA_RAISES", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"FUNDING_DATE": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "FUNDING_DATE", "comment": ""}, "PROJECT_NAME": {"type": "TEXT", "index": 2, "name": "PROJECT_NAME", "comment": ""}, "FUNDING_ROUND": {"type": "TEXT", "index": 3, "name": "FUNDING_ROUND", "comment": ""}, "AMOUNT_RAISED": {"type": "FLOAT", "index": 4, "name": "AMOUNT_RAISED", "comment": ""}, "CHAINS": {"type": "VARIANT", "index": 5, "name": "CHAINS", "comment": ""}, "SECTOR": {"type": "TEXT", "index": 6, "name": "SECTOR", "comment": ""}, "CATEGORY": {"type": "TEXT", "index": 7, "name": "CATEGORY", "comment": ""}, "CATEGORY_GROUP": {"type": "TEXT", "index": 8, "name": "CATEGORY_GROUP", "comment": ""}, "SOURCE": {"type": "TEXT", "index": 9, "name": "SOURCE", "comment": ""}, "LEAD_INVESTORS": {"type": "VARIANT", "index": 10, "name": "LEAD_INVESTORS", "comment": ""}, "OTHER_INVESTORS": {"type": "VARIANT", "index": 11, "name": "OTHER_INVESTORS", "comment": ""}, "VALUATION": {"type": "NUMBER", "index": 12, "name": "VALUATION", "comment": ""}, "DEFILLAMA_ID": {"type": "TEXT", "index": 13, "name": "DEFILLAMA_ID", "comment": ""}, "RAISE_ID": {"type": "TEXT", "index": 14, "name": "RAISE_ID", "comment": ""}, "DEFILLAMA_RAISES_ID": {"type": "TEXT", "index": 15, "name": "DEFILLAMA_RAISES_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 19, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 08:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1324032, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 6526, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver__defillama_raises"}, "test.livequery_models.test__live_udf_api_post_data_array.f30e6de8c8": {"metadata": {"type": "BASE TABLE", "schema": "TEST", "name": "LIVE_UDF_API_POST_DATA_ARRAY", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TEST_NAME": {"type": "TEXT", "index": 1, "name": "TEST_NAME", "comment": null}, "PARAMETERS": {"type": "ARRAY", "index": 2, "name": "PARAMETERS", "comment": null}, "RESULT": {"type": "VARIANT", "index": 3, "name": "RESULT", "comment": null}, "ASSERTION": {"type": "TEXT", "index": 4, "name": "ASSERTION", "comment": null}, "SQL": {"type": "TEXT", "index": 5, "name": "SQL", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-01-12 14:49UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.livequery_models.test__live_udf_api_post_data_array.f30e6de8c8"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_options_premium__INSERTED_TIMESTAMP__day__2.b0dc92c970": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER", "name": "DEFILLAMA_OPTIONS_PREMIUM", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_options_premium__INSERTED_TIMESTAMP__day__2.b0dc92c970"}, "model.external_models.defillama__dim_pools": {"metadata": {"type": "VIEW", "schema": "DEFILLAMA", "name": "DIM_POOLS", "database": "EXTERNAL", "comment": "This table contains dimensional information about DeFi pools listed on DefiLlama.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"POOL_ID": {"type": "TEXT", "index": 1, "name": "POOL_ID", "comment": "The unique identifier for each pool."}, "PROTOCOL": {"type": "TEXT", "index": 2, "name": "PROTOCOL", "comment": "The protocol the pool is part of."}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": "The symbol of the pool."}, "CHAIN": {"type": "TEXT", "index": 4, "name": "CHAIN", "comment": "The chain the pool is located on."}, "REWARD_TOKENS": {"type": "TEXT", "index": 5, "name": "REWARD_TOKENS", "comment": "The addresses of the tokens rewarded by the pool."}, "UNDERLYING_TOKENS": {"type": "TEXT", "index": 6, "name": "UNDERLYING_TOKENS", "comment": "The underlying tokens that make up the pool."}, "IS_STABLECOIN": {"type": "BOOLEAN", "index": 7, "name": "IS_STABLECOIN", "comment": "Boolean column displaying whether the pool contains a stablecoin or not."}, "ILRISK": {"type": "TEXT", "index": 8, "name": "ILRISK", "comment": "Boolean column displaying whether the pool has explicit illiquidity risk."}, "EXPOSURE_TYPE": {"type": "TEXT", "index": 9, "name": "EXPOSURE_TYPE", "comment": "The type of exposure of the pool."}, "POOL_METADATA": {"type": "TEXT", "index": 10, "name": "POOL_METADATA", "comment": "Metadata of the pool."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.defillama__dim_pools"}, "model.external_models.avalanche__fact_x_transactions": {"metadata": {"type": "VIEW", "schema": "AVALANCHE", "name": "FACT_X_TRANSACTIONS", "database": "EXTERNAL", "comment": "Avalanche X-Chain Transactions. Please visit https://discord.gg/avax for any questions.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TRANSACTION_HASH": {"type": "TEXT", "index": 1, "name": "TRANSACTION_HASH", "comment": "Unique identifier for the transaction"}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "TIMESTAMP", "comment": "Timestamp when the transaction was processed"}, "TYPE": {"type": "TEXT", "index": 3, "name": "TYPE", "comment": "Type of transaction (e.g. import, export, operation)"}, "BLOCK_HASH": {"type": "TEXT", "index": 4, "name": "BLOCK_HASH", "comment": "Hash of the block containing the transaction"}, "BLOCK_INDEX": {"type": "NUMBER", "index": 5, "name": "BLOCK_INDEX", "comment": "Index of the block in which the transaction occured"}, "BLOCK_HEIGHT": {"type": "NUMBER", "index": 6, "name": "BLOCK_HEIGHT", "comment": "Height of the block in the blockchain"}, "MEMO": {"type": "TEXT", "index": 7, "name": "MEMO", "comment": "Optional memo associated with the transaction"}, "FEE": {"type": "NUMBER", "index": 8, "name": "FEE", "comment": "Transaction fee in smallest denomination"}, "ASSET_NAME": {"type": "TEXT", "index": 9, "name": "ASSET_NAME", "comment": "Name of the asset involved in the transaction"}, "SYMBOL": {"type": "TEXT", "index": 10, "name": "SYMBOL", "comment": "Symbol of the asset"}, "DENOMINATION": {"type": "NUMBER", "index": 11, "name": "DENOMINATION", "comment": "Denomination of the asset (10^denomination)"}, "SOURCE_CHAIN": {"type": "TEXT", "index": 12, "name": "SOURCE_CHAIN", "comment": "Source chain for cross-chain transactions"}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 13, "name": "DESTINATION_CHAIN", "comment": "Destination chain for cross-chain transactions"}, "METADATA": {"type": "TEXT", "index": 14, "name": "METADATA", "comment": ""}, "BYTES": {"type": "BINARY", "index": 15, "name": "BYTES", "comment": ""}, "LAST_UPDATED": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "LAST_UPDATED", "comment": "Last update timestamp"}, "LOAD_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "LOAD_TIMESTAMP", "comment": "Timestamp when data was loaded into Snowflake"}, "IS_LINEAR": {"type": "BOOLEAN", "index": 18, "name": "IS_LINEAR", "comment": ""}, "TX_BLOCK_POSITION": {"type": "NUMBER", "index": 19, "name": "TX_BLOCK_POSITION", "comment": "Position of the transaction in the block"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.avalanche__fact_x_transactions"}, "model.external_models.silver_aptos__lync": {"metadata": {"type": "BASE TABLE", "schema": "SILVER_APTOS", "name": "LYNC", "database": "EXTERNAL", "comment": "Lyncwold paymaster data", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"METRIC": {"type": "TEXT", "index": 1, "name": "METRIC", "comment": "The metric name"}, "METRIC_DATE": {"type": "DATE", "index": 2, "name": "METRIC_DATE", "comment": "The date of the metric measurement"}, "METRIC_COUNT": {"type": "NUMBER", "index": 3, "name": "METRIC_COUNT", "comment": "Reported metric count"}, "METRIC_AMOUNT": {"type": "FLOAT", "index": 4, "name": "METRIC_AMOUNT", "comment": "Reported metric amount"}, "METRIC_AMOUNT_IN_USD": {"type": "FLOAT", "index": 5, "name": "METRIC_AMOUNT_IN_USD", "comment": "Reported metric amount in USD"}, "LYNC_ID": {"type": "TEXT", "index": 6, "name": "LYNC_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 10:38UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 57856, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1074, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver_aptos__lync"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__snapshot_votes_VOTE_ID.2d7a58900a": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "SNAPSHOT_VOTES_VOTE_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"VOTE_ID": {"type": "TEXT", "index": 1, "name": "VOTE_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__snapshot_votes_VOTE_ID.2d7a58900a"}, "test.external_models.not_null_silver__polymarket_markets_CONDITION_ID.d534ff72dc": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "POLYMARKET_MARKETS_CONDITION_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CONDITION_ID": {"type": "TEXT", "index": 1, "name": "CONDITION_ID", "comment": null}, "QUESTION": {"type": "TEXT", "index": 2, "name": "QUESTION", "comment": null}, "DESCRIPTION": {"type": "TEXT", "index": 3, "name": "DESCRIPTION", "comment": null}, "TOKENS": {"type": "VARIANT", "index": 4, "name": "TOKENS", "comment": null}, "TOKEN_1_TOKEN_ID": {"type": "TEXT", "index": 5, "name": "TOKEN_1_TOKEN_ID", "comment": null}, "TOKEN_1_OUTCOME": {"type": "TEXT", "index": 6, "name": "TOKEN_1_OUTCOME", "comment": null}, "TOKEN_1_WINNER": {"type": "TEXT", "index": 7, "name": "TOKEN_1_WINNER", "comment": null}, "TOKEN_2_TOKEN_ID": {"type": "TEXT", "index": 8, "name": "TOKEN_2_TOKEN_ID", "comment": null}, "TOKEN_2_OUTCOME": {"type": "TEXT", "index": 9, "name": "TOKEN_2_OUTCOME", "comment": null}, "TOKEN_2_WINNER": {"type": "TEXT", "index": 10, "name": "TOKEN_2_WINNER", "comment": null}, "ENABLE_ORDER_BOOK": {"type": "TEXT", "index": 11, "name": "ENABLE_ORDER_BOOK", "comment": null}, "ACTIVE": {"type": "BOOLEAN", "index": 12, "name": "ACTIVE", "comment": null}, "CLOSED": {"type": "BOOLEAN", "index": 13, "name": "CLOSED", "comment": null}, "ARCHIVED": {"type": "BOOLEAN", "index": 14, "name": "ARCHIVED", "comment": null}, "ACCEPTING_ORDERS": {"type": "BOOLEAN", "index": 15, "name": "ACCEPTING_ORDERS", "comment": null}, "ACCEPTING_ORDER_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "ACCEPTING_ORDER_TIMESTAMP", "comment": null}, "MINIMUM_ORDER_SIZE": {"type": "NUMBER", "index": 17, "name": "MINIMUM_ORDER_SIZE", "comment": null}, "MINIMUM_TICK_SIZE": {"type": "NUMBER", "index": 18, "name": "MINIMUM_TICK_SIZE", "comment": null}, "QUESTION_ID": {"type": "TEXT", "index": 19, "name": "QUESTION_ID", "comment": null}, "MARKET_SLUG": {"type": "TEXT", "index": 20, "name": "MARKET_SLUG", "comment": null}, "END_DATE_ISO": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "END_DATE_ISO", "comment": null}, "GAME_START_TIME": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "GAME_START_TIME", "comment": null}, "SECONDS_DELAY": {"type": "NUMBER", "index": 23, "name": "SECONDS_DELAY", "comment": null}, "FPMM": {"type": "TEXT", "index": 24, "name": "FPMM", "comment": null}, "MAKER_BASE_FEE": {"type": "NUMBER", "index": 25, "name": "MAKER_BASE_FEE", "comment": null}, "TAKER_BASE_FEE": {"type": "NUMBER", "index": 26, "name": "TAKER_BASE_FEE", "comment": null}, "NOTIFICATIONS_ENABLED": {"type": "BOOLEAN", "index": 27, "name": "NOTIFICATIONS_ENABLED", "comment": null}, "NEG_RISK": {"type": "BOOLEAN", "index": 28, "name": "NEG_RISK", "comment": null}, "NEG_RISK_MARKET_ID": {"type": "TEXT", "index": 29, "name": "NEG_RISK_MARKET_ID", "comment": null}, "NEG_RISK_REQUEST_ID": {"type": "TEXT", "index": 30, "name": "NEG_RISK_REQUEST_ID", "comment": null}, "REWARDS": {"type": "VARIANT", "index": 31, "name": "REWARDS", "comment": null}, "TAGS": {"type": "VARIANT", "index": 32, "name": "TAGS", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 33, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DIM_MARKETS_ID": {"type": "TEXT", "index": 34, "name": "DIM_MARKETS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 35, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 36, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__polymarket_markets_CONDITION_ID.d534ff72dc"}, "model.external_models.farcaster__dim_profile_with_addresses": {"metadata": {"type": "VIEW", "schema": "FARCASTER", "name": "DIM_PROFILE_WITH_ADDRESSES", "database": "EXTERNAL", "comment": "This table contains farcaster users profile data and their connected addresses. For more info see [Neynar](https://docs.neynar.com/docs/how-to-query-neynar-sql-playground-for-farcaster-data) or [schema](https://github.com/farcasterxyz/hub-monorepo/tree/51c57245df8ec1c68d616dd3ab8ae5b80edf68fd/apps/replicator)", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"FID": {"type": "NUMBER", "index": 1, "name": "FID", "comment": "FID the username belongs to."}, "FNAME": {"type": "TEXT", "index": 2, "name": "FNAME", "comment": "Username, e.g. dwr if an fname, or dwr.eth if an ENS name."}, "DISPLAY_NAME": {"type": "TEXT", "index": 3, "name": "DISPLAY_NAME", "comment": "Display name for user."}, "AVATAR_URL": {"type": "TEXT", "index": 4, "name": "AVATAR_URL", "comment": "Link to profile picture."}, "BIO": {"type": "TEXT", "index": 5, "name": "BIO", "comment": "Profile bio."}, "VERIFIED_ADDRESSES": {"type": "TEXT", "index": 6, "name": "VERIFIED_ADDRESSES", "comment": "EVM wallet addresses associated with profile."}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "UPDATED_AT", "comment": "When the row was last updated."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.farcaster__dim_profile_with_addresses"}, "model.external_models.streamline__oklink_realtime": {"metadata": {"type": "VIEW", "schema": "STREAMLINE", "name": "OKLINK_REALTIME", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE_DAY": {"type": "NUMBER", "index": 1, "name": "DATE_DAY", "comment": ""}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": ""}, "METRIC": {"type": "TEXT", "index": 3, "name": "METRIC", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 4, "name": "PARTITION_KEY", "comment": ""}, "REQUEST": {"type": "VARIANT", "index": 5, "name": "REQUEST", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.streamline__oklink_realtime"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_stablecoin_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.22ec5016c6": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_BRONZE", "name": "DEFILLAMA_STABLECOIN_SUPPLY", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-05-28 09:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_stablecoin_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.22ec5016c6"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_defillama__dim_protocols_MODIFIED_TIMESTAMP__day__2.6fbd64af1e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_DEFILLAMA", "name": "DIM_PROTOCOLS_MODIFIED_TIMESTAMP", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_defillama__dim_protocols_MODIFIED_TIMESTAMP__day__2.6fbd64af1e"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_change_1d__FLOAT.f2337eadc0": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "DEFILLAMA_PERP_METRICS_CHANGE_1D", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_change_1d__FLOAT.f2337eadc0"}, "test.external_models.not_null_silver__defillama_dex_volume_ID.4eac69b2aa": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_DEX_VOLUME_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "TIMESTAMP", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 3, "name": "PROTOCOL", "comment": null}, "DAILY_VOLUME": {"type": "NUMBER", "index": 4, "name": "DAILY_VOLUME", "comment": null}, "DEX_OBJECT": {"type": "VARIANT", "index": 5, "name": "DEX_OBJECT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ID": {"type": "TEXT", "index": 7, "name": "ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_dex_volume_ID.4eac69b2aa"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_bridge_volume_by_chain_INSERTED_TIMESTAMP__day__2.84922787bf": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_SILVER", "name": "DEFILLAMA_BRIDGE_VOLUME_BY_CHAIN_INSERTED_TIMESTAMP", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_bridge_volume_by_chain_INSERTED_TIMESTAMP__day__2.84922787bf"}, "test.external_models.not_null_bronze__snapshot_spaces_SPACE_ID.a2937f04fc": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "SNAPSHOT_SPACES_SPACE_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"SPACE_ID": {"type": "TEXT", "index": 1, "name": "SPACE_ID", "comment": null}, "SPACE": {"type": "TEXT", "index": 2, "name": "SPACE", "comment": null}, "ABOUT": {"type": "TEXT", "index": 3, "name": "ABOUT", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": null}, "NETWORK": {"type": "TEXT", "index": 5, "name": "NETWORK", "comment": null}, "CATEGORIES": {"type": "VARIANT", "index": 6, "name": "CATEGORIES", "comment": null}, "DOMAIN": {"type": "TEXT", "index": 7, "name": "DOMAIN", "comment": null}, "IS_PRIVATE": {"type": "BOOLEAN", "index": 8, "name": "IS_PRIVATE", "comment": null}, "IS_VERIFIED": {"type": "BOOLEAN", "index": 9, "name": "IS_VERIFIED", "comment": null}, "ADMINS": {"type": "VARIANT", "index": 10, "name": "ADMINS", "comment": null}, "MEMBERS": {"type": "VARIANT", "index": 11, "name": "MEMBERS", "comment": null}, "TREASURIES": {"type": "VARIANT", "index": 12, "name": "TREASURIES", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__snapshot_spaces_SPACE_ID.a2937f04fc"}, "test.external_models.not_null_silver__snapshot_spaces_SPACE_ID.1e98e6593b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SNAPSHOT_SPACES_SPACE_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"SPACE_ID": {"type": "TEXT", "index": 1, "name": "SPACE_ID", "comment": null}, "SPACE": {"type": "TEXT", "index": 2, "name": "SPACE", "comment": null}, "ABOUT": {"type": "TEXT", "index": 3, "name": "ABOUT", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 4, "name": "SYMBOL", "comment": null}, "NETWORK": {"type": "TEXT", "index": 5, "name": "NETWORK", "comment": null}, "CATEGORIES": {"type": "VARIANT", "index": 6, "name": "CATEGORIES", "comment": null}, "DOMAIN": {"type": "TEXT", "index": 7, "name": "DOMAIN", "comment": null}, "IS_PRIVATE": {"type": "BOOLEAN", "index": 8, "name": "IS_PRIVATE", "comment": null}, "IS_VERIFIED": {"type": "BOOLEAN", "index": 9, "name": "IS_VERIFIED", "comment": null}, "ADMINS": {"type": "VARIANT", "index": 10, "name": "ADMINS", "comment": null}, "MEMBERS": {"type": "VARIANT", "index": 11, "name": "MEMBERS", "comment": null}, "TREASURIES": {"type": "VARIANT", "index": 12, "name": "TREASURIES", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__snapshot_spaces_SPACE_ID.1e98e6593b"}, "model.external_models.snapshot__dim_users": {"metadata": {"type": "VIEW", "schema": "SNAPSHOT", "name": "DIM_USERS", "database": "EXTERNAL", "comment": "A dimensional view that contains all users on Snapshot and related information.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": "The address of the user."}, "NAME": {"type": "TEXT", "index": 2, "name": "NAME", "comment": "The name of the user."}, "ABOUT": {"type": "TEXT", "index": 3, "name": "ABOUT", "comment": "The description of the user."}, "AVATAR": {"type": "TEXT", "index": 4, "name": "AVATAR", "comment": "The link for the avatar or profile picture of the user."}, "IPFS": {"type": "TEXT", "index": 5, "name": "IPFS", "comment": "The corresponding IPFS hash."}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "CREATED_AT", "comment": "The time at which the user was created."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.snapshot__dim_users"}, "model.external_models.silver__dnv_token_requests": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "DNV_TOKEN_REQUESTS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"SEQ": {"type": "NUMBER", "index": 1, "name": "SEQ", "comment": null}, "LIMITER": {"type": "NUMBER", "index": 2, "name": "LIMITER", "comment": null}, "COLLECTION_SLUG": {"type": "TEXT", "index": 3, "name": "COLLECTION_SLUG", "comment": null}, "TOTAL_SUPPLY": {"type": "NUMBER", "index": 4, "name": "TOTAL_SUPPLY", "comment": null}, "OFFSET": {"type": "NUMBER", "index": 5, "name": "OFFSET", "comment": null}, "API_URL": {"type": "TEXT", "index": 6, "name": "API_URL", "comment": null}, "_ID": {"type": "TEXT", "index": 7, "name": "_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-01-13 20:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 4608, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 80, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver__dnv_token_requests"}, "test.external_models.not_null_silver__defillama_raises_RAISE_ID.a6c9cfda9b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_RAISES_RAISE_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"FUNDING_DATE": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "FUNDING_DATE", "comment": null}, "PROJECT_NAME": {"type": "TEXT", "index": 2, "name": "PROJECT_NAME", "comment": null}, "FUNDING_ROUND": {"type": "TEXT", "index": 3, "name": "FUNDING_ROUND", "comment": null}, "AMOUNT_RAISED": {"type": "FLOAT", "index": 4, "name": "AMOUNT_RAISED", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 5, "name": "CHAINS", "comment": null}, "SECTOR": {"type": "TEXT", "index": 6, "name": "SECTOR", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 7, "name": "CATEGORY", "comment": null}, "CATEGORY_GROUP": {"type": "TEXT", "index": 8, "name": "CATEGORY_GROUP", "comment": null}, "SOURCE": {"type": "TEXT", "index": 9, "name": "SOURCE", "comment": null}, "LEAD_INVESTORS": {"type": "VARIANT", "index": 10, "name": "LEAD_INVESTORS", "comment": null}, "OTHER_INVESTORS": {"type": "VARIANT", "index": 11, "name": "OTHER_INVESTORS", "comment": null}, "VALUATION": {"type": "NUMBER", "index": 12, "name": "VALUATION", "comment": null}, "DEFILLAMA_ID": {"type": "TEXT", "index": 13, "name": "DEFILLAMA_ID", "comment": null}, "RAISE_ID": {"type": "TEXT", "index": 14, "name": "RAISE_ID", "comment": null}, "DEFILLAMA_RAISES_ID": {"type": "TEXT", "index": 15, "name": "DEFILLAMA_RAISES_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 19, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_raises_RAISE_ID.a6c9cfda9b"}, "test.external_models.not_null_artemis__tx_count_BLOCK_DATE.dbafcdce9a": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_ARTEMIS", "name": "TX_COUNT_BLOCK_DATE", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": null}, "METRIC": {"type": "TEXT", "index": 2, "name": "METRIC", "comment": null}, "DESCRIPTION": {"type": "TEXT", "index": 3, "name": "DESCRIPTION", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 4, "name": "BLOCK_DATE", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TX_COUNT_ID": {"type": "TEXT", "index": 7, "name": "TX_COUNT_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 10, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_artemis__tx_count_BLOCK_DATE.dbafcdce9a"}, "test.external_models.not_null_bronze__blast_leaderboard__INSERTED_TIMESTAMP.04332ff14b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "BLAST_LEADERBOARD", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE": {"type": "DATE", "index": 1, "name": "DATE", "comment": null}, "LEADERBOARD_TYPE": {"type": "TEXT", "index": 2, "name": "LEADERBOARD_TYPE", "comment": null}, "RANK": {"type": "NUMBER", "index": 3, "name": "RANK", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "POINTS_AMOUNT": {"type": "NUMBER", "index": 5, "name": "POINTS_AMOUNT", "comment": null}, "GOLD_AMOUNT": {"type": "FLOAT", "index": 6, "name": "GOLD_AMOUNT", "comment": null}, "INVITED_BY": {"type": "TEXT", "index": 7, "name": "INVITED_BY", "comment": null}, "ID": {"type": "TEXT", "index": 8, "name": "ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__blast_leaderboard__INSERTED_TIMESTAMP.04332ff14b"}, "model.external_models.snapshot__fact_votes": {"metadata": {"type": "VIEW", "schema": "SNAPSHOT", "name": "FACT_VOTES", "database": "EXTERNAL", "comment": "A fact view that contains all votes on Snapshot and related information.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"VOTE_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "VOTE_TIMESTAMP", "comment": "The time at which the vote was cast."}, "VOTER": {"type": "TEXT", "index": 2, "name": "VOTER", "comment": "The wallet address of the user that voted on a proposal."}, "PROPOSAL_ID": {"type": "TEXT", "index": 3, "name": "PROPOSAL_ID", "comment": "A unique identifier for the proposal being voted on."}, "VOTE_OPTION": {"type": "ARRAY", "index": 4, "name": "VOTE_OPTION", "comment": "How the user voted on the proposal. Corresponds to the choices array."}, "VOTING_POWER": {"type": "NUMBER", "index": 5, "name": "VOTING_POWER", "comment": "The amount of voting power one holds is proportional to the amount of the token they hold."}, "IPFS": {"type": "TEXT", "index": 6, "name": "IPFS", "comment": "The corresponding IPFS hash."}, "VOTE_ID": {"type": "TEXT", "index": 7, "name": "VOTE_ID", "comment": "A unique identifier assigned to a vote."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.snapshot__fact_votes"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_artemis__active_users_BLOCK_DATE__day__3.e4b3cfa665": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_ARTEMIS", "name": "ACTIVE_USERS_BLOCK_DATE", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_artemis__active_users_BLOCK_DATE__day__3.e4b3cfa665"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__snapshot_proposals__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.7931ee3896": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "SNAPSHOT_PROPOSALS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__snapshot_proposals__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.7931ee3896"}, "model.external_models.avalanche__dim_data_dictionary": {"metadata": {"type": "VIEW", "schema": "AVALANCHE", "name": "DIM_DATA_DICTIONARY", "database": "EXTERNAL", "comment": "Avalanche Data Dictionary. Please visit https://discord.gg/avax for any questions.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TABLE_NAME": {"type": "TEXT", "index": 1, "name": "TABLE_NAME", "comment": ""}, "TABLE_DESCRIPTION": {"type": "TEXT", "index": 2, "name": "TABLE_DESCRIPTION", "comment": ""}, "COLUMN_NAME": {"type": "TEXT", "index": 3, "name": "COLUMN_NAME", "comment": ""}, "COLUMN_TYPE": {"type": "TEXT", "index": 4, "name": "COLUMN_TYPE", "comment": ""}, "COLUMN_DESCRIPTION": {"type": "TEXT", "index": 5, "name": "COLUMN_DESCRIPTION", "comment": ""}, "ORDINAL_POSITION": {"type": "NUMBER", "index": 6, "name": "ORDINAL_POSITION", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.avalanche__dim_data_dictionary"}, "model.external_models.bronze_aptos__lync_data": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE_APTOS", "name": "LYNC_DATA", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"METRIC": {"type": "TEXT", "index": 1, "name": "METRIC", "comment": null}, "DATA": {"type": "VARIANT", "index": 2, "name": "DATA", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 5, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 10:38UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1284608, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 708, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.bronze_aptos__lync_data"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_pool_yields_DEFILLAMA_YIELD_ID.b59e60eeda": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "DEFILLAMA_POOL_YIELDS_DEFILLAMA_YIELD_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DEFILLAMA_YIELD_ID": {"type": "TEXT", "index": 1, "name": "DEFILLAMA_YIELD_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_pool_yields_DEFILLAMA_YIELD_ID.b59e60eeda"}, "test.external_models.not_null_silver__defillama_bridge_volume__INSERTED_TIMESTAMP.2d38284c8d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_BRIDGE_VOLUME", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BRIDGE_ID": {"type": "TEXT", "index": 1, "name": "BRIDGE_ID", "comment": null}, "BRIDGE": {"type": "TEXT", "index": 2, "name": "BRIDGE", "comment": null}, "BRIDGE_NAME": {"type": "TEXT", "index": 3, "name": "BRIDGE_NAME", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "TIMESTAMP", "comment": null}, "DEPOSIT_TXS": {"type": "NUMBER", "index": 5, "name": "DEPOSIT_TXS", "comment": null}, "DEPOSIT_USD": {"type": "NUMBER", "index": 6, "name": "DEPOSIT_USD", "comment": null}, "WITHDRAW_TXS": {"type": "NUMBER", "index": 7, "name": "WITHDRAW_TXS", "comment": null}, "WITHDRAW_USD": {"type": "NUMBER", "index": 8, "name": "WITHDRAW_USD", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ID": {"type": "TEXT", "index": 10, "name": "ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_bridge_volume__INSERTED_TIMESTAMP.2d38284c8d"}, "test.external_models.not_null_silver__artemis__inserted_timestamp.a6a732f820": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "ARTEMIS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"METRIC_DATE": {"type": "DATE", "index": 1, "name": "METRIC_DATE", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": null}, "METRIC": {"type": "TEXT", "index": 3, "name": "METRIC", "comment": null}, "METRIC_VALUE": {"type": "VARIANT", "index": 4, "name": "METRIC_VALUE", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 5, "name": "PARTITION_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "FILE_NAME": {"type": "TEXT", "index": 7, "name": "FILE_NAME", "comment": null}, "ARTEMIS_ID": {"type": "TEXT", "index": 8, "name": "ARTEMIS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 11, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__artemis__inserted_timestamp.a6a732f820"}, "test.external_models.not_null_silver__snapshot_users__INSERTED_TIMESTAMP.909a06b730": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SNAPSHOT_USERS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": null}, "NAME": {"type": "TEXT", "index": 2, "name": "NAME", "comment": null}, "ABOUT": {"type": "TEXT", "index": 3, "name": "ABOUT", "comment": null}, "AVATAR": {"type": "TEXT", "index": 4, "name": "AVATAR", "comment": null}, "IPFS": {"type": "TEXT", "index": 5, "name": "IPFS", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "CREATED_AT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__snapshot_users__INSERTED_TIMESTAMP.909a06b730"}, "model.external_models.streamline__defillama_protocols": {"metadata": {"type": "VIEW", "schema": "STREAMLINE", "name": "DEFILLAMA_PROTOCOLS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RUN_TIMESTAMP": {"type": "NUMBER", "index": 1, "name": "RUN_TIMESTAMP", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": ""}, "REQUEST": {"type": "VARIANT", "index": 3, "name": "REQUEST", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.streamline__defillama_protocols"}, "model.external_models.silver__defillama_bridge_volume_by_chain": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "DEFILLAMA_BRIDGE_VOLUME_BY_CHAIN", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BRIDGE_ID": {"type": "TEXT", "index": 1, "name": "BRIDGE_ID", "comment": ""}, "BRIDGE": {"type": "TEXT", "index": 2, "name": "BRIDGE", "comment": ""}, "BRIDGE_NAME": {"type": "TEXT", "index": 3, "name": "BRIDGE_NAME", "comment": ""}, "CHAIN": {"type": "TEXT", "index": 4, "name": "CHAIN", "comment": ""}, "BRIDGE_ID_CHAIN": {"type": "TEXT", "index": 5, "name": "BRIDGE_ID_CHAIN", "comment": ""}, "DATE": {"type": "DATE", "index": 6, "name": "DATE", "comment": ""}, "DEPOSIT_TXS": {"type": "NUMBER", "index": 7, "name": "DEPOSIT_TXS", "comment": ""}, "DEPOSIT_USD": {"type": "NUMBER", "index": 8, "name": "DEPOSIT_USD", "comment": ""}, "WITHDRAW_TXS": {"type": "NUMBER", "index": 9, "name": "WITHDRAW_TXS", "comment": ""}, "WITHDRAW_USD": {"type": "NUMBER", "index": 10, "name": "WITHDRAW_USD", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "MODIFIED_TIMESTAMP", "comment": ""}, "DEFILLAMA_BRIDGE_VOL_BY_CHAIN_ID": {"type": "TEXT", "index": 13, "name": "DEFILLAMA_BRIDGE_VOL_BY_CHAIN_ID", "comment": ""}, "_INVOCATION_ID": {"type": "TEXT", "index": 14, "name": "_INVOCATION_ID", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 08:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 4902912, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 145110, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver__defillama_bridge_volume_by_chain"}, "model.external_models.streamline__defillama_stablecoin_metrics": {"metadata": {"type": "VIEW", "schema": "STREAMLINE", "name": "DEFILLAMA_STABLECOIN_METRICS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": ""}, "STABLECOIN_ID": {"type": "TEXT", "index": 2, "name": "STABLECOIN_ID", "comment": ""}, "RUN_TIMESTAMP": {"type": "NUMBER", "index": 3, "name": "RUN_TIMESTAMP", "comment": ""}, "PARTITION_KEY": {"type": "NUMBER", "index": 4, "name": "PARTITION_KEY", "comment": ""}, "REQUEST": {"type": "VARIANT", "index": 5, "name": "REQUEST", "comment": ""}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.streamline__defillama_stablecoin_metrics"}, "test.external_models.not_null_artemis__tx_count_BLOCKCHAIN.d0c8a33dfe": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_ARTEMIS", "name": "TX_COUNT_BLOCKCHAIN", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": null}, "METRIC": {"type": "TEXT", "index": 2, "name": "METRIC", "comment": null}, "DESCRIPTION": {"type": "TEXT", "index": 3, "name": "DESCRIPTION", "comment": null}, "BLOCK_DATE": {"type": "DATE", "index": 4, "name": "BLOCK_DATE", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "TX_COUNT_ID": {"type": "TEXT", "index": 7, "name": "TX_COUNT_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 10, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_artemis__tx_count_BLOCKCHAIN.d0c8a33dfe"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_perp_metrics_protocol_id__timestamp.132646d40b": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "DEFILLAMA_PERP_METRICS_PROTOCOL_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROTOCOL_ID": {"type": "TEXT", "index": 1, "name": "PROTOCOL_ID", "comment": null}, "TIMESTAMP": {"type": "DATE", "index": 2, "name": "TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_perp_metrics_protocol_id__timestamp.132646d40b"}, "model.external_models.defillama__dim_chains": {"metadata": {"type": "VIEW", "schema": "DEFILLAMA", "name": "DIM_CHAINS", "database": "EXTERNAL", "comment": "This table contains dimensional information about the blockchains and networks listed on Defillama.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": "Name of the blockchain."}, "CHAIN_SYMBOL": {"type": "TEXT", "index": 2, "name": "CHAIN_SYMBOL", "comment": "The official abbreviation or symbol representing the blockchain."}, "TOKEN_NAME": {"type": "TEXT", "index": 3, "name": "TOKEN_NAME", "comment": "The full name of the native token used on the blockchain."}, "TOKEN_DECIMALS": {"type": "NUMBER", "index": 4, "name": "TOKEN_DECIMALS", "comment": "The number of decimals used by the native token, dictating its smallest divisible unit."}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 5, "name": "TOKEN_SYMBOL", "comment": "Symbol for the native token of the chain."}, "CHAIN_ID": {"type": "TEXT", "index": 6, "name": "CHAIN_ID", "comment": "Unique identifier of the chain."}, "NETWORK_ID": {"type": "TEXT", "index": 7, "name": "NETWORK_ID", "comment": "Identifier that distinguishes between multiple networks within a single blockchain (e.g., Mainnet vs Testnet)."}, "RPC": {"type": "VARIANT", "index": 8, "name": "RPC", "comment": "URL of the primary RPC endpoint used to interact with the blockchain."}, "FAUCETS": {"type": "VARIANT", "index": 9, "name": "FAUCETS", "comment": "List or URLs of faucets available for obtaining test tokens on the chain's testnets."}, "INFO_URL": {"type": "TEXT", "index": 10, "name": "INFO_URL", "comment": "URL to an official or authoritative information source about the blockchain."}, "SHORT_NAME": {"type": "TEXT", "index": 11, "name": "SHORT_NAME", "comment": "A shorter or abbreviated version of the blockchain's name, used in contexts with limited space."}, "EXPLORERS": {"type": "VARIANT", "index": 12, "name": "EXPLORERS", "comment": "List of URLs or platforms where transactions, blocks, and other chain activities can be explored and verified."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.defillama__dim_chains"}, "test.external_models.not_null_farcaster__dim_profile_with_addresses_UPDATED_AT.f3f9b1c1b0": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_FARCASTER", "name": "DIM_PROFILE_WITH_ADDRESSES_UPDATED_AT", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"FID": {"type": "NUMBER", "index": 1, "name": "FID", "comment": null}, "FNAME": {"type": "TEXT", "index": 2, "name": "FNAME", "comment": null}, "DISPLAY_NAME": {"type": "TEXT", "index": 3, "name": "DISPLAY_NAME", "comment": null}, "AVATAR_URL": {"type": "TEXT", "index": 4, "name": "AVATAR_URL", "comment": null}, "BIO": {"type": "TEXT", "index": 5, "name": "BIO", "comment": null}, "VERIFIED_ADDRESSES": {"type": "TEXT", "index": 6, "name": "VERIFIED_ADDRESSES", "comment": null}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "UPDATED_AT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_farcaster__dim_profile_with_addresses_UPDATED_AT.f3f9b1c1b0"}, "test.external_models.not_null_bitquery__tx_count_BLOCK_DATE.fbbe8ebf2c": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BITQUERY", "name": "TX_COUNT_BLOCK_DATE", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": null}, "METRIC": {"type": "TEXT", "index": 2, "name": "METRIC", "comment": null}, "BLOCK_DATE": {"type": "TEXT", "index": 3, "name": "BLOCK_DATE", "comment": null}, "TX_COUNT": {"type": "TEXT", "index": 4, "name": "TX_COUNT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ACCOUNTS_ID": {"type": "TEXT", "index": 6, "name": "ACCOUNTS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 9, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bitquery__tx_count_BLOCK_DATE.fbbe8ebf2c"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_dexes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.6158c95d98": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_BRONZE", "name": "DEFILLAMA_DEXES", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:08UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_dexes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.6158c95d98"}, "test.external_models.not_null_silver__snapshot_proposals_PROPOSAL_START_TIME.9f5c3c7f1b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "SNAPSHOT_PROPOSALS_PROPOSAL_START_TIME", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"PROPOSAL_ID": {"type": "TEXT", "index": 1, "name": "PROPOSAL_ID", "comment": null}, "IPFS": {"type": "TEXT", "index": 2, "name": "IPFS", "comment": null}, "CHOICES": {"type": "ARRAY", "index": 3, "name": "CHOICES", "comment": null}, "PROPOSAL_AUTHOR": {"type": "TEXT", "index": 4, "name": "PROPOSAL_AUTHOR", "comment": null}, "PROPOSAL_TITLE": {"type": "TEXT", "index": 5, "name": "PROPOSAL_TITLE", "comment": null}, "PROPOSAL_TEXT": {"type": "TEXT", "index": 6, "name": "PROPOSAL_TEXT", "comment": null}, "DELAY": {"type": "NUMBER", "index": 7, "name": "DELAY", "comment": null}, "QUORUM": {"type": "NUMBER", "index": 8, "name": "QUORUM", "comment": null}, "VOTING_PERIOD": {"type": "NUMBER", "index": 9, "name": "VOTING_PERIOD", "comment": null}, "VOTING_TYPE": {"type": "TEXT", "index": 10, "name": "VOTING_TYPE", "comment": null}, "SPACE_ID": {"type": "TEXT", "index": 11, "name": "SPACE_ID", "comment": null}, "NETWORK_ID": {"type": "TEXT", "index": 12, "name": "NETWORK_ID", "comment": null}, "NETWORK": {"type": "TEXT", "index": 13, "name": "NETWORK", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "CREATED_AT", "comment": null}, "PROPOSAL_START_TIME": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "PROPOSAL_START_TIME", "comment": null}, "PROPOSAL_END_TIME": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "PROPOSAL_END_TIME", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__snapshot_proposals_PROPOSAL_START_TIME.9f5c3c7f1b"}, "model.external_models.blast__fact_leaderboard": {"metadata": {"type": "VIEW", "schema": "BLAST", "name": "FACT_LEADERBOARD", "database": "EXTERNAL", "comment": "This table contains daily snapshots of the top 500 leaderboards for Blast Points and Gold.", "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE": {"type": "DATE", "index": 1, "name": "DATE", "comment": "The date of the leaderboard snapshot."}, "LEADERBOARD_TYPE": {"type": "TEXT", "index": 2, "name": "LEADERBOARD_TYPE", "comment": "The criterion by which the leaderboard is ranked, either points or gold."}, "RANK": {"type": "NUMBER", "index": 3, "name": "RANK", "comment": "The rank (1-500) associated with the user."}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": "The name of the user associated with that rank."}, "POINTS_AMOUNT": {"type": "NUMBER", "index": 5, "name": "POINTS_AMOUNT", "comment": "The amount of points accrued by the user."}, "GOLD_AMOUNT": {"type": "FLOAT", "index": 6, "name": "GOLD_AMOUNT", "comment": "The amount of gold accrued by the user."}, "INVITED_BY": {"type": "TEXT", "index": 7, "name": "INVITED_BY", "comment": "The user who referred the associated user."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.blast__fact_leaderboard"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_bitquery__active_users_AS_OF_DATE__day__2.640f33ae24": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_ROW_VALUES_TO_HAVE_RECENT_DATA_BITQUERY", "name": "ACTIVE_USERS_AS_OF_DATE", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"MAX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "MAX_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_bitquery__active_users_AS_OF_DATE__day__2.640f33ae24"}, "test.external_models.not_null_silver__flashbots_protect_txs__INSERTED_TIMESTAMP.730aafbaf5": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "FLASHBOTS_PROTECT_TXS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TX_HASH": {"type": "TEXT", "index": 1, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 2, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 3, "name": "TO_ADDRESS", "comment": null}, "CREATED_AT_BLOCK_NUMBER": {"type": "NUMBER", "index": 4, "name": "CREATED_AT_BLOCK_NUMBER", "comment": null}, "TX_ID": {"type": "TEXT", "index": 5, "name": "TX_ID", "comment": null}, "HINTS_SELECTED": {"type": "TEXT", "index": 6, "name": "HINTS_SELECTED", "comment": null}, "NUM_OF_BUILDERS_SHARED": {"type": "NUMBER", "index": 7, "name": "NUM_OF_BUILDERS_SHARED", "comment": null}, "REFUND_PERCENT": {"type": "NUMBER", "index": 8, "name": "REFUND_PERCENT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_LTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "_ID": {"type": "TEXT", "index": 10, "name": "_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__flashbots_protect_txs__INSERTED_TIMESTAMP.730aafbaf5"}, "test.external_models.not_null_silver__defillama_bridge_volume_ID.553904b651": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_BRIDGE_VOLUME_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"BRIDGE_ID": {"type": "TEXT", "index": 1, "name": "BRIDGE_ID", "comment": null}, "BRIDGE": {"type": "TEXT", "index": 2, "name": "BRIDGE", "comment": null}, "BRIDGE_NAME": {"type": "TEXT", "index": 3, "name": "BRIDGE_NAME", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "TIMESTAMP", "comment": null}, "DEPOSIT_TXS": {"type": "NUMBER", "index": 5, "name": "DEPOSIT_TXS", "comment": null}, "DEPOSIT_USD": {"type": "NUMBER", "index": 6, "name": "DEPOSIT_USD", "comment": null}, "WITHDRAW_TXS": {"type": "NUMBER", "index": 7, "name": "WITHDRAW_TXS", "comment": null}, "WITHDRAW_USD": {"type": "NUMBER", "index": 8, "name": "WITHDRAW_USD", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ID": {"type": "TEXT", "index": 10, "name": "ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_bridge_volume_ID.553904b651"}, "test.external_models.not_null_silver__layerzero_txs_snapshot_SOURCE_TRANSACTION_HASH.a657c2b14d": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "LAYERZERO_TXS_SNAPSHOT_SOURCE_TRANSACTION_HASH", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"SOURCE_CHAIN": {"type": "TEXT", "index": 1, "name": "SOURCE_CHAIN", "comment": null}, "SOURCE_TRANSACTION_HASH": {"type": "TEXT", "index": 2, "name": "SOURCE_TRANSACTION_HASH", "comment": null}, "SOURCE_CONTRACT": {"type": "TEXT", "index": 3, "name": "SOURCE_CONTRACT", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 4, "name": "DESTINATION_CHAIN", "comment": null}, "DESTINATION_TRANSACTION_HASH": {"type": "TEXT", "index": 5, "name": "DESTINATION_TRANSACTION_HASH", "comment": null}, "DESTINATION_CONTRACT": {"type": "TEXT", "index": 6, "name": "DESTINATION_CONTRACT", "comment": null}, "SENDER_WALLET": {"type": "TEXT", "index": 7, "name": "SENDER_WALLET", "comment": null}, "SOURCE_TIMESTAMP_UTC": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "SOURCE_TIMESTAMP_UTC", "comment": null}, "PROJECT": {"type": "TEXT", "index": 9, "name": "PROJECT", "comment": null}, "NATIVE_DROP_USD": {"type": "TEXT", "index": 10, "name": "NATIVE_DROP_USD", "comment": null}, "STARGATE_SWAP_USD": {"type": "TEXT", "index": 11, "name": "STARGATE_SWAP_USD", "comment": null}, "TX_RN": {"type": "NUMBER", "index": 12, "name": "TX_RN", "comment": null}, "SNAPSHOT_VERSION": {"type": "TEXT", "index": 13, "name": "SNAPSHOT_VERSION", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "_INSERTED_TIMESTAMP", "comment": null}, "LAYERZERO_TXS_SNAPSHOT_ID": {"type": "TEXT", "index": 15, "name": "LAYERZERO_TXS_SNAPSHOT_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:11UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__layerzero_txs_snapshot_SOURCE_TRANSACTION_HASH.a657c2b14d"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_pool_yields__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.1a6d978404": {"metadata": {"type": "BASE TABLE", "schema": "DBT_EXPECTATIONS_EXPECT_COLUMN_VALUES_TO_BE_IN_TYPE_LIST_SILVER", "name": "DEFILLAMA_POOL_YIELDS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"RELATION_COLUMN": {"type": "TEXT", "index": 1, "name": "RELATION_COLUMN", "comment": null}, "RELATION_COLUMN_TYPE": {"type": "TEXT", "index": 2, "name": "RELATION_COLUMN_TYPE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_pool_yields__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.1a6d978404"}, "test.external_models.not_null_farcaster__fact_signers_UPDATED_AT.2a27e46c6b": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_FARCASTER", "name": "FACT_SIGNERS_UPDATED_AT", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ID": {"type": "NUMBER", "index": 1, "name": "ID", "comment": null}, "FID": {"type": "NUMBER", "index": 2, "name": "FID", "comment": null}, "APP_FID": {"type": "NUMBER", "index": 3, "name": "APP_FID", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "SIGNER": {"type": "BINARY", "index": 5, "name": "SIGNER", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "TIMESTAMP", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "CREATED_AT", "comment": null}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "UPDATED_AT", "comment": null}, "DELETED_AT": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "DELETED_AT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_farcaster__fact_signers_UPDATED_AT.2a27e46c6b"}, "test.external_models.not_null_silver__defillama_stablecoin_metrics_DEFILLAMA_STABLECOIN_METRICS_ID.1e22190956": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_STABLECOIN_METRICS_DEFILLAMA_STABLECOIN_METRICS_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "DATE_DAY": {"type": "DATE", "index": 2, "name": "DATE_DAY", "comment": null}, "STABLECOIN_ID": {"type": "TEXT", "index": 3, "name": "STABLECOIN_ID", "comment": null}, "TOTAL_CIRCULATING_USD": {"type": "VARIANT", "index": 4, "name": "TOTAL_CIRCULATING_USD", "comment": null}, "TOTAL_MINTED_USD": {"type": "VARIANT", "index": 5, "name": "TOTAL_MINTED_USD", "comment": null}, "TOTAL_CIRCULATING": {"type": "VARIANT", "index": 6, "name": "TOTAL_CIRCULATING", "comment": null}, "TOTAL_BRIDGED_TO_USD": {"type": "VARIANT", "index": 7, "name": "TOTAL_BRIDGED_TO_USD", "comment": null}, "TOTAL_UNRELEASED": {"type": "VARIANT", "index": 8, "name": "TOTAL_UNRELEASED", "comment": null}, "RUN_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "RUN_TIMESTAMP", "comment": null}, "PARTITION_KEY": {"type": "NUMBER", "index": 10, "name": "PARTITION_KEY", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DEFILLAMA_STABLECOIN_METRICS_ID": {"type": "TEXT", "index": 12, "name": "DEFILLAMA_STABLECOIN_METRICS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 15, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_stablecoin_metrics_DEFILLAMA_STABLECOIN_METRICS_ID.1e22190956"}, "model.external_models.silver__tokenlists_verified_tokens": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "TOKENLISTS_VERIFIED_TOKENS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"API_URL": {"type": "TEXT", "index": 1, "name": "API_URL", "comment": ""}, "NAME": {"type": "TEXT", "index": 2, "name": "NAME", "comment": ""}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": ""}, "ADDRESS": {"type": "TEXT", "index": 4, "name": "ADDRESS", "comment": ""}, "CHAIN_ID": {"type": "TEXT", "index": 5, "name": "CHAIN_ID", "comment": ""}, "DECIMALS": {"type": "TEXT", "index": 6, "name": "DECIMALS", "comment": ""}, "EXTENSIONS": {"type": "VARIANT", "index": 7, "name": "EXTENSIONS", "comment": ""}, "PROVIDER": {"type": "TEXT", "index": 8, "name": "PROVIDER", "comment": ""}, "LIST_METADATA": {"type": "VARIANT", "index": 9, "name": "LIST_METADATA", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "TOKENLISTS_VERIFIED_TOKENS_ID": {"type": "TEXT", "index": 11, "name": "TOKENLISTS_VERIFIED_TOKENS_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "MODIFIED_TIMESTAMP", "comment": ""}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-06 07:04UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 5200384, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 53690, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver__tokenlists_verified_tokens"}, "test.external_models.not_null_silver__defillama_perp_metrics_chains.3ef0fddd80": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PERP_METRICS_CHAINS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TIMESTAMP": {"type": "DATE", "index": 1, "name": "TIMESTAMP", "comment": null}, "PROTOCOL_ID": {"type": "TEXT", "index": 2, "name": "PROTOCOL_ID", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "DISPLAY_NAME": {"type": "TEXT", "index": 5, "name": "DISPLAY_NAME", "comment": null}, "MODULE": {"type": "TEXT", "index": 6, "name": "MODULE", "comment": null}, "LOGO": {"type": "TEXT", "index": 7, "name": "LOGO", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 8, "name": "CHAINS", "comment": null}, "PROTOCOL_TYPE": {"type": "TEXT", "index": 9, "name": "PROTOCOL_TYPE", "comment": null}, "METHODOLOGY_URL": {"type": "TEXT", "index": 10, "name": "METHODOLOGY_URL", "comment": null}, "METHODOLOGY": {"type": "VARIANT", "index": 11, "name": "METHODOLOGY", "comment": null}, "PARENT_PROTOCOL": {"type": "TEXT", "index": 12, "name": "PARENT_PROTOCOL", "comment": null}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 13, "name": "PROTOCOL_SLUG", "comment": null}, "LINKED_PROTOCOLS": {"type": "VARIANT", "index": 14, "name": "LINKED_PROTOCOLS", "comment": null}, "TOTAL_24H": {"type": "FLOAT", "index": 15, "name": "TOTAL_24H", "comment": null}, "TOTAL_48H_TO_24H": {"type": "FLOAT", "index": 16, "name": "TOTAL_48H_TO_24H", "comment": null}, "TOTAL_7D": {"type": "FLOAT", "index": 17, "name": "TOTAL_7D", "comment": null}, "TOTAL_30D": {"type": "FLOAT", "index": 18, "name": "TOTAL_30D", "comment": null}, "TOTAL_ALL_TIME": {"type": "FLOAT", "index": 19, "name": "TOTAL_ALL_TIME", "comment": null}, "CHANGE_1D": {"type": "FLOAT", "index": 20, "name": "CHANGE_1D", "comment": null}, "TOTAL_DATA_CHART_BREAKDOWN": {"type": "VARIANT", "index": 21, "name": "TOTAL_DATA_CHART_BREAKDOWN", "comment": null}, "DEFILLAMA_PERP_METRICS_ID": {"type": "TEXT", "index": 22, "name": "DEFILLAMA_PERP_METRICS_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 24576, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_perp_metrics_chains.3ef0fddd80"}, "test.external_models.not_null_silver__defillama_perp_metrics_module.1ee1cd9d64": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PERP_METRICS_MODULE", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TIMESTAMP": {"type": "DATE", "index": 1, "name": "TIMESTAMP", "comment": null}, "PROTOCOL_ID": {"type": "TEXT", "index": 2, "name": "PROTOCOL_ID", "comment": null}, "CATEGORY": {"type": "TEXT", "index": 3, "name": "CATEGORY", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "DISPLAY_NAME": {"type": "TEXT", "index": 5, "name": "DISPLAY_NAME", "comment": null}, "MODULE": {"type": "TEXT", "index": 6, "name": "MODULE", "comment": null}, "LOGO": {"type": "TEXT", "index": 7, "name": "LOGO", "comment": null}, "CHAINS": {"type": "VARIANT", "index": 8, "name": "CHAINS", "comment": null}, "PROTOCOL_TYPE": {"type": "TEXT", "index": 9, "name": "PROTOCOL_TYPE", "comment": null}, "METHODOLOGY_URL": {"type": "TEXT", "index": 10, "name": "METHODOLOGY_URL", "comment": null}, "METHODOLOGY": {"type": "VARIANT", "index": 11, "name": "METHODOLOGY", "comment": null}, "PARENT_PROTOCOL": {"type": "TEXT", "index": 12, "name": "PARENT_PROTOCOL", "comment": null}, "PROTOCOL_SLUG": {"type": "TEXT", "index": 13, "name": "PROTOCOL_SLUG", "comment": null}, "LINKED_PROTOCOLS": {"type": "VARIANT", "index": 14, "name": "LINKED_PROTOCOLS", "comment": null}, "TOTAL_24H": {"type": "FLOAT", "index": 15, "name": "TOTAL_24H", "comment": null}, "TOTAL_48H_TO_24H": {"type": "FLOAT", "index": 16, "name": "TOTAL_48H_TO_24H", "comment": null}, "TOTAL_7D": {"type": "FLOAT", "index": 17, "name": "TOTAL_7D", "comment": null}, "TOTAL_30D": {"type": "FLOAT", "index": 18, "name": "TOTAL_30D", "comment": null}, "TOTAL_ALL_TIME": {"type": "FLOAT", "index": 19, "name": "TOTAL_ALL_TIME", "comment": null}, "CHANGE_1D": {"type": "FLOAT", "index": 20, "name": "CHANGE_1D", "comment": null}, "TOTAL_DATA_CHART_BREAKDOWN": {"type": "VARIANT", "index": 21, "name": "TOTAL_DATA_CHART_BREAKDOWN", "comment": null}, "DEFILLAMA_PERP_METRICS_ID": {"type": "TEXT", "index": 22, "name": "DEFILLAMA_PERP_METRICS_ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "_INSERTED_TIMESTAMP", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 26, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 65024, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 7, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_perp_metrics_module.1ee1cd9d64"}, "test.external_models.not_null_bronze__blast_leaderboard_RANK.367c836ca7": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_BRONZE", "name": "BLAST_LEADERBOARD_RANK", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DATE": {"type": "DATE", "index": 1, "name": "DATE", "comment": null}, "LEADERBOARD_TYPE": {"type": "TEXT", "index": 2, "name": "LEADERBOARD_TYPE", "comment": null}, "RANK": {"type": "NUMBER", "index": 3, "name": "RANK", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "POINTS_AMOUNT": {"type": "NUMBER", "index": 5, "name": "POINTS_AMOUNT", "comment": null}, "GOLD_AMOUNT": {"type": "FLOAT", "index": 6, "name": "GOLD_AMOUNT", "comment": null}, "INVITED_BY": {"type": "TEXT", "index": 7, "name": "INVITED_BY", "comment": null}, "ID": {"type": "TEXT", "index": 8, "name": "ID", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "_INSERTED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_bronze__blast_leaderboard_RANK.367c836ca7"}, "test.external_models.not_null_silver__defillama_protocol_tvl_history_defillama_protocol_tvl_history_id.0c1700be63": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PROTOCOL_TVL_HISTORY_DEFILLAMA_PROTOCOL_TVL_HISTORY_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TIMESTAMP": {"type": "DATE", "index": 1, "name": "TIMESTAMP", "comment": null}, "PROTOCOL_ID": {"type": "NUMBER", "index": 2, "name": "PROTOCOL_ID", "comment": null}, "CATEGORY": {"type": "VARIANT", "index": 3, "name": "CATEGORY", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 4, "name": "PROTOCOL", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 5, "name": "SYMBOL", "comment": null}, "CHAIN": {"type": "TEXT", "index": 6, "name": "CHAIN", "comment": null}, "CHAIN_TVL": {"type": "NUMBER", "index": 7, "name": "CHAIN_TVL", "comment": null}, "CHAIN_TVL_PREV_DAY": {"type": "NUMBER", "index": 8, "name": "CHAIN_TVL_PREV_DAY", "comment": null}, "CHAIN_TVL_PREV_WEEK": {"type": "NUMBER", "index": 9, "name": "CHAIN_TVL_PREV_WEEK", "comment": null}, "CHAIN_TVL_PREV_MONTH": {"type": "NUMBER", "index": 10, "name": "CHAIN_TVL_PREV_MONTH", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "_INSERTED_TIMESTAMP", "comment": null}, "DEFILLAMA_PROTOCOL_TVL_HISTORY_ID": {"type": "TEXT", "index": 12, "name": "DEFILLAMA_PROTOCOL_TVL_HISTORY_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "MODIFIED_TIMESTAMP", "comment": null}, "_INVOCATION_ID": {"type": "TEXT", "index": 15, "name": "_INVOCATION_ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_protocol_tvl_history_defillama_protocol_tvl_history_id.0c1700be63"}, "test.external_models.not_null_farcaster__fact_casts_UPDATED_AT.5d8dd8bd95": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_FARCASTER", "name": "FACT_CASTS_UPDATED_AT", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "TIMESTAMP", "comment": null}, "FID": {"type": "NUMBER", "index": 2, "name": "FID", "comment": null}, "HASH": {"type": "BINARY", "index": 3, "name": "HASH", "comment": null}, "PARENT_HASH": {"type": "BINARY", "index": 4, "name": "PARENT_HASH", "comment": null}, "PARENT_FID": {"type": "NUMBER", "index": 5, "name": "PARENT_FID", "comment": null}, "PARENT_URL": {"type": "TEXT", "index": 6, "name": "PARENT_URL", "comment": null}, "TEXT": {"type": "TEXT", "index": 7, "name": "TEXT", "comment": null}, "EMBEDS": {"type": "TEXT", "index": 8, "name": "EMBEDS", "comment": null}, "MENTIONS": {"type": "TEXT", "index": 9, "name": "MENTIONS", "comment": null}, "MENTIONS_POSITIONS": {"type": "TEXT", "index": 10, "name": "MENTIONS_POSITIONS", "comment": null}, "ROOT_PARENT_HASH": {"type": "BINARY", "index": 11, "name": "ROOT_PARENT_HASH", "comment": null}, "ROOT_PARENT_URL": {"type": "TEXT", "index": 12, "name": "ROOT_PARENT_URL", "comment": null}, "ID": {"type": "NUMBER", "index": 13, "name": "ID", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "CREATED_AT", "comment": null}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "UPDATED_AT", "comment": null}, "DELETED_AT": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "DELETED_AT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_farcaster__fact_casts_UPDATED_AT.5d8dd8bd95"}, "model.external_models.silver__layerzero_txs_snapshot": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "LAYERZERO_TXS_SNAPSHOT", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"SOURCE_CHAIN": {"type": "TEXT", "index": 1, "name": "SOURCE_CHAIN", "comment": ""}, "SOURCE_TRANSACTION_HASH": {"type": "TEXT", "index": 2, "name": "SOURCE_TRANSACTION_HASH", "comment": ""}, "SOURCE_CONTRACT": {"type": "TEXT", "index": 3, "name": "SOURCE_CONTRACT", "comment": ""}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 4, "name": "DESTINATION_CHAIN", "comment": ""}, "DESTINATION_TRANSACTION_HASH": {"type": "TEXT", "index": 5, "name": "DESTINATION_TRANSACTION_HASH", "comment": ""}, "DESTINATION_CONTRACT": {"type": "TEXT", "index": 6, "name": "DESTINATION_CONTRACT", "comment": ""}, "SENDER_WALLET": {"type": "TEXT", "index": 7, "name": "SENDER_WALLET", "comment": ""}, "SOURCE_TIMESTAMP_UTC": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "SOURCE_TIMESTAMP_UTC", "comment": ""}, "PROJECT": {"type": "TEXT", "index": 9, "name": "PROJECT", "comment": ""}, "NATIVE_DROP_USD": {"type": "TEXT", "index": 10, "name": "NATIVE_DROP_USD", "comment": ""}, "STARGATE_SWAP_USD": {"type": "TEXT", "index": 11, "name": "STARGATE_SWAP_USD", "comment": ""}, "TX_RN": {"type": "NUMBER", "index": 12, "name": "TX_RN", "comment": ""}, "SNAPSHOT_VERSION": {"type": "TEXT", "index": 13, "name": "SNAPSHOT_VERSION", "comment": ""}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "_INSERTED_TIMESTAMP", "comment": ""}, "LAYERZERO_TXS_SNAPSHOT_ID": {"type": "TEXT", "index": 15, "name": "LAYERZERO_TXS_SNAPSHOT_ID", "comment": ""}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "INSERTED_TIMESTAMP", "comment": ""}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "MODIFIED_TIMESTAMP", "comment": ""}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(source_timestamp_utc::DATE)", "include": true, "description": "The key used to cluster this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-01-12 12:58UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 14879576576, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 128674536, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.external_models.silver__layerzero_txs_snapshot"}, "test.external_models.not_null_silver__defillama_protocol_revenue_CHAIN.aaf93a9585": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_SILVER", "name": "DEFILLAMA_PROTOCOL_REVENUE_CHAIN", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "TIMESTAMP", "comment": null}, "PROTOCOL": {"type": "TEXT", "index": 3, "name": "PROTOCOL", "comment": null}, "DAILY_REV": {"type": "NUMBER", "index": 4, "name": "DAILY_REV", "comment": null}, "REV_OBJECT": {"type": "VARIANT", "index": 5, "name": "REV_OBJECT", "comment": null}, "_INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "_INSERTED_TIMESTAMP", "comment": null}, "ID": {"type": "TEXT", "index": 7, "name": "ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_silver__defillama_protocol_revenue_CHAIN.aaf93a9585"}, "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_dexes_DEX_ID__DEX.a9bfc87b1f": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_BRONZE", "name": "DEFILLAMA_DEXES_DEX_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"DEX_ID": {"type": "TEXT", "index": 1, "name": "DEX_ID", "comment": null}, "DEX": {"type": "TEXT", "index": 2, "name": "DEX", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_dexes_DEX_ID__DEX.a9bfc87b1f"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_options_premium_ID.f2c952c29e": {"metadata": {"type": "BASE TABLE", "schema": "DBT_UTILS_UNIQUE_COMBINATION_OF_COLUMNS_SILVER", "name": "DEFILLAMA_OPTIONS_PREMIUM_ID", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"ID": {"type": "TEXT", "index": 1, "name": "ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:09UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_options_premium_ID.f2c952c29e"}, "test.external_models.not_null_defillama__ez_stablecoin_metrics_peg_type.17890d14ad": {"metadata": {"type": "BASE TABLE", "schema": "NOT_NULL_DEFILLAMA", "name": "EZ_STABLECOIN_METRICS_PEG_TYPE", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"CHAIN": {"type": "TEXT", "index": 1, "name": "CHAIN", "comment": null}, "DATE_DAY": {"type": "DATE", "index": 2, "name": "DATE_DAY", "comment": null}, "STABLECOIN_ID": {"type": "TEXT", "index": 3, "name": "STABLECOIN_ID", "comment": null}, "STABLECOIN": {"type": "TEXT", "index": 4, "name": "STABLECOIN", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 5, "name": "SYMBOL", "comment": null}, "PEG_TYPE": {"type": "TEXT", "index": 6, "name": "PEG_TYPE", "comment": null}, "PEG_MECHANISM": {"type": "TEXT", "index": 7, "name": "PEG_MECHANISM", "comment": null}, "TOTAL_CIRCULATING_USD": {"type": "FLOAT", "index": 8, "name": "TOTAL_CIRCULATING_USD", "comment": null}, "TOTAL_MINTED_USD": {"type": "FLOAT", "index": 9, "name": "TOTAL_MINTED_USD", "comment": null}, "TOTAL_CIRCULATING": {"type": "FLOAT", "index": 10, "name": "TOTAL_CIRCULATING", "comment": null}, "TOTAL_BRIDGED_TO_USD": {"type": "FLOAT", "index": 11, "name": "TOTAL_BRIDGED_TO_USD", "comment": null}, "TOTAL_UNRELEASED": {"type": "FLOAT", "index": 12, "name": "TOTAL_UNRELEASED", "comment": null}, "EZ_STABLECOIN_METRICS_ID": {"type": "TEXT", "index": 13, "name": "EZ_STABLECOIN_METRICS_ID", "comment": null}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "INSERTED_TIMESTAMP", "comment": null}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "MODIFIED_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 09:10UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "test.external_models.not_null_defillama__ez_stablecoin_metrics_peg_type.17890d14ad"}}, "sources": {"source.livequery_models.crosschain.dim_evm_event_abis": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "DIM_EVM_EVENT_ABIS", "database": "CROSSCHAIN_DEV", "comment": "This table contains the individual event abis for each all contracts that we have ABIs for. Proxies are rolled up to their implementation.", "owner": "INTERNAL_DEV"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": "The blockchain that the event abi is for."}, "PARENT_CONTRACT_ADDRESS": {"type": "TEXT", "index": 2, "name": "PARENT_CONTRACT_ADDRESS", "comment": "The address of the contract that the event abi is for."}, "EVENT_NAME": {"type": "TEXT", "index": 3, "name": "EVENT_NAME", "comment": "The name of the event."}, "ABI": {"type": "VARIANT", "index": 4, "name": "ABI", "comment": "The abi of the event."}, "SIMPLE_EVENT_NAME": {"type": "TEXT", "index": 5, "name": "SIMPLE_EVENT_NAME", "comment": "The name of the event along with its parameters."}, "EVENT_SIGNATURE": {"type": "TEXT", "index": 6, "name": "EVENT_SIGNATURE", "comment": "The keccak256 signature of the simple event name. This can be used to filter for events in the logs table on topics[0]."}, "START_BLOCK": {"type": "NUMBER", "index": 7, "name": "START_BLOCK", "comment": "The block number of the creation of the contract containing the event. This could be from a proxy or an implementation."}, "END_BLOCK": {"type": "NUMBER", "index": 8, "name": "END_BLOCK", "comment": "The block number before a similar event was created in the contract. This could be from a proxy or an implementation."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "INSERTED_TIMESTAMP", "comment": "The utc timestamp at which the row was inserted into the table."}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "MODIFIED_TIMESTAMP", "comment": "The utc timestamp at which the row was last modified."}, "DIM_EVM_EVENT_ABIS_ID": {"type": "TEXT", "index": 11, "name": "DIM_EVM_EVENT_ABIS_ID", "comment": "The unique identifier for each row in the table."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.livequery_models.crosschain.dim_evm_event_abis"}, "source.livequery_models.crosschain.dim_contracts": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "DIM_CONTRACTS", "database": "CROSSCHAIN_DEV", "comment": "This table contains contract details for contracts deployed on the Ethereum, Optimism, Polygon, BSC, Arbitrum, Avalanche, Osmosis and Solana blockchains.", "owner": "INTERNAL_DEV"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": "The unique address of the deployed contract."}, "SYMBOL": {"type": "TEXT", "index": 2, "name": "SYMBOL", "comment": "The symbol used to represent this contract. Please note this is not necessarily unique."}, "NAME": {"type": "TEXT", "index": 3, "name": "NAME", "comment": "The name of the deployed contract. Please note this is not necessarily unique."}, "DECIMALS": {"type": "NUMBER", "index": 4, "name": "DECIMALS", "comment": "The number of decimal places this contract needs adjusted where token values exist."}, "CREATED_BLOCK_NUMBER": {"type": "NUMBER", "index": 5, "name": "CREATED_BLOCK_NUMBER", "comment": ""}, "CREATED_BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "CREATED_BLOCK_TIMESTAMP", "comment": ""}, "CREATED_TX_HASH": {"type": "TEXT", "index": 7, "name": "CREATED_TX_HASH", "comment": ""}, "CREATOR_ADDRESS": {"type": "TEXT", "index": 8, "name": "CREATOR_ADDRESS", "comment": ""}, "BLOCKCHAIN": {"type": "TEXT", "index": 9, "name": "BLOCKCHAIN", "comment": "The corresponding blockchain for contract details."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "INSERTED_TIMESTAMP", "comment": "The utc timestamp at which the row was inserted into the table."}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODIFIED_TIMESTAMP", "comment": "The utc timestamp at which the row was last modified."}, "DIM_CONTRACTS_ID": {"type": "TEXT", "index": 12, "name": "DIM_CONTRACTS_ID", "comment": "The unique identifier for each row in the table."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.livequery_models.crosschain.dim_contracts"}, "source.livequery_models.crosschain.dim_date_hours": {"metadata": {"type": "VIEW", "schema": "CORE", "name": "DIM_DATE_HOURS", "database": "CROSSCHAIN_DEV", "comment": "Hold rows for each hour from 2017 to current timestamp (UTC)", "owner": "INTERNAL_DEV"}, "columns": {"DATE_HOUR": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "DATE_HOUR", "comment": "Specific hour of a given date"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.livequery_models.crosschain.dim_date_hours"}, "source.external_models.avalanche_share.c_internal_transactions": {"metadata": {"type": "BASE TABLE", "schema": "PRIMARY", "name": "C_INTERNAL_TRANSACTIONS", "database": "AVA_LABS_SHARE", "comment": "Avalanche C-Chain Internal Transactions", "owner": null}, "columns": {"BLOCKHASH": {"type": "TEXT", "index": 1, "name": "BLOCKHASH", "comment": "Hash of the block containing this internal transaction."}, "BLOCKNUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCKNUMBER", "comment": ""}, "BLOCKTIMESTAMP": {"type": "NUMBER", "index": 3, "name": "BLOCKTIMESTAMP", "comment": "Block timestamp"}, "TRANSACTIONHASH": {"type": "TEXT", "index": 4, "name": "TRANSACTIONHASH", "comment": "Hash of the originating external transaction that triggered this internal call."}, "TYPE": {"type": "TEXT", "index": 5, "name": "TYPE", "comment": "Type of internal transaction (e.g., call, create)."}, "`FROM`": {"type": "TEXT", "index": 6, "name": "`FROM`", "comment": "Address initiating the internal transaction."}, "`TO`": {"type": "TEXT", "index": 7, "name": "`TO`", "comment": "Recipient address of the internal transaction."}, "VALUE": {"type": "NUMBER", "index": 8, "name": "VALUE", "comment": "Amount of AVAX transferred in the internal transaction."}, "GAS": {"type": "NUMBER", "index": 9, "name": "GAS", "comment": "Gas provided for the internal transaction execution."}, "GASUSED": {"type": "NUMBER", "index": 10, "name": "GASUSED", "comment": "Gas actually used by the internal transaction."}, "REVERT": {"type": "TEXT", "index": 11, "name": "REVERT", "comment": "Indicator if the internal transaction was reverted."}, "ERROR": {"type": "TEXT", "index": 12, "name": "ERROR", "comment": "Error message or code if an error occurred during execution."}, "REVERTREASON": {"type": "TEXT", "index": 13, "name": "REVERTREASON", "comment": "Detailed reason for a transaction revert, if applicable."}, "INPUT": {"type": "TEXT", "index": 14, "name": "INPUT", "comment": "Hex-encoded input data provided to the internal call."}, "OUTPUT": {"type": "TEXT", "index": 15, "name": "OUTPUT", "comment": "Hex-encoded output data returned from the internal call."}, "CALLINDEX": {"type": "TEXT", "index": 16, "name": "CALLINDEX", "comment": "Index representing the order of nested calls within the transaction."}, "TRACE_POSITION": {"type": "TEXT", "index": 17, "name": "TRACE_POSITION", "comment": "Position indicator for the call within the transaction trace."}, "PARTITION_DATE": {"type": "DATE", "index": 18, "name": "PARTITION_DATE", "comment": "This date is derived from the block timestamp"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 13:26UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 778960047104, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 7775015148, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.avalanche_share.c_internal_transactions"}, "source.external_models.avalanche_share.x_transactions": {"metadata": {"type": "BASE TABLE", "schema": "PRIMARY", "name": "X_TRANSACTIONS", "database": "AVA_LABS_SHARE", "comment": null, "owner": null}, "columns": {"TRANSACTION_HASH": {"type": "TEXT", "index": 1, "name": "TRANSACTION_HASH", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "TIMESTAMP", "comment": null}, "TYPE": {"type": "TEXT", "index": 3, "name": "TYPE", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 4, "name": "BLOCK_HASH", "comment": null}, "BLOCK_INDEX": {"type": "NUMBER", "index": 5, "name": "BLOCK_INDEX", "comment": null}, "BLOCK_HEIGHT": {"type": "NUMBER", "index": 6, "name": "BLOCK_HEIGHT", "comment": null}, "MEMO": {"type": "TEXT", "index": 7, "name": "MEMO", "comment": null}, "FEE": {"type": "NUMBER", "index": 8, "name": "FEE", "comment": null}, "ASSET_NAME": {"type": "TEXT", "index": 9, "name": "ASSET_NAME", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 10, "name": "SYMBOL", "comment": null}, "DENOMINATION": {"type": "NUMBER", "index": 11, "name": "DENOMINATION", "comment": null}, "SOURCE_CHAIN": {"type": "TEXT", "index": 12, "name": "SOURCE_CHAIN", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 13, "name": "DESTINATION_CHAIN", "comment": null}, "METADATA": {"type": "TEXT", "index": 14, "name": "METADATA", "comment": null}, "BYTES": {"type": "BINARY", "index": 15, "name": "BYTES", "comment": null}, "LAST_UPDATED": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "LAST_UPDATED", "comment": null}, "LOAD_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "LOAD_TIMESTAMP", "comment": null}, "IS_LINEAR": {"type": "BOOLEAN", "index": 18, "name": "IS_LINEAR", "comment": null}, "TX_BLOCK_POSITION": {"type": "NUMBER", "index": 19, "name": "TX_BLOCK_POSITION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 13:26UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 489218560, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 4652559, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.avalanche_share.x_transactions"}, "source.external_models.avalanche_share.c_receipts": {"metadata": {"type": "BASE TABLE", "schema": "PRIMARY", "name": "C_RECEIPTS", "database": "AVA_LABS_SHARE", "comment": "Avalanche C-Chain Transaction Receipts", "owner": null}, "columns": {"BLOCKHASH": {"type": "TEXT", "index": 1, "name": "BLOCKHASH", "comment": "block hash of the block containing the transaction."}, "BLOCKNUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCKNUMBER", "comment": ""}, "BLOCKTIMESTAMP": {"type": "NUMBER", "index": 3, "name": "BLOCKTIMESTAMP", "comment": "Block timestamp"}, "TRANSACTIONHASH": {"type": "TEXT", "index": 4, "name": "TRANSACTIONHASH", "comment": "Hash of the transaction corresponding to this receipt."}, "TRANSACTIONRECEIPTGASUSED": {"type": "NUMBER", "index": 5, "name": "TRANSACTIONRECEIPTGASUSED", "comment": "Gas used by the transaction during execution."}, "TRANSACTIONRECEIPTCUMULATIVEGASUSED": {"type": "NUMBER", "index": 6, "name": "TRANSACTIONRECEIPTCUMULATIVEGASUSED", "comment": "Cumulative gas used in the block up to and including this transaction."}, "TRANSACTIONRECEIPTSTATUS": {"type": "NUMBER", "index": 7, "name": "TRANSACTIONRECEIPTSTATUS", "comment": "Status code of the transaction (1 for success, 0 for failure)."}, "TRANSACTIONRECEIPTCONTRACTADDRESS": {"type": "TEXT", "index": 8, "name": "TRANSACTIONRECEIPTCONTRACTADDRESS", "comment": "Address of the contract created (if the transaction was a contract creation)."}, "TRANSACTIONRECEIPTPOSTSTATE": {"type": "TEXT", "index": 9, "name": "TRANSACTIONRECEIPTPOSTSTATE", "comment": "Post-execution state (hash) after the transaction was applied."}, "TRANSACTIONRECEIPTEFFECTIVEGASPRICE": {"type": "NUMBER", "index": 10, "name": "TRANSACTIONRECEIPTEFFECTIVEGASPRICE", "comment": "Effective gas price used for the transaction."}, "PARTITION_DATE": {"type": "DATE", "index": 11, "name": "PARTITION_DATE", "comment": "This date is derived from the block timestamp"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 13:26UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 55986822656, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 754935703, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.avalanche_share.c_receipts"}, "source.external_models.avalanche_share.vertices": {"metadata": {"type": "BASE TABLE", "schema": "PRIMARY", "name": "VERTICES", "database": "AVA_LABS_SHARE", "comment": null, "owner": null}, "columns": {"VERTEX_HASH": {"type": "TEXT", "index": 1, "name": "VERTEX_HASH", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 2, "name": "PARENT_HASH", "comment": null}, "VERTEX_HEIGHT": {"type": "NUMBER", "index": 3, "name": "VERTEX_HEIGHT", "comment": null}, "VERTEX_INDEX": {"type": "NUMBER", "index": 4, "name": "VERTEX_INDEX", "comment": null}, "VERTEX_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "VERTEX_TIMESTAMP", "comment": null}, "TRANSACTION_COUNT": {"type": "NUMBER", "index": 6, "name": "TRANSACTION_COUNT", "comment": null}, "VERTEX_SIZE": {"type": "NUMBER", "index": 7, "name": "VERTEX_SIZE", "comment": null}, "LAST_UPDATED": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "LAST_UPDATED", "comment": null}, "LOAD_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "LOAD_TIMESTAMP", "comment": null}, "IS_STOP_VERTEX": {"type": "BOOLEAN", "index": 10, "name": "IS_STOP_VERTEX", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 13:26UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 404679680, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 4373047, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.avalanche_share.vertices"}, "source.external_models.avalanche_share.c_blocks": {"metadata": {"type": "BASE TABLE", "schema": "PRIMARY", "name": "C_BLOCKS", "database": "AVA_LABS_SHARE", "comment": "Avalanche C-Chain Blocks: Each record represents a block on the Avalanche C-Chain", "owner": null}, "columns": {"BLOCKTIMESTAMP": {"type": "NUMBER", "index": 1, "name": "BLOCKTIMESTAMP", "comment": "Block timestamp"}, "BLOCKHASH": {"type": "TEXT", "index": 2, "name": "BLOCKHASH", "comment": "Unique identifier of C-chain blocks, the hash of the block header."}, "BLOCKNUMBER": {"type": "NUMBER", "index": 3, "name": "BLOCKNUMBER", "comment": "Block number as a string, also known as block height. Represents the length of the blockchain"}, "BLOCKBASEFEEPERGAS": {"type": "NUMBER", "index": 4, "name": "BLOCKBASEFEEPERGAS", "comment": "Base fee per gas unit included in the block."}, "BLOCKGASLIMIT": {"type": "NUMBER", "index": 5, "name": "BLOCKGASLIMIT", "comment": "Maximum gas allowed in this block."}, "BLOCKGASUSED": {"type": "NUMBER", "index": 6, "name": "BLOCKGASUSED", "comment": "Total gas used in the block."}, "BLOCKPARENTHASH": {"type": "TEXT", "index": 7, "name": "BLOCKPARENTHASH", "comment": "Hash of the parent block (previous block in the chain)."}, "BLOCKRECEIPTHASH": {"type": "TEXT", "index": 8, "name": "BLOCKRECEIPTHASH", "comment": "Hash representing the receipt of the block\u2019s transactions."}, "BLOCKRECEIPTSROOT": {"type": "TEXT", "index": 9, "name": "BLOCKRECEIPTSROOT", "comment": "Root hash of the receipts trie for the block."}, "BLOCKSIZE": {"type": "NUMBER", "index": 10, "name": "BLOCKSIZE", "comment": "Size of the block"}, "BLOCKSTATEROOT": {"type": "TEXT", "index": 11, "name": "BLOCKSTATEROOT", "comment": "State root hash after block execution."}, "BLOCKTRANSACTIONLEN": {"type": "NUMBER", "index": 12, "name": "BLOCKTRANSACTIONLEN", "comment": "Number of transactions included in the block."}, "BLOCKEXTRADATA": {"type": "TEXT", "index": 13, "name": "BLOCKEXTRADATA", "comment": "Extra data field in the block header"}, "BLOCKEXTDATAGASUSED": {"type": "NUMBER", "index": 14, "name": "BLOCKEXTDATAGASUSED", "comment": "Gas used by atomic (cross-chain) transactions included via ExtData."}, "BLOCKGASCOST": {"type": "NUMBER", "index": 15, "name": "BLOCKGASCOST", "comment": "Additional gas cost metric unique to Avalanche block production."}, "PARTITION_DATE": {"type": "DATE", "index": 16, "name": "PARTITION_DATE", "comment": "This date is dervied from the block timestamp"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 13:26UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 16004397056, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 70141225, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.avalanche_share.c_blocks"}, "source.external_models.avalanche_share.c_messages": {"metadata": {"type": "BASE TABLE", "schema": "PRIMARY", "name": "C_MESSAGES", "database": "AVA_LABS_SHARE", "comment": "Avalanche C-Chain Messages.", "owner": null}, "columns": {"BLOCKHASH": {"type": "TEXT", "index": 1, "name": "BLOCKHASH", "comment": "Hash of the block containing this message."}, "BLOCKNUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCKNUMBER", "comment": "Block number as a string"}, "BLOCKTIMESTAMP": {"type": "NUMBER", "index": 3, "name": "BLOCKTIMESTAMP", "comment": "Block timestamp"}, "TRANSACTIONHASH": {"type": "TEXT", "index": 4, "name": "TRANSACTIONHASH", "comment": "Hash of the transaction that included this message."}, "TRANSACTIONMESSAGEFROM": {"type": "TEXT", "index": 5, "name": "TRANSACTIONMESSAGEFROM", "comment": "Sender address for the message."}, "TRANSACTIONMESSAGETO": {"type": "TEXT", "index": 6, "name": "TRANSACTIONMESSAGETO", "comment": "Recipient address for the message."}, "TRANSACTIONMESSAGEGASPRICE": {"type": "NUMBER", "index": 7, "name": "TRANSACTIONMESSAGEGASPRICE", "comment": "Gas price applied to the message transaction."}, "PARTITION_DATE": {"type": "DATE", "index": 8, "name": "PARTITION_DATE", "comment": "This date is derived from the block timestamp"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 13:26UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 62529121280, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 755456759, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.avalanche_share.c_messages"}, "source.external_models.avalanche_share.c_transactions": {"metadata": {"type": "BASE TABLE", "schema": "PRIMARY", "name": "C_TRANSACTIONS", "database": "AVA_LABS_SHARE", "comment": "Avalanche C-Chain Transactions: Each record represents a transaction on the C-Chain, capturing sender/recipient addresses, value transferred, gas details, and transaction metadata.", "owner": null}, "columns": {"BLOCKHASH": {"type": "TEXT", "index": 1, "name": "BLOCKHASH", "comment": "blockhash of the block containing this transaction."}, "BLOCKNUMBER": {"type": "NUMBER", "index": 2, "name": "BLOCKNUMBER", "comment": ""}, "BLOCKTIMESTAMP": {"type": "NUMBER", "index": 3, "name": "BLOCKTIMESTAMP", "comment": "Block timestamp"}, "TRANSACTIONHASH": {"type": "TEXT", "index": 4, "name": "TRANSACTIONHASH", "comment": "Unique hash of the transaction."}, "TRANSACTIONFROM": {"type": "TEXT", "index": 5, "name": "TRANSACTIONFROM", "comment": "Sender address initiating the transaction."}, "TRANSACTIONTO": {"type": "TEXT", "index": 6, "name": "TRANSACTIONTO", "comment": "Recipient address of the transaction; this can be a contract address"}, "TRANSACTIONGAS": {"type": "NUMBER", "index": 7, "name": "TRANSACTIONGAS", "comment": "Gas used by the transaction"}, "TRANSACTIONGASPRICE": {"type": "NUMBER", "index": 8, "name": "TRANSACTIONGASPRICE", "comment": "Cost per unit of gas in nAVAX"}, "TRANSACTIONMAXFEEPERGAS": {"type": "NUMBER", "index": 9, "name": "TRANSACTIONMAXFEEPERGAS", "comment": "Maximum fee per gas unit specified."}, "TRANSACTIONMAXPRIORITYFEEPERGAS": {"type": "NUMBER", "index": 10, "name": "TRANSACTIONMAXPRIORITYFEEPERGAS", "comment": "Maximum priority fee per gas unit specified."}, "TRANSACTIONINPUT": {"type": "TEXT", "index": 11, "name": "TRANSACTIONINPUT", "comment": "Transaction input data, commonly used for contract calls"}, "TRANSACTIONNONCE": {"type": "NUMBER", "index": 12, "name": "TRANSACTIONNONCE", "comment": "Nonce value indicating the sender\u2019s transaction count."}, "TRANSACTIONINDEX": {"type": "NUMBER", "index": 13, "name": "TRANSACTIONINDEX", "comment": "Position of the transaction within the block (0-based)."}, "TRANSACTIONCOST": {"type": "NUMBER", "index": 14, "name": "TRANSACTIONCOST", "comment": "Total cost of the transaction (gas used multiplied by gas price)."}, "TRANSACTIONVALUE": {"type": "NUMBER", "index": 15, "name": "TRANSACTIONVALUE", "comment": "Amount of AVAX transferred in the transaction."}, "TRANSACTIONTYPE": {"type": "TEXT", "index": 16, "name": "TRANSACTIONTYPE", "comment": "Type of transaction"}, "PARTITION_DATE": {"type": "DATE", "index": 17, "name": "PARTITION_DATE", "comment": "This date is dervied from the block timestamp"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 13:26UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 127242780672, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 755556208, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.avalanche_share.c_transactions"}, "source.external_models.avalanche_share.p_blocks": {"metadata": {"type": "BASE TABLE", "schema": "PRIMARY", "name": "P_BLOCKS", "database": "AVA_LABS_SHARE", "comment": null, "owner": null}, "columns": {"BLOCK_HASH": {"type": "TEXT", "index": 1, "name": "BLOCK_HASH", "comment": null}, "BLOCK_INDEX": {"type": "NUMBER", "index": 2, "name": "BLOCK_INDEX", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "TIMESTAMP", "comment": null}, "TYPE": {"type": "TEXT", "index": 4, "name": "TYPE", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "BLOCK_SIZE": {"type": "NUMBER", "index": 6, "name": "BLOCK_SIZE", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 7, "name": "PARENT_HASH", "comment": null}, "PROPOSER_ID": {"type": "TEXT", "index": 8, "name": "PROPOSER_ID", "comment": null}, "PROPOSER_PARENT_ID": {"type": "TEXT", "index": 9, "name": "PROPOSER_PARENT_ID", "comment": null}, "PROPOSER_NODE_ID": {"type": "TEXT", "index": 10, "name": "PROPOSER_NODE_ID", "comment": null}, "PROPOSER_P_CHAIN_HEIGHT": {"type": "NUMBER", "index": 11, "name": "PROPOSER_P_CHAIN_HEIGHT", "comment": null}, "PROPOSER_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "PROPOSER_TIMESTAMP", "comment": null}, "LAST_UPDATED": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "LAST_UPDATED", "comment": null}, "LOAD_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "LOAD_TIMESTAMP", "comment": null}, "BLOCK_HEIGHT": {"type": "NUMBER", "index": 15, "name": "BLOCK_HEIGHT", "comment": null}, "CURRENT_SUPPLY": {"type": "TEXT", "index": 16, "name": "CURRENT_SUPPLY", "comment": null}, "L1_VALIDATOR_EXCESS_GAS": {"type": "NUMBER", "index": 17, "name": "L1_VALIDATOR_EXCESS_GAS", "comment": null}, "L1_VALIDATOR_ACCRUED_FEES": {"type": "NUMBER", "index": 18, "name": "L1_VALIDATOR_ACCRUED_FEES", "comment": null}, "L1_VALIDATOR_ACTIVE_COUNT": {"type": "NUMBER", "index": 19, "name": "L1_VALIDATOR_ACTIVE_COUNT", "comment": null}, "FEE_STATE_EXCESS": {"type": "NUMBER", "index": 20, "name": "FEE_STATE_EXCESS", "comment": null}, "FEE_STATE_CAPACITY": {"type": "NUMBER", "index": 21, "name": "FEE_STATE_CAPACITY", "comment": null}, "GAS_PRICE": {"type": "NUMBER", "index": 22, "name": "GAS_PRICE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 13:26UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 4415621120, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 22860591, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.avalanche_share.p_blocks"}, "source.external_models.avalanche_share.utxos": {"metadata": {"type": "BASE TABLE", "schema": "PRIMARY", "name": "UTXOS", "database": "AVA_LABS_SHARE", "comment": null, "owner": null}, "columns": {"UTXO_ID": {"type": "TEXT", "index": 1, "name": "UTXO_ID", "comment": null}, "TRANSACTION_HASH": {"type": "TEXT", "index": 2, "name": "TRANSACTION_HASH", "comment": null}, "BLOCK_INDEX": {"type": "NUMBER", "index": 3, "name": "BLOCK_INDEX", "comment": null}, "OUTPUT_INDEX": {"type": "NUMBER", "index": 4, "name": "OUTPUT_INDEX", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "TIMESTAMP", "comment": null}, "TX_TYPE": {"type": "TEXT", "index": 6, "name": "TX_TYPE", "comment": null}, "OUTPUT_TYPE": {"type": "TEXT", "index": 7, "name": "OUTPUT_TYPE", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 8, "name": "ADDRESS", "comment": null}, "CONSUMING_TRANSACTION_HASH": {"type": "TEXT", "index": 9, "name": "CONSUMING_TRANSACTION_HASH", "comment": null}, "ASSET_ID": {"type": "TEXT", "index": 10, "name": "ASSET_ID", "comment": null}, "LOCKTIME": {"type": "NUMBER", "index": 11, "name": "LOCKTIME", "comment": null}, "THRESHOLD": {"type": "NUMBER", "index": 12, "name": "THRESHOLD", "comment": null}, "PUBLIC_KEY": {"type": "TEXT", "index": 13, "name": "PUBLIC_KEY", "comment": null}, "SIGNATURE": {"type": "TEXT", "index": 14, "name": "SIGNATURE", "comment": null}, "AMOUNT": {"type": "NUMBER", "index": 15, "name": "AMOUNT", "comment": null}, "GROUP_ID": {"type": "NUMBER", "index": 16, "name": "GROUP_ID", "comment": null}, "PAYLOAD": {"type": "TEXT", "index": 17, "name": "PAYLOAD", "comment": null}, "FX_ID": {"type": "TEXT", "index": 18, "name": "FX_ID", "comment": null}, "CREATED_ON": {"type": "TEXT", "index": 19, "name": "CREATED_ON", "comment": null}, "CONSUMED_ON": {"type": "TEXT", "index": 20, "name": "CONSUMED_ON", "comment": null}, "PLATFORM_LOCKTIME": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "PLATFORM_LOCKTIME", "comment": null}, "STAKED": {"type": "BOOLEAN", "index": 22, "name": "STAKED", "comment": null}, "STAKEABLE_LOCKTIME": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "STAKEABLE_LOCKTIME", "comment": null}, "REWARD": {"type": "BOOLEAN", "index": 24, "name": "REWARD", "comment": null}, "LAST_UPDATED": {"type": "TIMESTAMP_NTZ", "index": 25, "name": "LAST_UPDATED", "comment": null}, "LOAD_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 26, "name": "LOAD_TIMESTAMP", "comment": null}, "CONSUMING_TRANSACTION_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 27, "name": "CONSUMING_TRANSACTION_TIMESTAMP", "comment": null}, "STAKING_START_TIME": {"type": "TIMESTAMP_NTZ", "index": 28, "name": "STAKING_START_TIME", "comment": null}, "STAKING_END_TIME": {"type": "TIMESTAMP_NTZ", "index": 29, "name": "STAKING_END_TIME", "comment": null}, "NODE_ID": {"type": "TEXT", "index": 30, "name": "NODE_ID", "comment": null}, "REWARD_ADDRESSES": {"type": "VARIANT", "index": 31, "name": "REWARD_ADDRESSES", "comment": null}, "CONSUMING_BLOCK_HEIGHT": {"type": "NUMBER", "index": 32, "name": "CONSUMING_BLOCK_HEIGHT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 13:26UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 7755344896, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 31536574, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.avalanche_share.utxos"}, "source.external_models.avalanche_share.data_dictionary": {"metadata": {"type": "BASE TABLE", "schema": "PRIMARY", "name": "DATA_DICTIONARY", "database": "AVA_LABS_SHARE", "comment": "This table contains column descriptions for the tables in this data listing.", "owner": null}, "columns": {"TABLE_NAME": {"type": "TEXT", "index": 1, "name": "TABLE_NAME", "comment": null}, "TABLE_DESCRIPTION": {"type": "TEXT", "index": 2, "name": "TABLE_DESCRIPTION", "comment": null}, "COLUMN_NAME": {"type": "TEXT", "index": 3, "name": "COLUMN_NAME", "comment": null}, "COLUMN_TYPE": {"type": "TEXT", "index": 4, "name": "COLUMN_TYPE", "comment": null}, "COLUMN_DESCRIPTION": {"type": "TEXT", "index": 5, "name": "COLUMN_DESCRIPTION", "comment": null}, "ORDINAL_POSITION": {"type": "NUMBER", "index": 6, "name": "ORDINAL_POSITION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-02 13:25UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 13824, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 223, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.avalanche_share.data_dictionary"}, "source.external_models.avalanche_share.x_blocks": {"metadata": {"type": "BASE TABLE", "schema": "PRIMARY", "name": "X_BLOCKS", "database": "AVA_LABS_SHARE", "comment": null, "owner": null}, "columns": {"BLOCK_HASH": {"type": "TEXT", "index": 1, "name": "BLOCK_HASH", "comment": null}, "BLOCK_INDEX": {"type": "NUMBER", "index": 2, "name": "BLOCK_INDEX", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "TIMESTAMP", "comment": null}, "TYPE": {"type": "TEXT", "index": 4, "name": "TYPE", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 5, "name": "TX_COUNT", "comment": null}, "BLOCK_SIZE": {"type": "NUMBER", "index": 6, "name": "BLOCK_SIZE", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 7, "name": "PARENT_HASH", "comment": null}, "PROPOSER_ID": {"type": "TEXT", "index": 8, "name": "PROPOSER_ID", "comment": null}, "PROPOSER_PARENT_ID": {"type": "TEXT", "index": 9, "name": "PROPOSER_PARENT_ID", "comment": null}, "PROPOSER_NODE_ID": {"type": "TEXT", "index": 10, "name": "PROPOSER_NODE_ID", "comment": null}, "PROPOSER_P_CHAIN_HEIGHT": {"type": "NUMBER", "index": 11, "name": "PROPOSER_P_CHAIN_HEIGHT", "comment": null}, "PROPOSER_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "PROPOSER_TIMESTAMP", "comment": null}, "LAST_UPDATED": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "LAST_UPDATED", "comment": null}, "LOAD_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "LOAD_TIMESTAMP", "comment": null}, "BLOCK_HEIGHT": {"type": "NUMBER", "index": 15, "name": "BLOCK_HEIGHT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 13:26UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 121658368, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 490582, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.avalanche_share.x_blocks"}, "source.external_models.avalanche_share.p_transactions": {"metadata": {"type": "BASE TABLE", "schema": "PRIMARY", "name": "P_TRANSACTIONS", "database": "AVA_LABS_SHARE", "comment": null, "owner": null}, "columns": {"TRANSACTION_HASH": {"type": "TEXT", "index": 1, "name": "TRANSACTION_HASH", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "TIMESTAMP", "comment": null}, "TYPE": {"type": "TEXT", "index": 3, "name": "TYPE", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 4, "name": "BLOCK_HASH", "comment": null}, "BLOCK_INDEX": {"type": "NUMBER", "index": 5, "name": "BLOCK_INDEX", "comment": null}, "BLOCK_HEIGHT": {"type": "NUMBER", "index": 6, "name": "BLOCK_HEIGHT", "comment": null}, "MEMO": {"type": "TEXT", "index": 7, "name": "MEMO", "comment": null}, "FEE": {"type": "NUMBER", "index": 8, "name": "FEE", "comment": null}, "SOURCE_CHAIN": {"type": "TEXT", "index": 9, "name": "SOURCE_CHAIN", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 10, "name": "DESTINATION_CHAIN", "comment": null}, "REWARDED": {"type": "BOOLEAN", "index": 11, "name": "REWARDED", "comment": null}, "POTENTIAL_REWARD": {"type": "NUMBER", "index": 12, "name": "POTENTIAL_REWARD", "comment": null}, "SUBNET_ID": {"type": "TEXT", "index": 13, "name": "SUBNET_ID", "comment": null}, "START_TIME": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "START_TIME", "comment": null}, "END_TIME": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "END_TIME", "comment": null}, "METADATA": {"type": "TEXT", "index": 16, "name": "METADATA", "comment": null}, "BYTES": {"type": "BINARY", "index": 17, "name": "BYTES", "comment": null}, "LAST_UPDATED": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "LAST_UPDATED", "comment": null}, "LOAD_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "LOAD_TIMESTAMP", "comment": null}, "IS_LINEAR": {"type": "BOOLEAN", "index": 20, "name": "IS_LINEAR", "comment": null}, "TX_BLOCK_POSITION": {"type": "NUMBER", "index": 21, "name": "TX_BLOCK_POSITION", "comment": null}, "REMOVAL_TIME": {"type": "TIMESTAMP_NTZ", "index": 22, "name": "REMOVAL_TIME", "comment": null}, "REMOVAL_TX_HASH": {"type": "TEXT", "index": 23, "name": "REMOVAL_TX_HASH", "comment": null}, "STAKING_TX_HASH": {"type": "TEXT", "index": 24, "name": "STAKING_TX_HASH", "comment": null}, "NODE_ID": {"type": "TEXT", "index": 25, "name": "NODE_ID", "comment": null}, "REWARD_ADDRESSES": {"type": "VARIANT", "index": 26, "name": "REWARD_ADDRESSES", "comment": null}, "L1_VALIDATOR_REMAINING_BALANCE_OWNER_BYTES": {"type": "BINARY", "index": 27, "name": "L1_VALIDATOR_REMAINING_BALANCE_OWNER_BYTES", "comment": null}, "L1_MANAGER_BLOCKCHAIN_ID": {"type": "TEXT", "index": 28, "name": "L1_MANAGER_BLOCKCHAIN_ID", "comment": null}, "L1_MANAGER_CONTRACT_ADDRESS": {"type": "TEXT", "index": 29, "name": "L1_MANAGER_CONTRACT_ADDRESS", "comment": null}, "L1_VALIDATION_ID": {"type": "TEXT", "index": 30, "name": "L1_VALIDATION_ID", "comment": null}, "L1_VALIDATOR_IS_ACTIVE": {"type": "BOOLEAN", "index": 31, "name": "L1_VALIDATOR_IS_ACTIVE", "comment": null}, "L1_VALIDATOR_PAYG_BALANCE": {"type": "NUMBER", "index": 32, "name": "L1_VALIDATOR_PAYG_BALANCE", "comment": null}, "L1_VALIDATOR_WEIGHT": {"type": "NUMBER", "index": 33, "name": "L1_VALIDATOR_WEIGHT", "comment": null}, "L1_VALIDATOR_END_ACCUMULATED_FEE": {"type": "NUMBER", "index": 34, "name": "L1_VALIDATOR_END_ACCUMULATED_FEE", "comment": null}, "L1_VALIDATOR_ACCRUED_FEES": {"type": "NUMBER", "index": 35, "name": "L1_VALIDATOR_ACCRUED_FEES", "comment": null}, "L1_VALIDATOR_ACTIVE_COUNT": {"type": "NUMBER", "index": 36, "name": "L1_VALIDATOR_ACTIVE_COUNT", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 37, "name": "GAS_USED", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 13:26UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 4076087808, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 13754231, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.avalanche_share.p_transactions"}, "source.external_models.starknet_snapshot.l1_messages": {"metadata": {"type": "BASE TABLE", "schema": "STARKNET", "name": "L1_MESSAGES", "database": "TOKENFLOW", "comment": null, "owner": "ACCOUNTADMIN"}, "columns": {"LOAD_ID": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "LOAD_ID", "comment": null}, "CHAIN_ID": {"type": "TEXT", "index": 2, "name": "CHAIN_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER", "comment": null}, "L1_ADDRESS": {"type": "TEXT", "index": 4, "name": "L1_ADDRESS", "comment": null}, "L2_ADDRESS": {"type": "TEXT", "index": 5, "name": "L2_ADDRESS", "comment": null}, "SELECTOR": {"type": "TEXT", "index": 6, "name": "SELECTOR", "comment": null}, "PAYLOAD": {"type": "ARRAY", "index": 7, "name": "PAYLOAD", "comment": null}, "NONCE": {"type": "NUMBER", "index": 8, "name": "NONCE", "comment": null}, "FEE": {"type": "NUMBER", "index": 9, "name": "FEE", "comment": null}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(round(block_number,-3))", "include": true, "description": "The key used to cluster this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-01-11 12:29UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 26444288, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 853197, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.starknet_snapshot.l1_messages"}, "source.external_models.starknet_snapshot.traces": {"metadata": {"type": "BASE TABLE", "schema": "STARKNET", "name": "TRACES", "database": "TOKENFLOW", "comment": null, "owner": "ACCOUNTADMIN"}, "columns": {"LOAD_ID": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "LOAD_ID", "comment": null}, "CHAIN_ID": {"type": "TEXT", "index": 2, "name": "CHAIN_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "TIMESTAMP", "comment": null}, "TRACE_ID": {"type": "TEXT", "index": 5, "name": "TRACE_ID", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "TRACE_PATH": {"type": "TEXT", "index": 7, "name": "TRACE_PATH", "comment": null}, "TRACE_TYPE": {"type": "TEXT", "index": 8, "name": "TRACE_TYPE", "comment": null}, "CALLER": {"type": "TEXT", "index": 9, "name": "CALLER", "comment": null}, "CONTRACT": {"type": "TEXT", "index": 10, "name": "CONTRACT", "comment": null}, "CLASS_HASH": {"type": "TEXT", "index": 11, "name": "CLASS_HASH", "comment": null}, "ENTRY_POINT_TYPE": {"type": "TEXT", "index": 12, "name": "ENTRY_POINT_TYPE", "comment": null}, "ENTRY_POINT_SELECTOR": {"type": "TEXT", "index": 13, "name": "ENTRY_POINT_SELECTOR", "comment": null}, "FUNCTION": {"type": "TEXT", "index": 14, "name": "FUNCTION", "comment": null}, "INPUTS": {"type": "ARRAY", "index": 15, "name": "INPUTS", "comment": null}, "OUTPUTS": {"type": "ARRAY", "index": 16, "name": "OUTPUTS", "comment": null}, "EXECUTION_RESOURCES": {"type": "OBJECT", "index": 17, "name": "EXECUTION_RESOURCES", "comment": null}, "INVOCATION_TYPE": {"type": "TEXT", "index": 18, "name": "INVOCATION_TYPE", "comment": null}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(timestamp::date)", "include": true, "description": "The key used to cluster this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-01-11 11:48UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 109345962496, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1780293080, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.starknet_snapshot.traces"}, "source.external_models.starknet_snapshot.events": {"metadata": {"type": "BASE TABLE", "schema": "STARKNET", "name": "EVENTS", "database": "TOKENFLOW", "comment": null, "owner": "ACCOUNTADMIN"}, "columns": {"LOAD_ID": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "LOAD_ID", "comment": null}, "CHAIN_ID": {"type": "TEXT", "index": 2, "name": "CHAIN_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "TIMESTAMP", "comment": null}, "EVENT_ID": {"type": "TEXT", "index": 5, "name": "EVENT_ID", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "TRACE_ID": {"type": "TEXT", "index": 7, "name": "TRACE_ID", "comment": null}, "CONTRACT": {"type": "TEXT", "index": 8, "name": "CONTRACT", "comment": null}, "CLASS_HASH": {"type": "TEXT", "index": 9, "name": "CLASS_HASH", "comment": null}, "NAME": {"type": "TEXT", "index": 10, "name": "NAME", "comment": null}, "KEYS": {"type": "ARRAY", "index": 11, "name": "KEYS", "comment": null}, "PARAMETERS": {"type": "ARRAY", "index": 12, "name": "PARAMETERS", "comment": null}, "EVENT_ORDER": {"type": "NUMBER", "index": 13, "name": "EVENT_ORDER", "comment": null}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(timestamp::date)", "include": true, "description": "The key used to cluster this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-01-11 12:06UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 42135232512, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 605050160, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.starknet_snapshot.events"}, "source.external_models.starknet_snapshot.l1_contracts": {"metadata": {"type": "BASE TABLE", "schema": "STARKNET", "name": "L1_CONTRACTS", "database": "TOKENFLOW", "comment": null, "owner": "ACCOUNTADMIN"}, "columns": {"LOAD_ID": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "LOAD_ID", "comment": null}, "CHAIN_ID": {"type": "TEXT", "index": 2, "name": "CHAIN_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 4, "name": "ADDRESS", "comment": null}, "CLASS_HASH": {"type": "TEXT", "index": 5, "name": "CLASS_HASH", "comment": null}, "CONSTRUCTOR_ARGS": {"type": "ARRAY", "index": 6, "name": "CONSTRUCTOR_ARGS", "comment": null}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(round(block_number,-3))", "include": true, "description": "The key used to cluster this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-01-11 12:29UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 94047744, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1342043, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.starknet_snapshot.l1_contracts"}, "source.external_models.starknet_snapshot.messages": {"metadata": {"type": "BASE TABLE", "schema": "STARKNET", "name": "MESSAGES", "database": "TOKENFLOW", "comment": null, "owner": "ACCOUNTADMIN"}, "columns": {"LOAD_ID": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "LOAD_ID", "comment": null}, "CHAIN_ID": {"type": "TEXT", "index": 2, "name": "CHAIN_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "TIMESTAMP", "comment": null}, "MESSAGE_ID": {"type": "TEXT", "index": 5, "name": "MESSAGE_ID", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "TRACE_ID": {"type": "TEXT", "index": 7, "name": "TRACE_ID", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 8, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 9, "name": "TO_ADDRESS", "comment": null}, "PAYLOAD": {"type": "ARRAY", "index": 10, "name": "PAYLOAD", "comment": null}, "MESSAGE_ORDER": {"type": "NUMBER", "index": 11, "name": "MESSAGE_ORDER", "comment": null}, "CLASS_HASH": {"type": "TEXT", "index": 12, "name": "CLASS_HASH", "comment": null}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(timestamp::date)", "include": true, "description": "The key used to cluster this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-01-11 12:20UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 99838464, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 803213, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.starknet_snapshot.messages"}, "source.external_models.starknet_snapshot.l1_storage_diffs": {"metadata": {"type": "BASE TABLE", "schema": "STARKNET", "name": "L1_STORAGE_DIFFS", "database": "TOKENFLOW", "comment": null, "owner": "ACCOUNTADMIN"}, "columns": {"LOAD_ID": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "LOAD_ID", "comment": null}, "CHAIN_ID": {"type": "TEXT", "index": 2, "name": "CHAIN_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER", "comment": null}, "CONTRACT": {"type": "TEXT", "index": 4, "name": "CONTRACT", "comment": null}, "SLOT": {"type": "TEXT", "index": 5, "name": "SLOT", "comment": null}, "VALUE": {"type": "TEXT", "index": 6, "name": "VALUE", "comment": null}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(round(block_number,-3))", "include": true, "description": "The key used to cluster this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-01-11 12:40UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 2337866752, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 123750901, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.starknet_snapshot.l1_storage_diffs"}, "source.external_models.starknet_snapshot.transactions": {"metadata": {"type": "BASE TABLE", "schema": "STARKNET", "name": "TRANSACTIONS", "database": "TOKENFLOW", "comment": null, "owner": "ACCOUNTADMIN"}, "columns": {"LOAD_ID": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "LOAD_ID", "comment": null}, "CHAIN_ID": {"type": "TEXT", "index": 2, "name": "CHAIN_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 5, "name": "TX_HASH", "comment": null}, "SIGNATURE": {"type": "ARRAY", "index": 6, "name": "SIGNATURE", "comment": null}, "TYPE": {"type": "TEXT", "index": 7, "name": "TYPE", "comment": null}, "CONTRACT": {"type": "TEXT", "index": 8, "name": "CONTRACT", "comment": null}, "ERROR": {"type": "TEXT", "index": 9, "name": "ERROR", "comment": null}, "TX_INDEX": {"type": "NUMBER", "index": 10, "name": "TX_INDEX", "comment": null}, "ENTRY_POINT_SELECTOR": {"type": "TEXT", "index": 11, "name": "ENTRY_POINT_SELECTOR", "comment": null}, "ENTRY_POINT_TYPE": {"type": "TEXT", "index": 12, "name": "ENTRY_POINT_TYPE", "comment": null}, "FUNCTION": {"type": "TEXT", "index": 13, "name": "FUNCTION", "comment": null}, "INPUTS": {"type": "ARRAY", "index": 14, "name": "INPUTS", "comment": null}, "OUTPUTS": {"type": "ARRAY", "index": 15, "name": "OUTPUTS", "comment": null}, "L1_MESSAGE_NONCE": {"type": "NUMBER", "index": 16, "name": "L1_MESSAGE_NONCE", "comment": null}, "MAX_FEE": {"type": "NUMBER", "index": 17, "name": "MAX_FEE", "comment": null}, "ACTUAL_FEE": {"type": "NUMBER", "index": 18, "name": "ACTUAL_FEE", "comment": null}, "EXECUTION_RESOURCES": {"type": "OBJECT", "index": 19, "name": "EXECUTION_RESOURCES", "comment": null}, "CLASS_HASH": {"type": "TEXT", "index": 20, "name": "CLASS_HASH", "comment": null}, "VERSION": {"type": "NUMBER", "index": 21, "name": "VERSION", "comment": null}, "NONCE": {"type": "NUMBER", "index": 22, "name": "NONCE", "comment": null}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(timestamp::date)", "include": true, "description": "The key used to cluster this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-01-11 12:29UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 24636566528, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 123103110, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.starknet_snapshot.transactions"}, "source.external_models.starknet_snapshot.blocks": {"metadata": {"type": "BASE TABLE", "schema": "STARKNET", "name": "BLOCKS", "database": "TOKENFLOW", "comment": null, "owner": "ACCOUNTADMIN"}, "columns": {"LOAD_ID": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "LOAD_ID", "comment": null}, "CHAIN_ID": {"type": "TEXT", "index": 2, "name": "CHAIN_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 4, "name": "BLOCK_HASH", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 5, "name": "PARENT_HASH", "comment": null}, "STATE_ROOT": {"type": "TEXT", "index": 6, "name": "STATE_ROOT", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "TIMESTAMP", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 8, "name": "TX_COUNT", "comment": null}, "GAS_PRICE": {"type": "NUMBER", "index": 9, "name": "GAS_PRICE", "comment": null}, "SEQUENCER": {"type": "TEXT", "index": 10, "name": "SEQUENCER", "comment": null}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(timestamp::date)", "include": true, "description": "The key used to cluster this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-01-11 12:52UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 237115904, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1621840, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.starknet_snapshot.blocks"}, "source.external_models.starknet_snapshot.l1_blocks": {"metadata": {"type": "BASE TABLE", "schema": "STARKNET", "name": "L1_BLOCKS", "database": "TOKENFLOW", "comment": null, "owner": "ACCOUNTADMIN"}, "columns": {"LOAD_ID": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "LOAD_ID", "comment": null}, "CHAIN_ID": {"type": "TEXT", "index": 2, "name": "CHAIN_ID", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER", "comment": null}, "L1_TRANSACTION": {"type": "TEXT", "index": 4, "name": "L1_TRANSACTION", "comment": null}, "FACT": {"type": "TEXT", "index": 5, "name": "FACT", "comment": null}, "CONTRACTS_COUNT": {"type": "NUMBER", "index": 6, "name": "CONTRACTS_COUNT", "comment": null}, "DIFFS_COUNT": {"type": "NUMBER", "index": 7, "name": "DIFFS_COUNT", "comment": null}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(round(block_number,-3))", "include": true, "description": "The key used to cluster this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-01-11 12:29UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 63150592, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 887745, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.starknet_snapshot.l1_blocks"}, "source.external_models.external_bronze.farcaster_reactions": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "FARCASTER_REACTIONS", "database": "EXTERNAL", "comment": null, "owner": "STREAMLINE_SNOWFLAKE"}, "columns": {"ID": {"type": "NUMBER", "index": 1, "name": "ID", "comment": null}, "FID": {"type": "NUMBER", "index": 2, "name": "FID", "comment": null}, "TARGET_FID": {"type": "NUMBER", "index": 3, "name": "TARGET_FID", "comment": null}, "TARGET_URL": {"type": "TEXT", "index": 4, "name": "TARGET_URL", "comment": null}, "REACTION_TYPE": {"type": "NUMBER", "index": 5, "name": "REACTION_TYPE", "comment": null}, "HASH": {"type": "BINARY", "index": 6, "name": "HASH", "comment": null}, "TARGET_HASH": {"type": "BINARY", "index": 7, "name": "TARGET_HASH", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "TIMESTAMP", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "CREATED_AT", "comment": null}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "UPDATED_AT", "comment": null}, "DELETED_AT": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "DELETED_AT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 15:49UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 46888649728, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 984320060, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.external_bronze.farcaster_reactions"}, "source.external_models.external_bronze.farcaster_links": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "FARCASTER_LINKS", "database": "EXTERNAL", "comment": null, "owner": "STREAMLINE_SNOWFLAKE"}, "columns": {"ID": {"type": "NUMBER", "index": 1, "name": "ID", "comment": null}, "FID": {"type": "NUMBER", "index": 2, "name": "FID", "comment": null}, "TARGET_FID": {"type": "NUMBER", "index": 3, "name": "TARGET_FID", "comment": null}, "HASH": {"type": "BINARY", "index": 4, "name": "HASH", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "TIMESTAMP", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "CREATED_AT", "comment": null}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "UPDATED_AT", "comment": null}, "DELETED_AT": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "DELETED_AT", "comment": null}, "TYPE": {"type": "TEXT", "index": 9, "name": "TYPE", "comment": null}, "DISPLAY_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "DISPLAY_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 15:49UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 8631817216, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 208017211, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.external_bronze.farcaster_links"}, "source.external_models.external_bronze.aptos_shinam": {"metadata": {"type": "EXTERNAL TABLE", "schema": "BRONZE", "name": "APTOS_SHINAM", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": "The value of this row"}, "FILE_DATE": {"type": "NUMBER", "index": 2, "name": "FILE_DATE", "comment": null}, "FUND_NAME": {"type": "TEXT", "index": 3, "name": "FUND_NAME", "comment": null}, "WORKSPACE_NAME": {"type": "TEXT", "index": 4, "name": "WORKSPACE_NAME", "comment": null}, "CONTACT_EMAIL": {"type": "TEXT", "index": 5, "name": "CONTACT_EMAIL", "comment": null}, "FUND_BALANCE_REMAINING": {"type": "TEXT", "index": 6, "name": "FUND_BALANCE_REMAINING", "comment": null}, "TOTAL_SPONSORSHIPS": {"type": "TEXT", "index": 7, "name": "TOTAL_SPONSORSHIPS", "comment": null}, "TOTAL_FEES": {"type": "TEXT", "index": 8, "name": "TOTAL_FEES", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 72603, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.external_bronze.aptos_shinam"}, "source.external_models.external_bronze.farcaster_storage": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "FARCASTER_STORAGE", "database": "EXTERNAL", "comment": null, "owner": "STREAMLINE_SNOWFLAKE"}, "columns": {"ID": {"type": "NUMBER", "index": 1, "name": "ID", "comment": null}, "FID": {"type": "NUMBER", "index": 2, "name": "FID", "comment": null}, "UNITS": {"type": "NUMBER", "index": 3, "name": "UNITS", "comment": null}, "EXPIRY": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "EXPIRY", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "TIMESTAMP", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "CREATED_AT", "comment": null}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "UPDATED_AT", "comment": null}, "DELETED_AT": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "DELETED_AT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 15:49UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 65023488, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1373285, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.external_bronze.farcaster_storage"}, "source.external_models.external_bronze.farcaster_verifications": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "FARCASTER_VERIFICATIONS", "database": "EXTERNAL", "comment": null, "owner": "STREAMLINE_SNOWFLAKE"}, "columns": {"ID": {"type": "NUMBER", "index": 1, "name": "ID", "comment": null}, "FID": {"type": "NUMBER", "index": 2, "name": "FID", "comment": null}, "CLAIM": {"type": "TEXT", "index": 3, "name": "CLAIM", "comment": null}, "HASH": {"type": "BINARY", "index": 4, "name": "HASH", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "TIMESTAMP", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "CREATED_AT", "comment": null}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "UPDATED_AT", "comment": null}, "DELETED_AT": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "DELETED_AT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 15:49UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 242904064, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1620205, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.external_bronze.farcaster_verifications"}, "source.external_models.external_bronze.farcaster_user_data": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "FARCASTER_USER_DATA", "database": "EXTERNAL", "comment": null, "owner": "STREAMLINE_SNOWFLAKE"}, "columns": {"ID": {"type": "NUMBER", "index": 1, "name": "ID", "comment": null}, "FID": {"type": "NUMBER", "index": 2, "name": "FID", "comment": null}, "TYPE": {"type": "NUMBER", "index": 3, "name": "TYPE", "comment": null}, "VALUE": {"type": "TEXT", "index": 4, "name": "VALUE", "comment": null}, "HASH": {"type": "BINARY", "index": 5, "name": "HASH", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "TIMESTAMP", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "CREATED_AT", "comment": null}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "UPDATED_AT", "comment": null}, "DELETED_AT": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "DELETED_AT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 15:49UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 408765440, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 6742295, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.external_bronze.farcaster_user_data"}, "source.external_models.external_bronze.farcaster_blocks": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "FARCASTER_BLOCKS", "database": "EXTERNAL", "comment": null, "owner": "STREAMLINE_SNOWFLAKE"}, "columns": {"ID": {"type": "NUMBER", "index": 1, "name": "ID", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "CREATED_AT", "comment": null}, "DELETED_AT": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "DELETED_AT", "comment": null}, "BLOCKER_FID": {"type": "NUMBER", "index": 4, "name": "BLOCKER_FID", "comment": null}, "BLOCKED_FID": {"type": "NUMBER", "index": 5, "name": "BLOCKED_FID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 15:49UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 10861568, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 47026, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.external_bronze.farcaster_blocks"}, "source.external_models.external_bronze.farcaster_casts": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "FARCASTER_CASTS", "database": "EXTERNAL", "comment": null, "owner": "STREAMLINE_SNOWFLAKE"}, "columns": {"ID": {"type": "NUMBER", "index": 1, "name": "ID", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "CREATED_AT", "comment": null}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "UPDATED_AT", "comment": null}, "DELETED_AT": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "DELETED_AT", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "TIMESTAMP", "comment": null}, "FID": {"type": "NUMBER", "index": 6, "name": "FID", "comment": null}, "HASH": {"type": "BINARY", "index": 7, "name": "HASH", "comment": null}, "PARENT_HASH": {"type": "BINARY", "index": 8, "name": "PARENT_HASH", "comment": null}, "PARENT_FID": {"type": "NUMBER", "index": 9, "name": "PARENT_FID", "comment": null}, "PARENT_URL": {"type": "TEXT", "index": 10, "name": "PARENT_URL", "comment": null}, "TEXT": {"type": "TEXT", "index": 11, "name": "TEXT", "comment": null}, "EMBEDS": {"type": "TEXT", "index": 12, "name": "EMBEDS", "comment": null}, "MENTIONS": {"type": "TEXT", "index": 13, "name": "MENTIONS", "comment": null}, "MENTIONS_POSITIONS": {"type": "TEXT", "index": 14, "name": "MENTIONS_POSITIONS", "comment": null}, "ROOT_PARENT_HASH": {"type": "BINARY", "index": 15, "name": "ROOT_PARENT_HASH", "comment": null}, "ROOT_PARENT_URL": {"type": "TEXT", "index": 16, "name": "ROOT_PARENT_URL", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 15:49UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 31114833920, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 321902296, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.external_bronze.farcaster_casts"}, "source.external_models.external_bronze.farcaster_channel_follows": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "FARCASTER_CHANNEL_FOLLOWS", "database": "EXTERNAL", "comment": null, "owner": "STREAMLINE_SNOWFLAKE"}, "columns": {"ID": {"type": "NUMBER", "index": 1, "name": "ID", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "CREATED_AT", "comment": null}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "UPDATED_AT", "comment": null}, "DELETED_AT": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "DELETED_AT", "comment": null}, "FID": {"type": "NUMBER", "index": 5, "name": "FID", "comment": null}, "CHANNEL_ID": {"type": "TEXT", "index": 6, "name": "CHANNEL_ID", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 15:49UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 197679616, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 13982643, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.external_bronze.farcaster_channel_follows"}, "source.external_models.external_bronze.farcaster_fnames": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "FARCASTER_FNAMES", "database": "EXTERNAL", "comment": null, "owner": "STREAMLINE_SNOWFLAKE"}, "columns": {"FNAME": {"type": "TEXT", "index": 1, "name": "FNAME", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "CREATED_AT", "comment": null}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "UPDATED_AT", "comment": null}, "DELETED_AT": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "DELETED_AT", "comment": null}, "FID": {"type": "NUMBER", "index": 5, "name": "FID", "comment": null}, "CUSTODY_ADDRESS": {"type": "BINARY", "index": 6, "name": "CUSTODY_ADDRESS", "comment": null}, "EXPIRES_AT": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "EXPIRES_AT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 15:49UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 60706816, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1180139, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.external_bronze.farcaster_fnames"}, "source.external_models.external_bronze.farcaster_fids": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "FARCASTER_FIDS", "database": "EXTERNAL", "comment": null, "owner": "STREAMLINE_SNOWFLAKE"}, "columns": {"CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "CREATED_AT", "comment": null}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "UPDATED_AT", "comment": null}, "CUSTODY_ADDRESS": {"type": "BINARY", "index": 3, "name": "CUSTODY_ADDRESS", "comment": null}, "FID": {"type": "NUMBER", "index": 4, "name": "FID", "comment": null}, "REGISTERED_AT": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "REGISTERED_AT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 15:49UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 82760704, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1467784, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.external_bronze.farcaster_fids"}, "source.external_models.external_bronze.farcaster_warpcast_power_users": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "FARCASTER_WARPCAST_POWER_USERS", "database": "EXTERNAL", "comment": null, "owner": "STREAMLINE_SNOWFLAKE"}, "columns": {"CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "CREATED_AT", "comment": null}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "UPDATED_AT", "comment": null}, "DELETED_AT": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "DELETED_AT", "comment": null}, "FID": {"type": "NUMBER", "index": 4, "name": "FID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 15:50UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.external_bronze.farcaster_warpcast_power_users"}, "source.external_models.layerzero.transactions": {"metadata": {"type": "BASE TABLE", "schema": "LAYERZERO", "name": "TRANSACTIONS", "database": "EXTERNAL", "comment": null, "owner": "DBT_CLOUD_EXTERNAL"}, "columns": {"SOURCE_CHAIN": {"type": "TEXT", "index": 1, "name": "SOURCE_CHAIN", "comment": null}, "SOURCE_TRANSACTION_HASH": {"type": "TEXT", "index": 2, "name": "SOURCE_TRANSACTION_HASH", "comment": null}, "SOURCE_CONTRACT": {"type": "TEXT", "index": 3, "name": "SOURCE_CONTRACT", "comment": null}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 4, "name": "DESTINATION_CHAIN", "comment": null}, "DESTINATION_TRANSACTION_HASH": {"type": "TEXT", "index": 5, "name": "DESTINATION_TRANSACTION_HASH", "comment": null}, "DESTINATION_CONTRACT": {"type": "TEXT", "index": 6, "name": "DESTINATION_CONTRACT", "comment": null}, "SENDER_WALLET": {"type": "TEXT", "index": 7, "name": "SENDER_WALLET", "comment": null}, "SOURCE_TIMESTAMP_UTC": {"type": "TEXT", "index": 8, "name": "SOURCE_TIMESTAMP_UTC", "comment": null}, "PROJECT": {"type": "TEXT", "index": 9, "name": "PROJECT", "comment": null}, "NATIVE_DROP_USD": {"type": "TEXT", "index": 10, "name": "NATIVE_DROP_USD", "comment": null}, "STARGATE_SWAP_USD": {"type": "TEXT", "index": 11, "name": "STARGATE_SWAP_USD", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-01-12 09:23UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 13797766656, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 128674536, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.layerzero.transactions"}, "source.external_models.external_bronze.farcaster_profile_with_addresses": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "FARCASTER_PROFILE_WITH_ADDRESSES", "database": "EXTERNAL", "comment": null, "owner": "STREAMLINE_SNOWFLAKE"}, "columns": {"FID": {"type": "NUMBER", "index": 1, "name": "FID", "comment": null}, "FNAME": {"type": "TEXT", "index": 2, "name": "FNAME", "comment": null}, "DISPLAY_NAME": {"type": "TEXT", "index": 3, "name": "DISPLAY_NAME", "comment": null}, "AVATAR_URL": {"type": "TEXT", "index": 4, "name": "AVATAR_URL", "comment": null}, "BIO": {"type": "TEXT", "index": 5, "name": "BIO", "comment": null}, "VERIFIED_ADDRESSES": {"type": "TEXT", "index": 6, "name": "VERIFIED_ADDRESSES", "comment": null}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "UPDATED_AT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 15:49UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 334950912, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 3773004, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.external_bronze.farcaster_profile_with_addresses"}, "source.external_models.external_bronze.farcaster_signers": {"metadata": {"type": "BASE TABLE", "schema": "BRONZE", "name": "FARCASTER_SIGNERS", "database": "EXTERNAL", "comment": null, "owner": "STREAMLINE_SNOWFLAKE"}, "columns": {"ID": {"type": "NUMBER", "index": 1, "name": "ID", "comment": null}, "FID": {"type": "NUMBER", "index": 2, "name": "FID", "comment": null}, "APP_FID": {"type": "NUMBER", "index": 3, "name": "APP_FID", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "SIGNER": {"type": "BINARY", "index": 5, "name": "SIGNER", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "TIMESTAMP", "comment": null}, "CREATED_AT": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "CREATED_AT", "comment": null}, "UPDATED_AT": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "UPDATED_AT", "comment": null}, "DELETED_AT": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "DELETED_AT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-10 15:49UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 117468672, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 2132253, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.external_bronze.farcaster_signers"}, "source.livequery_models.ethereum_core.ez_decoded_event_logs": {"metadata": {"type": "BASE TABLE", "schema": "CORE", "name": "EZ_DECODED_EVENT_LOGS", "database": "ETHEREUM_DEV", "comment": "## What\n\nThis table provides human-readable decoded event data for smart contracts where ABIs are available. It transforms raw hex-encoded logs into structured JSON with named parameters and values, making blockchain data immediately queryable without manual decoding.\n\n## Key Use Cases\n\n- Analyzing token transfers and approvals without manual decoding\n- Tracking DEX swaps and liquidity events with named parameters\n- Monitoring NFT transfers and marketplace activity\n- Querying DeFi protocol interactions (lending, staking, governance)\n- Building analytics on any smart contract with available ABIs\n\n## Important Relationships\n\n- **Join with fact_event_logs**: Use `tx_hash` and `event_index` for raw event data\n- **Join with dim_contracts**: Use `contract_address` for contract metadata\n- **Join with fact_transactions**: Use `tx_hash` for transaction context\n- **Cross-reference ez_token_transfers**: For simplified token movement data\n\n## Commonly-used Fields\n\n- `contract_address`: The smart contract that emitted the event\n- `event_name`: The event name from the contract ABI (e.g., Transfer, Swap)\n- `decoded_log`: JSON object with decoded parameter names and values\n- `contract_name`: Human-readable name of the contract\n- `block_timestamp`: When the event occurred\n- `tx_hash`: Transaction hash containing this event\n\n## Sample queries\n\n**ERC-20 Transfer Events with Proper Types**\n\n```sql\nSELECT \n block_timestamp,\n tx_hash,\n contract_address,\n contract_name,\n event_name,\n decoded_log:from::string AS from_address,\n decoded_log:to::string AS to_address,\n decoded_log:value::numeric AS amount,\n -- Convert to decimal (assuming 18 decimals)\n decoded_log:value::numeric / POW(10, 18) AS amount_decimal\nFROM .core.ez_decoded_event_logs\nWHERE contract_address = LOWER('0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48') -- USDC\n AND event_name = 'Transfer'\n AND block_timestamp >= CURRENT_DATE - 7\n AND decoded_log:value::numeric > 1000000000 -- Over 1000 USDC\nORDER BY block_timestamp DESC;\n```\n\n**Uniswap V3 Swap Events**\n\n```sql\nSELECT \n block_timestamp,\n tx_hash,\n contract_address AS pool_address,\n event_name,\n decoded_log:sender::string AS sender,\n decoded_log:recipient::string AS recipient,\n decoded_log:amount0::numeric AS amount0,\n decoded_log:amount1::numeric AS amount1,\n decoded_log:sqrtPriceX96::numeric AS sqrt_price,\n decoded_log:liquidity::numeric AS liquidity,\n decoded_log:tick::integer AS tick\nFROM .core.ez_decoded_event_logs\nWHERE event_name = 'Swap'\n AND contract_address IN (\n SELECT address FROM dim_contracts \n WHERE contract_name ILIKE '%Uniswap V3%'\n )\n AND block_timestamp >= CURRENT_DATE - 1\nLIMIT 100;\n```\n\n**NFT Transfer Events (ERC-721)**\n\n```sql\nSELECT \n block_timestamp,\n tx_hash,\n contract_address,\n contract_name AS collection_name,\n decoded_log:from::string AS from_address,\n decoded_log:to::string AS to_address,\n decoded_log:tokenId::string AS token_id\nFROM .core.ez_decoded_event_logs\nWHERE event_name = 'Transfer'\n AND decoded_log:tokenId IS NOT NULL -- Indicates ERC-721\n AND block_timestamp >= CURRENT_DATE - 1\nORDER BY block_timestamp DESC;\n```\n\n**DeFi Protocol Events - Compound Finance**\n\n```sql\nSELECT \n DATE_TRUNC('day', block_timestamp) AS day,\n event_name,\n COUNT(*) AS event_count,\n COUNT(DISTINCT decoded_log:minter::string) AS unique_users\nFROM .core.ez_decoded_event_logs\nWHERE contract_name ILIKE '%compound%'\n AND event_name IN ('Mint', 'Redeem', 'Borrow', 'RepayBorrow')\n AND block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1, 2\nORDER BY 1 DESC, 3 DESC;\n```\n\n**Complex Event Analysis - DEX Aggregator Routes**\n\n```sql\nSELECT \n block_timestamp,\n tx_hash,\n event_name,\n decoded_log,\n ARRAY_SIZE(decoded_log:path) AS swap_hops,\n decoded_log:amountIn::numeric AS amount_in,\n decoded_log:amountOutMin::numeric AS min_amount_out\nFROM .core.ez_decoded_event_logs\nWHERE contract_address = LOWER('0x1111111254fb6c44bAC0beD2854e76F90643097d') -- 1inch\n AND event_name ILIKE '%swap%'\n AND block_timestamp >= CURRENT_DATE - 1;\n```", "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain."}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`"}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": "Zero-indexed position of transaction within its block.\n\n**Insights**:\n- Position 0: First transaction in block\n- MEV bots often target early positions\n- Bundle transactions appear consecutively\n- Useful for analyzing transaction ordering"}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": "Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```"}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": "Smart contract address that emitted this event or received the transaction.\n\n**Key Points**:\n- Always the immediate event emitter for logs\n- May differ from transaction to_address\n- Lowercase normalized format\n- Never NULL for valid events"}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": "Array containing all indexed parameters of the event.\n\nExample: ['0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef', '0x0000000000000000000000001234567890123456789012345678901234567890']"}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": "Event signature hash - keccak256 of the event declaration.\n\nExample: '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'"}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": "First indexed parameter of the event (if exists).\n\nExample: '0x0000000000000000000000001234567890123456789012345678901234567890'"}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": "Second indexed parameter of the event (if exists).\n\nExample: '0x000000000000000000000000abcdefabcdefabcdefabcdefabcdefabcdefabcd'"}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": "Third indexed parameter of the event (if exists).\n\nExample: '0x0000000000000000000000000000000000000000000000000000000000000001'"}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": "Hex-encoded non-indexed event parameters.\n\nExample: '0x0000000000000000000000000000000000000000000000000de0b6b3a7640000'"}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": "Boolean flag indicating if the event was removed due to chain reorganization.\n\nExample: false"}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```"}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient."}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls"}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": "Boolean indicator of transaction success.\n\n**Values**:\n- TRUE: Transaction executed successfully\n- FALSE: Transaction failed/reverted"}, "EVENT_NAME": {"type": "TEXT", "index": 18, "name": "EVENT_NAME", "comment": "The event name as defined in the contract's ABI.\n\n**Format**: PascalCase event identifier\n**Examples**:\n- `Transfer` - Token transfers\n- `Swap` - DEX trades \n- `OwnershipTransferred` - Admin changes\n- `Approval` - Token approvals\n\n**Usage Pattern**:\n\n```sql\n-- Find all event types for a contract\nSELECT DISTINCT event_name, COUNT(*) as occurrences\nFROM ez_decoded_event_logs\nWHERE contract_address = LOWER('0x...')\nGROUP BY 1\nORDER BY 2 DESC;\n```"}, "FULL_DECODED_LOG": {"type": "VARIANT", "index": 19, "name": "FULL_DECODED_LOG", "comment": "Complete decoded event data including parameter names, values, types, and metadata.\n\nExample: '{\"event_name\": \"Transfer\", \"parameters\": [{\"name\": \"from\", \"type\": \"address\", \"value\": \"0x123...\", \"indexed\": true}]}'"}, "DECODED_LOG": {"type": "OBJECT", "index": 20, "name": "DECODED_LOG", "comment": "Flattened JSON object containing decoded event parameters with their values.\n\nExample: '{\"from\": \"0x123...\", \"to\": \"0x456...\", \"value\": \"1000000000000000000\"}'"}, "CONTRACT_NAME": {"type": "TEXT", "index": 21, "name": "CONTRACT_NAME", "comment": "Human-readable name of the smart contract emitting the event, joined from dim_contracts.\n\nExample: 'USD Coin'"}, "EZ_DECODED_EVENT_LOGS_ID": {"type": "TEXT", "index": 22, "name": "EZ_DECODED_EVENT_LOGS_ID", "comment": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 23, "name": "INSERTED_TIMESTAMP", "comment": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 24, "name": "MODIFIED_TIMESTAMP", "comment": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```"}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::date)", "include": true, "description": "The key used to cluster this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-06 15:24UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1267165056000, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 4852282437, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.livequery_models.ethereum_core.ez_decoded_event_logs"}, "source.livequery_models.ethereum_core.fact_event_logs": {"metadata": {"type": "BASE TABLE", "schema": "CORE", "name": "FACT_EVENT_LOGS", "database": "ETHEREUM_DEV", "comment": "## What\n\nThis table contains raw event logs emitted by smart contracts during transaction execution. Each row represents a single event with its topics and data. Events are the primary mechanism for smart contracts to communicate state changes and must be explicitly emitted in contract code.\n\n## Key Use Cases\n\n- Tracking raw blockchain events before decoding\n- Filtering events by signature (topic_0) for specific event types\n- Analyzing contract activity patterns and event frequencies\n- Building custom event decoders for unsupported contracts\n- Monitoring specific addresses via indexed parameters\n\n## Important Relationships\n\n- **Join with ez_decoded_event_logs**: Use `tx_hash` and `event_index` for simplified decoded data\n- **Join with fact_transactions**: Use `tx_hash` for transaction context\n- **Join with dim_contracts**: Use `contract_address` for contract metadata\n\n## Commonly-used Fields\n\n- `topic_0`: Event signature hash for filtering event types\n- `contract_address`: Smart contract that emitted the event\n- `topics`: Array of indexed parameters (max 4)\n- `data`: Hex-encoded non-indexed parameters\n- `event_index`: Sequential position within transaction\n- `tx_hash`: Transaction containing this event\n\n## Sample queries\n\n```sql\n-- Find all ERC-20 Transfer events in last 24 hours\nSELECT \n block_timestamp,\n tx_hash,\n contract_address,\n topics[1] AS from_address_padded,\n topics[2] AS to_address_padded,\n data AS amount_hex,\n event_index\nFROM .core.fact_event_logs\nWHERE topic_0 = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n AND ARRAY_SIZE(topics) = 3 -- ERC-20 has 3 topics\n AND block_timestamp >= CURRENT_DATE - 1\nLIMIT 100;\n\n-- Most active contracts by event count\nSELECT \n contract_address,\n COUNT(*) AS event_count,\n COUNT(DISTINCT tx_hash) AS unique_txs,\n COUNT(DISTINCT topic_0) AS unique_event_types,\n MIN(block_timestamp) AS first_seen,\n MAX(block_timestamp) AS last_seen\nFROM .core.fact_event_logs\nWHERE block_timestamp >= CURRENT_DATE - 7\nGROUP BY 1\nORDER BY 2 DESC\nLIMIT 50;\n\n-- Event patterns within transactions\nSELECT \n tx_hash,\n COUNT(*) AS events_in_tx,\n COUNT(DISTINCT contract_address) AS contracts_touched,\n ARRAY_AGG(DISTINCT topic_0) AS event_signatures\nFROM .core.fact_event_logs\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1\nHAVING COUNT(*) > 10\nORDER BY 2 DESC\nLIMIT 20;\n```", "owner": "INTERNAL_DEV"}, "columns": {"BLOCK_NUMBER": {"type": "NUMBER", "index": 1, "name": "BLOCK_NUMBER", "comment": "Sequential counter representing the position of a block in the blockchain since genesis (block 0).\n\n**Key Facts**:\n- Immutable once finalized\n- Primary ordering mechanism for blockchain data\n- Increments by 1 for each new block\n- Used as a proxy for time in many analyses\n\n**Usage in Queries**:\n```sql\n-- Recent data\nWHERE block_number >= (SELECT MAX(block_number) - 1000 FROM fact_blocks)\n\n-- Historical analysis\nWHERE block_number BETWEEN 15000000 AND 16000000\n\n-- Join across tables\nJOIN .core.fact_event_logs USING (block_number)\n```\n\n**Important**: Block numbers are chain-specific. Block 15000000 on Ethereum \u2260 block 15000000 on Polygon."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "BLOCK_TIMESTAMP", "comment": "UTC timestamp when the block was produced by validators/miners.\n\n**Format**: TIMESTAMP_NTZ (no timezone)\n**Precision**: Second-level accuracy\n**Reliability**:\n- Set by block producer\n- Can have minor variations (\u00b115 seconds)\n- Always increasing (newer blocks = later timestamps)\n\n**Best Practices**:\n```sql\n-- Time-based filtering (most efficient)\nWHERE block_timestamp >= DATEADD('day', -7, CURRENT_TIMESTAMP)\n\n-- Hourly aggregations\nDATE_TRUNC('hour', block_timestamp) AS hour\n\n-- UTC date extraction\nDATE(block_timestamp) AS block_date\n```\n\n**Note**: Use for time-series analysis, but be aware that block production rates vary by chain."}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": "Unique 66-character identifier for the transaction.\n\n**Format**: 0x + 64 hexadecimal characters\n\n**Usage**:\n- Primary key for transaction lookups\n- Join key for traces, logs, and token transfers\n- Immutable once confirmed\n\n**Example**: `0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060`"}, "TX_POSITION": {"type": "NUMBER", "index": 4, "name": "TX_POSITION", "comment": "Zero-indexed position of transaction within its block.\n\n**Insights**:\n- Position 0: First transaction in block\n- MEV bots often target early positions\n- Bundle transactions appear consecutively\n- Useful for analyzing transaction ordering"}, "EVENT_INDEX": {"type": "NUMBER", "index": 5, "name": "EVENT_INDEX", "comment": "Zero-based sequential position of the event within a transaction's execution.\n\n**Key Facts**:\n- Starts at 0 for first event\n- Increments across all contracts in transaction\n- Preserves execution order\n- Essential for deterministic event ordering\n\n**Usage Example**:\n```sql\n-- Trace event execution flow\nSELECT \n event_index,\n contract_address,\n topic_0,\n SUBSTRING(data, 1, 10) AS data_preview\nFROM .core.fact_event_logs\nWHERE tx_hash = '0xabc...'\nORDER BY event_index;\n```"}, "CONTRACT_ADDRESS": {"type": "TEXT", "index": 6, "name": "CONTRACT_ADDRESS", "comment": "Smart contract address that emitted this event or received the transaction.\n\n**Key Points**:\n- Always the immediate event emitter for logs\n- May differ from transaction to_address\n- Lowercase normalized format\n- Never NULL for valid events"}, "TOPICS": {"type": "VARIANT", "index": 7, "name": "TOPICS", "comment": "Array containing all indexed parameters of the event.\n\nExample: ['0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef', '0x0000000000000000000000001234567890123456789012345678901234567890']"}, "TOPIC_0": {"type": "TEXT", "index": 8, "name": "TOPIC_0", "comment": "Event signature hash - keccak256 of the event declaration.\n\nExample: '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'"}, "TOPIC_1": {"type": "TEXT", "index": 9, "name": "TOPIC_1", "comment": "First indexed parameter of the event (if exists).\n\nExample: '0x0000000000000000000000001234567890123456789012345678901234567890'"}, "TOPIC_2": {"type": "TEXT", "index": 10, "name": "TOPIC_2", "comment": "Second indexed parameter of the event (if exists).\n\nExample: '0x000000000000000000000000abcdefabcdefabcdefabcdefabcdefabcdefabcd'"}, "TOPIC_3": {"type": "TEXT", "index": 11, "name": "TOPIC_3", "comment": "Third indexed parameter of the event (if exists).\n\nExample: '0x0000000000000000000000000000000000000000000000000000000000000001'"}, "DATA": {"type": "TEXT", "index": 12, "name": "DATA", "comment": "Hex-encoded non-indexed event parameters.\n\nExample: '0x0000000000000000000000000000000000000000000000000de0b6b3a7640000'"}, "EVENT_REMOVED": {"type": "BOOLEAN", "index": 13, "name": "EVENT_REMOVED", "comment": "Boolean flag indicating if the event was removed due to chain reorganization.\n\nExample: false"}, "ORIGIN_FROM_ADDRESS": {"type": "TEXT", "index": 14, "name": "ORIGIN_FROM_ADDRESS", "comment": "The externally-owned account (EOA) or contract address that initiated the transaction.\n\n**Key Points**:\n- Always 42 characters (0x + 40 hex chars)\n- Lowercase normalized in all tables\n- Cannot be NULL for valid transactions\n- For contract creation: sender of creation transaction\n\n**Common Patterns**:\n- EOA \u2192 EOA: Simple transfer\n- EOA \u2192 Contract: User interaction\n- Contract \u2192 Contract: Internal calls (see fact_traces)\n- Known addresses: Exchange hot wallets, protocol deployers\n\n**Query Examples**:\n```sql\n-- User activity analysis\nSELECT from_address, COUNT(*) as tx_count\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 30\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- New user detection\nSELECT DISTINCT from_address\nFROM .core.fact_transactions t1\nWHERE NOT EXISTS (\n SELECT 1 FROM .core.fact_transactions t2 \n WHERE t2.from_address = t1.from_address \n AND t2.block_number < t1.block_number\n);\n```"}, "ORIGIN_TO_ADDRESS": {"type": "TEXT", "index": 15, "name": "ORIGIN_TO_ADDRESS", "comment": "The destination address for the transaction - either an EOA or contract address.\n\n**Special Cases**:\n- NULL: Contract creation transaction\n- Contract address: Interacting with smart contract\n- EOA address: Simple transfer or receiving funds\n\n**Important Patterns**:\n```sql\n-- Contract deployments\nWHERE to_address IS NULL\n\n-- Popular contracts\nSELECT to_address, COUNT(*) as interactions\nFROM .core.fact_transactions\nWHERE to_address IS NOT NULL\nGROUP BY 1\nORDER BY 2 DESC;\n\n-- Direct transfers only\nWHERE to_address NOT IN (SELECT address FROM dim_contracts)\n```\n\n**Note**: For token transfers, this is the token contract, not the recipient. See ez_token_transfers tables for recipient."}, "ORIGIN_FUNCTION_SIGNATURE": {"type": "TEXT", "index": 16, "name": "ORIGIN_FUNCTION_SIGNATURE", "comment": "Function signature (first 4 bytes) of the called method.\n\n**Format**: 0x + 8 hex characters\n\n**Common Signatures**:\n- 0xa9059cbb: transfer(address,uint256)\n- 0x095ea7b3: approve(address,uint256)\n- 0x23b872dd: transferFrom(address,address,uint256)\n\n**Note**: NULL for simple transfers or invalid calls"}, "TX_SUCCEEDED": {"type": "BOOLEAN", "index": 17, "name": "TX_SUCCEEDED", "comment": "Boolean indicator of transaction success.\n\n**Values**:\n- TRUE: Transaction executed successfully\n- FALSE: Transaction failed/reverted"}, "FACT_EVENT_LOGS_ID": {"type": "TEXT", "index": 18, "name": "FACT_EVENT_LOGS_ID", "comment": "Primary key - unique identifier for each row ensuring data integrity.\n\n**Format**: Usually VARCHAR containing composite key generated using MD5 hash of the relevant columns.\n**Example**: MD5(block_number, tx_hash, trace_index)\n\n**Usage**:\n- Deduplication in incremental loads\n- Join operations for data quality checks\n- Troubleshooting specific records\n\n**Important**: Implementation varies by table - check table-specific documentation."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "INSERTED_TIMESTAMP", "comment": "UTC timestamp when the record was first added to the Flipside database.\n\n**Format**: TIMESTAMP_NTZ\n\n**Use Cases**:\n- Data freshness monitoring\n- Incremental processing markers\n- Debugging data pipeline issues\n- SLA tracking\n\n**Query Example**:\n```sql\n-- Check data latency\nSELECT \n DATE_TRUNC('hour', block_timestamp) as block_hour,\n DATE_TRUNC('hour', inserted_timestamp) as insert_hour,\n AVG(TIMESTAMPDIFF('minute', block_timestamp, inserted_timestamp)) as avg_latency_minutes\nFROM .core.fact_transactions\nWHERE block_timestamp >= CURRENT_DATE - 1\nGROUP BY 1, 2;\n```"}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "MODIFIED_TIMESTAMP", "comment": "UTC timestamp of the most recent update to this record.\n\n**Format**: TIMESTAMP_NTZ\n\n**Triggers for Updates**:\n- Data corrections\n- Enrichment additions\n- Reprocessing for accuracy\n- Schema migrations\n\n**Monitoring Usage**:\n```sql\n-- Recently modified records\nSELECT *\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nAND modified_timestamp >= CURRENT_DATE - 1;\n\n-- Data quality tracking\nSELECT \n DATE(modified_timestamp) as mod_date,\n COUNT(*) as records_updated,\n COUNT(DISTINCT block_number) as blocks_affected\nFROM .core.fact_transactions\nWHERE modified_timestamp > inserted_timestamp\nGROUP BY 1\nORDER BY 1 DESC;\n```"}}, "stats": {"clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(block_timestamp::DATE)", "include": true, "description": "The key used to cluster this table"}, "last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-10-06 15:24UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 775076576256, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 5499659187, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.livequery_models.ethereum_core.fact_event_logs"}, "source.external_models.bronze_streamline.defillama_perp_metrics": {"metadata": {"type": "EXTERNAL TABLE", "schema": "EXTERNAL", "name": "DEFILLAMA_PERP_METRICS", "database": "STREAMLINE", "comment": null, "owner": "ACCOUNTADMIN"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": "The value of this row"}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "ARRAY_INDEX": {"type": "NUMBER", "index": 3, "name": "ARRAY_INDEX", "comment": null}, "METADATA": {"type": "VARIANT", "index": 4, "name": "METADATA", "comment": null}, "DATA": {"type": "VARIANT", "index": 5, "name": "DATA", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 35599168, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.bronze_streamline.defillama_perp_metrics"}, "source.external_models.bronze_streamline.artemis": {"metadata": {"type": "EXTERNAL TABLE", "schema": "EXTERNAL", "name": "ARTEMIS", "database": "STREAMLINE", "comment": null, "owner": "STREAMLINE_SNOWFLAKE"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": "The value of this row"}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "METADATA": {"type": "VARIANT", "index": 3, "name": "METADATA", "comment": null}, "DATA": {"type": "VARIANT", "index": 4, "name": "DATA", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 2050804, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.bronze_streamline.artemis"}, "source.external_models.bronze_streamline.defillama_stablecoin_metrics": {"metadata": {"type": "EXTERNAL TABLE", "schema": "EXTERNAL", "name": "DEFILLAMA_STABLECOIN_METRICS", "database": "STREAMLINE", "comment": null, "owner": "STREAMLINE_SNOWFLAKE"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": "The value of this row"}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "ARRAY_INDEX": {"type": "NUMBER", "index": 3, "name": "ARRAY_INDEX", "comment": null}, "METADATA": {"type": "VARIANT", "index": 4, "name": "METADATA", "comment": null}, "DATA": {"type": "VARIANT", "index": 5, "name": "DATA", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 24235841832, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.bronze_streamline.defillama_stablecoin_metrics"}, "source.external_models.bronze_streamline.bitquery": {"metadata": {"type": "EXTERNAL TABLE", "schema": "EXTERNAL", "name": "BITQUERY", "database": "STREAMLINE", "comment": null, "owner": "ACCOUNTADMIN"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": "The value of this row"}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "METADATA": {"type": "VARIANT", "index": 3, "name": "METADATA", "comment": null}, "DATA": {"type": "VARIANT", "index": 4, "name": "DATA", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 1566816, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.bronze_streamline.bitquery"}, "source.external_models.flashbots.protect": {"metadata": {"type": "EXTERNAL TABLE", "schema": "FLASHBOTS", "name": "PROTECT", "database": "STREAMLINE", "comment": null, "owner": "STREAMLINE_SNOWFLAKE"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": "The value of this row"}, "_PARTITION_BY_MONTH": {"type": "NUMBER", "index": 2, "name": "_PARTITION_BY_MONTH", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 4, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 5, "name": "TO_ADDRESS", "comment": null}, "CREATED_AT_BLOCK_NUMBER": {"type": "NUMBER", "index": 6, "name": "CREATED_AT_BLOCK_NUMBER", "comment": null}, "TX_ID": {"type": "TEXT", "index": 7, "name": "TX_ID", "comment": null}, "HINTS_SELECTED": {"type": "TEXT", "index": 8, "name": "HINTS_SELECTED", "comment": null}, "NUM_OF_BUILDERS_SHARED": {"type": "NUMBER", "index": 9, "name": "NUM_OF_BUILDERS_SHARED", "comment": null}, "REFUND_PERCENT": {"type": "NUMBER", "index": 10, "name": "REFUND_PERCENT", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 9214343083, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.flashbots.protect"}, "source.external_models.flashbots.mev": {"metadata": {"type": "EXTERNAL TABLE", "schema": "FLASHBOTS", "name": "MEV", "database": "STREAMLINE", "comment": null, "owner": "STREAMLINE_SNOWFLAKE"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": "The value of this row"}, "_PARTITION_BY_MONTH": {"type": "NUMBER", "index": 2, "name": "_PARTITION_BY_MONTH", "comment": null}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 3, "name": "BLOCK_NUMBER", "comment": null}, "BLOCK_TIME": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "BLOCK_TIME", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 5, "name": "BLOCK_HASH", "comment": null}, "EXTRA_DATA": {"type": "TEXT", "index": 6, "name": "EXTRA_DATA", "comment": null}, "FEE_RECIPIENT_ADDRESS": {"type": "TEXT", "index": 7, "name": "FEE_RECIPIENT_ADDRESS", "comment": null}, "BUNDLE_ID": {"type": "NUMBER", "index": 8, "name": "BUNDLE_ID", "comment": null}, "USER_TX_HASH": {"type": "TEXT", "index": 9, "name": "USER_TX_HASH", "comment": null}, "USER_TX_FROM": {"type": "TEXT", "index": 10, "name": "USER_TX_FROM", "comment": null}, "USER_TX_TO": {"type": "TEXT", "index": 11, "name": "USER_TX_TO", "comment": null}, "BACKRUN_TX_HASH": {"type": "TEXT", "index": 12, "name": "BACKRUN_TX_HASH", "comment": null}, "BACKRUN_TX_FROM": {"type": "TEXT", "index": 13, "name": "BACKRUN_TX_FROM", "comment": null}, "BACKRUN_TX_TO": {"type": "TEXT", "index": 14, "name": "BACKRUN_TX_TO", "comment": null}, "REFUND_TX_HASH": {"type": "TEXT", "index": 15, "name": "REFUND_TX_HASH", "comment": null}, "REFUND_FROM": {"type": "TEXT", "index": 16, "name": "REFUND_FROM", "comment": null}, "REFUND_TO": {"type": "TEXT", "index": 17, "name": "REFUND_TO", "comment": null}, "REFUND_VALUE_ETH": {"type": "TEXT", "index": 18, "name": "REFUND_VALUE_ETH", "comment": null}, "IS_MEVSHARE": {"type": "TEXT", "index": 19, "name": "IS_MEVSHARE", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 73475286, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.flashbots.mev"}, "source.external_models.bronze_streamline.oklink": {"metadata": {"type": "EXTERNAL TABLE", "schema": "EXTERNAL", "name": "OKLINK", "database": "STREAMLINE", "comment": null, "owner": "ACCOUNTADMIN"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": "The value of this row"}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "METADATA": {"type": "VARIANT", "index": 3, "name": "METADATA", "comment": null}, "DATA": {"type": "VARIANT", "index": 4, "name": "DATA", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 340301, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.bronze_streamline.oklink"}, "source.external_models.bronze_streamline.valuations_parquet": {"metadata": {"type": "EXTERNAL TABLE", "schema": "EXTERNAL", "name": "VALUATIONS_PARQUET", "database": "STREAMLINE", "comment": null, "owner": "ACCOUNTADMIN"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": "The value of this row"}, "DATE_PART": {"type": "DATE", "index": 2, "name": "DATE_PART", "comment": null}, "COLLECTION_ADDRESS": {"type": "TEXT", "index": 3, "name": "COLLECTION_ADDRESS", "comment": null}, "COLLECTION_NAME": {"type": "TEXT", "index": 4, "name": "COLLECTION_NAME", "comment": null}, "TOKEN_ID": {"type": "NUMBER", "index": 5, "name": "TOKEN_ID", "comment": null}, "PRICE": {"type": "FLOAT", "index": 6, "name": "PRICE", "comment": null}, "VALUATION_DATE": {"type": "DATE", "index": 7, "name": "VALUATION_DATE", "comment": null}, "CURRENCY": {"type": "TEXT", "index": 8, "name": "CURRENCY", "comment": null}, "COLLECTION_SLUG": {"type": "TEXT", "index": 9, "name": "COLLECTION_SLUG", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 18840733, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.bronze_streamline.valuations_parquet"}, "source.external_models.bronze_streamline.defillama_protocols": {"metadata": {"type": "EXTERNAL TABLE", "schema": "EXTERNAL", "name": "DEFILLAMA_PROTOCOLS", "database": "STREAMLINE", "comment": null, "owner": "STREAMLINE_SNOWFLAKE"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": "The value of this row"}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "ARRAY_INDEX": {"type": "NUMBER", "index": 3, "name": "ARRAY_INDEX", "comment": null}, "METADATA": {"type": "VARIANT", "index": 4, "name": "METADATA", "comment": null}, "DATA": {"type": "VARIANT", "index": 5, "name": "DATA", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 354983112, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.bronze_streamline.defillama_protocols"}, "source.external_models.bronze_streamline.defillama_protocol_historical": {"metadata": {"type": "EXTERNAL TABLE", "schema": "EXTERNAL", "name": "DEFILLAMA_PROTOCOL_HISTORICAL", "database": "STREAMLINE", "comment": null, "owner": "ACCOUNTADMIN"}, "columns": {"VALUE": {"type": "VARIANT", "index": 1, "name": "VALUE", "comment": "The value of this row"}, "PARTITION_KEY": {"type": "NUMBER", "index": 2, "name": "PARTITION_KEY", "comment": null}, "METADATA": {"type": "VARIANT", "index": 3, "name": "METADATA", "comment": null}, "DATA": {"type": "VARIANT", "index": 4, "name": "DATA", "comment": null}}, "stats": {"bytes": {"id": "bytes", "label": "Approximate Size", "value": 1201921687, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.bronze_streamline.defillama_protocol_historical"}, "source.external_models.tokenflow_eth.tokens_metadata": {"metadata": {"type": "VIEW", "schema": "TOKENFLOW_ETH", "name": "TOKENS_METADATA", "database": "FLIPSIDE_PROD_DB", "comment": null, "owner": "ACCOUNTADMIN"}, "columns": {"ADDRESS": {"type": "TEXT", "index": 1, "name": "ADDRESS", "comment": null}, "STANDARD": {"type": "TEXT", "index": 2, "name": "STANDARD", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 3, "name": "SYMBOL", "comment": null}, "NAME": {"type": "TEXT", "index": 4, "name": "NAME", "comment": null}, "DECIMALS": {"type": "NUMBER", "index": 5, "name": "DECIMALS", "comment": null}, "BALANCES_SLOT": {"type": "NUMBER", "index": 6, "name": "BALANCES_SLOT", "comment": null}, "ALLOWANCES_SLOT": {"type": "NUMBER", "index": 7, "name": "ALLOWANCES_SLOT", "comment": null}, "CODE_HASH": {"type": "TEXT", "index": 8, "name": "CODE_HASH", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.tokenflow_eth.tokens_metadata"}, "source.external_models.tokenflow_eth.blocks": {"metadata": {"type": "VIEW", "schema": "TOKENFLOW_ETH", "name": "BLOCKS", "database": "FLIPSIDE_PROD_DB", "comment": null, "owner": "ACCOUNTADMIN"}, "columns": {"LOAD_ID": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "LOAD_ID", "comment": null}, "BLOCK": {"type": "NUMBER", "index": 2, "name": "BLOCK", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 3, "name": "BLOCK_HASH", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "TIMESTAMP", "comment": null}, "PARENT_HASH": {"type": "TEXT", "index": 5, "name": "PARENT_HASH", "comment": null}, "MINER": {"type": "TEXT", "index": 6, "name": "MINER", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 7, "name": "GAS_LIMIT", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 8, "name": "GAS_USED", "comment": null}, "TX_COUNT": {"type": "NUMBER", "index": 9, "name": "TX_COUNT", "comment": null}, "CANONICAL": {"type": "BOOLEAN", "index": 10, "name": "CANONICAL", "comment": null}, "BASE_FEE_PER_GAS": {"type": "NUMBER", "index": 11, "name": "BASE_FEE_PER_GAS", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.tokenflow_eth.blocks"}, "source.external_models.tokenflow_eth.transactions": {"metadata": {"type": "VIEW", "schema": "TOKENFLOW_ETH", "name": "TRANSACTIONS", "database": "FLIPSIDE_PROD_DB", "comment": null, "owner": "ACCOUNTADMIN"}, "columns": {"LOAD_ID": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "LOAD_ID", "comment": null}, "BLOCK": {"type": "NUMBER", "index": 2, "name": "BLOCK", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 3, "name": "BLOCK_HASH", "comment": null}, "CANONICAL": {"type": "BOOLEAN", "index": 4, "name": "CANONICAL", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "TIMESTAMP", "comment": null}, "TX_INDEX": {"type": "NUMBER", "index": 6, "name": "TX_INDEX", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 7, "name": "TX_HASH", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 8, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 9, "name": "TO_ADDRESS", "comment": null}, "TX_VALUE": {"type": "NUMBER", "index": 10, "name": "TX_VALUE", "comment": null}, "GAS_LIMIT": {"type": "NUMBER", "index": 11, "name": "GAS_LIMIT", "comment": null}, "GAS_PRICE": {"type": "NUMBER", "index": 12, "name": "GAS_PRICE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 13, "name": "GAS_USED", "comment": null}, "GAS_REFUND": {"type": "NUMBER", "index": 14, "name": "GAS_REFUND", "comment": null}, "CREATED_ADDRESS": {"type": "TEXT", "index": 15, "name": "CREATED_ADDRESS", "comment": null}, "RETURN_VALUE": {"type": "TEXT", "index": 16, "name": "RETURN_VALUE", "comment": null}, "EXCEPTION_ERROR": {"type": "TEXT", "index": 17, "name": "EXCEPTION_ERROR", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 18, "name": "REVERT_REASON", "comment": null}, "STATUS": {"type": "BOOLEAN", "index": 19, "name": "STATUS", "comment": null}, "CHAIN_ID": {"type": "NUMBER", "index": 20, "name": "CHAIN_ID", "comment": null}, "MAX_FEE_PER_GAS": {"type": "NUMBER", "index": 21, "name": "MAX_FEE_PER_GAS", "comment": null}, "MAX_PRIORITY_FEE_PER_GAS": {"type": "NUMBER", "index": 22, "name": "MAX_PRIORITY_FEE_PER_GAS", "comment": null}, "TYPE": {"type": "NUMBER", "index": 23, "name": "TYPE", "comment": null}, "CALL_DATA": {"type": "TEXT", "index": 24, "name": "CALL_DATA", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.tokenflow_eth.transactions"}, "source.external_models.tokenflow_eth.state_diffs": {"metadata": {"type": "VIEW", "schema": "TOKENFLOW_ETH", "name": "STATE_DIFFS", "database": "FLIPSIDE_PROD_DB", "comment": null, "owner": "ACCOUNTADMIN"}, "columns": {"LOAD_ID": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "LOAD_ID", "comment": null}, "BLOCK": {"type": "NUMBER", "index": 2, "name": "BLOCK", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 3, "name": "BLOCK_HASH", "comment": null}, "CANONICAL": {"type": "BOOLEAN", "index": 4, "name": "CANONICAL", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "CALL_ID": {"type": "TEXT", "index": 7, "name": "CALL_ID", "comment": null}, "ADDRESS": {"type": "TEXT", "index": 8, "name": "ADDRESS", "comment": null}, "STATE_FIELD": {"type": "TEXT", "index": 9, "name": "STATE_FIELD", "comment": null}, "REASON": {"type": "TEXT", "index": 10, "name": "REASON", "comment": null}, "PREV_VALUE": {"type": "TEXT", "index": 11, "name": "PREV_VALUE", "comment": null}, "CURR_VALUE": {"type": "TEXT", "index": 12, "name": "CURR_VALUE", "comment": null}, "ORDER_INDEX": {"type": "NUMBER", "index": 13, "name": "ORDER_INDEX", "comment": null}, "STATUS": {"type": "BOOLEAN", "index": 14, "name": "STATUS", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.tokenflow_eth.state_diffs"}, "source.external_models.tokenflow_eth.storage_diffs": {"metadata": {"type": "VIEW", "schema": "TOKENFLOW_ETH", "name": "STORAGE_DIFFS", "database": "FLIPSIDE_PROD_DB", "comment": null, "owner": "ACCOUNTADMIN"}, "columns": {"LOAD_ID": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "LOAD_ID", "comment": null}, "BLOCK": {"type": "NUMBER", "index": 2, "name": "BLOCK", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 3, "name": "BLOCK_HASH", "comment": null}, "CANONICAL": {"type": "BOOLEAN", "index": 4, "name": "CANONICAL", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "CALL_ID": {"type": "TEXT", "index": 7, "name": "CALL_ID", "comment": null}, "CONTRACT": {"type": "TEXT", "index": 8, "name": "CONTRACT", "comment": null}, "LOCATION": {"type": "TEXT", "index": 9, "name": "LOCATION", "comment": null}, "PREV_VALUE": {"type": "TEXT", "index": 10, "name": "PREV_VALUE", "comment": null}, "CURR_VALUE": {"type": "TEXT", "index": 11, "name": "CURR_VALUE", "comment": null}, "ORDER_INDEX": {"type": "NUMBER", "index": 12, "name": "ORDER_INDEX", "comment": null}, "STATUS": {"type": "BOOLEAN", "index": 13, "name": "STATUS", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.tokenflow_eth.storage_diffs"}, "source.external_models.tokenflow_eth.events": {"metadata": {"type": "VIEW", "schema": "TOKENFLOW_ETH", "name": "EVENTS", "database": "FLIPSIDE_PROD_DB", "comment": null, "owner": "ACCOUNTADMIN"}, "columns": {"LOAD_ID": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "LOAD_ID", "comment": null}, "BLOCK": {"type": "NUMBER", "index": 2, "name": "BLOCK", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 3, "name": "BLOCK_HASH", "comment": null}, "CANONICAL": {"type": "BOOLEAN", "index": 4, "name": "CANONICAL", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "LOG_INDEX": {"type": "NUMBER", "index": 7, "name": "LOG_INDEX", "comment": null}, "CALL_ID": {"type": "TEXT", "index": 8, "name": "CALL_ID", "comment": null}, "CONTRACT": {"type": "TEXT", "index": 9, "name": "CONTRACT", "comment": null}, "LOG_DATA": {"type": "TEXT", "index": 10, "name": "LOG_DATA", "comment": null}, "TOPIC0": {"type": "TEXT", "index": 11, "name": "TOPIC0", "comment": null}, "TOPIC1": {"type": "TEXT", "index": 12, "name": "TOPIC1", "comment": null}, "TOPIC2": {"type": "TEXT", "index": 13, "name": "TOPIC2", "comment": null}, "TOPIC3": {"type": "TEXT", "index": 14, "name": "TOPIC3", "comment": null}, "ORDER_INDEX": {"type": "NUMBER", "index": 15, "name": "ORDER_INDEX", "comment": null}, "STATUS": {"type": "BOOLEAN", "index": 16, "name": "STATUS", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.tokenflow_eth.events"}, "source.external_models.tokenflow_eth.tokens_allowance_diffs": {"metadata": {"type": "VIEW", "schema": "TOKENFLOW_ETH", "name": "TOKENS_ALLOWANCE_DIFFS", "database": "FLIPSIDE_PROD_DB", "comment": null, "owner": "ACCOUNTADMIN"}, "columns": {"BLOCK": {"type": "NUMBER", "index": 1, "name": "BLOCK", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 4, "name": "TOKEN_ADDRESS", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 5, "name": "SYMBOL", "comment": null}, "NAME": {"type": "TEXT", "index": 6, "name": "NAME", "comment": null}, "HOLDER": {"type": "TEXT", "index": 7, "name": "HOLDER", "comment": null}, "SPENDER": {"type": "TEXT", "index": 8, "name": "SPENDER", "comment": null}, "PREV_VALUE": {"type": "FLOAT", "index": 9, "name": "PREV_VALUE", "comment": null}, "CURR_VALUE": {"type": "FLOAT", "index": 10, "name": "CURR_VALUE", "comment": null}, "ORDER_INDEX": {"type": "NUMBER", "index": 11, "name": "ORDER_INDEX", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.tokenflow_eth.tokens_allowance_diffs"}, "source.external_models.tokenflow_eth.calls": {"metadata": {"type": "VIEW", "schema": "TOKENFLOW_ETH", "name": "CALLS", "database": "FLIPSIDE_PROD_DB", "comment": null, "owner": "ACCOUNTADMIN"}, "columns": {"LOAD_ID": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "LOAD_ID", "comment": null}, "BLOCK": {"type": "NUMBER", "index": 2, "name": "BLOCK", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 3, "name": "BLOCK_HASH", "comment": null}, "CANONICAL": {"type": "BOOLEAN", "index": 4, "name": "CANONICAL", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "CALL_ID": {"type": "TEXT", "index": 7, "name": "CALL_ID", "comment": null}, "CALL_TYPE": {"type": "TEXT", "index": 8, "name": "CALL_TYPE", "comment": null}, "CALL_GAS": {"type": "NUMBER", "index": 9, "name": "CALL_GAS", "comment": null}, "FROM_ADDRESS": {"type": "TEXT", "index": 10, "name": "FROM_ADDRESS", "comment": null}, "TO_ADDRESS": {"type": "TEXT", "index": 11, "name": "TO_ADDRESS", "comment": null}, "CALL_VALUE": {"type": "NUMBER", "index": 12, "name": "CALL_VALUE", "comment": null}, "CALL_DATA": {"type": "TEXT", "index": 13, "name": "CALL_DATA", "comment": null}, "RETURN_VALUE": {"type": "TEXT", "index": 14, "name": "RETURN_VALUE", "comment": null}, "GAS_USED": {"type": "NUMBER", "index": 15, "name": "GAS_USED", "comment": null}, "GAS_REFUND": {"type": "NUMBER", "index": 16, "name": "GAS_REFUND", "comment": null}, "EXCEPTION_ERROR": {"type": "TEXT", "index": 17, "name": "EXCEPTION_ERROR", "comment": null}, "REVERT_REASON": {"type": "TEXT", "index": 18, "name": "REVERT_REASON", "comment": null}, "SUCCESS": {"type": "BOOLEAN", "index": 19, "name": "SUCCESS", "comment": null}, "ORDER_INDEX": {"type": "NUMBER", "index": 20, "name": "ORDER_INDEX", "comment": null}, "STATUS": {"type": "BOOLEAN", "index": 21, "name": "STATUS", "comment": null}, "MEMORY_WORD_COUNT": {"type": "NUMBER", "index": 22, "name": "MEMORY_WORD_COUNT", "comment": null}, "CREATED_ADDRESS": {"type": "TEXT", "index": 23, "name": "CREATED_ADDRESS", "comment": null}, "STORAGE_ADDRESS": {"type": "TEXT", "index": 24, "name": "STORAGE_ADDRESS", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.tokenflow_eth.calls"}, "source.external_models.tokenflow_eth.storage_reads": {"metadata": {"type": "VIEW", "schema": "TOKENFLOW_ETH", "name": "STORAGE_READS", "database": "FLIPSIDE_PROD_DB", "comment": null, "owner": "ACCOUNTADMIN"}, "columns": {"LOAD_ID": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "LOAD_ID", "comment": null}, "BLOCK": {"type": "NUMBER", "index": 2, "name": "BLOCK", "comment": null}, "BLOCK_HASH": {"type": "TEXT", "index": 3, "name": "BLOCK_HASH", "comment": null}, "CANONICAL": {"type": "BOOLEAN", "index": 4, "name": "CANONICAL", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 6, "name": "TX_HASH", "comment": null}, "CALL_ID": {"type": "TEXT", "index": 7, "name": "CALL_ID", "comment": null}, "CONTRACT": {"type": "TEXT", "index": 8, "name": "CONTRACT", "comment": null}, "LOCATION": {"type": "TEXT", "index": 9, "name": "LOCATION", "comment": null}, "VALUE": {"type": "TEXT", "index": 10, "name": "VALUE", "comment": null}, "ORDER_INDEX": {"type": "NUMBER", "index": 11, "name": "ORDER_INDEX", "comment": null}, "STATUS": {"type": "BOOLEAN", "index": 12, "name": "STATUS", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.tokenflow_eth.storage_reads"}, "source.external_models.tokenflow_eth.tokens_balance_diffs": {"metadata": {"type": "VIEW", "schema": "TOKENFLOW_ETH", "name": "TOKENS_BALANCE_DIFFS", "database": "FLIPSIDE_PROD_DB", "comment": null, "owner": "ACCOUNTADMIN"}, "columns": {"BLOCK": {"type": "NUMBER", "index": 1, "name": "BLOCK", "comment": null}, "TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "TIMESTAMP", "comment": null}, "TX_HASH": {"type": "TEXT", "index": 3, "name": "TX_HASH", "comment": null}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 4, "name": "TOKEN_ADDRESS", "comment": null}, "SYMBOL": {"type": "TEXT", "index": 5, "name": "SYMBOL", "comment": null}, "NAME": {"type": "TEXT", "index": 6, "name": "NAME", "comment": null}, "HOLDER": {"type": "TEXT", "index": 7, "name": "HOLDER", "comment": null}, "PREV_VALUE": {"type": "FLOAT", "index": 8, "name": "PREV_VALUE", "comment": null}, "CURR_VALUE": {"type": "FLOAT", "index": 9, "name": "CURR_VALUE", "comment": null}, "ORDER_INDEX": {"type": "NUMBER", "index": 10, "name": "ORDER_INDEX", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.tokenflow_eth.tokens_balance_diffs"}, "source.external_models.crosschain_silver.apis_keys": {"metadata": {"type": "BASE TABLE", "schema": "SILVER", "name": "APIS_KEYS", "database": "CROSSCHAIN", "comment": null, "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"API_KEY": {"type": "TEXT", "index": 1, "name": "API_KEY", "comment": null}, "BLOCKCHAIN": {"type": "TEXT", "index": 2, "name": "BLOCKCHAIN", "comment": null}, "ADDING_USER": {"type": "TEXT", "index": 3, "name": "ADDING_USER", "comment": null}, "API_NAME": {"type": "TEXT", "index": 4, "name": "API_NAME", "comment": null}, "API_TYPE": {"type": "TEXT", "index": 5, "name": "API_TYPE", "comment": null}, "API_PLAN_TIER": {"type": "TEXT", "index": 6, "name": "API_PLAN_TIER", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-01-12 21:39UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 3584, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 11, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.crosschain_silver.apis_keys"}, "source.external_models.crosschain_core.dim_dates": {"metadata": {"type": "BASE TABLE", "schema": "CORE", "name": "DIM_DATES", "database": "CROSSCHAIN", "comment": "Hold rows for each date from 2017 - 2030", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"DATE_DAY": {"type": "DATE", "index": 1, "name": "DATE_DAY", "comment": "date for the row"}, "PRIOR_DATE_DAY": {"type": "DATE", "index": 2, "name": "PRIOR_DATE_DAY", "comment": "date before DATE_DAY"}, "NEXT_DATE_DAY": {"type": "DATE", "index": 3, "name": "NEXT_DATE_DAY", "comment": "date after DATE_DAY"}, "PRIOR_YEAR_DATE_DAY": {"type": "DATE", "index": 4, "name": "PRIOR_YEAR_DATE_DAY", "comment": "date exactly 1 year before DATE_DAY"}, "PRIOR_YEAR_OVER_YEAR_DATE_DAY": {"type": "DATE", "index": 5, "name": "PRIOR_YEAR_OVER_YEAR_DATE_DAY", "comment": "date exactly 1 year after DATE_DAY"}, "DAY_OF_WEEK": {"type": "NUMBER", "index": 6, "name": "DAY_OF_WEEK", "comment": "number representing day of week for DATE_DAY where 1=Sunday"}, "DAY_OF_WEEK_ISO": {"type": "NUMBER", "index": 7, "name": "DAY_OF_WEEK_ISO", "comment": "number representing day of week for DATE_DAY where 1=Monday"}, "DAY_OF_WEEK_NAME": {"type": "TEXT", "index": 8, "name": "DAY_OF_WEEK_NAME", "comment": "day of week name for DATE_DAY"}, "DAY_OF_WEEK_NAME_SHORT": {"type": "TEXT", "index": 9, "name": "DAY_OF_WEEK_NAME_SHORT", "comment": "day of week abbreviation for DATE_DAY"}, "DAY_OF_MONTH": {"type": "NUMBER", "index": 10, "name": "DAY_OF_MONTH", "comment": "day of month for DATE_DAY"}, "DAY_OF_YEAR": {"type": "NUMBER", "index": 11, "name": "DAY_OF_YEAR", "comment": "day of year for DATE_DAY"}, "WEEK_START_DATE": {"type": "DATE", "index": 12, "name": "WEEK_START_DATE", "comment": "date representing the start of the week for DATE_DAY"}, "WEEK_END_DATE": {"type": "DATE", "index": 13, "name": "WEEK_END_DATE", "comment": "date representing the end of the week for DATE_DAY"}, "PRIOR_YEAR_WEEK_START_DATE": {"type": "DATE", "index": 14, "name": "PRIOR_YEAR_WEEK_START_DATE", "comment": "date representing the start of the week for PRIOR_YEAR_DATE_DAY"}, "PRIOR_YEAR_WEEK_END_DATE": {"type": "DATE", "index": 15, "name": "PRIOR_YEAR_WEEK_END_DATE", "comment": "date representing the end of the week for PRIOR_YEAR_DATE_DAY"}, "WEEK_OF_YEAR": {"type": "NUMBER", "index": 16, "name": "WEEK_OF_YEAR", "comment": "number representing the week of the year for DATE_DAY"}, "ISO_WEEK_START_DATE": {"type": "DATE", "index": 17, "name": "ISO_WEEK_START_DATE", "comment": "ISO date representing the start of the week for DATE_DAY"}, "ISO_WEEK_END_DATE": {"type": "DATE", "index": 18, "name": "ISO_WEEK_END_DATE", "comment": "ISO date representing the end of the week for DATE_DAY"}, "PRIOR_YEAR_ISO_WEEK_START_DATE": {"type": "DATE", "index": 19, "name": "PRIOR_YEAR_ISO_WEEK_START_DATE", "comment": "ISO date representing the start of the week for PRIOR_YEAR_DATE_DAY"}, "PRIOR_YEAR_ISO_WEEK_END_DATE": {"type": "DATE", "index": 20, "name": "PRIOR_YEAR_ISO_WEEK_END_DATE", "comment": "ISO date representing the end of the week for PRIOR_YEAR_DATE_DAY"}, "ISO_WEEK_OF_YEAR": {"type": "NUMBER", "index": 21, "name": "ISO_WEEK_OF_YEAR", "comment": "number representing the ISO week of the year for DATE_DAY"}, "PRIOR_YEAR_WEEK_OF_YEAR": {"type": "NUMBER", "index": 22, "name": "PRIOR_YEAR_WEEK_OF_YEAR", "comment": "number representing the week of the year for PRIOR_YEAR_DATE_DAY"}, "PRIOR_YEAR_ISO_WEEK_OF_YEAR": {"type": "NUMBER", "index": 23, "name": "PRIOR_YEAR_ISO_WEEK_OF_YEAR", "comment": "number representing the ISO week of the year for PRIOR_YEAR_DATE_DAY"}, "MONTH_OF_YEAR": {"type": "NUMBER", "index": 24, "name": "MONTH_OF_YEAR", "comment": "number representing the month of the year for DATE_DAY"}, "MONTH_NAME": {"type": "TEXT", "index": 25, "name": "MONTH_NAME", "comment": "month of year name for DATE_DAY"}, "MONTH_NAME_SHORT": {"type": "TEXT", "index": 26, "name": "MONTH_NAME_SHORT", "comment": "month of year abbreviation for DATE_DAY"}, "MONTH_START_DATE": {"type": "DATE", "index": 27, "name": "MONTH_START_DATE", "comment": "first date of month for DATE_DAY"}, "MONTH_END_DATE": {"type": "DATE", "index": 28, "name": "MONTH_END_DATE", "comment": "last date of month for DATE_DAY"}, "PRIOR_YEAR_MONTH_START_DATE": {"type": "DATE", "index": 29, "name": "PRIOR_YEAR_MONTH_START_DATE", "comment": "first date of month for PRIOR_YEAR_DATE_DAY"}, "PRIOR_YEAR_MONTH_END_DATE": {"type": "DATE", "index": 30, "name": "PRIOR_YEAR_MONTH_END_DATE", "comment": "last date of month for PRIOR_YEAR_DATE_DAY"}, "QUARTER_OF_YEAR": {"type": "NUMBER", "index": 31, "name": "QUARTER_OF_YEAR", "comment": "number representing quarter for DATE_DAY"}, "QUARTER_START_DATE": {"type": "DATE", "index": 32, "name": "QUARTER_START_DATE", "comment": "first date of quarter for DATE_DAY"}, "QUARTER_END_DATE": {"type": "DATE", "index": 33, "name": "QUARTER_END_DATE", "comment": "last date of quarter for DATE_DAY"}, "YEAR_NUMBER": {"type": "NUMBER", "index": 34, "name": "YEAR_NUMBER", "comment": "number presenting the year for DATE_DAY"}, "YEAR_START_DATE": {"type": "DATE", "index": 35, "name": "YEAR_START_DATE", "comment": "first date of year for DATE_DAY"}, "YEAR_END_DATE": {"type": "DATE", "index": 36, "name": "YEAR_END_DATE", "comment": "last date of year for DATE_DAY"}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2025-01-12 01:06UTC", "include": true, "description": "The timestamp for last update/change"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 313856, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 8034, "include": true, "description": "An approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.crosschain_core.dim_dates"}, "source.external_models.crosschain_defi.ez_bridge_activity": {"metadata": {"type": "VIEW", "schema": "DEFI", "name": "EZ_BRIDGE_ACTIVITY", "database": "CROSSCHAIN", "comment": "A comprehensive convenience table holding blockchain and platform specific bridge activity from event_logs, traces and transfers, including bridge deposits/withdrawals and transfers in/out on the following blockchains: Arbitrum, Avalanche, Base, Blast, BSC, Gnosis, Ethereum, Optimism, Polygon, Solana, Aptos, Near, Flow and more. This table also includes prices and token symbols, where available. Note: source_address and destination_address are intentionally case-sensitive where applicable, depending on the requirements of the network.", "owner": "DBT_CLOUD_CROSSCHAIN"}, "columns": {"BLOCKCHAIN": {"type": "TEXT", "index": 1, "name": "BLOCKCHAIN", "comment": "Blockchain, Network, or Platform the token bridge activity is recorded on."}, "PLATFORM": {"type": "TEXT", "index": 2, "name": "PLATFORM", "comment": "The name of the bridge platform, typically a concatenation of the protocol and version."}, "PROTOCOL": {"type": "TEXT", "index": 3, "name": "PROTOCOL", "comment": "The name of the protocol."}, "PROTOCOL_VERSION": {"type": "TEXT", "index": 4, "name": "PROTOCOL_VERSION", "comment": "The version of the protocol."}, "BLOCK_NUMBER": {"type": "NUMBER", "index": 5, "name": "BLOCK_NUMBER", "comment": "Also known as block height. The block number, which indicates the length of the blockchain, increases after the addition of each new block."}, "BLOCK_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "BLOCK_TIMESTAMP", "comment": "The date and time at which the block was produced."}, "TX_HASH": {"type": "TEXT", "index": 7, "name": "TX_HASH", "comment": "Transaction hash is a unique identifier that is generated when a transaction is executed."}, "SOURCE_CHAIN": {"type": "TEXT", "index": 8, "name": "SOURCE_CHAIN", "comment": "The name of the blockchain network to which the assets are being bridged from."}, "DESTINATION_CHAIN": {"type": "TEXT", "index": 9, "name": "DESTINATION_CHAIN", "comment": "The name of the blockchain network to which the assets are being bridged to."}, "BRIDGE_ADDRESS": {"type": "TEXT", "index": 10, "name": "BRIDGE_ADDRESS", "comment": "The address of the contract responsible for handling the bridge deposit or transfer. This contract mediates the transfer and ensures that assets are sent and received appropriately."}, "SOURCE_ADDRESS": {"type": "TEXT", "index": 11, "name": "SOURCE_ADDRESS", "comment": "The address that initiated the bridge deposit or transfer. This address is the sender of the tokens/assets being bridged to the destination chain. This may be an EOA or contract address."}, "DESTINATION_ADDRESS": {"type": "TEXT", "index": 12, "name": "DESTINATION_ADDRESS", "comment": "The designated address set to receive the bridged tokens on the target chain after the completion of the bridge transaction. For non-evm chains, the hex address is decoded/encoded to match the data format of the destination chain, where possible. This may be an EOA or contract address."}, "DIRECTION": {"type": "TEXT", "index": 13, "name": "DIRECTION", "comment": "Indicates the direction in which the assets are being bridged, out/outbound or in/inbound."}, "TOKEN_ADDRESS": {"type": "TEXT", "index": 14, "name": "TOKEN_ADDRESS", "comment": "The address associated with the token that is being bridged. It provides a unique identifier for the token within its origin blockchain."}, "TOKEN_SYMBOL": {"type": "TEXT", "index": 15, "name": "TOKEN_SYMBOL", "comment": "The symbol representing the token being bridged. This provides a shorthand representation of the token."}, "AMOUNT_RAW": {"type": "FLOAT", "index": 16, "name": "AMOUNT_RAW", "comment": "The raw, non-decimal adjusted amount of tokens involved in the bridge transaction. For Solana, these are decimal adjusted amounts."}, "AMOUNT": {"type": "FLOAT", "index": 17, "name": "AMOUNT", "comment": "The decimal adjusted amount of tokens involved in the bridge transaction, where available."}, "AMOUNT_USD": {"type": "FLOAT", "index": 18, "name": "AMOUNT_USD", "comment": "The value of the bridged tokens in USD at the time of the bridge transaction, where available."}, "TOKEN_IS_VERIFIED": {"type": "BOOLEAN", "index": 19, "name": "TOKEN_IS_VERIFIED", "comment": "A boolean flag indicating if the token is verified by either uniswap labs or passing a threshold of transfers metrics on the chain."}, "INSERTED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 20, "name": "INSERTED_TIMESTAMP", "comment": "The utc timestamp at which the row was inserted into the table."}, "MODIFIED_TIMESTAMP": {"type": "TIMESTAMP_NTZ", "index": 21, "name": "MODIFIED_TIMESTAMP", "comment": "The utc timestamp at which the row was last modified."}, "EZ_BRIDGE_ACTIVITY_ID": {"type": "TEXT", "index": 22, "name": "EZ_BRIDGE_ACTIVITY_ID", "comment": "The unique identifier for each row in the table."}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.external_models.crosschain_defi.ez_bridge_activity"}}, "errors": null} \ No newline at end of file diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..fe9141e --- /dev/null +++ b/docs/index.html @@ -0,0 +1,75 @@ +dbt Docs
icons
diff --git a/docs/manifest.json b/docs/manifest.json new file mode 100644 index 0000000..ee9be2e --- /dev/null +++ b/docs/manifest.json @@ -0,0 +1 @@ +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v11.json", "dbt_version": "1.7.19", "generated_at": "2025-10-10T16:24:54.744966Z", "invocation_id": "f3fd32af-64d3-4c75-bfb6-95e2946ea073", "env": {}, "project_name": "external_models", "project_id": "5ef9d5959de01fcdb513d3850ce3be3f", "user_id": "bf4e8794-72f9-4e1d-acd0-2ded6a2c5719", "send_anonymous_usage_stats": true, "adapter_type": "snowflake"}, "nodes": {"model.external_models.silver__tokenlists_verified_tokens": {"database": "EXTERNAL", "schema": "silver", "name": "silver__tokenlists_verified_tokens", "resource_type": "model", "package_name": "external_models", "path": "tokenlists/silver/silver__tokenlists_verified_tokens.sql", "original_file_path": "models/tokenlists/silver/silver__tokenlists_verified_tokens.sql", "unique_id": "model.external_models.silver__tokenlists_verified_tokens", "fqn": ["external_models", "tokenlists", "silver", "silver__tokenlists_verified_tokens"], "alias": "tokenlists_verified_tokens", "checksum": {"name": "sha256", "checksum": "a490ff004bd761fcd617238a3d540ef8306aa57df1ee755d64881ad6965f3d03"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["tokenlists"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "tokenlists_verified_tokens_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["tokenlists"], "description": "", "columns": {"API_URL": {"name": "API_URL", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ADDRESS": {"name": "ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAIN_ID": {"name": "CHAIN_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/tokenlists/silver/silver__tokenlists_verified_tokens.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "tokenlists_verified_tokens_id", "tags": ["tokenlists"]}, "created_at": 1760113501.2387507, "relation_name": "EXTERNAL.silver.tokenlists_verified_tokens", "raw_code": "{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'tokenlists_verified_tokens_id',\n tags = ['tokenlists']\n) }}\n\nWITH base_lists AS (\n\n SELECT\n api_url,\n request,\n keywords,\n logo_uri,\n list_name,\n list_tags,\n VALUE :name :: STRING AS NAME,\n VALUE :symbol :: STRING AS symbol,\n VALUE :address :: STRING AS address,\n VALUE :chainId :: STRING AS chain_id,\n VALUE :decimals :: STRING AS decimals,\n VALUE :extensions :: VARIANT AS extensions,\n _inserted_timestamp,\n all_tokenlists_id\n FROM\n {{ ref('bronze__all_tokenlists') }},\n LATERAL FLATTEN (\n input => request :data :tokens\n )\n\n{% if is_incremental() %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp)\n FROM\n {{ this }}\n )\n{% endif %}\n)\nSELECT\n api_url,\n NAME,\n symbol,\n address,\n chain_id,\n decimals,\n extensions,\n list_name AS provider,\n list_tags AS list_metadata,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['api_url', 'LOWER(address)', 'chain_id']\n ) }} AS tokenlists_verified_tokens_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n base_lists\nWHERE\n address IS NOT NULL\n\n{% if is_incremental() %}\nAND api_url || LOWER(address) || chain_id NOT IN (\n SELECT\n api_url || LOWER(address) || chain_id\n FROM\n {{ this }}\n)\n{% endif %}\n\nqualify(ROW_NUMBER() over (PARTITION BY api_url, LOWER(address), chain_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "bronze__all_tokenlists", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.external_models.bronze__all_tokenlists"]}, "compiled_path": "target/compiled/external_models/models/tokenlists/silver/silver__tokenlists_verified_tokens.sql", "compiled": true, "compiled_code": "\n\nWITH base_lists AS (\n\n SELECT\n api_url,\n request,\n keywords,\n logo_uri,\n list_name,\n list_tags,\n VALUE :name :: STRING AS NAME,\n VALUE :symbol :: STRING AS symbol,\n VALUE :address :: STRING AS address,\n VALUE :chainId :: STRING AS chain_id,\n VALUE :decimals :: STRING AS decimals,\n VALUE :extensions :: VARIANT AS extensions,\n _inserted_timestamp,\n all_tokenlists_id\n FROM\n EXTERNAL.bronze.all_tokenlists,\n LATERAL FLATTEN (\n input => request :data :tokens\n )\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp)\n FROM\n EXTERNAL.silver.tokenlists_verified_tokens\n )\n\n)\nSELECT\n api_url,\n NAME,\n symbol,\n address,\n chain_id,\n decimals,\n extensions,\n list_name AS provider,\n list_tags AS list_metadata,\n _inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(api_url as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(LOWER(address) as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(chain_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS tokenlists_verified_tokens_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n base_lists\nWHERE\n address IS NOT NULL\n\n\nAND api_url || LOWER(address) || chain_id NOT IN (\n SELECT\n api_url || LOWER(address) || chain_id\n FROM\n EXTERNAL.silver.tokenlists_verified_tokens\n)\n\n\nqualify(ROW_NUMBER() over (PARTITION BY api_url, LOWER(address), chain_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.tokenlists__ez_verified_tokens": {"database": "EXTERNAL", "schema": "tokenlists", "name": "tokenlists__ez_verified_tokens", "resource_type": "model", "package_name": "external_models", "path": "tokenlists/gold/tokenlists__ez_verified_tokens.sql", "original_file_path": "models/tokenlists/gold/tokenlists__ez_verified_tokens.sql", "unique_id": "model.external_models.tokenlists__ez_verified_tokens", "fqn": ["external_models", "tokenlists", "gold", "tokenlists__ez_verified_tokens"], "alias": "ez_verified_tokens", "checksum": {"name": "sha256", "checksum": "3bb8a974d5c48c4c76ec3afd4362c7ab8ac84779d986932176ec2d2b63943085"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["tokenlists"], "meta": {"database_tags": {"table": {"PROTOCOL": "TOKEN LISTS"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["tokenlists"], "description": "A Uniswap Project, Token Lists is a community-led initiative to improve discoverability, reputation and trust in ERC20 token lists in a manner that is inclusive, transparent, and decentralized. This table contains dimensional information about the tokens listed on https://tokenlists.org/. This EZ view joins in Defillama's dim_chains for additional chain metadata.", "columns": {"TOKEN_ADDRESS": {"name": "TOKEN_ADDRESS", "description": "The address of the token.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NAME": {"name": "NAME", "description": "The name of the token.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SYMBOL": {"name": "SYMBOL", "description": "The symbol of the token.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DECIMALS": {"name": "DECIMALS", "description": "The number of decimals of the token.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAIN_ID": {"name": "CHAIN_ID", "description": "The unique identifier of the chain where the token is deployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAIN_NAME": {"name": "CHAIN_NAME", "description": "The name of the chain where the token is deployed. This is derived from `defillama.dim_chains`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAIN_SYMBOL": {"name": "CHAIN_SYMBOL", "description": "The official abbreviation or symbol representing the blockchain. This is derived from `defillama.dim_chains`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_EXTENSIONS": {"name": "TOKEN_EXTENSIONS", "description": "Extended token information, including mappings of the tokens on other chains.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROVIDER": {"name": "PROVIDER", "description": "The provider of the token list.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LIST_METADATA": {"name": "LIST_METADATA", "description": "The metadata of the token list.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EZ_VERIFIED_TOKENS_ID": {"name": "EZ_VERIFIED_TOKENS_ID", "description": "The unique identifier for each row in the table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "The utc timestamp at which the row was inserted into the table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "The utc timestamp at which the row was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "TOKEN LISTS"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/tokenlists/gold/tokenlists__ez_verified_tokens.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["tokenlists"], "meta": {"database_tags": {"table": {"PROTOCOL": "TOKEN LISTS"}}}}, "created_at": 1760113501.358849, "relation_name": "EXTERNAL.tokenlists.ez_verified_tokens", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['tokenlists'],\n meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'TOKEN LISTS' } } }\n) }}\n\nSELECT\n LOWER(address) AS token_address,\n NAME,\n symbol,\n decimals,\n t.chain_id,\n chain AS chain_name,\n chain_symbol,\n extensions AS token_extensions,\n provider,\n list_metadata,\n tokenlists_verified_tokens_id AS ez_verified_tokens_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n {{ ref('silver__tokenlists_verified_tokens') }} t \nLEFT JOIN {{ ref('defillama__dim_chains')}} d \n ON t.chain_id = d.chain_id", "language": "sql", "refs": [{"name": "silver__tokenlists_verified_tokens", "package": null, "version": null}, {"name": "defillama__dim_chains", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.external_models.silver__tokenlists_verified_tokens", "model.external_models.defillama__dim_chains"]}, "compiled_path": "target/compiled/external_models/models/tokenlists/gold/tokenlists__ez_verified_tokens.sql", "compiled": true, "compiled_code": "\n\nSELECT\n LOWER(address) AS token_address,\n NAME,\n symbol,\n decimals,\n t.chain_id,\n chain AS chain_name,\n chain_symbol,\n extensions AS token_extensions,\n provider,\n list_metadata,\n tokenlists_verified_tokens_id AS ez_verified_tokens_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n EXTERNAL.silver.tokenlists_verified_tokens t \nLEFT JOIN EXTERNAL.defillama.dim_chains d \n ON t.chain_id = d.chain_id", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__all_tokenlists": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__all_tokenlists", "resource_type": "model", "package_name": "external_models", "path": "tokenlists/bronze/bronze__all_tokenlists.sql", "original_file_path": "models/tokenlists/bronze/bronze__all_tokenlists.sql", "unique_id": "model.external_models.bronze__all_tokenlists", "fqn": ["external_models", "tokenlists", "bronze", "bronze__all_tokenlists"], "alias": "all_tokenlists", "checksum": {"name": "sha256", "checksum": "0ec05a83692bb55f0c61092e628724979658ab2fadc6b8ffb7a9e7d42d241a3e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["tokenlists"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "all_tokenlists_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["tokenlists"], "description": "", "columns": {"API_URL": {"name": "API_URL", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "REQUEST": {"name": "REQUEST", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/tokenlists/bronze/bronze__all_tokenlists.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "all_tokenlists_id", "tags": ["tokenlists"]}, "created_at": 1760113501.3602233, "relation_name": "EXTERNAL.bronze.all_tokenlists", "raw_code": "{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'all_tokenlists_id',\n tags = ['tokenlists']\n) }}\n\nWITH calls AS ({% for item in range(5) %}\n (\n\n SELECT\n api_url, \n {{ target.database }}.live.udf_api('GET', api_url,{},{}) AS request, \n INDEX AS row_num, \n SYSDATE() AS _inserted_timestamp\n FROM\n {{ ref('bronze__verified_tokenlist_seed') }}\n WHERE\n is_enabled\n AND (row_num BETWEEN {{ item * 10 + 1 }}\n AND {{(item + 1) * 10 }})\n\n) {% if not loop.last %}\nUNION ALL\n{% endif %}\n{% endfor %})\nSELECT\n api_url,\n request,\n request :data :keywords :: VARIANT AS keywords,\n request :data :logoURI :: STRING AS logo_uri,\n request :data :name :: STRING AS list_name,\n request :data :tags :: VARIANT AS list_tags,\n row_num,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['api_url','request']\n ) }} AS all_tokenlists_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n calls\nWHERE list_name IS NOT NULL", "language": "sql", "refs": [{"name": "bronze__verified_tokenlist_seed", "package": null, "version": null}, {"name": "bronze__verified_tokenlist_seed", "package": null, "version": null}, {"name": "bronze__verified_tokenlist_seed", "package": null, "version": null}, {"name": "bronze__verified_tokenlist_seed", "package": null, "version": null}, {"name": "bronze__verified_tokenlist_seed", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key"], "nodes": ["seed.external_models.bronze__verified_tokenlist_seed"]}, "compiled_path": "target/compiled/external_models/models/tokenlists/bronze/bronze__all_tokenlists.sql", "compiled": true, "compiled_code": "\n\nWITH calls AS (\n (\n\n SELECT\n api_url, \n EXTERNAL.live.udf_api('GET', api_url,{},{}) AS request, \n INDEX AS row_num, \n SYSDATE() AS _inserted_timestamp\n FROM\n EXTERNAL.bronze.verified_tokenlist_seed\n WHERE\n is_enabled\n AND (row_num BETWEEN 1\n AND 10)\n\n) \nUNION ALL\n\n\n (\n\n SELECT\n api_url, \n EXTERNAL.live.udf_api('GET', api_url,{},{}) AS request, \n INDEX AS row_num, \n SYSDATE() AS _inserted_timestamp\n FROM\n EXTERNAL.bronze.verified_tokenlist_seed\n WHERE\n is_enabled\n AND (row_num BETWEEN 11\n AND 20)\n\n) \nUNION ALL\n\n\n (\n\n SELECT\n api_url, \n EXTERNAL.live.udf_api('GET', api_url,{},{}) AS request, \n INDEX AS row_num, \n SYSDATE() AS _inserted_timestamp\n FROM\n EXTERNAL.bronze.verified_tokenlist_seed\n WHERE\n is_enabled\n AND (row_num BETWEEN 21\n AND 30)\n\n) \nUNION ALL\n\n\n (\n\n SELECT\n api_url, \n EXTERNAL.live.udf_api('GET', api_url,{},{}) AS request, \n INDEX AS row_num, \n SYSDATE() AS _inserted_timestamp\n FROM\n EXTERNAL.bronze.verified_tokenlist_seed\n WHERE\n is_enabled\n AND (row_num BETWEEN 31\n AND 40)\n\n) \nUNION ALL\n\n\n (\n\n SELECT\n api_url, \n EXTERNAL.live.udf_api('GET', api_url,{},{}) AS request, \n INDEX AS row_num, \n SYSDATE() AS _inserted_timestamp\n FROM\n EXTERNAL.bronze.verified_tokenlist_seed\n WHERE\n is_enabled\n AND (row_num BETWEEN 41\n AND 50)\n\n) \n)\nSELECT\n api_url,\n request,\n request :data :keywords :: VARIANT AS keywords,\n request :data :logoURI :: STRING AS logo_uri,\n request :data :name :: STRING AS list_name,\n request :data :tags :: VARIANT AS list_tags,\n row_num,\n _inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(api_url as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(request as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS all_tokenlists_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n calls\nWHERE list_name IS NOT NULL", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.avalanche__fact_p_blocks": {"database": "EXTERNAL", "schema": "avalanche", "name": "avalanche__fact_p_blocks", "resource_type": "model", "package_name": "external_models", "path": "avalanche/avalanche__fact_p_blocks.sql", "original_file_path": "models/avalanche/avalanche__fact_p_blocks.sql", "unique_id": "model.external_models.avalanche__fact_p_blocks", "fqn": ["external_models", "avalanche", "avalanche__fact_p_blocks"], "alias": "fact_p_blocks", "checksum": {"name": "sha256", "checksum": "2016762df3a5cd34726dddcf7770f810f748f29da827a1eb8288dae55fda6848"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["avalanche_share"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["avalanche_share"], "description": "Avalanche P-Chain Blocks. Please visit https://discord.gg/avax for any questions.", "columns": {"L1_VALIDATOR_ACTIVE_COUNT": {"name": "L1_VALIDATOR_ACTIVE_COUNT", "description": "Count of active validators on the L1 at the time of block creation", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROPOSER_ID": {"name": "PROPOSER_ID", "description": "Identifier for the entity that proposed the block", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PARENT_HASH": {"name": "PARENT_HASH", "description": "Hash of the parent block in the chain", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_SIZE": {"name": "BLOCK_SIZE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_COUNT": {"name": "TX_COUNT", "description": "Number of transactions included in the block", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TYPE": {"name": "TYPE", "description": "Type of block (e.g., proposal, commit, abort, etc.)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TIMESTAMP": {"name": "TIMESTAMP", "description": "Timestamp when the block was produced", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_INDEX": {"name": "BLOCK_INDEX", "description": "Sequential index of the block within the chain", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_HASH": {"name": "BLOCK_HASH", "description": "Unique identifier (hash) for the block", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "L1_VALIDATOR_EXCESS_GAS": {"name": "L1_VALIDATOR_EXCESS_GAS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "L1_VALIDATOR_ACCRUED_FEES": {"name": "L1_VALIDATOR_ACCRUED_FEES", "description": "A fee counter that applies to the balance of all active Avalanche L1 Validators (non-primary network)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CURRENT_SUPPLY": {"name": "CURRENT_SUPPLY", "description": "Current supply of AVAX (or chain native token) following block issuance (stored as VARCHAR for precision/format reasons)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FEE_STATE_EXCESS": {"name": "FEE_STATE_EXCESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FEE_STATE_CAPACITY": {"name": "FEE_STATE_CAPACITY", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "GAS_PRICE": {"name": "GAS_PRICE", "description": "Gas price used for transactions within the block", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROPOSER_PARENT_ID": {"name": "PROPOSER_PARENT_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROPOSER_NODE_ID": {"name": "PROPOSER_NODE_ID", "description": "Unique node ID of the block proposer", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROPOSER_P_CHAIN_HEIGHT": {"name": "PROPOSER_P_CHAIN_HEIGHT", "description": "The P\u2011Chain height as reported by the proposer (useful for cross-chain consistency checks)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROPOSER_TIMESTAMP": {"name": "PROPOSER_TIMESTAMP", "description": "Timestamp recorded by the proposer when creating the block", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LAST_UPDATED": {"name": "LAST_UPDATED", "description": "Timestamp of the last update to this record", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LOAD_TIMESTAMP": {"name": "LOAD_TIMESTAMP", "description": "Timestamp when the block data was loaded into Snowflake", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_HEIGHT": {"name": "BLOCK_HEIGHT", "description": "Block height on the chain indicating its position in the ledger", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/avalanche/avalanche__fact_p_blocks.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["avalanche_share"]}, "created_at": 1760113501.3949008, "relation_name": "EXTERNAL.avalanche.fact_p_blocks", "raw_code": "{{ config (\n materialized = \"view\",\n tags = ['avalanche_share']\n) }}\n\nselect * \nfrom {{ source('avalanche_share', 'p_blocks') }}", "language": "sql", "refs": [], "sources": [["avalanche_share", "p_blocks"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.avalanche_share.p_blocks"]}, "compiled_path": "target/compiled/external_models/models/avalanche/avalanche__fact_p_blocks.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom ava_labs_share.primary.p_blocks", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.avalanche__fact_x_transactions": {"database": "EXTERNAL", "schema": "avalanche", "name": "avalanche__fact_x_transactions", "resource_type": "model", "package_name": "external_models", "path": "avalanche/avalanche__fact_x_transactions.sql", "original_file_path": "models/avalanche/avalanche__fact_x_transactions.sql", "unique_id": "model.external_models.avalanche__fact_x_transactions", "fqn": ["external_models", "avalanche", "avalanche__fact_x_transactions"], "alias": "fact_x_transactions", "checksum": {"name": "sha256", "checksum": "c2679e1c21815c54c56607e66abd5720babaf3a84465dbd61386b48e0c4a1833"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["avalanche_share"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["avalanche_share"], "description": "Avalanche X-Chain Transactions. Please visit https://discord.gg/avax for any questions.", "columns": {"TYPE": {"name": "TYPE", "description": "Type of transaction (e.g. import, export, operation)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_BLOCK_POSITION": {"name": "TX_BLOCK_POSITION", "description": "Position of the transaction in the block", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "IS_LINEAR": {"name": "IS_LINEAR", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LOAD_TIMESTAMP": {"name": "LOAD_TIMESTAMP", "description": "Timestamp when data was loaded into Snowflake", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LAST_UPDATED": {"name": "LAST_UPDATED", "description": "Last update timestamp", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BYTES": {"name": "BYTES", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "METADATA": {"name": "METADATA", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DESTINATION_CHAIN": {"name": "DESTINATION_CHAIN", "description": "Destination chain for cross-chain transactions", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SOURCE_CHAIN": {"name": "SOURCE_CHAIN", "description": "Source chain for cross-chain transactions", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DENOMINATION": {"name": "DENOMINATION", "description": "Denomination of the asset (10^denomination)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TIMESTAMP": {"name": "TIMESTAMP", "description": "Timestamp when the transaction was processed", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_HASH": {"name": "BLOCK_HASH", "description": "Hash of the block containing the transaction", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_INDEX": {"name": "BLOCK_INDEX", "description": "Index of the block in which the transaction occured", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_HEIGHT": {"name": "BLOCK_HEIGHT", "description": "Height of the block in the blockchain", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FEE": {"name": "FEE", "description": "Transaction fee in smallest denomination", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ASSET_NAME": {"name": "ASSET_NAME", "description": "Name of the asset involved in the transaction", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SYMBOL": {"name": "SYMBOL", "description": "Symbol of the asset", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TRANSACTION_HASH": {"name": "TRANSACTION_HASH", "description": "Unique identifier for the transaction", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MEMO": {"name": "MEMO", "description": "Optional memo associated with the transaction", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/avalanche/avalanche__fact_x_transactions.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["avalanche_share"]}, "created_at": 1760113501.37931, "relation_name": "EXTERNAL.avalanche.fact_x_transactions", "raw_code": "{{ config (\n materialized = \"view\",\n tags = ['avalanche_share']\n) }}\n\nselect * \nfrom {{ source('avalanche_share', 'x_transactions') }}", "language": "sql", "refs": [], "sources": [["avalanche_share", "x_transactions"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.avalanche_share.x_transactions"]}, "compiled_path": "target/compiled/external_models/models/avalanche/avalanche__fact_x_transactions.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom ava_labs_share.primary.x_transactions", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.avalanche__fact_c_messages": {"database": "EXTERNAL", "schema": "avalanche", "name": "avalanche__fact_c_messages", "resource_type": "model", "package_name": "external_models", "path": "avalanche/avalanche__fact_c_messages.sql", "original_file_path": "models/avalanche/avalanche__fact_c_messages.sql", "unique_id": "model.external_models.avalanche__fact_c_messages", "fqn": ["external_models", "avalanche", "avalanche__fact_c_messages"], "alias": "fact_c_messages", "checksum": {"name": "sha256", "checksum": "108d81ebf908100e80413076759f6779674193d1016d7d1d3c5f430735a3c222"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["avalanche_share"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["avalanche_share"], "description": "Avalanche C-Chain Messages. Please visit https://discord.gg/avax for any questions.", "columns": {"blockhash": {"name": "blockhash", "description": "Hash of the block containing this message.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blocknumber": {"name": "blocknumber", "description": "Block number as a string", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blocktimestamp": {"name": "blocktimestamp", "description": "Block timestamp", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transactionhash": {"name": "transactionhash", "description": "Hash of the transaction that included this message.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transactionmessagefrom": {"name": "transactionmessagefrom", "description": "Sender address for the message.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transactionmessageto": {"name": "transactionmessageto", "description": "Recipient address for the message.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transactionmessagegasprice": {"name": "transactionmessagegasprice", "description": "Gas price applied to the message transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "partition_date": {"name": "partition_date", "description": "This date is derived from the block timestamp", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/avalanche/avalanche__fact_c_messages.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["avalanche_share"]}, "created_at": 1760113501.3997114, "relation_name": "EXTERNAL.avalanche.fact_c_messages", "raw_code": "{{ config (\n materialized = \"view\",\n tags = ['avalanche_share']\n) }}\n\nselect * \nfrom {{ source('avalanche_share', 'c_messages') }}", "language": "sql", "refs": [], "sources": [["avalanche_share", "c_messages"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.avalanche_share.c_messages"]}, "compiled_path": "target/compiled/external_models/models/avalanche/avalanche__fact_c_messages.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom ava_labs_share.primary.c_messages", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.avalanche__fact_x_vertices": {"database": "EXTERNAL", "schema": "avalanche", "name": "avalanche__fact_x_vertices", "resource_type": "model", "package_name": "external_models", "path": "avalanche/avalanche__fact_x_vertices.sql", "original_file_path": "models/avalanche/avalanche__fact_x_vertices.sql", "unique_id": "model.external_models.avalanche__fact_x_vertices", "fqn": ["external_models", "avalanche", "avalanche__fact_x_vertices"], "alias": "fact_x_vertices", "checksum": {"name": "sha256", "checksum": "b15ba79f045215e248810d638ba2c1a827db031303891f19bd5adc60e681baea"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["avalanche_share"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["avalanche_share"], "description": "Avalanche X-Chain Vertices. Please visit https://discord.gg/avax for any questions.", "columns": {"TRANSACTION_COUNT": {"name": "TRANSACTION_COUNT", "description": "Number of transactions contained in the vertex", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VERTEX_TIMESTAMP": {"name": "VERTEX_TIMESTAMP", "description": "Timestamp when the vertex was created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VERTEX_INDEX": {"name": "VERTEX_INDEX", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "IS_STOP_VERTEX": {"name": "IS_STOP_VERTEX", "description": "Indicates if this is a stop vertex in the DAG", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LOAD_TIMESTAMP": {"name": "LOAD_TIMESTAMP", "description": "Timestamp when data was loaded into Snowflake", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LAST_UPDATED": {"name": "LAST_UPDATED", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VERTEX_SIZE": {"name": "VERTEX_SIZE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VERTEX_HEIGHT": {"name": "VERTEX_HEIGHT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PARENT_HASH": {"name": "PARENT_HASH", "description": "Hash of the parent vertex", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VERTEX_HASH": {"name": "VERTEX_HASH", "description": "Unique identifier hash for the vertex", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/avalanche/avalanche__fact_x_vertices.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["avalanche_share"]}, "created_at": 1760113501.3728566, "relation_name": "EXTERNAL.avalanche.fact_x_vertices", "raw_code": "{{ config (\n materialized = \"view\",\n tags = ['avalanche_share']\n) }}\n\nselect * \nfrom {{ source('avalanche_share', 'vertices') }}", "language": "sql", "refs": [], "sources": [["avalanche_share", "vertices"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.avalanche_share.vertices"]}, "compiled_path": "target/compiled/external_models/models/avalanche/avalanche__fact_x_vertices.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom ava_labs_share.primary.vertices", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.avalanche__dim_data_dictionary": {"database": "EXTERNAL", "schema": "avalanche", "name": "avalanche__dim_data_dictionary", "resource_type": "model", "package_name": "external_models", "path": "avalanche/avalanche__dim_data_dictionary.sql", "original_file_path": "models/avalanche/avalanche__dim_data_dictionary.sql", "unique_id": "model.external_models.avalanche__dim_data_dictionary", "fqn": ["external_models", "avalanche", "avalanche__dim_data_dictionary"], "alias": "dim_data_dictionary", "checksum": {"name": "sha256", "checksum": "596506a98b5821b7e4b6949ddbf995db94215956c88df12146abe6b87dfa9711"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["avalanche_share"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["avalanche_share"], "description": "Avalanche Data Dictionary. Please visit https://discord.gg/avax for any questions.", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/avalanche/avalanche__dim_data_dictionary.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["avalanche_share"]}, "created_at": 1760113501.3798974, "relation_name": "EXTERNAL.avalanche.dim_data_dictionary", "raw_code": "{{ config (\n materialized = \"view\",\n tags = ['avalanche_share']\n) }}\n\nselect * \nfrom {{ source('avalanche_share', 'data_dictionary') }}", "language": "sql", "refs": [], "sources": [["avalanche_share", "data_dictionary"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.avalanche_share.data_dictionary"]}, "compiled_path": "target/compiled/external_models/models/avalanche/avalanche__dim_data_dictionary.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom ava_labs_share.primary.data_dictionary", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.avalanche__fact_x_blocks": {"database": "EXTERNAL", "schema": "avalanche", "name": "avalanche__fact_x_blocks", "resource_type": "model", "package_name": "external_models", "path": "avalanche/avalanche__fact_x_blocks.sql", "original_file_path": "models/avalanche/avalanche__fact_x_blocks.sql", "unique_id": "model.external_models.avalanche__fact_x_blocks", "fqn": ["external_models", "avalanche", "avalanche__fact_x_blocks"], "alias": "fact_x_blocks", "checksum": {"name": "sha256", "checksum": "edd01146aabc36f1e9045b58f8adb717708703790502806428a4078c388ad91b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["avalanche_share"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["avalanche_share"], "description": "Avalanche X-Chain Blocks. Please visit https://discord.gg/avax for any questions.", "columns": {"PROPOSER_PARENT_ID": {"name": "PROPOSER_PARENT_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_HEIGHT": {"name": "BLOCK_HEIGHT", "description": "Block height on the chain indicating its position in the ledger", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LOAD_TIMESTAMP": {"name": "LOAD_TIMESTAMP", "description": "Timestamp when the block data was loaded into Snowflake", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LAST_UPDATED": {"name": "LAST_UPDATED", "description": "Timestamp of the last update to this record", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROPOSER_NODE_ID": {"name": "PROPOSER_NODE_ID", "description": "Unique node ID of the block proposer", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROPOSER_P_CHAIN_HEIGHT": {"name": "PROPOSER_P_CHAIN_HEIGHT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROPOSER_TIMESTAMP": {"name": "PROPOSER_TIMESTAMP", "description": "Timestamp recorded by the proposer when creating the block", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TYPE": {"name": "TYPE", "description": "Type of block (e.g., proposal, decision, etc.)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_COUNT": {"name": "TX_COUNT", "description": "Number of transactions included in the block", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_SIZE": {"name": "BLOCK_SIZE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PARENT_HASH": {"name": "PARENT_HASH", "description": "Hash of the parent block in the chain", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROPOSER_ID": {"name": "PROPOSER_ID", "description": "Identifier for the entity that proposed the block", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_HASH": {"name": "BLOCK_HASH", "description": "Unique identifier (hash) for the block", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_INDEX": {"name": "BLOCK_INDEX", "description": "Sequential index of the block within the chain", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TIMESTAMP": {"name": "TIMESTAMP", "description": "Timestamp when the block was produced", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/avalanche/avalanche__fact_x_blocks.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["avalanche_share"]}, "created_at": 1760113501.3961666, "relation_name": "EXTERNAL.avalanche.fact_x_blocks", "raw_code": "{{ config (\n materialized = \"view\",\n tags = ['avalanche_share']\n) }}\n\nselect * \nfrom {{ source('avalanche_share', 'x_blocks') }}", "language": "sql", "refs": [], "sources": [["avalanche_share", "x_blocks"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.avalanche_share.x_blocks"]}, "compiled_path": "target/compiled/external_models/models/avalanche/avalanche__fact_x_blocks.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom ava_labs_share.primary.x_blocks", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.avalanche__fact_p_transactions": {"database": "EXTERNAL", "schema": "avalanche", "name": "avalanche__fact_p_transactions", "resource_type": "model", "package_name": "external_models", "path": "avalanche/avalanche__fact_p_transactions.sql", "original_file_path": "models/avalanche/avalanche__fact_p_transactions.sql", "unique_id": "model.external_models.avalanche__fact_p_transactions", "fqn": ["external_models", "avalanche", "avalanche__fact_p_transactions"], "alias": "fact_p_transactions", "checksum": {"name": "sha256", "checksum": "a3c313244df46dc2566d75a4aae4014320d1c3e79bd53e338ef197b9d1d9fc91"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["avalanche_share"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["avalanche_share"], "description": "Avalanche P-Chain Transactions. Please visit https://discord.gg/avax for any questions.", "columns": {"BLOCK_HASH": {"name": "BLOCK_HASH", "description": "Hash of the block containing the transaction", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "L1_VALIDATOR_WEIGHT": {"name": "L1_VALIDATOR_WEIGHT", "description": "Stake weight of the validator", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "L1_VALIDATOR_END_ACCUMULATED_FEE": {"name": "L1_VALIDATOR_END_ACCUMULATED_FEE", "description": "The value of the accrued fee for a given L1 Validator when its full balance has been reached.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "L1_VALIDATOR_ACCRUED_FEES": {"name": "L1_VALIDATOR_ACCRUED_FEES", "description": "A fee counter that applies to the balance of all active Avalanche L1 Validators (non-primary network)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "L1_VALIDATOR_ACTIVE_COUNT": {"name": "L1_VALIDATOR_ACTIVE_COUNT", "description": "Active validators at the time of transaction", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "GAS_USED": {"name": "GAS_USED", "description": "The total amount of gas or computational units expended by a transaction. Data provided post Etna Upgrade (12/16/24)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TRANSACTION_HASH": {"name": "TRANSACTION_HASH", "description": "Unique identifier for the transaction", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TIMESTAMP": {"name": "TIMESTAMP", "description": "Timestamp of the transaction", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TYPE": {"name": "TYPE", "description": "Type of transaction (e.g. import, export, reward, etc.)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "REMOVAL_TIME": {"name": "REMOVAL_TIME", "description": "Timestamp of the removal of the validator", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "L1_VALIDATOR_PAYG_BALANCE": {"name": "L1_VALIDATOR_PAYG_BALANCE", "description": "Registered Avalanche L1 Validator (not primary network) pay-as-you-go balance in the transaction", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_HEIGHT": {"name": "BLOCK_HEIGHT", "description": "Height of the block in the blockchain", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MEMO": {"name": "MEMO", "description": "Optional memo associated with the transaction", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FEE": {"name": "FEE", "description": "Minimum amount of nAVAX that must be burned for a transaction to be accepted", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SOURCE_CHAIN": {"name": "SOURCE_CHAIN", "description": "Source chain for cross-chain transactions", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DESTINATION_CHAIN": {"name": "DESTINATION_CHAIN", "description": "Destination chain for cross-chain transactions", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "REWARDED": {"name": "REWARDED", "description": "Indicates if the transaction earned staking rewards", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "REMOVAL_TX_HASH": {"name": "REMOVAL_TX_HASH", "description": "Hash of the removal transaction", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_BLOCK_POSITION": {"name": "TX_BLOCK_POSITION", "description": "Position of the transaction in the block", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "END_TIME": {"name": "END_TIME", "description": "Timestamp of the end of the transaction", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "STAKING_TX_HASH": {"name": "STAKING_TX_HASH", "description": "Hash of the staking transaction", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NODE_ID": {"name": "NODE_ID", "description": "Validator node ID associated with staking transactions", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "REWARD_ADDRESSES": {"name": "REWARD_ADDRESSES", "description": "List of addresses receiving staking rewards", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "L1_VALIDATOR_REMAINING_BALANCE_OWNER_BYTES": {"name": "L1_VALIDATOR_REMAINING_BALANCE_OWNER_BYTES", "description": "Binary representation of the remaining balance owner", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "L1_MANAGER_BLOCKCHAIN_ID": {"name": "L1_MANAGER_BLOCKCHAIN_ID", "description": "Blockchain ID of the L1 manager", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "POTENTIAL_REWARD": {"name": "POTENTIAL_REWARD", "description": "Potential reward amount for staking transactions", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SUBNET_ID": {"name": "SUBNET_ID", "description": "Subnet ID associated with the transaction", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "START_TIME": {"name": "START_TIME", "description": "Timestamp of the start of the transaction", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "IS_LINEAR": {"name": "IS_LINEAR", "description": "Indicates if the transaction is linear", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "METADATA": {"name": "METADATA", "description": "Metadata associated with the transaction", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BYTES": {"name": "BYTES", "description": "Binary data associated with the transaction", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LAST_UPDATED": {"name": "LAST_UPDATED", "description": "Timestamp of the last update to this record", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LOAD_TIMESTAMP": {"name": "LOAD_TIMESTAMP", "description": "Timestamp when data was loaded into Snowflake", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_INDEX": {"name": "BLOCK_INDEX", "description": "Index of the block in which the transaction occured", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "L1_MANAGER_CONTRACT_ADDRESS": {"name": "L1_MANAGER_CONTRACT_ADDRESS", "description": "Address of the L1 manager contract", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "L1_VALIDATION_ID": {"name": "L1_VALIDATION_ID", "description": "Unique identifier for an Avalanche L1 Valdiator (not primary network)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "L1_VALIDATOR_IS_ACTIVE": {"name": "L1_VALIDATOR_IS_ACTIVE", "description": "Indicates if the validator is currently active", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/avalanche/avalanche__fact_p_transactions.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["avalanche_share"]}, "created_at": 1760113501.3887992, "relation_name": "EXTERNAL.avalanche.fact_p_transactions", "raw_code": "{{ config (\n materialized = \"view\",\n tags = ['avalanche_share']\n) }}\n\nselect * \nfrom {{ source('avalanche_share', 'p_transactions') }}", "language": "sql", "refs": [], "sources": [["avalanche_share", "p_transactions"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.avalanche_share.p_transactions"]}, "compiled_path": "target/compiled/external_models/models/avalanche/avalanche__fact_p_transactions.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom ava_labs_share.primary.p_transactions", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.avalanche__fact_utxos": {"database": "EXTERNAL", "schema": "avalanche", "name": "avalanche__fact_utxos", "resource_type": "model", "package_name": "external_models", "path": "avalanche/avalanche__fact_utxos.sql", "original_file_path": "models/avalanche/avalanche__fact_utxos.sql", "unique_id": "model.external_models.avalanche__fact_utxos", "fqn": ["external_models", "avalanche", "avalanche__fact_utxos"], "alias": "fact_utxos", "checksum": {"name": "sha256", "checksum": "b773a8dd41bcb1ec966d81c4dba1b2c14f2578ebe54e29543225b62c59bc80a5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["avalanche_share"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["avalanche_share"], "description": "Avalanche UTXOs. Please visit https://discord.gg/avax for any questions.", "columns": {"OUTPUT_TYPE": {"name": "OUTPUT_TYPE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PLATFORM_LOCKTIME": {"name": "PLATFORM_LOCKTIME", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONSUMED_ON": {"name": "CONSUMED_ON", "description": "Blockchain ID on which the UTXO was consumed", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATED_ON": {"name": "CREATED_ON", "description": "Blockchain ID on which the UTXO was created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FX_ID": {"name": "FX_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PAYLOAD": {"name": "PAYLOAD", "description": "Additional payload data associated with the UTXO", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "STAKEABLE_LOCKTIME": {"name": "STAKEABLE_LOCKTIME", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "GROUP_ID": {"name": "GROUP_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT": {"name": "AMOUNT", "description": "Amount of the asset stored in the UTXO", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SIGNATURE": {"name": "SIGNATURE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PUBLIC_KEY": {"name": "PUBLIC_KEY", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LOCKTIME": {"name": "LOCKTIME", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "STAKED": {"name": "STAKED", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONSUMING_TRANSACTION_HASH": {"name": "CONSUMING_TRANSACTION_HASH", "description": "Transaction hash that consumed the UTXO", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ASSET_ID": {"name": "ASSET_ID", "description": "Asset identifier associated with the UTXO", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ADDRESS": {"name": "ADDRESS", "description": "Blockchain address associated with the UTXO", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "REWARD": {"name": "REWARD", "description": "Indicates if the UTXO was part of a staking reward", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_TYPE": {"name": "TX_TYPE", "description": "Type of transaction that generated the UTXO", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TIMESTAMP": {"name": "TIMESTAMP", "description": "Timestamp when the UTXO was created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "OUTPUT_INDEX": {"name": "OUTPUT_INDEX", "description": "Ordering of the UTXOs within a transaction", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_INDEX": {"name": "BLOCK_INDEX", "description": "Index of the block where the UTXO was created", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TRANSACTION_HASH": {"name": "TRANSACTION_HASH", "description": "Transaction hash associated with the UTXO", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "UTXO_ID": {"name": "UTXO_ID", "description": "Unique identifier for the UTXO", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONSUMING_BLOCK_HEIGHT": {"name": "CONSUMING_BLOCK_HEIGHT", "description": "Block height at which the UTXO was consumed", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "REWARD_ADDRESSES": {"name": "REWARD_ADDRESSES", "description": "List of addresses receiving staking rewards", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NODE_ID": {"name": "NODE_ID", "description": "Validator node ID associated with staking UTXOs", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "STAKING_END_TIME": {"name": "STAKING_END_TIME", "description": "End time for staking period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "STAKING_START_TIME": {"name": "STAKING_START_TIME", "description": "Start time for staking period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONSUMING_TRANSACTION_TIMESTAMP": {"name": "CONSUMING_TRANSACTION_TIMESTAMP", "description": "Timestamp when the UTXO was consumed", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LOAD_TIMESTAMP": {"name": "LOAD_TIMESTAMP", "description": "Timestamp when data was loaded into Snowflake", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LAST_UPDATED": {"name": "LAST_UPDATED", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "THRESHOLD": {"name": "THRESHOLD", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/avalanche/avalanche__fact_utxos.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["avalanche_share"]}, "created_at": 1760113501.4093542, "relation_name": "EXTERNAL.avalanche.fact_utxos", "raw_code": "{{ config (\n materialized = \"view\",\n tags = ['avalanche_share']\n) }}\n\nselect * \nfrom {{ source('avalanche_share', 'utxos') }}", "language": "sql", "refs": [], "sources": [["avalanche_share", "utxos"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.avalanche_share.utxos"]}, "compiled_path": "target/compiled/external_models/models/avalanche/avalanche__fact_utxos.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom ava_labs_share.primary.utxos", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.silver__polymarket_markets": {"database": "EXTERNAL", "schema": "silver", "name": "silver__polymarket_markets", "resource_type": "model", "package_name": "external_models", "path": "polymarket/silver/silver__polymarket_markets.sql", "original_file_path": "models/polymarket/silver/silver__polymarket_markets.sql", "unique_id": "model.external_models.silver__polymarket_markets", "fqn": ["external_models", "polymarket", "silver", "silver__polymarket_markets"], "alias": "polymarket_markets", "checksum": {"name": "sha256", "checksum": "2dccaa5914ce616cd6fc5b681e2a634badf1aff57b5531ceee34755b961e9a3e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["polymarket"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "condition_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["polymarket"], "description": "", "columns": {"CONDITION_ID": {"name": "CONDITION_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/polymarket/silver/silver__polymarket_markets.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "condition_id", "tags": ["polymarket"]}, "created_at": 1760113501.410846, "relation_name": "EXTERNAL.silver.polymarket_markets", "raw_code": "{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'condition_id',\n tags = ['polymarket']\n) }}\n\nWITH base AS (\n\n SELECT\n condition_id,\n question,\n description,\n tokens,\n token_1_token_id,\n token_1_outcome,\n token_1_winner,\n token_2_token_id,\n token_2_outcome,\n token_2_winner,\n enable_order_book,\n active,\n closed,\n archived,\n accepting_orders,\n accepting_order_timestamp,\n minimum_order_size,\n minimum_tick_size,\n question_id,\n market_slug,\n end_date_iso,\n game_start_time,\n seconds_delay,\n fpmm,\n maker_base_fee,\n taker_base_fee,\n notifications_enabled,\n neg_risk,\n neg_risk_market_id,\n neg_risk_request_id,\n rewards,\n tags,\n _inserted_timestamp\n FROM\n {{ ref('bronze__polymarket_markets') }}\n\n{% if is_incremental() %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '{{ var(\"LOOKBACK\", \"24 hours\") }}'\n FROM\n {{ this }}\n )\n{% endif %}\n)\nSELECT\n condition_id,\n question,\n description,\n tokens,\n token_1_token_id,\n token_1_outcome,\n token_1_winner,\n token_2_token_id,\n token_2_outcome,\n token_2_winner,\n enable_order_book,\n active,\n closed,\n archived,\n accepting_orders,\n accepting_order_timestamp,\n minimum_order_size,\n minimum_tick_size,\n question_id,\n market_slug,\n end_date_iso,\n game_start_time,\n seconds_delay,\n fpmm,\n maker_base_fee,\n taker_base_fee,\n notifications_enabled,\n neg_risk,\n neg_risk_market_id,\n neg_risk_request_id,\n rewards,\n tags,\n {{ dbt_utils.generate_surrogate_key(\n ['condition_id','_inserted_timestamp']\n ) }} AS dim_markets_id,\n _inserted_timestamp,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n base qualify(ROW_NUMBER() over (PARTITION BY condition_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "bronze__polymarket_markets", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.external_models.bronze__polymarket_markets"]}, "compiled_path": "target/compiled/external_models/models/polymarket/silver/silver__polymarket_markets.sql", "compiled": true, "compiled_code": "\n\nWITH base AS (\n\n SELECT\n condition_id,\n question,\n description,\n tokens,\n token_1_token_id,\n token_1_outcome,\n token_1_winner,\n token_2_token_id,\n token_2_outcome,\n token_2_winner,\n enable_order_book,\n active,\n closed,\n archived,\n accepting_orders,\n accepting_order_timestamp,\n minimum_order_size,\n minimum_tick_size,\n question_id,\n market_slug,\n end_date_iso,\n game_start_time,\n seconds_delay,\n fpmm,\n maker_base_fee,\n taker_base_fee,\n notifications_enabled,\n neg_risk,\n neg_risk_market_id,\n neg_risk_request_id,\n rewards,\n tags,\n _inserted_timestamp\n FROM\n EXTERNAL.bronze.polymarket_markets\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) - INTERVAL '24 hours'\n FROM\n EXTERNAL.silver.polymarket_markets\n )\n\n)\nSELECT\n condition_id,\n question,\n description,\n tokens,\n token_1_token_id,\n token_1_outcome,\n token_1_winner,\n token_2_token_id,\n token_2_outcome,\n token_2_winner,\n enable_order_book,\n active,\n closed,\n archived,\n accepting_orders,\n accepting_order_timestamp,\n minimum_order_size,\n minimum_tick_size,\n question_id,\n market_slug,\n end_date_iso,\n game_start_time,\n seconds_delay,\n fpmm,\n maker_base_fee,\n taker_base_fee,\n notifications_enabled,\n neg_risk,\n neg_risk_market_id,\n neg_risk_request_id,\n rewards,\n tags,\n \n \nmd5(cast(coalesce(cast(condition_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_inserted_timestamp as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS dim_markets_id,\n _inserted_timestamp,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n base qualify(ROW_NUMBER() over (PARTITION BY condition_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.polymarket__dim_markets": {"database": "EXTERNAL", "schema": "polymarket", "name": "polymarket__dim_markets", "resource_type": "model", "package_name": "external_models", "path": "polymarket/gold/polymarket__dim_markets.sql", "original_file_path": "models/polymarket/gold/polymarket__dim_markets.sql", "unique_id": "model.external_models.polymarket__dim_markets", "fqn": ["external_models", "polymarket", "gold", "polymarket__dim_markets"], "alias": "dim_markets", "checksum": {"name": "sha256", "checksum": "56943d0eeca331aeb13efd20a7a1360eb437c13132e687a6fd2817660087404b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["polymarket"], "meta": {"database_tags": {"table": {"PROTOCOL": "POLYMARKET"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["polymarket"], "description": "This table contains all markets and tokens available via the Polymarket CLOB API.", "columns": {"CONDITION_ID": {"name": "CONDITION_ID", "description": "ID of the specific market.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "QUESTION": {"name": "QUESTION", "description": "The actual question the market is based on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DESCRIPTION": {"name": "DESCRIPTION", "description": "A detailed description of the market.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_1_TOKEN_ID": {"name": "TOKEN_1_TOKEN_ID", "description": "Token ID for the first token, available on-chain to make the on-chain data human-readable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_1_OUTCOME": {"name": "TOKEN_1_OUTCOME", "description": "Outcome for the first token, typically \"yes\" or \"no.\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_1_WINNER": {"name": "TOKEN_1_WINNER", "description": "Winner status for the first token.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_2_TOKEN_ID": {"name": "TOKEN_2_TOKEN_ID", "description": "Token ID for the second token, available on-chain to make the on-chain data human-readable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_2_OUTCOME": {"name": "TOKEN_2_OUTCOME", "description": "Outcome for the second token, typically \"yes\" or \"no.\"", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_2_WINNER": {"name": "TOKEN_2_WINNER", "description": "Winner status for the second token.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ENABLE_ORDER_BOOK": {"name": "ENABLE_ORDER_BOOK", "description": "Indicates if the order book is enabled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ACTIVE": {"name": "ACTIVE", "description": "Indicates if the market is currently live.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CLOSED": {"name": "CLOSED", "description": "Indicates if the market is not currently live.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ARCHIVED": {"name": "ARCHIVED", "description": "Indicates if the market is archived.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ACCEPTING_ORDERS": {"name": "ACCEPTING_ORDERS", "description": "Indicates if the market is accepting orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ACCEPTING_ORDER_TIMESTAMP": {"name": "ACCEPTING_ORDER_TIMESTAMP", "description": "Timestamp when the market started accepting orders.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MINIMUM_ORDER_SIZE": {"name": "MINIMUM_ORDER_SIZE", "description": "Minimum size of an order in the market.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MINIMUM_TICK_SIZE": {"name": "MINIMUM_TICK_SIZE", "description": "Minimum tick size for the market.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "QUESTION_ID": {"name": "QUESTION_ID", "description": "ID of the question associated with the market.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "END_DATE_ISO": {"name": "END_DATE_ISO", "description": "End date of the market in ISO format.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "GAME_START_TIME": {"name": "GAME_START_TIME", "description": "Start time of the game/event associated with the market, used to trigger delay.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SECONDS_DELAY": {"name": "SECONDS_DELAY", "description": "Seconds of match delay for in-game trading.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FPMM": {"name": "FPMM", "description": "Fixed Product Market Maker (FPMM) Polygon address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MAKER_BASE_FEE": {"name": "MAKER_BASE_FEE", "description": "Base fee for makers in the market.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TAKER_BASE_FEE": {"name": "TAKER_BASE_FEE", "description": "Base fee for takers in the market.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NEG_RISK": {"name": "NEG_RISK", "description": "Indicates if negative risk is present in the market.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NEG_RISK_MARKET_ID": {"name": "NEG_RISK_MARKET_ID", "description": "Market ID for negative risk.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NEG_RISK_REQUEST_ID": {"name": "NEG_RISK_REQUEST_ID", "description": "Request ID for negative risk.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "REWARDS": {"name": "REWARDS", "description": "Rewards associated with the market.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TAGS": {"name": "TAGS", "description": "All the associated tags in the market, contained in an object.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "POLYMARKET"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/polymarket/gold/polymarket__dim_markets.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["polymarket"], "meta": {"database_tags": {"table": {"PROTOCOL": "POLYMARKET"}}}}, "created_at": 1760113501.4404674, "relation_name": "EXTERNAL.polymarket.dim_markets", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['polymarket'],\n meta={\n 'database_tags':{\n 'table': {\n 'PROTOCOL': 'POLYMARKET'\n }\n }\n }\n) }}\n\nSELECT\n condition_id,\n question,\n description,\n token_1_token_id,\n token_1_outcome,\n token_1_winner,\n token_2_token_id,\n token_2_outcome,\n token_2_winner,\n enable_order_book,\n active,\n closed,\n archived,\n accepting_orders,\n accepting_order_timestamp,\n minimum_order_size,\n minimum_tick_size,\n question_id,\n market_slug,\n end_date_iso,\n game_start_time,\n seconds_delay,\n fpmm,\n maker_base_fee,\n taker_base_fee,\n neg_risk,\n neg_risk_market_id,\n neg_risk_request_id,\n rewards,\n tags\nFROM\n {{ ref('silver__polymarket_markets') }}", "language": "sql", "refs": [{"name": "silver__polymarket_markets", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.external_models.silver__polymarket_markets"]}, "compiled_path": "target/compiled/external_models/models/polymarket/gold/polymarket__dim_markets.sql", "compiled": true, "compiled_code": "\n\nSELECT\n condition_id,\n question,\n description,\n token_1_token_id,\n token_1_outcome,\n token_1_winner,\n token_2_token_id,\n token_2_outcome,\n token_2_winner,\n enable_order_book,\n active,\n closed,\n archived,\n accepting_orders,\n accepting_order_timestamp,\n minimum_order_size,\n minimum_tick_size,\n question_id,\n market_slug,\n end_date_iso,\n game_start_time,\n seconds_delay,\n fpmm,\n maker_base_fee,\n taker_base_fee,\n neg_risk,\n neg_risk_market_id,\n neg_risk_request_id,\n rewards,\n tags\nFROM\n EXTERNAL.silver.polymarket_markets", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__polymarket_markets": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__polymarket_markets", "resource_type": "model", "package_name": "external_models", "path": "polymarket/bronze/bronze__polymarket_markets.sql", "original_file_path": "models/polymarket/bronze/bronze__polymarket_markets.sql", "unique_id": "model.external_models.bronze__polymarket_markets", "fqn": ["external_models", "polymarket", "bronze", "bronze__polymarket_markets"], "alias": "polymarket_markets", "checksum": {"name": "sha256", "checksum": "03e37dfdee8e1f73bb64a172cd9f1877d3f372e30da255b5fa9d9a7cc035c1d4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["polymarket"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "polymarket_market_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["polymarket"], "description": "", "columns": {"CONDITION_ID": {"name": "CONDITION_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/polymarket/bronze/bronze__polymarket_markets.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": "polymarket_market_id", "tags": ["polymarket"]}, "created_at": 1760113501.4413304, "relation_name": "EXTERNAL.bronze.polymarket_markets", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = 'polymarket_market_id',\n tags = ['polymarket']\n) }}\n\nWITH recursive api_results AS (\n\n SELECT\n NULL AS CURSOR,\n 0 AS page_number,\n live.udf_api(\n 'GET',\n 'https://clob.polymarket.com/markets?limit=100',{},{}\n ) AS READ\n UNION ALL\n SELECT\n PARSE_JSON(READ) :next_cursor AS CURSOR,\n page_number + 1 AS page_number,\n live.udf_api(\n 'GET',\n 'https://clob.polymarket.com/markets?limit=100&next_cursor=' || PARSE_JSON(\n READ :data\n ) :next_cursor,{},{}\n ) AS READ\n FROM\n api_results\n WHERE\n PARSE_JSON(\n READ :data\n ) :next_cursor IS NOT NULL\n),\nfinal AS (\n SELECT\n VALUE :condition_id :: STRING AS condition_id,\n VALUE :question :: STRING AS question,\n VALUE :description :: STRING AS description,\n VALUE :tokens AS tokens,\n VALUE :tokens [0] :token_id :: STRING AS token_1_token_id,\n VALUE :tokens [0] :outcome :: STRING AS token_1_outcome,\n VALUE :tokens [0] :winner :: STRING AS token_1_winner,\n VALUE :tokens [1] :token_id :: STRING AS token_2_token_id,\n VALUE :tokens [1] :outcome :: STRING AS token_2_outcome,\n VALUE :tokens [1] :winner :: STRING AS token_2_winner,\n VALUE :enable_order_book :: STRING AS enable_order_book,\n VALUE :active :: BOOLEAN AS active,\n VALUE :closed :: BOOLEAN AS closed,\n VALUE :archived :: BOOLEAN AS archived,\n VALUE :accepting_orders :: BOOLEAN AS accepting_orders,\n VALUE :accepting_order_timestamp :: TIMESTAMP AS accepting_order_timestamp,\n VALUE :minimum_order_size :: INTEGER AS minimum_order_size,\n VALUE :minimum_tick_size :: INTEGER AS minimum_tick_size,\n VALUE :question_id :: STRING AS question_id,\n VALUE :market_slug :: STRING AS market_slug,\n VALUE :end_date_iso :: TIMESTAMP AS end_date_iso,\n VALUE :game_start_time :: TIMESTAMP AS game_start_time,\n VALUE :seconds_delay :: INTEGER AS seconds_delay,\n VALUE :fpmm :: STRING AS fpmm,\n VALUE :maker_base_fee :: INTEGER AS maker_base_fee,\n VALUE :taker_base_fee :: INTEGER AS taker_base_fee,\n VALUE :notifications_enabled :: BOOLEAN AS notifications_enabled,\n VALUE :neg_risk :: BOOLEAN AS neg_risk,\n VALUE :neg_risk_market_id :: STRING AS neg_risk_market_id,\n VALUE :neg_risk_request_id :: STRING AS neg_risk_request_id,\n VALUE :rewards :: variant AS rewards,\n VALUE :tags :: variant AS tags,\n SYSDATE() AS _inserted_timestamp,\n page_number,\n READ :data :count :: STRING AS COUNT,\n READ :data :next_cursor :: STRING AS CURSOR\n FROM\n api_results,\n LATERAL FLATTEN (\n input => READ :data :data\n ) f\n)\nSELECT\n *,\n {{ dbt_utils.generate_surrogate_key(\n ['condition_id', '_inserted_timestamp']\n ) }} AS polymarket_market_id\nFROM\n FINAL\nWHERE\n condition_id <> ''\n AND token_1_token_id <> ''\n\n{% if is_incremental() %}\nAND polymarket_market_id NOT IN (\n SELECT\n DISTINCT polymarket_market_id\n FROM\n {{ this }}\n)\n{% endif %}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental"], "nodes": []}, "compiled_path": "target/compiled/external_models/models/polymarket/bronze/bronze__polymarket_markets.sql", "compiled": true, "compiled_code": "\n\nWITH recursive api_results AS (\n\n SELECT\n NULL AS CURSOR,\n 0 AS page_number,\n live.udf_api(\n 'GET',\n 'https://clob.polymarket.com/markets?limit=100',{},{}\n ) AS READ\n UNION ALL\n SELECT\n PARSE_JSON(READ) :next_cursor AS CURSOR,\n page_number + 1 AS page_number,\n live.udf_api(\n 'GET',\n 'https://clob.polymarket.com/markets?limit=100&next_cursor=' || PARSE_JSON(\n READ :data\n ) :next_cursor,{},{}\n ) AS READ\n FROM\n api_results\n WHERE\n PARSE_JSON(\n READ :data\n ) :next_cursor IS NOT NULL\n),\nfinal AS (\n SELECT\n VALUE :condition_id :: STRING AS condition_id,\n VALUE :question :: STRING AS question,\n VALUE :description :: STRING AS description,\n VALUE :tokens AS tokens,\n VALUE :tokens [0] :token_id :: STRING AS token_1_token_id,\n VALUE :tokens [0] :outcome :: STRING AS token_1_outcome,\n VALUE :tokens [0] :winner :: STRING AS token_1_winner,\n VALUE :tokens [1] :token_id :: STRING AS token_2_token_id,\n VALUE :tokens [1] :outcome :: STRING AS token_2_outcome,\n VALUE :tokens [1] :winner :: STRING AS token_2_winner,\n VALUE :enable_order_book :: STRING AS enable_order_book,\n VALUE :active :: BOOLEAN AS active,\n VALUE :closed :: BOOLEAN AS closed,\n VALUE :archived :: BOOLEAN AS archived,\n VALUE :accepting_orders :: BOOLEAN AS accepting_orders,\n VALUE :accepting_order_timestamp :: TIMESTAMP AS accepting_order_timestamp,\n VALUE :minimum_order_size :: INTEGER AS minimum_order_size,\n VALUE :minimum_tick_size :: INTEGER AS minimum_tick_size,\n VALUE :question_id :: STRING AS question_id,\n VALUE :market_slug :: STRING AS market_slug,\n VALUE :end_date_iso :: TIMESTAMP AS end_date_iso,\n VALUE :game_start_time :: TIMESTAMP AS game_start_time,\n VALUE :seconds_delay :: INTEGER AS seconds_delay,\n VALUE :fpmm :: STRING AS fpmm,\n VALUE :maker_base_fee :: INTEGER AS maker_base_fee,\n VALUE :taker_base_fee :: INTEGER AS taker_base_fee,\n VALUE :notifications_enabled :: BOOLEAN AS notifications_enabled,\n VALUE :neg_risk :: BOOLEAN AS neg_risk,\n VALUE :neg_risk_market_id :: STRING AS neg_risk_market_id,\n VALUE :neg_risk_request_id :: STRING AS neg_risk_request_id,\n VALUE :rewards :: variant AS rewards,\n VALUE :tags :: variant AS tags,\n SYSDATE() AS _inserted_timestamp,\n page_number,\n READ :data :count :: STRING AS COUNT,\n READ :data :next_cursor :: STRING AS CURSOR\n FROM\n api_results,\n LATERAL FLATTEN (\n input => READ :data :data\n ) f\n)\nSELECT\n *,\n \n \nmd5(cast(coalesce(cast(condition_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_inserted_timestamp as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS polymarket_market_id\nFROM\n FINAL\nWHERE\n condition_id <> ''\n AND token_1_token_id <> ''\n\n\nAND polymarket_market_id NOT IN (\n SELECT\n DISTINCT polymarket_market_id\n FROM\n EXTERNAL.bronze.polymarket_markets\n)\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.silver__dates": {"database": "EXTERNAL", "schema": "silver", "name": "silver__dates", "resource_type": "model", "package_name": "external_models", "path": "silver/silver__dates.sql", "original_file_path": "models/silver/silver__dates.sql", "unique_id": "model.external_models.silver__dates", "fqn": ["external_models", "silver", "silver__dates"], "alias": "dates", "checksum": {"name": "sha256", "checksum": "7e4dc32cda83522541241f94e8c6f440dee02719c4725409a6b152ed8d9958b0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["core"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["core"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "table", "tags": ["core"]}, "created_at": 1760113497.7691462, "relation_name": "EXTERNAL.silver.dates", "raw_code": "{{ config(\n materialized = \"table\",\n tags = ['core']\n) }}\n{{ dbt_date.get_date_dimension(\n '2017-01-01',\n '2027-12-31'\n) }}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_date.get_date_dimension"], "nodes": []}, "compiled_path": "target/compiled/external_models/models/silver/silver__dates.sql", "compiled": true, "compiled_code": "\n\n \nwith base_dates as (\n \n with date_spine as\n(\n\n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 4016\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n dateadd(\n day,\n row_number() over (order by 1) - 1,\n cast('2017-01-01' as timestamp)\n )\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2027-12-31' as timestamp)\n\n)\n\nselect * from filtered\n\n\n\n)\nselect\n cast(d.date_day as timestamp) as date_day\nfrom\n date_spine d\n\n\n),\ndates_with_prior_year_dates as (\n\n select\n cast(d.date_day as date) as date_day,\n cast(\n\n dateadd(\n year,\n -1,\n d.date_day\n )\n\n as date) as prior_year_date_day,\n cast(\n\n dateadd(\n day,\n -364,\n d.date_day\n )\n\n as date) as prior_year_over_year_date_day\n from\n \tbase_dates d\n\n)\nselect\n d.date_day,\n cast(\n\n dateadd(\n day,\n -1,\n d.date_day\n )\n\n as date) as prior_date_day,\n cast(\n\n dateadd(\n day,\n 1,\n d.date_day\n )\n\n as date) as next_date_day,\n d.prior_year_date_day as prior_year_date_day,\n d.prior_year_over_year_date_day,\n case\n when date_part('dayofweek', d.date_day) = 7 then 1\n else date_part('dayofweek', d.date_day) + 1\n end as day_of_week,\n date_part('dayofweekiso', d.date_day) as day_of_week_iso,\n -- long version not implemented on Snowflake so we're doing it manually :/\n case dayname(d.date_day)\n when 'Mon' then 'Monday'\n when 'Tue' then 'Tuesday'\n when 'Wed' then 'Wednesday'\n when 'Thu' then 'Thursday'\n when 'Fri' then 'Friday'\n when 'Sat' then 'Saturday'\n when 'Sun' then 'Sunday'\n end as day_of_week_name,\n dayname(d.date_day) as day_of_week_name_short,\n date_part('day', d.date_day) as day_of_month,\n date_part('dayofyear', d.date_day) as day_of_year,\n\n \n \n cast(\n\n dateadd(\n day,\n -1 * (case\n when date_part('dayofweek', d.date_day) = 7 then 1\n else date_part('dayofweek', d.date_day) + 1\n end - 1),\n d.date_day\n )\n\n as date) as week_start_date,\n cast(\n\n dateadd(\n day,\n 6,\n \n \n cast(\n\n dateadd(\n day,\n -1 * (case\n when date_part('dayofweek', d.date_day) = 7 then 1\n else date_part('dayofweek', d.date_day) + 1\n end - 1),\n d.date_day\n )\n\n as date)\n )\n\n as date) as week_end_date,\n \n \n cast(\n\n dateadd(\n day,\n -1 * (case\n when date_part('dayofweek', d.prior_year_over_year_date_day) = 7 then 1\n else date_part('dayofweek', d.prior_year_over_year_date_day) + 1\n end - 1),\n d.prior_year_over_year_date_day\n )\n\n as date) as prior_year_week_start_date,\n cast(\n\n dateadd(\n day,\n 6,\n \n \n cast(\n\n dateadd(\n day,\n -1 * (case\n when date_part('dayofweek', d.prior_year_over_year_date_day) = 7 then 1\n else date_part('dayofweek', d.prior_year_over_year_date_day) + 1\n end - 1),\n d.prior_year_over_year_date_day\n )\n\n as date)\n )\n\n as date) as prior_year_week_end_date,\n cast(date_part('week', d.date_day) as integer) as week_of_year,\n\n cast(date_trunc('week', d.date_day) as date) as iso_week_start_date,\n cast(\n\n dateadd(\n day,\n 6,\n cast(date_trunc('week', d.date_day) as date)\n )\n\n as date) as iso_week_end_date,\n cast(date_trunc('week', d.prior_year_over_year_date_day) as date) as prior_year_iso_week_start_date,\n cast(\n\n dateadd(\n day,\n 6,\n cast(date_trunc('week', d.prior_year_over_year_date_day) as date)\n )\n\n as date) as prior_year_iso_week_end_date,\n cast(date_part('weekiso', d.date_day) as integer) as iso_week_of_year,\n\n cast(date_part('week', d.prior_year_over_year_date_day) as integer) as prior_year_week_of_year,\n cast(date_part('weekiso', d.prior_year_over_year_date_day) as integer) as prior_year_iso_week_of_year,\n\n cast(date_part('month', d.date_day) as integer) as month_of_year,\n to_char(d.date_day, 'MMMM') as month_name,\n to_char(d.date_day, 'MON') as month_name_short,\n\n cast(date_trunc('month', d.date_day) as date) as month_start_date,\n cast(cast(\n \n\n dateadd(\n day,\n -1,\n \n\n dateadd(\n month,\n 1,\n date_trunc('month', d.date_day)\n )\n\n\n )\n\n\n as date) as date) as month_end_date,\n\n cast(date_trunc('month', d.prior_year_date_day) as date) as prior_year_month_start_date,\n cast(cast(\n \n\n dateadd(\n day,\n -1,\n \n\n dateadd(\n month,\n 1,\n date_trunc('month', d.prior_year_date_day)\n )\n\n\n )\n\n\n as date) as date) as prior_year_month_end_date,\n\n cast(date_part('quarter', d.date_day) as integer) as quarter_of_year,\n cast(date_trunc('quarter', d.date_day) as date) as quarter_start_date,\n cast(cast(\n \n\n dateadd(\n day,\n -1,\n \n\n dateadd(\n quarter,\n 1,\n date_trunc('quarter', d.date_day)\n )\n\n\n )\n\n\n as date) as date) as quarter_end_date,\n\n cast(date_part('year', d.date_day) as integer) as year_number,\n cast(date_trunc('year', d.date_day) as date) as year_start_date,\n cast(cast(\n \n\n dateadd(\n day,\n -1,\n \n\n dateadd(\n year,\n 1,\n date_trunc('year', d.date_day)\n )\n\n\n )\n\n\n as date) as date) as year_end_date\nfrom\n dates_with_prior_year_dates d\norder by 1\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.silver_aptos__lync": {"database": "EXTERNAL", "schema": "silver_aptos", "name": "silver_aptos__lync", "resource_type": "model", "package_name": "external_models", "path": "aptos_gas/lync/silver_aptos__lync.sql", "original_file_path": "models/aptos_gas/lync/silver_aptos__lync.sql", "unique_id": "model.external_models.silver_aptos__lync", "fqn": ["external_models", "aptos_gas", "lync", "silver_aptos__lync"], "alias": "lync", "checksum": {"name": "sha256", "checksum": "cafed4fb7ac141bd9f60b1f19b3c5ebce2faabf05a75528cf856e4fafb40f1f8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["aptos_gas"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["metric", "metric_date"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["aptos_gas"], "description": "Lyncwold paymaster data", "columns": {"metric": {"name": "metric", "description": "The metric name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "metric_date": {"name": "metric_date", "description": "The date of the metric measurement", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "metric_count": {"name": "metric_count", "description": "Reported metric count", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "metric_amount": {"name": "metric_amount", "description": "Reported metric amount", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "metric_amount_in_usd": {"name": "metric_amount_in_usd", "description": "Reported metric amount in USD", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/aptos_gas/lync/silver_aptos__lync.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": ["metric", "metric_date"], "tags": ["aptos_gas"]}, "created_at": 1760113501.4521446, "relation_name": "EXTERNAL.silver_aptos.lync", "raw_code": "{{ config (\n materialized = \"incremental\",\n unique_key = ['metric','metric_date'],\n tags = ['aptos_gas'],\n) }}\n\nWITH base AS (\n\n SELECT\n metric,\n DATA,\n inserted_timestamp\n FROM\n {{ ref('bronze_aptos__lync_data') }}\n\n{% if is_incremental() %}\nWHERE\n modified_timestamp >= (\n SELECT\n MAX(modified_timestamp)\n FROM\n {{ this }}\n )\n{% endif %}\n)\nSELECT\n A.metric,\n b.value :time_stamp :: DATE AS metric_date,\n b.value :count :: bigint AS metric_count,\n b.value :amount :: FLOAT AS metric_amount,\n b.value :amountInUSD :: FLOAT AS metric_amount_in_usd,\n {{ dbt_utils.generate_surrogate_key([ 'metric', 'metric_date']) }} AS lync_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n base A,\n LATERAL FLATTEN(\n input => A.data :data :data :result\n ) b qualify ROW_NUMBER() over (\n PARTITION BY A.metric,\n b.value :time_stamp :: DATE\n ORDER BY\n inserted_timestamp DESC\n ) = 1", "language": "sql", "refs": [{"name": "bronze_aptos__lync_data", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.external_models.bronze_aptos__lync_data"]}, "compiled_path": "target/compiled/external_models/models/aptos_gas/lync/silver_aptos__lync.sql", "compiled": true, "compiled_code": "\n\nWITH base AS (\n\n SELECT\n metric,\n DATA,\n inserted_timestamp\n FROM\n EXTERNAL.bronze_aptos.lync_data\n\n\nWHERE\n modified_timestamp >= (\n SELECT\n MAX(modified_timestamp)\n FROM\n EXTERNAL.silver_aptos.lync\n )\n\n)\nSELECT\n A.metric,\n b.value :time_stamp :: DATE AS metric_date,\n b.value :count :: bigint AS metric_count,\n b.value :amount :: FLOAT AS metric_amount,\n b.value :amountInUSD :: FLOAT AS metric_amount_in_usd,\n \n \nmd5(cast(coalesce(cast(metric as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(metric_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS lync_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'f3fd32af-64d3-4c75-bfb6-95e2946ea073' AS _invocation_id\nFROM\n base A,\n LATERAL FLATTEN(\n input => A.data :data :data :result\n ) b qualify ROW_NUMBER() over (\n PARTITION BY A.metric,\n b.value :time_stamp :: DATE\n ORDER BY\n inserted_timestamp DESC\n ) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze_aptos__lync_data": {"database": "EXTERNAL", "schema": "bronze_aptos", "name": "bronze_aptos__lync_data", "resource_type": "model", "package_name": "external_models", "path": "aptos_gas/lync/bronze_aptos__lync_data.sql", "original_file_path": "models/aptos_gas/lync/bronze_aptos__lync_data.sql", "unique_id": "model.external_models.bronze_aptos__lync_data", "fqn": ["external_models", "aptos_gas", "lync", "bronze_aptos__lync_data"], "alias": "lync_data", "checksum": {"name": "sha256", "checksum": "89f6ace3e0cf062dc36dec7f75e96f1052279ce7361bc9933d708e3e55657e1b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["aptos_gas"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["aptos_gas"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "tags": ["aptos_gas"]}, "created_at": 1760113497.8978233, "relation_name": "EXTERNAL.bronze_aptos.lync_data", "raw_code": "{{ config (\n materialized = \"incremental\",\n tags = ['aptos_gas'],\n) }}\n\nWITH paths AS (\n\n SELECT\n *\n FROM\n VALUES\n (\n 'total-transactions',\n 'Total Transactions'\n ),\n (\n 'recurring-users',\n 'Total Recurring Users'\n ),\n (\n 'retention',\n 'Total Retention Users'\n ),\n (\n 'gas-consumed',\n 'Total Gas Consumed'\n ),\n (\n 'accounts-created',\n 'Total Accounts Created'\n ),\n (\n 'accounts-creation-gas-used',\n 'Total Gas Consumed in Account Creation'\n ) AS t(\n suffix,\n metric\n )\n)\nSELECT\n metric,\n {{ target.database }}.live.udf_api(\n 'GET',\n '{Service}/api/v1/analytics/' || suffix || '?period=daily&type=global',\n OBJECT_CONSTRUCT(),\n OBJECT_CONSTRUCT(),\n 'Vault/prod/external/aptos/lync'\n ) AS DATA,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n paths", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": "target/compiled/external_models/models/aptos_gas/lync/bronze_aptos__lync_data.sql", "compiled": true, "compiled_code": "\n\nWITH paths AS (\n\n SELECT\n *\n FROM\n VALUES\n (\n 'total-transactions',\n 'Total Transactions'\n ),\n (\n 'recurring-users',\n 'Total Recurring Users'\n ),\n (\n 'retention',\n 'Total Retention Users'\n ),\n (\n 'gas-consumed',\n 'Total Gas Consumed'\n ),\n (\n 'accounts-created',\n 'Total Accounts Created'\n ),\n (\n 'accounts-creation-gas-used',\n 'Total Gas Consumed in Account Creation'\n ) AS t(\n suffix,\n metric\n )\n)\nSELECT\n metric,\n EXTERNAL.live.udf_api(\n 'GET',\n '{Service}/api/v1/analytics/' || suffix || '?period=daily&type=global',\n OBJECT_CONSTRUCT(),\n OBJECT_CONSTRUCT(),\n 'Vault/prod/external/aptos/lync'\n ) AS DATA,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'f3fd32af-64d3-4c75-bfb6-95e2946ea073' AS _invocation_id\nFROM\n paths", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze_aptos__shinam_data": {"database": "EXTERNAL", "schema": "bronze_aptos", "name": "bronze_aptos__shinam_data", "resource_type": "model", "package_name": "external_models", "path": "aptos_gas/shinam/bronze_aptos__shinam_data.sql", "original_file_path": "models/aptos_gas/shinam/bronze_aptos__shinam_data.sql", "unique_id": "model.external_models.bronze_aptos__shinam_data", "fqn": ["external_models", "aptos_gas", "shinam", "bronze_aptos__shinam_data"], "alias": "shinam_data", "checksum": {"name": "sha256", "checksum": "9253d039628d3174b30269adcdea1358c986b49d9346beab5fd39c4888e5ca29"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["aptos_gas"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["aptos_gas"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["aptos_gas"]}, "created_at": 1760113497.904314, "relation_name": "EXTERNAL.bronze_aptos.shinam_data", "raw_code": "{{ config (\n materialized = \"view\",\n tags = ['aptos_gas'],\n) }}\n\nSELECT\n TO_DATE (\n file_date :: STRING,\n 'YYYYMMDD'\n ) AS metric_date,\n fund_name,\n workspace_name,\n contact_email,\n fund_balance_remaining :: bigint AS fund_balance_remaining,\n total_sponsorships :: bigint AS total_sponsorships,\n total_fees :: bigint AS total_fees\nFROM\n {{ source(\n 'external_bronze',\n 'aptos_shinam'\n ) }}", "language": "sql", "refs": [], "sources": [["external_bronze", "aptos_shinam"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.external_bronze.aptos_shinam"]}, "compiled_path": "target/compiled/external_models/models/aptos_gas/shinam/bronze_aptos__shinam_data.sql", "compiled": true, "compiled_code": "\n\nSELECT\n TO_DATE (\n file_date :: STRING,\n 'YYYYMMDD'\n ) AS metric_date,\n fund_name,\n workspace_name,\n contact_email,\n fund_balance_remaining :: bigint AS fund_balance_remaining,\n total_sponsorships :: bigint AS total_sponsorships,\n total_fees :: bigint AS total_fees\nFROM\n external.bronze.aptos_shinam", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.silver_aptos__shinam": {"database": "EXTERNAL", "schema": "silver_aptos", "name": "silver_aptos__shinam", "resource_type": "model", "package_name": "external_models", "path": "aptos_gas/shinam/silver_aptos__shinam.sql", "original_file_path": "models/aptos_gas/shinam/silver_aptos__shinam.sql", "unique_id": "model.external_models.silver_aptos__shinam", "fqn": ["external_models", "aptos_gas", "shinam", "silver_aptos__shinam"], "alias": "shinam", "checksum": {"name": "sha256", "checksum": "b0ea01cad4fa1128e094643f5d5a2995dcdc2e5e272e932c5ec5f9e5e4dc8f7f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["aptos_gas"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["metric_date"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["aptos_gas"], "description": "Shinam data", "columns": {"metric_date": {"name": "metric_date", "description": "The date of the metric measurement", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fund_name": {"name": "fund_name", "description": "Then the of the fund", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "workspace_name": {"name": "workspace_name", "description": "The name of the workspace", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contact_email": {"name": "contact_email", "description": "The contact email of the fund", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fund_balance_remaining": {"name": "fund_balance_remaining", "description": "The fund balance remaining", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_sponsorships": {"name": "total_sponsorships", "description": "The total sponsorships", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_fees": {"name": "total_fees", "description": "The total fees paid by the fund", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/aptos_gas/shinam/silver_aptos__shinam.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": ["metric_date"], "tags": ["aptos_gas"]}, "created_at": 1760113501.4634414, "relation_name": "EXTERNAL.silver_aptos.shinam", "raw_code": "{{ config (\n materialized = \"incremental\",\n incremental_strategy = 'delete+insert',\n unique_key = ['metric_date'],\n tags = ['aptos_gas'],\n) }}\n\nSELECT\n metric_date,\n fund_name,\n workspace_name,\n contact_email,\n fund_balance_remaining,\n total_sponsorships,\n total_fees,\n {{ dbt_utils.generate_surrogate_key([ 'metric_date', 'fund_name','workspace_name']) }} AS shinam_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n {{ ref('bronze_aptos__shinam_data') }}\n\n{% if is_incremental() %}\nWHERE\n metric_date >= (\n SELECT\n MAX(metric_date)\n FROM\n {{ this }}\n )\n{% endif %}", "language": "sql", "refs": [{"name": "bronze_aptos__shinam_data", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental"], "nodes": ["model.external_models.bronze_aptos__shinam_data"]}, "compiled_path": "target/compiled/external_models/models/aptos_gas/shinam/silver_aptos__shinam.sql", "compiled": true, "compiled_code": "\n\nSELECT\n metric_date,\n fund_name,\n workspace_name,\n contact_email,\n fund_balance_remaining,\n total_sponsorships,\n total_fees,\n \n \nmd5(cast(coalesce(cast(metric_date as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(fund_name as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(workspace_name as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS shinam_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'f3fd32af-64d3-4c75-bfb6-95e2946ea073' AS _invocation_id\nFROM\n EXTERNAL.bronze_aptos.shinam_data\n\n\nWHERE\n metric_date >= (\n SELECT\n MAX(metric_date)\n FROM\n EXTERNAL.silver_aptos.shinam\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.silver__dnv_tokens": {"database": "EXTERNAL", "schema": "silver", "name": "silver__dnv_tokens", "resource_type": "model", "package_name": "external_models", "path": "deepnftvalue/silver/silver__dnv_tokens.sql", "original_file_path": "models/deepnftvalue/silver/silver__dnv_tokens.sql", "unique_id": "model.external_models.silver__dnv_tokens", "fqn": ["external_models", "deepnftvalue", "silver", "silver__dnv_tokens"], "alias": "dnv_tokens", "checksum": {"name": "sha256", "checksum": "580dcc1e856fdc4a2ec62eafb7acdc6444c8776e1af4b9c66ac82d8dad5d8d29"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["stale"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": "_id", "tags": ["stale"]}, "created_at": 1760113497.915496, "relation_name": "EXTERNAL.silver.dnv_tokens", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = '_id',\n tags = ['stale']\n) }}\n\nWITH base AS (\n\n SELECT\n resp,\n _inserted_timestamp,\n collection_slug AS slug\n FROM\n {{ ref('bronze__dnv_tokens') }}\n\n{% if is_incremental() %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n {{ this }}\n )\n{% endif %}\n),\nFINAL AS (\n SELECT\n _inserted_timestamp,\n slug,\n VALUE :token_id AS token_id,\n VALUE :active_offer AS active_offer,\n VALUE :attributes AS attributes,\n VALUE :attributes_synthetic AS attributes_synthetic,\n VALUE :collection AS collection,\n VALUE :image AS image,\n VALUE :is_flagged AS is_flagged,\n VALUE :last_sale AS last_sale,\n VALUE :owner AS owner,\n VALUE :rarity AS rarity,\n VALUE :rarity_rank AS rarity_rank,\n VALUE :top_bid AS top_bid,\n VALUE :valuation AS valuation\n FROM\n base,\n LATERAL FLATTEN(\n input => resp :data :results\n )\n)\nSELECT\n token_id,\n active_offer,\n attributes,\n attributes_synthetic,\n collection :contract :: STRING AS contract_address,\n collection :name :: STRING AS collection_name,\n image,\n is_flagged,\n last_sale,\n owner,\n rarity,\n rarity_rank,\n top_bid,\n valuation,\n _inserted_timestamp,\n CONCAT(\n slug,\n '-',\n token_id\n ) AS _id\nFROM\n FINAL qualify ROW_NUMBER() over (\n PARTITION BY _id\n ORDER BY\n _inserted_timestamp DESC\n ) = 1", "language": "sql", "refs": [{"name": "bronze__dnv_tokens", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.external_models.bronze__dnv_tokens"]}, "compiled_path": "target/compiled/external_models/models/deepnftvalue/silver/silver__dnv_tokens.sql", "compiled": true, "compiled_code": "\n\nWITH base AS (\n\n SELECT\n resp,\n _inserted_timestamp,\n collection_slug AS slug\n FROM\n EXTERNAL.bronze.dnv_tokens\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n EXTERNAL.silver.dnv_tokens\n )\n\n),\nFINAL AS (\n SELECT\n _inserted_timestamp,\n slug,\n VALUE :token_id AS token_id,\n VALUE :active_offer AS active_offer,\n VALUE :attributes AS attributes,\n VALUE :attributes_synthetic AS attributes_synthetic,\n VALUE :collection AS collection,\n VALUE :image AS image,\n VALUE :is_flagged AS is_flagged,\n VALUE :last_sale AS last_sale,\n VALUE :owner AS owner,\n VALUE :rarity AS rarity,\n VALUE :rarity_rank AS rarity_rank,\n VALUE :top_bid AS top_bid,\n VALUE :valuation AS valuation\n FROM\n base,\n LATERAL FLATTEN(\n input => resp :data :results\n )\n)\nSELECT\n token_id,\n active_offer,\n attributes,\n attributes_synthetic,\n collection :contract :: STRING AS contract_address,\n collection :name :: STRING AS collection_name,\n image,\n is_flagged,\n last_sale,\n owner,\n rarity,\n rarity_rank,\n top_bid,\n valuation,\n _inserted_timestamp,\n CONCAT(\n slug,\n '-',\n token_id\n ) AS _id\nFROM\n FINAL qualify ROW_NUMBER() over (\n PARTITION BY _id\n ORDER BY\n _inserted_timestamp DESC\n ) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.silver__dnv_valuations": {"database": "EXTERNAL", "schema": "silver", "name": "silver__dnv_valuations", "resource_type": "model", "package_name": "external_models", "path": "deepnftvalue/silver/silver__dnv_valuations.sql", "original_file_path": "models/deepnftvalue/silver/silver__dnv_valuations.sql", "unique_id": "model.external_models.silver__dnv_valuations", "fqn": ["external_models", "deepnftvalue", "silver", "silver__dnv_valuations"], "alias": "dnv_valuations", "checksum": {"name": "sha256", "checksum": "be59115de187a87607c86de6246594541c4055efddaf97253a1dc1fc93e17659"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["valuation_date::DATE"]}, "tags": ["stale"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": "_id", "incremental_strategy": "delete+insert", "cluster_by": ["valuation_date::DATE"], "tags": ["stale"]}, "created_at": 1760113497.9228866, "relation_name": "EXTERNAL.silver.dnv_valuations", "raw_code": "-- depends_on: {{ ref('bronze__streamline_valuations') }}\n{{ config(\n materialized = 'incremental',\n unique_key = \"_id\",\n incremental_strategy = \"delete+insert\",\n cluster_by = ['valuation_date::DATE'],\n tags = ['stale']\n) }}\n\nWITH base AS (\n\n SELECT\n collection_address,\n collection_name,\n token_id,\n price,\n valuation_date,\n currency,\n _inserted_timestamp,\n collection_slug\n FROM\n\n{% if is_incremental() %}\n{{ ref('bronze__streamline_valuations') }}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n ) :: DATE\n FROM\n {{ this }}\n )\n{% else %}\n {{ ref('bronze__streamline_fr_valuations') }}\n{% endif %}\n)\nSELECT\n valuation_date,\n collection_name,\n LOWER(collection_address) AS collection_address,\n token_id,\n currency,\n price,\n collection_slug,\n _inserted_timestamp,\n CONCAT(\n collection_slug,\n '-',\n token_id,\n '-',\n valuation_date\n ) AS _id\nFROM\n base qualify ROW_NUMBER() over (\n PARTITION BY _id\n ORDER BY\n _inserted_timestamp DESC\n ) = 1", "language": "sql", "refs": [{"name": "bronze__streamline_valuations", "package": null, "version": null}, {"name": "bronze__streamline_fr_valuations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.external_models.bronze__streamline_valuations", "model.external_models.bronze__streamline_fr_valuations"]}, "compiled_path": "target/compiled/external_models/models/deepnftvalue/silver/silver__dnv_valuations.sql", "compiled": true, "compiled_code": "-- depends_on: EXTERNAL.bronze.streamline_valuations\n\n\nWITH base AS (\n\n SELECT\n collection_address,\n collection_name,\n token_id,\n price,\n valuation_date,\n currency,\n _inserted_timestamp,\n collection_slug\n FROM\n\n\nEXTERNAL.bronze.streamline_valuations\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n ) :: DATE\n FROM\n EXTERNAL.silver.dnv_valuations\n )\n\n)\nSELECT\n valuation_date,\n collection_name,\n LOWER(collection_address) AS collection_address,\n token_id,\n currency,\n price,\n collection_slug,\n _inserted_timestamp,\n CONCAT(\n collection_slug,\n '-',\n token_id,\n '-',\n valuation_date\n ) AS _id\nFROM\n base qualify ROW_NUMBER() over (\n PARTITION BY _id\n ORDER BY\n _inserted_timestamp DESC\n ) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.silver__dnv_collections": {"database": "EXTERNAL", "schema": "silver", "name": "silver__dnv_collections", "resource_type": "model", "package_name": "external_models", "path": "deepnftvalue/silver/silver__dnv_collections.sql", "original_file_path": "models/deepnftvalue/silver/silver__dnv_collections.sql", "unique_id": "model.external_models.silver__dnv_collections", "fqn": ["external_models", "deepnftvalue", "silver", "silver__dnv_collections"], "alias": "dnv_collections", "checksum": {"name": "sha256", "checksum": "2756a7936cca9f3a3a62acd787efc8671292de2a8b0e69e89cdd7efdc879692e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["stale"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": "_id", "tags": ["stale"]}, "created_at": 1760113497.9302452, "relation_name": "EXTERNAL.silver.dnv_collections", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = '_id',\n tags = ['stale']\n) }}\n\nWITH base AS (\n\n SELECT\n resp,\n _inserted_timestamp\n FROM\n {{ ref('bronze__dnv_collections') }}\n\n{% if is_incremental() %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n {{ this }}\n )\n{% endif %}\n),\nFINAL AS (\n SELECT\n _inserted_timestamp,\n resp :data :attributes AS attributes,\n resp :data :contract_address :: STRING AS collection_address,\n resp :data :floor_price :: FLOAT AS floor_price,\n resp :data :name :: STRING AS collection_name,\n resp :data :slug :: STRING AS slug,\n resp :data :valuation_max :: FLOAT AS valuation_max,\n resp :data :valuation_min :: FLOAT AS valuation_min\n FROM\n base\n)\nSELECT\n _inserted_timestamp,\n attributes,\n collection_address,\n floor_price,\n collection_name,\n valuation_max,\n valuation_min,\n slug AS _id\nFROM\n FINAL\nWHERE\n slug IS NOT NULL qualify ROW_NUMBER() over (\n PARTITION BY _id\n ORDER BY\n _inserted_timestamp DESC\n ) = 1", "language": "sql", "refs": [{"name": "bronze__dnv_collections", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.external_models.bronze__dnv_collections"]}, "compiled_path": "target/compiled/external_models/models/deepnftvalue/silver/silver__dnv_collections.sql", "compiled": true, "compiled_code": "\n\nWITH base AS (\n\n SELECT\n resp,\n _inserted_timestamp\n FROM\n EXTERNAL.bronze.dnv_collections\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(\n _inserted_timestamp\n )\n FROM\n EXTERNAL.silver.dnv_collections\n )\n\n),\nFINAL AS (\n SELECT\n _inserted_timestamp,\n resp :data :attributes AS attributes,\n resp :data :contract_address :: STRING AS collection_address,\n resp :data :floor_price :: FLOAT AS floor_price,\n resp :data :name :: STRING AS collection_name,\n resp :data :slug :: STRING AS slug,\n resp :data :valuation_max :: FLOAT AS valuation_max,\n resp :data :valuation_min :: FLOAT AS valuation_min\n FROM\n base\n)\nSELECT\n _inserted_timestamp,\n attributes,\n collection_address,\n floor_price,\n collection_name,\n valuation_max,\n valuation_min,\n slug AS _id\nFROM\n FINAL\nWHERE\n slug IS NOT NULL qualify ROW_NUMBER() over (\n PARTITION BY _id\n ORDER BY\n _inserted_timestamp DESC\n ) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.silver__dnv_token_requests": {"database": "EXTERNAL", "schema": "silver", "name": "silver__dnv_token_requests", "resource_type": "model", "package_name": "external_models", "path": "deepnftvalue/silver/requests/silver__dnv_token_requests.sql", "original_file_path": "models/deepnftvalue/silver/requests/silver__dnv_token_requests.sql", "unique_id": "model.external_models.silver__dnv_token_requests", "fqn": ["external_models", "deepnftvalue", "silver", "requests", "silver__dnv_token_requests"], "alias": "dnv_token_requests", "checksum": {"name": "sha256", "checksum": "2971d5db34c7c39cead31f00a76c620c7b149617cdaafcf45725190dcf27b941"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["stale"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "table", "tags": ["stale"]}, "created_at": 1760113497.93687, "relation_name": "EXTERNAL.silver.dnv_token_requests", "raw_code": "{{ config(\n materialized = 'table',\n tags = ['stale']\n) }}\n\nWITH slugs AS (\n\n SELECT\n collection_slug,\n total_supply\n FROM\n {{ ref('bronze__dnv_collection_slugs') }}\n),\noffsets AS (\n SELECT\n 1000 AS limiter\n),\ngenerate_sequence AS (\n SELECT\n SEQ4() AS seq\n FROM\n TABLE(GENERATOR(rowcount => 100000))\n),\nlimits AS (\n SELECT\n *,\n seq * limiter AS offset\n FROM\n generate_sequence\n JOIN offsets\n ON 1 = 1\n JOIN slugs\n ON seq * limiter < total_supply\n)\nSELECT\n *,\n CASE\n seq\n WHEN 0 THEN CONCAT(\n 'https://api.deepnftvalue.com/v1/tokens/',\n collection_slug,\n '?limit=',\n limiter\n )\n ELSE CONCAT(\n 'https://api.deepnftvalue.com/v1/tokens/',\n collection_slug,\n '?limit=',\n limiter,\n '&offset=',\n offset\n )\n END AS api_url,\n CONCAT(api_url, '-', SYSDATE() :: DATE) AS _id\nFROM\n limits", "language": "sql", "refs": [{"name": "bronze__dnv_collection_slugs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.external_models.bronze__dnv_collection_slugs"]}, "compiled_path": "target/compiled/external_models/models/deepnftvalue/silver/requests/silver__dnv_token_requests.sql", "compiled": true, "compiled_code": "\n\nWITH slugs AS (\n\n SELECT\n collection_slug,\n total_supply\n FROM\n EXTERNAL.bronze.dnv_collection_slugs\n),\noffsets AS (\n SELECT\n 1000 AS limiter\n),\ngenerate_sequence AS (\n SELECT\n SEQ4() AS seq\n FROM\n TABLE(GENERATOR(rowcount => 100000))\n),\nlimits AS (\n SELECT\n *,\n seq * limiter AS offset\n FROM\n generate_sequence\n JOIN offsets\n ON 1 = 1\n JOIN slugs\n ON seq * limiter < total_supply\n)\nSELECT\n *,\n CASE\n seq\n WHEN 0 THEN CONCAT(\n 'https://api.deepnftvalue.com/v1/tokens/',\n collection_slug,\n '?limit=',\n limiter\n )\n ELSE CONCAT(\n 'https://api.deepnftvalue.com/v1/tokens/',\n collection_slug,\n '?limit=',\n limiter,\n '&offset=',\n offset\n )\n END AS api_url,\n CONCAT(api_url, '-', SYSDATE() :: DATE) AS _id\nFROM\n limits", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.deepnftvalue__fact_tokens": {"database": "EXTERNAL", "schema": "deepnftvalue", "name": "deepnftvalue__fact_tokens", "resource_type": "model", "package_name": "external_models", "path": "deepnftvalue/gold/deepnftvalue__fact_tokens.sql", "original_file_path": "models/deepnftvalue/gold/deepnftvalue__fact_tokens.sql", "unique_id": "model.external_models.deepnftvalue__fact_tokens", "fqn": ["external_models", "deepnftvalue", "gold", "deepnftvalue__fact_tokens"], "alias": "fact_tokens", "checksum": {"name": "sha256", "checksum": "da3cd563ba2da6b628fa8c3808bde92005df8421a89d43ca778ec8c01efbdde6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEEPNFTVALUE"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["stale"], "description": "Deprecating soon! This table will be removed on December 4th, 2024 and is no longer updated.", "columns": {}, "meta": {"database_tags": {"table": {"PROTOCOL": "DEEPNFTVALUE"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/deepnftvalue/gold/deepnftvalue__fact_tokens.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "meta": {"database_tags": {"table": {"PROTOCOL": "DEEPNFTVALUE"}}}, "tags": ["stale"]}, "created_at": 1760113501.485885, "relation_name": "EXTERNAL.deepnftvalue.fact_tokens", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'DEEPNFTVALUE' } } },\n tags = ['stale']\n) }}\n\nSELECT\n collection_name,\n LOWER(contract_address) AS collection_address,\n token_id :: INTEGER AS token_id,\n active_offer AS active_offer,\n attributes,\n attributes_synthetic,\n image,\n CASE\n WHEN is_flagged :: STRING = 'true' THEN TRUE\n ELSE FALSE\n END is_flagged,\n last_sale :: OBJECT AS last_sale,\n owner :: OBJECT AS owner,\n rarity :: FLOAT AS rarity,\n rarity_rank :: INTEGER AS rarity_rank,\n top_bid :: OBJECT AS top_bid,\n valuation :: OBJECT AS valuation,\n _inserted_timestamp AS updated_timestamp\nFROM\n {{ ref('silver__dnv_tokens') }}", "language": "sql", "refs": [{"name": "silver__dnv_tokens", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.external_models.silver__dnv_tokens"]}, "compiled_path": "target/compiled/external_models/models/deepnftvalue/gold/deepnftvalue__fact_tokens.sql", "compiled": true, "compiled_code": "\n\nSELECT\n collection_name,\n LOWER(contract_address) AS collection_address,\n token_id :: INTEGER AS token_id,\n active_offer AS active_offer,\n attributes,\n attributes_synthetic,\n image,\n CASE\n WHEN is_flagged :: STRING = 'true' THEN TRUE\n ELSE FALSE\n END is_flagged,\n last_sale :: OBJECT AS last_sale,\n owner :: OBJECT AS owner,\n rarity :: FLOAT AS rarity,\n rarity_rank :: INTEGER AS rarity_rank,\n top_bid :: OBJECT AS top_bid,\n valuation :: OBJECT AS valuation,\n _inserted_timestamp AS updated_timestamp\nFROM\n EXTERNAL.silver.dnv_tokens", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.deepnftvalue__fact_collections": {"database": "EXTERNAL", "schema": "deepnftvalue", "name": "deepnftvalue__fact_collections", "resource_type": "model", "package_name": "external_models", "path": "deepnftvalue/gold/deepnftvalue__fact_collections.sql", "original_file_path": "models/deepnftvalue/gold/deepnftvalue__fact_collections.sql", "unique_id": "model.external_models.deepnftvalue__fact_collections", "fqn": ["external_models", "deepnftvalue", "gold", "deepnftvalue__fact_collections"], "alias": "fact_collections", "checksum": {"name": "sha256", "checksum": "940f156cf9e8f997be3c6ac40d39ef5ffdfd69c1a09565598a9d23e18cebf3d1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEEPNFTVALUE"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["stale"], "description": "Deprecating soon! This table will be removed on December 4th, 2024 and is no longer updated.", "columns": {}, "meta": {"database_tags": {"table": {"PROTOCOL": "DEEPNFTVALUE"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/deepnftvalue/gold/deepnftvalue__fact_collections.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "meta": {"database_tags": {"table": {"PROTOCOL": "DEEPNFTVALUE"}}}, "tags": ["stale"]}, "created_at": 1760113501.4864986, "relation_name": "EXTERNAL.deepnftvalue.fact_collections", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'DEEPNFTVALUE' } } },\n tags = ['stale']\n) }}\n\nSELECT\n collection_name,\n LOWER(collection_address) AS collection_address,\n floor_price,\n valuation_max,\n valuation_min,\n attributes,\n _inserted_timestamp AS valuation_timestamp\nFROM\n {{ ref('silver__dnv_collections') }}", "language": "sql", "refs": [{"name": "silver__dnv_collections", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.external_models.silver__dnv_collections"]}, "compiled_path": "target/compiled/external_models/models/deepnftvalue/gold/deepnftvalue__fact_collections.sql", "compiled": true, "compiled_code": "\n\nSELECT\n collection_name,\n LOWER(collection_address) AS collection_address,\n floor_price,\n valuation_max,\n valuation_min,\n attributes,\n _inserted_timestamp AS valuation_timestamp\nFROM\n EXTERNAL.silver.dnv_collections", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.deepnftvalue__fact_valuations": {"database": "EXTERNAL", "schema": "deepnftvalue", "name": "deepnftvalue__fact_valuations", "resource_type": "model", "package_name": "external_models", "path": "deepnftvalue/gold/deepnftvalue__fact_valuations.sql", "original_file_path": "models/deepnftvalue/gold/deepnftvalue__fact_valuations.sql", "unique_id": "model.external_models.deepnftvalue__fact_valuations", "fqn": ["external_models", "deepnftvalue", "gold", "deepnftvalue__fact_valuations"], "alias": "fact_valuations", "checksum": {"name": "sha256", "checksum": "3dcd5413348ecd4b372de0c588c73f2c763d637a5b32563e3cbe8b0891cbe156"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEEPNFTVALUE"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["stale"], "description": "Deprecating soon! This table will be removed on December 4th, 2024 and is no longer updated.", "columns": {}, "meta": {"database_tags": {"table": {"PROTOCOL": "DEEPNFTVALUE"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/deepnftvalue/gold/deepnftvalue__fact_valuations.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "meta": {"database_tags": {"table": {"PROTOCOL": "DEEPNFTVALUE"}}}, "tags": ["stale"]}, "created_at": 1760113501.4852948, "relation_name": "EXTERNAL.deepnftvalue.fact_valuations", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'DEEPNFTVALUE' } } },\n tags = ['stale']\n) }}\n\nSELECT\n valuation_date,\n collection_name,\n collection_address,\n token_id,\n currency,\n price,\n _inserted_timestamp AS updated_timestamp\nFROM\n {{ ref('silver__dnv_valuations') }}", "language": "sql", "refs": [{"name": "silver__dnv_valuations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.external_models.silver__dnv_valuations"]}, "compiled_path": "target/compiled/external_models/models/deepnftvalue/gold/deepnftvalue__fact_valuations.sql", "compiled": true, "compiled_code": "\n\nSELECT\n valuation_date,\n collection_name,\n collection_address,\n token_id,\n currency,\n price,\n _inserted_timestamp AS updated_timestamp\nFROM\n EXTERNAL.silver.dnv_valuations", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__dnv_collections": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__dnv_collections", "resource_type": "model", "package_name": "external_models", "path": "deepnftvalue/bronze/bronze__dnv_collections.sql", "original_file_path": "models/deepnftvalue/bronze/bronze__dnv_collections.sql", "unique_id": "model.external_models.bronze__dnv_collections", "fqn": ["external_models", "deepnftvalue", "bronze", "bronze__dnv_collections"], "alias": "dnv_collections", "checksum": {"name": "sha256", "checksum": "713528f2b938dadf845c97a8dbceb574a7e19c44826ea8cc70faede241d95b0c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["stale"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": "_id", "full_refresh": false, "tags": ["stale"]}, "created_at": 1760113497.9605095, "relation_name": "EXTERNAL.bronze.dnv_collections", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = '_id',\n full_refresh = false,\n tags = ['stale']\n) }}\n\nWITH slugs AS (\n\n SELECT\n collection_slug\n FROM\n {{ ref('bronze__dnv_collection_slugs') }}\n),\napi_endpoint AS (\n SELECT\n 'https://api.deepnftvalue.com/v1/collections/' AS api_endpoint\n),\napi_url AS (\n SELECT\n api_endpoint || collection_slug AS api_url,\n collection_slug\n FROM\n slugs\n CROSS JOIN api_endpoint\n),\nrow_nos AS (\n SELECT\n api_url,\n collection_slug,\n ROW_NUMBER() over (\n ORDER BY\n api_url\n ) AS row_no,\n FLOOR(\n row_no / 1\n ) - 1 AS batch_no\n FROM\n api_url\n),\nbatched AS ({% for item in range(10) %}\nSELECT\n live.udf_api('GET', api_url, OBJECT_CONSTRUCT('Authorization', '{Authorization}', 'accept', 'application/json'),{}, 'Vault/prod/external/deepnftvalue') AS resp, SYSDATE() _inserted_timestamp, collection_slug, CONCAT(collection_slug, '-', _inserted_timestamp) AS _id\nFROM\n row_nos rn\nWHERE\n batch_no = {{ item }}\n AND EXISTS (\nSELECT\n 1\nFROM\n row_nos\nWHERE\n batch_no = {{ item }}\nLIMIT\n 1) {% if not loop.last %}\n UNION ALL\n {% endif %}\n{% endfor %})\nSELECT\n resp,\n _inserted_timestamp,\n _id\nFROM\n batched", "language": "sql", "refs": [{"name": "bronze__dnv_collection_slugs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.external_models.bronze__dnv_collection_slugs"]}, "compiled_path": "target/compiled/external_models/models/deepnftvalue/bronze/bronze__dnv_collections.sql", "compiled": true, "compiled_code": "\n\nWITH slugs AS (\n\n SELECT\n collection_slug\n FROM\n EXTERNAL.bronze.dnv_collection_slugs\n),\napi_endpoint AS (\n SELECT\n 'https://api.deepnftvalue.com/v1/collections/' AS api_endpoint\n),\napi_url AS (\n SELECT\n api_endpoint || collection_slug AS api_url,\n collection_slug\n FROM\n slugs\n CROSS JOIN api_endpoint\n),\nrow_nos AS (\n SELECT\n api_url,\n collection_slug,\n ROW_NUMBER() over (\n ORDER BY\n api_url\n ) AS row_no,\n FLOOR(\n row_no / 1\n ) - 1 AS batch_no\n FROM\n api_url\n),\nbatched AS (\nSELECT\n live.udf_api('GET', api_url, OBJECT_CONSTRUCT('Authorization', '{Authorization}', 'accept', 'application/json'),{}, 'Vault/prod/external/deepnftvalue') AS resp, SYSDATE() _inserted_timestamp, collection_slug, CONCAT(collection_slug, '-', _inserted_timestamp) AS _id\nFROM\n row_nos rn\nWHERE\n batch_no = 0\n AND EXISTS (\nSELECT\n 1\nFROM\n row_nos\nWHERE\n batch_no = 0\nLIMIT\n 1) \n UNION ALL\n \n\nSELECT\n live.udf_api('GET', api_url, OBJECT_CONSTRUCT('Authorization', '{Authorization}', 'accept', 'application/json'),{}, 'Vault/prod/external/deepnftvalue') AS resp, SYSDATE() _inserted_timestamp, collection_slug, CONCAT(collection_slug, '-', _inserted_timestamp) AS _id\nFROM\n row_nos rn\nWHERE\n batch_no = 1\n AND EXISTS (\nSELECT\n 1\nFROM\n row_nos\nWHERE\n batch_no = 1\nLIMIT\n 1) \n UNION ALL\n \n\nSELECT\n live.udf_api('GET', api_url, OBJECT_CONSTRUCT('Authorization', '{Authorization}', 'accept', 'application/json'),{}, 'Vault/prod/external/deepnftvalue') AS resp, SYSDATE() _inserted_timestamp, collection_slug, CONCAT(collection_slug, '-', _inserted_timestamp) AS _id\nFROM\n row_nos rn\nWHERE\n batch_no = 2\n AND EXISTS (\nSELECT\n 1\nFROM\n row_nos\nWHERE\n batch_no = 2\nLIMIT\n 1) \n UNION ALL\n \n\nSELECT\n live.udf_api('GET', api_url, OBJECT_CONSTRUCT('Authorization', '{Authorization}', 'accept', 'application/json'),{}, 'Vault/prod/external/deepnftvalue') AS resp, SYSDATE() _inserted_timestamp, collection_slug, CONCAT(collection_slug, '-', _inserted_timestamp) AS _id\nFROM\n row_nos rn\nWHERE\n batch_no = 3\n AND EXISTS (\nSELECT\n 1\nFROM\n row_nos\nWHERE\n batch_no = 3\nLIMIT\n 1) \n UNION ALL\n \n\nSELECT\n live.udf_api('GET', api_url, OBJECT_CONSTRUCT('Authorization', '{Authorization}', 'accept', 'application/json'),{}, 'Vault/prod/external/deepnftvalue') AS resp, SYSDATE() _inserted_timestamp, collection_slug, CONCAT(collection_slug, '-', _inserted_timestamp) AS _id\nFROM\n row_nos rn\nWHERE\n batch_no = 4\n AND EXISTS (\nSELECT\n 1\nFROM\n row_nos\nWHERE\n batch_no = 4\nLIMIT\n 1) \n UNION ALL\n \n\nSELECT\n live.udf_api('GET', api_url, OBJECT_CONSTRUCT('Authorization', '{Authorization}', 'accept', 'application/json'),{}, 'Vault/prod/external/deepnftvalue') AS resp, SYSDATE() _inserted_timestamp, collection_slug, CONCAT(collection_slug, '-', _inserted_timestamp) AS _id\nFROM\n row_nos rn\nWHERE\n batch_no = 5\n AND EXISTS (\nSELECT\n 1\nFROM\n row_nos\nWHERE\n batch_no = 5\nLIMIT\n 1) \n UNION ALL\n \n\nSELECT\n live.udf_api('GET', api_url, OBJECT_CONSTRUCT('Authorization', '{Authorization}', 'accept', 'application/json'),{}, 'Vault/prod/external/deepnftvalue') AS resp, SYSDATE() _inserted_timestamp, collection_slug, CONCAT(collection_slug, '-', _inserted_timestamp) AS _id\nFROM\n row_nos rn\nWHERE\n batch_no = 6\n AND EXISTS (\nSELECT\n 1\nFROM\n row_nos\nWHERE\n batch_no = 6\nLIMIT\n 1) \n UNION ALL\n \n\nSELECT\n live.udf_api('GET', api_url, OBJECT_CONSTRUCT('Authorization', '{Authorization}', 'accept', 'application/json'),{}, 'Vault/prod/external/deepnftvalue') AS resp, SYSDATE() _inserted_timestamp, collection_slug, CONCAT(collection_slug, '-', _inserted_timestamp) AS _id\nFROM\n row_nos rn\nWHERE\n batch_no = 7\n AND EXISTS (\nSELECT\n 1\nFROM\n row_nos\nWHERE\n batch_no = 7\nLIMIT\n 1) \n UNION ALL\n \n\nSELECT\n live.udf_api('GET', api_url, OBJECT_CONSTRUCT('Authorization', '{Authorization}', 'accept', 'application/json'),{}, 'Vault/prod/external/deepnftvalue') AS resp, SYSDATE() _inserted_timestamp, collection_slug, CONCAT(collection_slug, '-', _inserted_timestamp) AS _id\nFROM\n row_nos rn\nWHERE\n batch_no = 8\n AND EXISTS (\nSELECT\n 1\nFROM\n row_nos\nWHERE\n batch_no = 8\nLIMIT\n 1) \n UNION ALL\n \n\nSELECT\n live.udf_api('GET', api_url, OBJECT_CONSTRUCT('Authorization', '{Authorization}', 'accept', 'application/json'),{}, 'Vault/prod/external/deepnftvalue') AS resp, SYSDATE() _inserted_timestamp, collection_slug, CONCAT(collection_slug, '-', _inserted_timestamp) AS _id\nFROM\n row_nos rn\nWHERE\n batch_no = 9\n AND EXISTS (\nSELECT\n 1\nFROM\n row_nos\nWHERE\n batch_no = 9\nLIMIT\n 1) \n)\nSELECT\n resp,\n _inserted_timestamp,\n _id\nFROM\n batched", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__dnv_tokens": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__dnv_tokens", "resource_type": "model", "package_name": "external_models", "path": "deepnftvalue/bronze/bronze__dnv_tokens.sql", "original_file_path": "models/deepnftvalue/bronze/bronze__dnv_tokens.sql", "unique_id": "model.external_models.bronze__dnv_tokens", "fqn": ["external_models", "deepnftvalue", "bronze", "bronze__dnv_tokens"], "alias": "dnv_tokens", "checksum": {"name": "sha256", "checksum": "6528ce0ecf1bdf0c6a818dbc6df78605577b4125e2cbd91a67540182bc0b5940"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["stale"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": "_id", "full_refresh": false, "tags": ["stale"]}, "created_at": 1760113497.967743, "relation_name": "EXTERNAL.bronze.dnv_tokens", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = '_id',\n full_refresh = false,\n tags = ['stale']\n) }}\n\nWITH requests AS (\n\n SELECT\n api_url,\n collection_slug,\n _id\n FROM\n {{ ref('silver__dnv_token_requests') }}\n\n{% if is_incremental() %}\nWHERE\n _id NOT IN (\n SELECT\n _id\n FROM\n {{ this }}\n )\n AND collection_slug <> 'cryptopunks'\n{% endif %}\n),\napi_key AS (\n SELECT\n CONCAT(\n '{\\'Authorization\\': \\'Token ',\n api_key,\n '\\', \\'accept\\': \\'application/json\\'}'\n ) AS header\n FROM\n {{ source(\n 'crosschain_silver',\n 'apis_keys'\n ) }}\n WHERE\n api_name = 'deepnftvalue'\n),\nrow_nos AS (\n SELECT\n api_url,\n _id,\n collection_slug,\n ROW_NUMBER () over (\n ORDER BY\n api_url\n ) AS row_no,\n FLOOR(\n row_no / 10\n ) AS batch_no,\n header\n FROM\n requests\n JOIN api_key\n ON 1 = 1\n),\nbatched AS ({% for item in range(9) %}\nSELECT\n live.udf_api(' GET ', api_url, PARSE_JSON(header),{}) AS resp, SYSDATE() _inserted_timestamp, collection_slug, _id\nFROM\n row_nos rn\nWHERE\n batch_no = {{ item }}\n AND EXISTS (\nSELECT\n 1\nFROM\n row_nos\nWHERE\n batch_no = {{ item }}\nLIMIT\n 1) {% if not loop.last %}\n UNION ALL\n {% endif %}\n{% endfor %})\nSELECT\n resp,\n _inserted_timestamp,\n collection_slug,\n _id\nFROM\n batched", "language": "sql", "refs": [{"name": "silver__dnv_token_requests", "package": null, "version": null}], "sources": [["crosschain_silver", "apis_keys"]], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["source.external_models.crosschain_silver.apis_keys", "model.external_models.silver__dnv_token_requests"]}, "compiled_path": "target/compiled/external_models/models/deepnftvalue/bronze/bronze__dnv_tokens.sql", "compiled": true, "compiled_code": "\n\nWITH requests AS (\n\n SELECT\n api_url,\n collection_slug,\n _id\n FROM\n EXTERNAL.silver.dnv_token_requests\n\n\nWHERE\n _id NOT IN (\n SELECT\n _id\n FROM\n EXTERNAL.bronze.dnv_tokens\n )\n AND collection_slug <> 'cryptopunks'\n\n),\napi_key AS (\n SELECT\n CONCAT(\n '{\\'Authorization\\': \\'Token ',\n api_key,\n '\\', \\'accept\\': \\'application/json\\'}'\n ) AS header\n FROM\n crosschain.silver.apis_keys\n WHERE\n api_name = 'deepnftvalue'\n),\nrow_nos AS (\n SELECT\n api_url,\n _id,\n collection_slug,\n ROW_NUMBER () over (\n ORDER BY\n api_url\n ) AS row_no,\n FLOOR(\n row_no / 10\n ) AS batch_no,\n header\n FROM\n requests\n JOIN api_key\n ON 1 = 1\n),\nbatched AS (\nSELECT\n live.udf_api(' GET ', api_url, PARSE_JSON(header),{}) AS resp, SYSDATE() _inserted_timestamp, collection_slug, _id\nFROM\n row_nos rn\nWHERE\n batch_no = 0\n AND EXISTS (\nSELECT\n 1\nFROM\n row_nos\nWHERE\n batch_no = 0\nLIMIT\n 1) \n UNION ALL\n \n\nSELECT\n live.udf_api(' GET ', api_url, PARSE_JSON(header),{}) AS resp, SYSDATE() _inserted_timestamp, collection_slug, _id\nFROM\n row_nos rn\nWHERE\n batch_no = 1\n AND EXISTS (\nSELECT\n 1\nFROM\n row_nos\nWHERE\n batch_no = 1\nLIMIT\n 1) \n UNION ALL\n \n\nSELECT\n live.udf_api(' GET ', api_url, PARSE_JSON(header),{}) AS resp, SYSDATE() _inserted_timestamp, collection_slug, _id\nFROM\n row_nos rn\nWHERE\n batch_no = 2\n AND EXISTS (\nSELECT\n 1\nFROM\n row_nos\nWHERE\n batch_no = 2\nLIMIT\n 1) \n UNION ALL\n \n\nSELECT\n live.udf_api(' GET ', api_url, PARSE_JSON(header),{}) AS resp, SYSDATE() _inserted_timestamp, collection_slug, _id\nFROM\n row_nos rn\nWHERE\n batch_no = 3\n AND EXISTS (\nSELECT\n 1\nFROM\n row_nos\nWHERE\n batch_no = 3\nLIMIT\n 1) \n UNION ALL\n \n\nSELECT\n live.udf_api(' GET ', api_url, PARSE_JSON(header),{}) AS resp, SYSDATE() _inserted_timestamp, collection_slug, _id\nFROM\n row_nos rn\nWHERE\n batch_no = 4\n AND EXISTS (\nSELECT\n 1\nFROM\n row_nos\nWHERE\n batch_no = 4\nLIMIT\n 1) \n UNION ALL\n \n\nSELECT\n live.udf_api(' GET ', api_url, PARSE_JSON(header),{}) AS resp, SYSDATE() _inserted_timestamp, collection_slug, _id\nFROM\n row_nos rn\nWHERE\n batch_no = 5\n AND EXISTS (\nSELECT\n 1\nFROM\n row_nos\nWHERE\n batch_no = 5\nLIMIT\n 1) \n UNION ALL\n \n\nSELECT\n live.udf_api(' GET ', api_url, PARSE_JSON(header),{}) AS resp, SYSDATE() _inserted_timestamp, collection_slug, _id\nFROM\n row_nos rn\nWHERE\n batch_no = 6\n AND EXISTS (\nSELECT\n 1\nFROM\n row_nos\nWHERE\n batch_no = 6\nLIMIT\n 1) \n UNION ALL\n \n\nSELECT\n live.udf_api(' GET ', api_url, PARSE_JSON(header),{}) AS resp, SYSDATE() _inserted_timestamp, collection_slug, _id\nFROM\n row_nos rn\nWHERE\n batch_no = 7\n AND EXISTS (\nSELECT\n 1\nFROM\n row_nos\nWHERE\n batch_no = 7\nLIMIT\n 1) \n UNION ALL\n \n\nSELECT\n live.udf_api(' GET ', api_url, PARSE_JSON(header),{}) AS resp, SYSDATE() _inserted_timestamp, collection_slug, _id\nFROM\n row_nos rn\nWHERE\n batch_no = 8\n AND EXISTS (\nSELECT\n 1\nFROM\n row_nos\nWHERE\n batch_no = 8\nLIMIT\n 1) \n)\nSELECT\n resp,\n _inserted_timestamp,\n collection_slug,\n _id\nFROM\n batched", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__streamline_valuations": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__streamline_valuations", "resource_type": "model", "package_name": "external_models", "path": "deepnftvalue/bronze/bronze__streamline_valuations.sql", "original_file_path": "models/deepnftvalue/bronze/bronze__streamline_valuations.sql", "unique_id": "model.external_models.bronze__streamline_valuations", "fqn": ["external_models", "deepnftvalue", "bronze", "bronze__streamline_valuations"], "alias": "streamline_valuations", "checksum": {"name": "sha256", "checksum": "e4b934e8297fc1c7b94e4396b90741018cfc24292bdceff847ba78e40052d052"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["stale"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["stale"]}, "created_at": 1760113497.9766943, "relation_name": "EXTERNAL.bronze.streamline_valuations", "raw_code": "{{ config (\n materialized = 'view',\n tags = ['stale']\n) }}\n\nWITH meta AS (\n\n SELECT\n last_modified AS _inserted_timestamp,\n file_name,\n CONCAT(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1), '-01') :: DATE AS DATE_PART\n FROM\n TABLE(\n information_schema.external_table_file_registration_history(\n start_time => DATEADD('day', -7, CURRENT_TIMESTAMP()),\n table_name => '{{ source( \"bronze_streamline\", \"valuations_parquet\") }}')\n ) A\n )\n SELECT\n s.date_part,\n _inserted_timestamp,\n collection_address,\n collection_name,\n token_id,\n price,\n valuation_date,\n currency,\n collection_slug,\n metadata$filename AS _filename\n FROM\n {{ source(\n \"bronze_streamline\",\n \"valuations_parquet\"\n ) }}\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b.date_part = s.date_part\n WHERE\n b.date_part = s.date_part", "language": "sql", "refs": [], "sources": [["bronze_streamline", "valuations_parquet"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.bronze_streamline.valuations_parquet"]}, "compiled_path": "target/compiled/external_models/models/deepnftvalue/bronze/bronze__streamline_valuations.sql", "compiled": true, "compiled_code": "\n\nWITH meta AS (\n\n SELECT\n last_modified AS _inserted_timestamp,\n file_name,\n CONCAT(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1), '-01') :: DATE AS DATE_PART\n FROM\n TABLE(\n information_schema.external_table_file_registration_history(\n start_time => DATEADD('day', -7, CURRENT_TIMESTAMP()),\n table_name => 'streamline.external.valuations_parquet')\n ) A\n )\n SELECT\n s.date_part,\n _inserted_timestamp,\n collection_address,\n collection_name,\n token_id,\n price,\n valuation_date,\n currency,\n collection_slug,\n metadata$filename AS _filename\n FROM\n streamline.external.valuations_parquet\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b.date_part = s.date_part\n WHERE\n b.date_part = s.date_part", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__dnv_collection_slugs": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__dnv_collection_slugs", "resource_type": "model", "package_name": "external_models", "path": "deepnftvalue/bronze/bronze__dnv_collection_slugs.sql", "original_file_path": "models/deepnftvalue/bronze/bronze__dnv_collection_slugs.sql", "unique_id": "model.external_models.bronze__dnv_collection_slugs", "fqn": ["external_models", "deepnftvalue", "bronze", "bronze__dnv_collection_slugs"], "alias": "dnv_collection_slugs", "checksum": {"name": "sha256", "checksum": "842071b030ae10987e9c29c6faac5168995395a9bb8b70f02ee567634e3d3d43"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["stale"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "table", "tags": ["stale"]}, "created_at": 1760113497.9793513, "relation_name": "EXTERNAL.bronze.dnv_collection_slugs", "raw_code": "{{ config(\n materialized = 'table',\n tags = ['stale']\n) }}\n\nSELECT\n 'boredapeyachtclub' AS collection_slug,\n '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d' AS contract_address,\n '2022-06-01' AS created_at,\n 10000 AS total_supply\nUNION\nSELECT\n 'cryptopunks',\n '0xb47e3cd837ddf8e4c57f05d70ab865de6e193bbb',\n '2021-01-01',\n 10000\nUNION\nSELECT\n 'azuki',\n '0xed5af388653567af2f388e6224dc7c4b3241c544',\n '2022-06-01',\n 10000\nUNION\nSELECT\n 'mutant-ape-yacht-club',\n '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n '2022-06-01',\n 20000\nUNION\nSELECT\n 'nakamigos',\n '0xd774557b647330c91bf44cfeab205095f7e6c367',\n '2023-03-22',\n 20000\nUNION\nSELECT\n 'pudgypenguins',\n '0xbd3531da5cf5857e7cfaa92426877b022e612cf8',\n '2022-04-21',\n 8888\nUNION\nSELECT\n 'wrapped-cryptopunks',\n '0xb7f7f6c52f2e2fdb1963eab30438024864c313f6',\n '2021-01-01',\n 1000", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": "target/compiled/external_models/models/deepnftvalue/bronze/bronze__dnv_collection_slugs.sql", "compiled": true, "compiled_code": "\n\nSELECT\n 'boredapeyachtclub' AS collection_slug,\n '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d' AS contract_address,\n '2022-06-01' AS created_at,\n 10000 AS total_supply\nUNION\nSELECT\n 'cryptopunks',\n '0xb47e3cd837ddf8e4c57f05d70ab865de6e193bbb',\n '2021-01-01',\n 10000\nUNION\nSELECT\n 'azuki',\n '0xed5af388653567af2f388e6224dc7c4b3241c544',\n '2022-06-01',\n 10000\nUNION\nSELECT\n 'mutant-ape-yacht-club',\n '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n '2022-06-01',\n 20000\nUNION\nSELECT\n 'nakamigos',\n '0xd774557b647330c91bf44cfeab205095f7e6c367',\n '2023-03-22',\n 20000\nUNION\nSELECT\n 'pudgypenguins',\n '0xbd3531da5cf5857e7cfaa92426877b022e612cf8',\n '2022-04-21',\n 8888\nUNION\nSELECT\n 'wrapped-cryptopunks',\n '0xb7f7f6c52f2e2fdb1963eab30438024864c313f6',\n '2021-01-01',\n 1000", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__streamline_fr_valuations": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__streamline_fr_valuations", "resource_type": "model", "package_name": "external_models", "path": "deepnftvalue/bronze/bronze__streamline_fr_valuations.sql", "original_file_path": "models/deepnftvalue/bronze/bronze__streamline_fr_valuations.sql", "unique_id": "model.external_models.bronze__streamline_fr_valuations", "fqn": ["external_models", "deepnftvalue", "bronze", "bronze__streamline_fr_valuations"], "alias": "streamline_fr_valuations", "checksum": {"name": "sha256", "checksum": "904607d191c866e9f018f9ebb46538be0aa91c91f15f1343db3c4a099547f479"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["stale"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["stale"]}, "created_at": 1760113497.981777, "relation_name": "EXTERNAL.bronze.streamline_fr_valuations", "raw_code": "{{ config (\n materialized = 'view',\n tags = ['stale']\n) }}\n\nWITH meta AS (\n\n SELECT\n registered_on AS _inserted_timestamp,\n file_name,\n CONCAT(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1), '-01') :: DATE AS DATE_PART\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => '{{ source( \"bronze_streamline\", \"valuations_parquet\") }}'\n )\n ) A\n)\nSELECT\n s.date_part,\n _inserted_timestamp,\n collection_address,\n collection_name,\n token_id,\n price,\n valuation_date,\n currency,\n collection_slug,\n metadata$filename AS _filename\nFROM\n {{ source(\n \"bronze_streamline\",\n \"valuations_parquet\"\n ) }}\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b.date_part = s.date_part\nWHERE\n b.date_part = s.date_part", "language": "sql", "refs": [], "sources": [["bronze_streamline", "valuations_parquet"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.bronze_streamline.valuations_parquet"]}, "compiled_path": "target/compiled/external_models/models/deepnftvalue/bronze/bronze__streamline_fr_valuations.sql", "compiled": true, "compiled_code": "\n\nWITH meta AS (\n\n SELECT\n registered_on AS _inserted_timestamp,\n file_name,\n CONCAT(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1), '-01') :: DATE AS DATE_PART\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => 'streamline.external.valuations_parquet'\n )\n ) A\n)\nSELECT\n s.date_part,\n _inserted_timestamp,\n collection_address,\n collection_name,\n token_id,\n price,\n valuation_date,\n currency,\n collection_slug,\n metadata$filename AS _filename\nFROM\n streamline.external.valuations_parquet\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b.date_part = s.date_part\nWHERE\n b.date_part = s.date_part", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.silver__snapshot_proposals": {"database": "EXTERNAL", "schema": "silver", "name": "silver__snapshot_proposals", "resource_type": "model", "package_name": "external_models", "path": "snapshot/silver/silver__snapshot_proposals.sql", "original_file_path": "models/snapshot/silver/silver__snapshot_proposals.sql", "unique_id": "model.external_models.silver__snapshot_proposals", "fqn": ["external_models", "snapshot", "silver", "silver__snapshot_proposals"], "alias": "snapshot_proposals", "checksum": {"name": "sha256", "checksum": "43688957d6c85137bad5978dfe9ec22f3ad4c2893e9d44752a74d2d207c67e73"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["snapshot"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "proposal_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["snapshot"], "description": "", "columns": {"PROPOSAL_ID": {"name": "PROPOSAL_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATED_AT": {"name": "CREATED_AT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROPOSAL_START_TIME": {"name": "PROPOSAL_START_TIME", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROPOSAL_END_TIME": {"name": "PROPOSAL_END_TIME", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/snapshot/silver/silver__snapshot_proposals.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": "proposal_id", "incremental_strategy": "delete+insert", "tags": ["snapshot"]}, "created_at": 1760113501.4890668, "relation_name": "EXTERNAL.silver.snapshot_proposals", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = 'proposal_id',\n incremental_strategy = 'delete+insert',\n tags = ['snapshot']\n) }}\n\nSELECT\n proposal_id,\n ipfs,\n choices,\n LOWER(proposal_author) AS proposal_author,\n proposal_title,\n proposal_text,\n delay,\n quorum,\n voting_period,\n voting_type,\n space_id,\n p.network AS network_id,\n LOWER(chain) AS network,\n created_at,\n proposal_start_time,\n proposal_end_time,\n p._inserted_timestamp\nFROM\n {{ ref('bronze__snapshot_proposals') }}\n p\n LEFT JOIN {{ ref('bronze__defillama_chains') }}\n d\n ON d.chain_id :: STRING = p.network :: STRING\n\n{% if is_incremental() %}\nWHERE\n p._inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp)\n FROM\n {{ this }}\n )\n{% endif %}\n\nqualify(ROW_NUMBER() over (PARTITION BY proposal_id\nORDER BY\n p._inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "bronze__snapshot_proposals", "package": null, "version": null}, {"name": "bronze__defillama_chains", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.external_models.bronze__snapshot_proposals", "model.external_models.bronze__defillama_chains"]}, "compiled_path": "target/compiled/external_models/models/snapshot/silver/silver__snapshot_proposals.sql", "compiled": true, "compiled_code": "\n\nSELECT\n proposal_id,\n ipfs,\n choices,\n LOWER(proposal_author) AS proposal_author,\n proposal_title,\n proposal_text,\n delay,\n quorum,\n voting_period,\n voting_type,\n space_id,\n p.network AS network_id,\n LOWER(chain) AS network,\n created_at,\n proposal_start_time,\n proposal_end_time,\n p._inserted_timestamp\nFROM\n EXTERNAL.bronze.snapshot_proposals\n p\n LEFT JOIN EXTERNAL.bronze.defillama_chains\n d\n ON d.chain_id :: STRING = p.network :: STRING\n\n\nWHERE\n p._inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp)\n FROM\n EXTERNAL.silver.snapshot_proposals\n )\n\n\nqualify(ROW_NUMBER() over (PARTITION BY proposal_id\nORDER BY\n p._inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.silver__snapshot_users": {"database": "EXTERNAL", "schema": "silver", "name": "silver__snapshot_users", "resource_type": "model", "package_name": "external_models", "path": "snapshot/silver/silver__snapshot_users.sql", "original_file_path": "models/snapshot/silver/silver__snapshot_users.sql", "unique_id": "model.external_models.silver__snapshot_users", "fqn": ["external_models", "snapshot", "silver", "silver__snapshot_users"], "alias": "snapshot_users", "checksum": {"name": "sha256", "checksum": "a81f42823ccaf0ecb5c82716a866542077f9aa44f37bf420222557b5b4b81ea1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["snapshot"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["snapshot"], "description": "", "columns": {"ADDRESS": {"name": "ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATED_AT": {"name": "CREATED_AT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/snapshot/silver/silver__snapshot_users.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": "address", "incremental_strategy": "delete+insert", "tags": ["snapshot"]}, "created_at": 1760113501.5093658, "relation_name": "EXTERNAL.silver.snapshot_users", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = 'address',\n incremental_strategy = 'delete+insert',\n tags = ['snapshot']\n) }}\n\nSELECT\n address,\n NAME,\n about,\n avatar,\n ipfs,\n created_at,\n _inserted_timestamp\nFROM\n {{ ref('bronze__snapshot_users') }}\n\n{% if is_incremental() %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp)\n FROM\n {{ this }}\n )\n{% endif %}", "language": "sql", "refs": [{"name": "bronze__snapshot_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.external_models.bronze__snapshot_users"]}, "compiled_path": "target/compiled/external_models/models/snapshot/silver/silver__snapshot_users.sql", "compiled": true, "compiled_code": "\n\nSELECT\n address,\n NAME,\n about,\n avatar,\n ipfs,\n created_at,\n _inserted_timestamp\nFROM\n EXTERNAL.bronze.snapshot_users\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp)\n FROM\n EXTERNAL.silver.snapshot_users\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.silver__snapshot_votes": {"database": "EXTERNAL", "schema": "silver", "name": "silver__snapshot_votes", "resource_type": "model", "package_name": "external_models", "path": "snapshot/silver/silver__snapshot_votes.sql", "original_file_path": "models/snapshot/silver/silver__snapshot_votes.sql", "unique_id": "model.external_models.silver__snapshot_votes", "fqn": ["external_models", "snapshot", "silver", "silver__snapshot_votes"], "alias": "snapshot_votes", "checksum": {"name": "sha256", "checksum": "258aef68688afc2c911de9731980500fa297b761bc3ebfa516500bb78147b679"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["snapshot"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "vote_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["snapshot"], "description": "", "columns": {"VOTE_TIMESTAMP": {"name": "VOTE_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VOTER": {"name": "VOTER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROPOSAL_ID": {"name": "PROPOSAL_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VOTE_OPTION": {"name": "VOTE_OPTION", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VOTE_ID": {"name": "VOTE_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/snapshot/silver/silver__snapshot_votes.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": "vote_id", "incremental_strategy": "delete+insert", "tags": ["snapshot"]}, "created_at": 1760113501.533937, "relation_name": "EXTERNAL.silver.snapshot_votes", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = 'vote_id',\n incremental_strategy = 'delete+insert',\n tags = ['snapshot']\n) }}\n\nSELECT\n vote_timestamp,\n LOWER(voter) AS voter,\n proposal_id,\n vote_option,\n voting_power,\n ipfs,\n id AS vote_id,\n _inserted_timestamp\nFROM\n {{ ref('bronze__snapshot_votes') }}\n\n{% if is_incremental() %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp)\n FROM\n {{ this }}\n )\n{% endif %}", "language": "sql", "refs": [{"name": "bronze__snapshot_votes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.external_models.bronze__snapshot_votes"]}, "compiled_path": "target/compiled/external_models/models/snapshot/silver/silver__snapshot_votes.sql", "compiled": true, "compiled_code": "\n\nSELECT\n vote_timestamp,\n LOWER(voter) AS voter,\n proposal_id,\n vote_option,\n voting_power,\n ipfs,\n id AS vote_id,\n _inserted_timestamp\nFROM\n EXTERNAL.bronze.snapshot_votes\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp)\n FROM\n EXTERNAL.silver.snapshot_votes\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.silver__snapshot_spaces": {"database": "EXTERNAL", "schema": "silver", "name": "silver__snapshot_spaces", "resource_type": "model", "package_name": "external_models", "path": "snapshot/silver/silver__snapshot_spaces.sql", "original_file_path": "models/snapshot/silver/silver__snapshot_spaces.sql", "unique_id": "model.external_models.silver__snapshot_spaces", "fqn": ["external_models", "snapshot", "silver", "silver__snapshot_spaces"], "alias": "snapshot_spaces", "checksum": {"name": "sha256", "checksum": "fa2c6a7c504a0cfd0f11d215a4ad475b902566ac654599357eb986b109928d7b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["snapshot"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "space_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["snapshot"], "description": "", "columns": {"SPACE_ID": {"name": "SPACE_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SPACE": {"name": "SPACE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/snapshot/silver/silver__snapshot_spaces.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": "space_id", "incremental_strategy": "delete+insert", "tags": ["snapshot"]}, "created_at": 1760113501.5210736, "relation_name": "EXTERNAL.silver.snapshot_spaces", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = 'space_id',\n incremental_strategy = 'delete+insert',\n tags = ['snapshot']\n) }}\n\nSELECT\n space_id,\n SPACE,\n about,\n symbol,\n network,\n categories,\n domain,\n is_private,\n is_verified,\n admins,\n members,\n treasuries,\n _inserted_timestamp\nFROM\n {{ ref('bronze__snapshot_spaces') }}\n\n{% if is_incremental() %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp)\n FROM\n {{ this }}\n )\n{% endif %}", "language": "sql", "refs": [{"name": "bronze__snapshot_spaces", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.external_models.bronze__snapshot_spaces"]}, "compiled_path": "target/compiled/external_models/models/snapshot/silver/silver__snapshot_spaces.sql", "compiled": true, "compiled_code": "\n\nSELECT\n space_id,\n SPACE,\n about,\n symbol,\n network,\n categories,\n domain,\n is_private,\n is_verified,\n admins,\n members,\n treasuries,\n _inserted_timestamp\nFROM\n EXTERNAL.bronze.snapshot_spaces\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp)\n FROM\n EXTERNAL.silver.snapshot_spaces\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.snapshot__fact_votes": {"database": "EXTERNAL", "schema": "snapshot", "name": "snapshot__fact_votes", "resource_type": "model", "package_name": "external_models", "path": "snapshot/gold/snapshot__fact_votes.sql", "original_file_path": "models/snapshot/gold/snapshot__fact_votes.sql", "unique_id": "model.external_models.snapshot__fact_votes", "fqn": ["external_models", "snapshot", "gold", "snapshot__fact_votes"], "alias": "fact_votes", "checksum": {"name": "sha256", "checksum": "027c72c32347d32dd53e7bb1d2009ee15df2d656245af706763f8ebca40e505e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["snapshot"], "meta": {"database_tags": {"table": {"PROTOCOL": "SNAPSHOT", "PURPOSE": "GOVERNANCE"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["snapshot"], "description": "A fact view that contains all votes on Snapshot and related information.", "columns": {"VOTE_TIMESTAMP": {"name": "VOTE_TIMESTAMP", "description": "The time at which the vote was cast.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VOTER": {"name": "VOTER", "description": "The wallet address of the user that voted on a proposal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROPOSAL_ID": {"name": "PROPOSAL_ID", "description": "A unique identifier for the proposal being voted on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VOTE_OPTION": {"name": "VOTE_OPTION", "description": "How the user voted on the proposal. Corresponds to the choices array.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VOTING_POWER": {"name": "VOTING_POWER", "description": "The amount of voting power one holds is proportional to the amount of the token they hold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "IPFS": {"name": "IPFS", "description": "The corresponding IPFS hash.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VOTE_ID": {"name": "VOTE_ID", "description": "A unique identifier assigned to a vote.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "SNAPSHOT", "PURPOSE": "GOVERNANCE"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/snapshot/gold/snapshot__fact_votes.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "meta": {"database_tags": {"table": {"PROTOCOL": "SNAPSHOT", "PURPOSE": "GOVERNANCE"}}}, "tags": ["snapshot"]}, "created_at": 1760113501.577827, "relation_name": "EXTERNAL.snapshot.fact_votes", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'SNAPSHOT',\n 'PURPOSE': 'GOVERNANCE' } } },\n tags = ['snapshot']\n) }}\n\nSELECT\n vote_timestamp,\n voter,\n proposal_id,\n vote_option,\n voting_power,\n ipfs,\n vote_id\nFROM\n {{ ref('silver__snapshot_votes') }}", "language": "sql", "refs": [{"name": "silver__snapshot_votes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.external_models.silver__snapshot_votes"]}, "compiled_path": "target/compiled/external_models/models/snapshot/gold/snapshot__fact_votes.sql", "compiled": true, "compiled_code": "\n\nSELECT\n vote_timestamp,\n voter,\n proposal_id,\n vote_option,\n voting_power,\n ipfs,\n vote_id\nFROM\n EXTERNAL.silver.snapshot_votes", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.snapshot__dim_users": {"database": "EXTERNAL", "schema": "snapshot", "name": "snapshot__dim_users", "resource_type": "model", "package_name": "external_models", "path": "snapshot/gold/snapshot__dim_users.sql", "original_file_path": "models/snapshot/gold/snapshot__dim_users.sql", "unique_id": "model.external_models.snapshot__dim_users", "fqn": ["external_models", "snapshot", "gold", "snapshot__dim_users"], "alias": "dim_users", "checksum": {"name": "sha256", "checksum": "7176040d8c0b9b66accd3198d83939e95aa73160dc7cac660cc01413615b47fa"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["snapshot"], "meta": {"database_tags": {"table": {"PROTOCOL": "SNAPSHOT", "PURPOSE": "GOVERNANCE"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["snapshot"], "description": "A dimensional view that contains all users on Snapshot and related information.", "columns": {"ADDRESS": {"name": "ADDRESS", "description": "The address of the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NAME": {"name": "NAME", "description": "The name of the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ABOUT": {"name": "ABOUT", "description": "The description of the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AVATAR": {"name": "AVATAR", "description": "The link for the avatar or profile picture of the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "IPFS": {"name": "IPFS", "description": "The corresponding IPFS hash.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATED_AT": {"name": "CREATED_AT", "description": "The time at which the user was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "SNAPSHOT", "PURPOSE": "GOVERNANCE"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/snapshot/gold/snapshot__dim_users.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "meta": {"database_tags": {"table": {"PROTOCOL": "SNAPSHOT", "PURPOSE": "GOVERNANCE"}}}, "tags": ["snapshot"]}, "created_at": 1760113501.5892422, "relation_name": "EXTERNAL.snapshot.dim_users", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'SNAPSHOT',\n 'PURPOSE': 'GOVERNANCE' } } },\n tags = ['snapshot']\n) }}\n\nSELECT\n address,\n NAME,\n about,\n avatar,\n ipfs,\n created_at\nFROM\n {{ ref('silver__snapshot_users') }}", "language": "sql", "refs": [{"name": "silver__snapshot_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.external_models.silver__snapshot_users"]}, "compiled_path": "target/compiled/external_models/models/snapshot/gold/snapshot__dim_users.sql", "compiled": true, "compiled_code": "\n\nSELECT\n address,\n NAME,\n about,\n avatar,\n ipfs,\n created_at\nFROM\n EXTERNAL.silver.snapshot_users", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.snapshot__ez_snapshot": {"database": "EXTERNAL", "schema": "snapshot", "name": "snapshot__ez_snapshot", "resource_type": "model", "package_name": "external_models", "path": "snapshot/gold/snapshot__ez_snapshot.sql", "original_file_path": "models/snapshot/gold/snapshot__ez_snapshot.sql", "unique_id": "model.external_models.snapshot__ez_snapshot", "fqn": ["external_models", "snapshot", "gold", "snapshot__ez_snapshot"], "alias": "ez_snapshot", "checksum": {"name": "sha256", "checksum": "a666c540e8418a1a005a34a09d729fbe5c6dd06d27980486cd9d0e757607a48d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["snapshot"], "meta": {"database_tags": {"table": {"PROTOCOL": "SNAPSHOT", "PURPOSE": "GOVERNANCE"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["snapshot"], "description": "A convenience view that contains all votes on Snapshot and information about the voting space and proposal.", "columns": {"ID": {"name": "ID", "description": "A unique identifier assigned to a vote.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROPOSAL_ID": {"name": "PROPOSAL_ID", "description": "A unique identifier for the proposal being voted on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VOTER": {"name": "VOTER", "description": "The wallet address of the user that voted on a proposal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VOTE_OPTION": {"name": "VOTE_OPTION", "description": "How the user voted on the proposal. Corresponds to the choices array.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VOTING_POWER": {"name": "VOTING_POWER", "description": "The amount of voting power one holds is proportional to the amount of the token they hold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VOTE_TIMESTAMP": {"name": "VOTE_TIMESTAMP", "description": "The time at which the vote was cast.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHOICES": {"name": "CHOICES", "description": "An array containing the voting options on the proposal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROPOSAL_AUTHOR": {"name": "PROPOSAL_AUTHOR", "description": "The address of the wallet that wrote the proposal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROPOSAL_TITLE": {"name": "PROPOSAL_TITLE", "description": "The title or name of the proposal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROPOSAL_TEXT": {"name": "PROPOSAL_TEXT", "description": "The body of the proposal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SPACE_ID": {"name": "SPACE_ID", "description": "A way to identify which group, or space, on Snapshot a proposal belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NETWORK": {"name": "NETWORK", "description": "The default network or blockchain used for the space.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DELAY": {"name": "DELAY", "description": "The default number of hours of voting delay for the space. The voting delay is the time between proposal submission and the opening of voting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "QUORUM": {"name": "QUORUM", "description": "The minimum amount of voting power for a proposal to pass.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VOTING_PERIOD": {"name": "VOTING_PERIOD", "description": "The default time in hours within a space for a proposal to be open for voting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VOTING_TYPE": {"name": "VOTING_TYPE", "description": "The type of voting system used for this space. If this column is not null, the same voting system will be used for all proposals in this space.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROPOSAL_START_TIME": {"name": "PROPOSAL_START_TIME", "description": "The time at which voting on the proposal begins.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROPOSAL_END_TIME": {"name": "PROPOSAL_END_TIME", "description": "The time at which voting on the proposal ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "SNAPSHOT", "PURPOSE": "GOVERNANCE"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/snapshot/gold/snapshot__ez_snapshot.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "meta": {"database_tags": {"table": {"PROTOCOL": "SNAPSHOT", "PURPOSE": "GOVERNANCE"}}}, "tags": ["snapshot"]}, "created_at": 1760113501.5862503, "relation_name": "EXTERNAL.snapshot.ez_snapshot", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n meta={\n 'database_tags':{\n 'table': {\n 'PROTOCOL': 'SNAPSHOT',\n 'PURPOSE': 'GOVERNANCE'\n }\n }\n },\n tags = ['snapshot']\n) }}\n\nWITH votes AS (\n SELECT\n vote_id,\n ipfs,\n proposal_id,\n voter,\n voting_power,\n vote_timestamp,\n vote_option,\n _inserted_timestamp\n FROM\n {{ ref('silver__snapshot_votes') }}\n),\nproposals AS (\n\n SELECT\n proposal_id,\n ipfs,\n choices,\n proposal_author,\n proposal_title,\n proposal_text,\n delay,\n quorum,\n voting_period,\n voting_type,\n space_id,\n network,\n network_id,\n proposal_start_time,\n proposal_end_time,\n _inserted_timestamp\n FROM\n {{ ref('silver__snapshot_proposals') }}\n)\nSELECT\n vote_id AS id, \n v.proposal_id, \n voter, \n vote_option, \n voting_power, \n vote_timestamp, \n choices, \n proposal_author, \n proposal_title, \n proposal_text, \n space_id,\n network, \n delay, \n quorum, \n voting_period, \n voting_type, \n proposal_start_time, \n proposal_end_time\nFROM\n votes v\n INNER JOIN proposals p\n ON v.proposal_id = p.proposal_id", "language": "sql", "refs": [{"name": "silver__snapshot_votes", "package": null, "version": null}, {"name": "silver__snapshot_proposals", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.external_models.silver__snapshot_votes", "model.external_models.silver__snapshot_proposals"]}, "compiled_path": "target/compiled/external_models/models/snapshot/gold/snapshot__ez_snapshot.sql", "compiled": true, "compiled_code": "\n\nWITH votes AS (\n SELECT\n vote_id,\n ipfs,\n proposal_id,\n voter,\n voting_power,\n vote_timestamp,\n vote_option,\n _inserted_timestamp\n FROM\n EXTERNAL.silver.snapshot_votes\n),\nproposals AS (\n\n SELECT\n proposal_id,\n ipfs,\n choices,\n proposal_author,\n proposal_title,\n proposal_text,\n delay,\n quorum,\n voting_period,\n voting_type,\n space_id,\n network,\n network_id,\n proposal_start_time,\n proposal_end_time,\n _inserted_timestamp\n FROM\n EXTERNAL.silver.snapshot_proposals\n)\nSELECT\n vote_id AS id, \n v.proposal_id, \n voter, \n vote_option, \n voting_power, \n vote_timestamp, \n choices, \n proposal_author, \n proposal_title, \n proposal_text, \n space_id,\n network, \n delay, \n quorum, \n voting_period, \n voting_type, \n proposal_start_time, \n proposal_end_time\nFROM\n votes v\n INNER JOIN proposals p\n ON v.proposal_id = p.proposal_id", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.snapshot__fact_proposals": {"database": "EXTERNAL", "schema": "snapshot", "name": "snapshot__fact_proposals", "resource_type": "model", "package_name": "external_models", "path": "snapshot/gold/snapshot__fact_proposals.sql", "original_file_path": "models/snapshot/gold/snapshot__fact_proposals.sql", "unique_id": "model.external_models.snapshot__fact_proposals", "fqn": ["external_models", "snapshot", "gold", "snapshot__fact_proposals"], "alias": "fact_proposals", "checksum": {"name": "sha256", "checksum": "63aaa3d742332e7b1e80091832aeb731ab4517f6b3b7a80f767f1bd5bb2784b4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["snapshot"], "meta": {"database_tags": {"table": {"PROTOCOL": "SNAPSHOT", "PURPOSE": "GOVERNANCE"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["snapshot"], "description": "A fact view that contains all proposals on Snapshot and related information.", "columns": {"CREATED_AT": {"name": "CREATED_AT", "description": "The time at which the proposal was generated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROPOSAL_TITLE": {"name": "PROPOSAL_TITLE", "description": "The title or name of the proposal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROPOSAL_AUTHOR": {"name": "PROPOSAL_AUTHOR", "description": "The address of the wallet that wrote the proposal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROPOSAL_TEXT": {"name": "PROPOSAL_TEXT", "description": "The body of the proposal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHOICES": {"name": "CHOICES", "description": "An array containing the voting options on the proposal.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DELAY": {"name": "DELAY", "description": "The default number of hours of voting delay for the space. The voting delay is the time between proposal submission and the opening of voting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "QUORUM": {"name": "QUORUM", "description": "The minimum amount of voting power for a proposal to pass.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VOTING_PERIOD": {"name": "VOTING_PERIOD", "description": "The default time in hours within a space for a proposal to be open for voting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VOTING_TYPE": {"name": "VOTING_TYPE", "description": "The type of voting system used for this space. If this column is not null, the same voting system will be used for all proposals in this space.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "IPFS": {"name": "IPFS", "description": "The corresponding IPFS hash.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROPOSAL_START_TIME": {"name": "PROPOSAL_START_TIME", "description": "The time at which voting on the proposal begins.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROPOSAL_END_TIME": {"name": "PROPOSAL_END_TIME", "description": "The time at which voting on the proposal ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SPACE_ID": {"name": "SPACE_ID", "description": "A way to identify which group, or space, on Snapshot a proposal belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NETWORK": {"name": "NETWORK", "description": "The default network or blockchain used for the space.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NETWORK_ID": {"name": "NETWORK_ID", "description": "The default network or blockchain unique identifier used for the space.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROPOSAL_ID": {"name": "PROPOSAL_ID", "description": "A unique identifier for the proposal being voted on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "SNAPSHOT", "PURPOSE": "GOVERNANCE"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/snapshot/gold/snapshot__fact_proposals.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "meta": {"database_tags": {"table": {"PROTOCOL": "SNAPSHOT", "PURPOSE": "GOVERNANCE"}}}, "tags": ["snapshot"]}, "created_at": 1760113501.5880013, "relation_name": "EXTERNAL.snapshot.fact_proposals", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'SNAPSHOT',\n 'PURPOSE': 'GOVERNANCE' } } },\n tags = ['snapshot']\n) }}\n\nSELECT\n created_at,\n proposal_title,\n proposal_author,\n proposal_text,\n choices,\n delay,\n quorum,\n voting_period,\n voting_type,\n ipfs,\n proposal_start_time,\n proposal_end_time,\n space_id,\n network,\n network_id,\n proposal_id\nFROM\n {{ ref('silver__snapshot_proposals') }}", "language": "sql", "refs": [{"name": "silver__snapshot_proposals", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.external_models.silver__snapshot_proposals"]}, "compiled_path": "target/compiled/external_models/models/snapshot/gold/snapshot__fact_proposals.sql", "compiled": true, "compiled_code": "\n\nSELECT\n created_at,\n proposal_title,\n proposal_author,\n proposal_text,\n choices,\n delay,\n quorum,\n voting_period,\n voting_type,\n ipfs,\n proposal_start_time,\n proposal_end_time,\n space_id,\n network,\n network_id,\n proposal_id\nFROM\n EXTERNAL.silver.snapshot_proposals", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.snapshot__dim_spaces": {"database": "EXTERNAL", "schema": "snapshot", "name": "snapshot__dim_spaces", "resource_type": "model", "package_name": "external_models", "path": "snapshot/gold/snapshot__dim_spaces.sql", "original_file_path": "models/snapshot/gold/snapshot__dim_spaces.sql", "unique_id": "model.external_models.snapshot__dim_spaces", "fqn": ["external_models", "snapshot", "gold", "snapshot__dim_spaces"], "alias": "dim_spaces", "checksum": {"name": "sha256", "checksum": "bf530803e03069916078901c246212aed11e19459c48c62f86d5b61d1156ada1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["snapshot"], "meta": {"database_tags": {"table": {"PROTOCOL": "SNAPSHOT", "PURPOSE": "GOVERNANCE"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["snapshot"], "description": "A dimensional view that contains all spaces on Snapshot and related information.", "columns": {"SPACE_ID": {"name": "SPACE_ID", "description": "A way to identify which group, or space, on Snapshot a proposal belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SPACE": {"name": "SPACE", "description": "The name of the space.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ABOUT": {"name": "ABOUT", "description": "The description of the space.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SYMBOL": {"name": "SYMBOL", "description": "The symbol of the space.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NETWORK": {"name": "NETWORK", "description": "The default network or blockchain used for the space.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CATEGORIES": {"name": "CATEGORIES", "description": "The category of the space.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DOMAIN": {"name": "DOMAIN", "description": "The domain name of the space.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "IS_PRIVATE": {"name": "IS_PRIVATE", "description": "Boolean column to signal whether the space is private or not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "IS_VERIFIED": {"name": "IS_VERIFIED", "description": "Boolean column to signal whether the space is verified or not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ADMINS": {"name": "ADMINS", "description": "An array of the admin addresses of the space.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MEMBERS": {"name": "MEMBERS", "description": "An array of the member addresses of the space.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TREASURIES": {"name": "TREASURIES", "description": "An object showcasing treasury details for the space.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "SNAPSHOT", "PURPOSE": "GOVERNANCE"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/snapshot/gold/snapshot__dim_spaces.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "meta": {"database_tags": {"table": {"PROTOCOL": "SNAPSHOT", "PURPOSE": "GOVERNANCE"}}}, "tags": ["snapshot"]}, "created_at": 1760113501.582055, "relation_name": "EXTERNAL.snapshot.dim_spaces", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'SNAPSHOT',\n 'PURPOSE': 'GOVERNANCE' } } },\n tags = ['snapshot']\n) }}\n\nSELECT\n space_id,\n SPACE,\n about,\n symbol,\n network,\n categories,\n domain,\n is_private,\n is_verified,\n admins,\n members,\n treasuries\nFROM\n {{ ref('silver__snapshot_spaces') }}", "language": "sql", "refs": [{"name": "silver__snapshot_spaces", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.external_models.silver__snapshot_spaces"]}, "compiled_path": "target/compiled/external_models/models/snapshot/gold/snapshot__dim_spaces.sql", "compiled": true, "compiled_code": "\n\nSELECT\n space_id,\n SPACE,\n about,\n symbol,\n network,\n categories,\n domain,\n is_private,\n is_verified,\n admins,\n members,\n treasuries\nFROM\n EXTERNAL.silver.snapshot_spaces", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__snapshot_users": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__snapshot_users", "resource_type": "model", "package_name": "external_models", "path": "snapshot/bronze/bronze__snapshot_users.sql", "original_file_path": "models/snapshot/bronze/bronze__snapshot_users.sql", "unique_id": "model.external_models.bronze__snapshot_users", "fqn": ["external_models", "snapshot", "bronze", "bronze__snapshot_users"], "alias": "snapshot_users", "checksum": {"name": "sha256", "checksum": "cad604bbd2e92b71015dd06b750da5d25a4c09616695f2f8eaf3d0e14c42db69"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["snapshot"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "address", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["snapshot"], "description": "", "columns": {"ADDRESS": {"name": "ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATED_AT": {"name": "CREATED_AT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/snapshot/bronze/bronze__snapshot_users.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "address", "full_refresh": false, "tags": ["snapshot"]}, "created_at": 1760113501.6508288, "relation_name": "EXTERNAL.bronze.snapshot_users", "raw_code": "{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'address',\n full_refresh = false,\n tags = ['snapshot']\n) }}\n\nWITH initial_request AS ({% for item in range(6) %}\n (\n\n SELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey':'key' },{ 'query': 'query { users(orderBy: \"created\", orderDirection: asc, first: 1000, skip: ' || {{ item * 1000 }} || ', where:{created_gte: ' || max_time_start || '}) { id name about avatar ipfs created } }' },'Vault/prod/external/snapshot') AS resp, SYSDATE() AS _inserted_timestamp\n FROM\n (\n SELECT\n DATE_PART(epoch_second, max_start :: TIMESTAMP) AS max_time_start\n FROM\n (\n\n{% if is_incremental() %}\nSELECT\n MAX(created_at) AS max_start\nFROM\n {{ this }}\n{% else %}\nSELECT\n 1595080000 AS max_start\n{% endif %}) AS max_time)) {% if not loop.last %}\nUNION ALL\n{% endif %}\n{% endfor %}),\nusers_initial AS (\n SELECT\n LOWER(\n VALUE :id :: STRING\n ) AS address,\n VALUE :name :: STRING AS NAME,\n VALUE :about :: STRING AS about,\n VALUE :avatar :: STRING AS avatar,\n VALUE :ipfs :: STRING AS ipfs,\n TO_TIMESTAMP_NTZ(\n VALUE :created\n ) AS created_at,\n _inserted_timestamp\n FROM\n initial_request,\n LATERAL FLATTEN(\n input => resp :data :data :users\n ) qualify(ROW_NUMBER() over(PARTITION BY address\n ORDER BY\n TO_TIMESTAMP_NTZ(VALUE :created) DESC)) = 1\n),\nfinal_request AS ({% for item in range(6) %}\n (\nSELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey': (\nSELECT\n api_key\nFROM\n {{ source('crosschain_silver', 'apis_keys') }}\nWHERE\n api_name = 'snapshot') },{ 'query': 'query { users(orderBy: \"created\", orderDirection: asc, first: 1000, skip: ' || {{ item * 1000 }} || ', where:{created_gte: ' || max_time_start || '}) { id name about avatar ipfs created } }' }) AS resp, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n DATE_PART(epoch_second, max_start :: TIMESTAMP) AS max_time_start\nFROM\n (\nSELECT\n MAX(created_at) AS max_start\nFROM\n users_initial) AS max_time)) {% if not loop.last %}\n UNION ALL\n {% endif %}\n{% endfor %}),\nusers_final AS (\n SELECT\n LOWER(\n VALUE :id :: STRING\n ) AS address,\n VALUE :name :: STRING AS NAME,\n VALUE :about :: STRING AS about,\n VALUE :avatar :: STRING AS avatar,\n VALUE :ipfs :: STRING AS ipfs,\n TO_TIMESTAMP_NTZ(\n VALUE :created\n ) AS created_at,\n _inserted_timestamp\n FROM\n final_request,\n LATERAL FLATTEN(\n input => resp :data :data :users\n ) qualify(ROW_NUMBER() over(PARTITION BY address\n ORDER BY\n TO_TIMESTAMP_NTZ(VALUE :created) DESC)) = 1\n),\nusers_merged AS (\n SELECT\n *\n FROM\n users_initial\n UNION ALL\n SELECT\n *\n FROM\n users_final\n)\nSELECT\n address,\n NAME,\n about,\n avatar,\n ipfs,\n created_at,\n _inserted_timestamp\nFROM\n users_merged qualify(ROW_NUMBER() over(PARTITION BY address\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [], "sources": [["crosschain_silver", "apis_keys"], ["crosschain_silver", "apis_keys"], ["crosschain_silver", "apis_keys"], ["crosschain_silver", "apis_keys"], ["crosschain_silver", "apis_keys"], ["crosschain_silver", "apis_keys"]], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["source.external_models.crosschain_silver.apis_keys"]}, "compiled_path": "target/compiled/external_models/models/snapshot/bronze/bronze__snapshot_users.sql", "compiled": true, "compiled_code": "\n\nWITH initial_request AS (\n (\n\n SELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey':'key' },{ 'query': 'query { users(orderBy: \"created\", orderDirection: asc, first: 1000, skip: ' || 0 || ', where:{created_gte: ' || max_time_start || '}) { id name about avatar ipfs created } }' },'Vault/prod/external/snapshot') AS resp, SYSDATE() AS _inserted_timestamp\n FROM\n (\n SELECT\n DATE_PART(epoch_second, max_start :: TIMESTAMP) AS max_time_start\n FROM\n (\n\n\nSELECT\n MAX(created_at) AS max_start\nFROM\n EXTERNAL.bronze.snapshot_users\n) AS max_time)) \nUNION ALL\n\n\n (\n\n SELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey':'key' },{ 'query': 'query { users(orderBy: \"created\", orderDirection: asc, first: 1000, skip: ' || 1000 || ', where:{created_gte: ' || max_time_start || '}) { id name about avatar ipfs created } }' },'Vault/prod/external/snapshot') AS resp, SYSDATE() AS _inserted_timestamp\n FROM\n (\n SELECT\n DATE_PART(epoch_second, max_start :: TIMESTAMP) AS max_time_start\n FROM\n (\n\n\nSELECT\n MAX(created_at) AS max_start\nFROM\n EXTERNAL.bronze.snapshot_users\n) AS max_time)) \nUNION ALL\n\n\n (\n\n SELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey':'key' },{ 'query': 'query { users(orderBy: \"created\", orderDirection: asc, first: 1000, skip: ' || 2000 || ', where:{created_gte: ' || max_time_start || '}) { id name about avatar ipfs created } }' },'Vault/prod/external/snapshot') AS resp, SYSDATE() AS _inserted_timestamp\n FROM\n (\n SELECT\n DATE_PART(epoch_second, max_start :: TIMESTAMP) AS max_time_start\n FROM\n (\n\n\nSELECT\n MAX(created_at) AS max_start\nFROM\n EXTERNAL.bronze.snapshot_users\n) AS max_time)) \nUNION ALL\n\n\n (\n\n SELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey':'key' },{ 'query': 'query { users(orderBy: \"created\", orderDirection: asc, first: 1000, skip: ' || 3000 || ', where:{created_gte: ' || max_time_start || '}) { id name about avatar ipfs created } }' },'Vault/prod/external/snapshot') AS resp, SYSDATE() AS _inserted_timestamp\n FROM\n (\n SELECT\n DATE_PART(epoch_second, max_start :: TIMESTAMP) AS max_time_start\n FROM\n (\n\n\nSELECT\n MAX(created_at) AS max_start\nFROM\n EXTERNAL.bronze.snapshot_users\n) AS max_time)) \nUNION ALL\n\n\n (\n\n SELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey':'key' },{ 'query': 'query { users(orderBy: \"created\", orderDirection: asc, first: 1000, skip: ' || 4000 || ', where:{created_gte: ' || max_time_start || '}) { id name about avatar ipfs created } }' },'Vault/prod/external/snapshot') AS resp, SYSDATE() AS _inserted_timestamp\n FROM\n (\n SELECT\n DATE_PART(epoch_second, max_start :: TIMESTAMP) AS max_time_start\n FROM\n (\n\n\nSELECT\n MAX(created_at) AS max_start\nFROM\n EXTERNAL.bronze.snapshot_users\n) AS max_time)) \nUNION ALL\n\n\n (\n\n SELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey':'key' },{ 'query': 'query { users(orderBy: \"created\", orderDirection: asc, first: 1000, skip: ' || 5000 || ', where:{created_gte: ' || max_time_start || '}) { id name about avatar ipfs created } }' },'Vault/prod/external/snapshot') AS resp, SYSDATE() AS _inserted_timestamp\n FROM\n (\n SELECT\n DATE_PART(epoch_second, max_start :: TIMESTAMP) AS max_time_start\n FROM\n (\n\n\nSELECT\n MAX(created_at) AS max_start\nFROM\n EXTERNAL.bronze.snapshot_users\n) AS max_time)) \n),\nusers_initial AS (\n SELECT\n LOWER(\n VALUE :id :: STRING\n ) AS address,\n VALUE :name :: STRING AS NAME,\n VALUE :about :: STRING AS about,\n VALUE :avatar :: STRING AS avatar,\n VALUE :ipfs :: STRING AS ipfs,\n TO_TIMESTAMP_NTZ(\n VALUE :created\n ) AS created_at,\n _inserted_timestamp\n FROM\n initial_request,\n LATERAL FLATTEN(\n input => resp :data :data :users\n ) qualify(ROW_NUMBER() over(PARTITION BY address\n ORDER BY\n TO_TIMESTAMP_NTZ(VALUE :created) DESC)) = 1\n),\nfinal_request AS (\n (\nSELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey': (\nSELECT\n api_key\nFROM\n crosschain.silver.apis_keys\nWHERE\n api_name = 'snapshot') },{ 'query': 'query { users(orderBy: \"created\", orderDirection: asc, first: 1000, skip: ' || 0 || ', where:{created_gte: ' || max_time_start || '}) { id name about avatar ipfs created } }' }) AS resp, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n DATE_PART(epoch_second, max_start :: TIMESTAMP) AS max_time_start\nFROM\n (\nSELECT\n MAX(created_at) AS max_start\nFROM\n users_initial) AS max_time)) \n UNION ALL\n \n\n (\nSELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey': (\nSELECT\n api_key\nFROM\n crosschain.silver.apis_keys\nWHERE\n api_name = 'snapshot') },{ 'query': 'query { users(orderBy: \"created\", orderDirection: asc, first: 1000, skip: ' || 1000 || ', where:{created_gte: ' || max_time_start || '}) { id name about avatar ipfs created } }' }) AS resp, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n DATE_PART(epoch_second, max_start :: TIMESTAMP) AS max_time_start\nFROM\n (\nSELECT\n MAX(created_at) AS max_start\nFROM\n users_initial) AS max_time)) \n UNION ALL\n \n\n (\nSELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey': (\nSELECT\n api_key\nFROM\n crosschain.silver.apis_keys\nWHERE\n api_name = 'snapshot') },{ 'query': 'query { users(orderBy: \"created\", orderDirection: asc, first: 1000, skip: ' || 2000 || ', where:{created_gte: ' || max_time_start || '}) { id name about avatar ipfs created } }' }) AS resp, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n DATE_PART(epoch_second, max_start :: TIMESTAMP) AS max_time_start\nFROM\n (\nSELECT\n MAX(created_at) AS max_start\nFROM\n users_initial) AS max_time)) \n UNION ALL\n \n\n (\nSELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey': (\nSELECT\n api_key\nFROM\n crosschain.silver.apis_keys\nWHERE\n api_name = 'snapshot') },{ 'query': 'query { users(orderBy: \"created\", orderDirection: asc, first: 1000, skip: ' || 3000 || ', where:{created_gte: ' || max_time_start || '}) { id name about avatar ipfs created } }' }) AS resp, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n DATE_PART(epoch_second, max_start :: TIMESTAMP) AS max_time_start\nFROM\n (\nSELECT\n MAX(created_at) AS max_start\nFROM\n users_initial) AS max_time)) \n UNION ALL\n \n\n (\nSELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey': (\nSELECT\n api_key\nFROM\n crosschain.silver.apis_keys\nWHERE\n api_name = 'snapshot') },{ 'query': 'query { users(orderBy: \"created\", orderDirection: asc, first: 1000, skip: ' || 4000 || ', where:{created_gte: ' || max_time_start || '}) { id name about avatar ipfs created } }' }) AS resp, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n DATE_PART(epoch_second, max_start :: TIMESTAMP) AS max_time_start\nFROM\n (\nSELECT\n MAX(created_at) AS max_start\nFROM\n users_initial) AS max_time)) \n UNION ALL\n \n\n (\nSELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey': (\nSELECT\n api_key\nFROM\n crosschain.silver.apis_keys\nWHERE\n api_name = 'snapshot') },{ 'query': 'query { users(orderBy: \"created\", orderDirection: asc, first: 1000, skip: ' || 5000 || ', where:{created_gte: ' || max_time_start || '}) { id name about avatar ipfs created } }' }) AS resp, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n DATE_PART(epoch_second, max_start :: TIMESTAMP) AS max_time_start\nFROM\n (\nSELECT\n MAX(created_at) AS max_start\nFROM\n users_initial) AS max_time)) \n),\nusers_final AS (\n SELECT\n LOWER(\n VALUE :id :: STRING\n ) AS address,\n VALUE :name :: STRING AS NAME,\n VALUE :about :: STRING AS about,\n VALUE :avatar :: STRING AS avatar,\n VALUE :ipfs :: STRING AS ipfs,\n TO_TIMESTAMP_NTZ(\n VALUE :created\n ) AS created_at,\n _inserted_timestamp\n FROM\n final_request,\n LATERAL FLATTEN(\n input => resp :data :data :users\n ) qualify(ROW_NUMBER() over(PARTITION BY address\n ORDER BY\n TO_TIMESTAMP_NTZ(VALUE :created) DESC)) = 1\n),\nusers_merged AS (\n SELECT\n *\n FROM\n users_initial\n UNION ALL\n SELECT\n *\n FROM\n users_final\n)\nSELECT\n address,\n NAME,\n about,\n avatar,\n ipfs,\n created_at,\n _inserted_timestamp\nFROM\n users_merged qualify(ROW_NUMBER() over(PARTITION BY address\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__snapshot_proposals": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__snapshot_proposals", "resource_type": "model", "package_name": "external_models", "path": "snapshot/bronze/bronze__snapshot_proposals.sql", "original_file_path": "models/snapshot/bronze/bronze__snapshot_proposals.sql", "unique_id": "model.external_models.bronze__snapshot_proposals", "fqn": ["external_models", "snapshot", "bronze", "bronze__snapshot_proposals"], "alias": "snapshot_proposals", "checksum": {"name": "sha256", "checksum": "56fd80956d493522d294d35cfaea999fc66226506656c150fb31946b83a58bf3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["snapshot"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "proposal_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["snapshot"], "description": "", "columns": {"PROPOSAL_ID": {"name": "PROPOSAL_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHOICES": {"name": "CHOICES", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SPACE_ID": {"name": "SPACE_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATED_AT": {"name": "CREATED_AT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROPOSAL_START_TIME": {"name": "PROPOSAL_START_TIME", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROPOSAL_END_TIME": {"name": "PROPOSAL_END_TIME", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/snapshot/bronze/bronze__snapshot_proposals.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": "proposal_id", "full_refresh": false, "tags": ["snapshot"]}, "created_at": 1760113501.6122773, "relation_name": "EXTERNAL.bronze.snapshot_proposals", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = 'proposal_id',\n full_refresh = false,\n tags = ['snapshot']\n) }}\n\nWITH requests AS ({% for item in range(6) %}\n (\n\n SELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey':'key' },\n { 'query':'query { proposals(orderBy: \"created\", orderDirection: asc,first:1000, skip: ' || {{ item * 1000 }} || ',where:{created_gte: ' || max_time_start || '}) { id space{id voting {delay quorum period type}} ipfs author created network type title body start end state votes choices scores_state scores } }' }\n ,'Vault/prod/external/snapshot') AS resp, \n SYSDATE() AS _inserted_timestamp\n FROM\n (\n SELECT\n DATE_PART(epoch_second, max_prop_created :: TIMESTAMP) AS max_time_start\n FROM\n (\n\n{% if is_incremental() %}\nSELECT\n MAX(created_at) AS max_prop_created\nFROM\n {{ this }}\n{% else %}\nSELECT\n 1595080000 AS max_prop_created\n{% endif %}) AS max_time)) {% if not loop.last %}\nUNION ALL\n{% endif %}\n{% endfor %}),\nFINAL AS (\n SELECT\n VALUE :id :: STRING AS proposal_id,\n VALUE :ipfs :: STRING AS ipfs,\n STRTOK_TO_ARRAY(\n VALUE :choices,\n ';'\n ) AS choices,\n VALUE :author :: STRING AS proposal_author,\n VALUE :title :: STRING AS proposal_title,\n VALUE :body :: STRING AS proposal_text,\n VALUE :space :id :: STRING AS space_id,\n VALUE :space :voting :delay :: INTEGER AS delay,\n VALUE :space :voting :quorum :: INTEGER AS quorum,\n VALUE :space :voting :period :: INTEGER AS voting_period,\n VALUE :space :voting :type :: STRING AS voting_type,\n VALUE :network :: STRING AS network,\n TO_TIMESTAMP_NTZ(\n VALUE :created\n ) AS created_at,\n TO_TIMESTAMP_NTZ(\n VALUE :start\n ) AS proposal_start_time,\n TO_TIMESTAMP_NTZ(\n VALUE :end\n ) AS proposal_end_time,\n VALUE,\n _inserted_timestamp\n FROM\n requests,\n LATERAL FLATTEN(\n input => resp :data :data :proposals\n )\n qualify(ROW_NUMBER() over (PARTITION BY proposal_id\n ORDER BY\n TO_TIMESTAMP_NTZ(VALUE :created) DESC)) = 1\n)\nSELECT\n proposal_id,\n ipfs,\n choices,\n proposal_author,\n proposal_title,\n proposal_text,\n (delay / 3600) :: INTEGER AS delay,\n quorum,\n (voting_period / 3600) :: INTEGER AS voting_period,\n LOWER(voting_type) AS voting_type,\n space_id,\n network,\n created_at,\n proposal_start_time,\n proposal_end_time,\n _inserted_timestamp\nFROM\n FINAL", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": []}, "compiled_path": "target/compiled/external_models/models/snapshot/bronze/bronze__snapshot_proposals.sql", "compiled": true, "compiled_code": "\n\nWITH requests AS (\n (\n\n SELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey':'key' },\n { 'query':'query { proposals(orderBy: \"created\", orderDirection: asc,first:1000, skip: ' || 0 || ',where:{created_gte: ' || max_time_start || '}) { id space{id voting {delay quorum period type}} ipfs author created network type title body start end state votes choices scores_state scores } }' }\n ,'Vault/prod/external/snapshot') AS resp, \n SYSDATE() AS _inserted_timestamp\n FROM\n (\n SELECT\n DATE_PART(epoch_second, max_prop_created :: TIMESTAMP) AS max_time_start\n FROM\n (\n\n\nSELECT\n MAX(created_at) AS max_prop_created\nFROM\n EXTERNAL.bronze.snapshot_proposals\n) AS max_time)) \nUNION ALL\n\n\n (\n\n SELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey':'key' },\n { 'query':'query { proposals(orderBy: \"created\", orderDirection: asc,first:1000, skip: ' || 1000 || ',where:{created_gte: ' || max_time_start || '}) { id space{id voting {delay quorum period type}} ipfs author created network type title body start end state votes choices scores_state scores } }' }\n ,'Vault/prod/external/snapshot') AS resp, \n SYSDATE() AS _inserted_timestamp\n FROM\n (\n SELECT\n DATE_PART(epoch_second, max_prop_created :: TIMESTAMP) AS max_time_start\n FROM\n (\n\n\nSELECT\n MAX(created_at) AS max_prop_created\nFROM\n EXTERNAL.bronze.snapshot_proposals\n) AS max_time)) \nUNION ALL\n\n\n (\n\n SELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey':'key' },\n { 'query':'query { proposals(orderBy: \"created\", orderDirection: asc,first:1000, skip: ' || 2000 || ',where:{created_gte: ' || max_time_start || '}) { id space{id voting {delay quorum period type}} ipfs author created network type title body start end state votes choices scores_state scores } }' }\n ,'Vault/prod/external/snapshot') AS resp, \n SYSDATE() AS _inserted_timestamp\n FROM\n (\n SELECT\n DATE_PART(epoch_second, max_prop_created :: TIMESTAMP) AS max_time_start\n FROM\n (\n\n\nSELECT\n MAX(created_at) AS max_prop_created\nFROM\n EXTERNAL.bronze.snapshot_proposals\n) AS max_time)) \nUNION ALL\n\n\n (\n\n SELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey':'key' },\n { 'query':'query { proposals(orderBy: \"created\", orderDirection: asc,first:1000, skip: ' || 3000 || ',where:{created_gte: ' || max_time_start || '}) { id space{id voting {delay quorum period type}} ipfs author created network type title body start end state votes choices scores_state scores } }' }\n ,'Vault/prod/external/snapshot') AS resp, \n SYSDATE() AS _inserted_timestamp\n FROM\n (\n SELECT\n DATE_PART(epoch_second, max_prop_created :: TIMESTAMP) AS max_time_start\n FROM\n (\n\n\nSELECT\n MAX(created_at) AS max_prop_created\nFROM\n EXTERNAL.bronze.snapshot_proposals\n) AS max_time)) \nUNION ALL\n\n\n (\n\n SELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey':'key' },\n { 'query':'query { proposals(orderBy: \"created\", orderDirection: asc,first:1000, skip: ' || 4000 || ',where:{created_gte: ' || max_time_start || '}) { id space{id voting {delay quorum period type}} ipfs author created network type title body start end state votes choices scores_state scores } }' }\n ,'Vault/prod/external/snapshot') AS resp, \n SYSDATE() AS _inserted_timestamp\n FROM\n (\n SELECT\n DATE_PART(epoch_second, max_prop_created :: TIMESTAMP) AS max_time_start\n FROM\n (\n\n\nSELECT\n MAX(created_at) AS max_prop_created\nFROM\n EXTERNAL.bronze.snapshot_proposals\n) AS max_time)) \nUNION ALL\n\n\n (\n\n SELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey':'key' },\n { 'query':'query { proposals(orderBy: \"created\", orderDirection: asc,first:1000, skip: ' || 5000 || ',where:{created_gte: ' || max_time_start || '}) { id space{id voting {delay quorum period type}} ipfs author created network type title body start end state votes choices scores_state scores } }' }\n ,'Vault/prod/external/snapshot') AS resp, \n SYSDATE() AS _inserted_timestamp\n FROM\n (\n SELECT\n DATE_PART(epoch_second, max_prop_created :: TIMESTAMP) AS max_time_start\n FROM\n (\n\n\nSELECT\n MAX(created_at) AS max_prop_created\nFROM\n EXTERNAL.bronze.snapshot_proposals\n) AS max_time)) \n),\nFINAL AS (\n SELECT\n VALUE :id :: STRING AS proposal_id,\n VALUE :ipfs :: STRING AS ipfs,\n STRTOK_TO_ARRAY(\n VALUE :choices,\n ';'\n ) AS choices,\n VALUE :author :: STRING AS proposal_author,\n VALUE :title :: STRING AS proposal_title,\n VALUE :body :: STRING AS proposal_text,\n VALUE :space :id :: STRING AS space_id,\n VALUE :space :voting :delay :: INTEGER AS delay,\n VALUE :space :voting :quorum :: INTEGER AS quorum,\n VALUE :space :voting :period :: INTEGER AS voting_period,\n VALUE :space :voting :type :: STRING AS voting_type,\n VALUE :network :: STRING AS network,\n TO_TIMESTAMP_NTZ(\n VALUE :created\n ) AS created_at,\n TO_TIMESTAMP_NTZ(\n VALUE :start\n ) AS proposal_start_time,\n TO_TIMESTAMP_NTZ(\n VALUE :end\n ) AS proposal_end_time,\n VALUE,\n _inserted_timestamp\n FROM\n requests,\n LATERAL FLATTEN(\n input => resp :data :data :proposals\n )\n qualify(ROW_NUMBER() over (PARTITION BY proposal_id\n ORDER BY\n TO_TIMESTAMP_NTZ(VALUE :created) DESC)) = 1\n)\nSELECT\n proposal_id,\n ipfs,\n choices,\n proposal_author,\n proposal_title,\n proposal_text,\n (delay / 3600) :: INTEGER AS delay,\n quorum,\n (voting_period / 3600) :: INTEGER AS voting_period,\n LOWER(voting_type) AS voting_type,\n space_id,\n network,\n created_at,\n proposal_start_time,\n proposal_end_time,\n _inserted_timestamp\nFROM\n FINAL", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__snapshot_votes": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__snapshot_votes", "resource_type": "model", "package_name": "external_models", "path": "snapshot/bronze/bronze__snapshot_votes.sql", "original_file_path": "models/snapshot/bronze/bronze__snapshot_votes.sql", "unique_id": "model.external_models.bronze__snapshot_votes", "fqn": ["external_models", "snapshot", "bronze", "bronze__snapshot_votes"], "alias": "snapshot_votes", "checksum": {"name": "sha256", "checksum": "c9c9bffb68b5a09f49d950181d84f09a0991c69e4ecfc8b42a9dee860ff1cedf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["snapshot"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["snapshot"], "description": "", "columns": {"ID": {"name": "ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROPOSAL_ID": {"name": "PROPOSAL_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VOTER": {"name": "VOTER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VOTE_TIMESTAMP": {"name": "VOTE_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VOTE_OPTION": {"name": "VOTE_OPTION", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/snapshot/bronze/bronze__snapshot_votes.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": "id", "full_refresh": false, "tags": ["snapshot"]}, "created_at": 1760113501.5904226, "relation_name": "EXTERNAL.bronze.snapshot_votes", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = 'id',\n full_refresh = false,\n tags = ['snapshot']\n) }}\n\nWITH initial_votes_request AS ({% for item in range(6) %}\n (\n\n SELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey':'key' },{ 'query': 'query { votes(orderBy: \"created\", orderDirection: asc, first: 1000, skip: ' || {{ item * 1000 }} || ', where:{created_gte: ' || max_time_start || ',created_lt: ' || max_time_end || '}) { id proposal{id} ipfs voter created choice vp } }' },'Vault/prod/external/snapshot') AS resp, SYSDATE() AS _inserted_timestamp\n FROM\n (\n SELECT\n DATE_PART(epoch_second, max_vote_start :: TIMESTAMP) AS max_time_start, DATE_PART(epoch_second, max_vote_start :: TIMESTAMP) + 86400 AS max_time_end\n FROM\n (\n\n{% if is_incremental() %}\nSELECT\n MAX(vote_timestamp) AS max_vote_start\nFROM\n {{ this }}\n{% else %}\nSELECT\n 1595080000 AS max_vote_start\n{% endif %}) AS max_time)) {% if not loop.last %}\nUNION ALL\n{% endif %}\n{% endfor %}),\nvotes_initial AS (\n SELECT\n SPLIT(\n VALUE :choice :: STRING,\n ';'\n ) AS vote_option,\n VALUE :id :: STRING AS id,\n VALUE :ipfs :: STRING AS ipfs,\n VALUE :proposal :id :: STRING AS proposal_id,\n VALUE :voter :: STRING AS voter,\n VALUE :vp :: NUMBER AS voting_power,\n TO_TIMESTAMP_NTZ(\n VALUE :created\n ) AS vote_timestamp,\n _inserted_timestamp\n FROM\n initial_votes_request,\n LATERAL FLATTEN(\n input => resp :data :data :votes\n ) qualify(ROW_NUMBER() over(PARTITION BY id\n ORDER BY\n TO_TIMESTAMP_NTZ(VALUE :created) DESC)) = 1\n),\nfinal_votes_request AS ({% for item in range(6) %}\n (\nSELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey': (\nSELECT\n api_key\nFROM\n {{ source('crosschain_silver', 'apis_keys') }}\nWHERE\n api_name = 'snapshot') },{ 'query': 'query { votes(orderBy: \"created\", orderDirection: asc, first: 1000, skip: ' || {{ item * 1000 }} || ', where:{created_gte: ' || max_time_start || ',created_lt: ' || max_time_end || '}) { id proposal{id} ipfs voter created choice vp } }' }) AS resp, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n DATE_PART(epoch_second, max_vote_start :: TIMESTAMP) AS max_time_start, DATE_PART(epoch_second, max_vote_start :: TIMESTAMP) + 86400 AS max_time_end\nFROM\n (\nSELECT\n MAX(vote_timestamp) AS max_vote_start\nFROM\n votes_initial) AS max_time)) {% if not loop.last %}\n UNION ALL\n {% endif %}\n{% endfor %}),\nvotes_final AS (\n SELECT\n SPLIT(\n VALUE :choice :: STRING,\n ';'\n ) AS vote_option,\n VALUE :id :: STRING AS id,\n VALUE :ipfs :: STRING AS ipfs,\n VALUE :proposal :id :: STRING AS proposal_id,\n VALUE :voter :: STRING AS voter,\n VALUE :vp :: NUMBER AS voting_power,\n TO_TIMESTAMP_NTZ(\n VALUE :created\n ) AS vote_timestamp,\n _inserted_timestamp\n FROM\n final_votes_request,\n LATERAL FLATTEN(\n input => resp :data :data :votes\n ) qualify(ROW_NUMBER() over(PARTITION BY id\n ORDER BY\n TO_TIMESTAMP_NTZ(VALUE :created) DESC)) = 1\n),\nvotes_merged AS (\n SELECT\n *\n FROM\n votes_initial\n UNION ALL\n SELECT\n *\n FROM\n votes_final\n)\nSELECT\n id,\n ipfs,\n proposal_id,\n voter,\n voting_power,\n vote_timestamp,\n vote_option,\n _inserted_timestamp\nFROM\n votes_merged\nWHERE\n proposal_id IS NOT NULL qualify(ROW_NUMBER() over(PARTITION BY id\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [], "sources": [["crosschain_silver", "apis_keys"], ["crosschain_silver", "apis_keys"], ["crosschain_silver", "apis_keys"], ["crosschain_silver", "apis_keys"], ["crosschain_silver", "apis_keys"], ["crosschain_silver", "apis_keys"]], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["source.external_models.crosschain_silver.apis_keys"]}, "compiled_path": "target/compiled/external_models/models/snapshot/bronze/bronze__snapshot_votes.sql", "compiled": true, "compiled_code": "\n\nWITH initial_votes_request AS (\n (\n\n SELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey':'key' },{ 'query': 'query { votes(orderBy: \"created\", orderDirection: asc, first: 1000, skip: ' || 0 || ', where:{created_gte: ' || max_time_start || ',created_lt: ' || max_time_end || '}) { id proposal{id} ipfs voter created choice vp } }' },'Vault/prod/external/snapshot') AS resp, SYSDATE() AS _inserted_timestamp\n FROM\n (\n SELECT\n DATE_PART(epoch_second, max_vote_start :: TIMESTAMP) AS max_time_start, DATE_PART(epoch_second, max_vote_start :: TIMESTAMP) + 86400 AS max_time_end\n FROM\n (\n\n\nSELECT\n MAX(vote_timestamp) AS max_vote_start\nFROM\n EXTERNAL.bronze.snapshot_votes\n) AS max_time)) \nUNION ALL\n\n\n (\n\n SELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey':'key' },{ 'query': 'query { votes(orderBy: \"created\", orderDirection: asc, first: 1000, skip: ' || 1000 || ', where:{created_gte: ' || max_time_start || ',created_lt: ' || max_time_end || '}) { id proposal{id} ipfs voter created choice vp } }' },'Vault/prod/external/snapshot') AS resp, SYSDATE() AS _inserted_timestamp\n FROM\n (\n SELECT\n DATE_PART(epoch_second, max_vote_start :: TIMESTAMP) AS max_time_start, DATE_PART(epoch_second, max_vote_start :: TIMESTAMP) + 86400 AS max_time_end\n FROM\n (\n\n\nSELECT\n MAX(vote_timestamp) AS max_vote_start\nFROM\n EXTERNAL.bronze.snapshot_votes\n) AS max_time)) \nUNION ALL\n\n\n (\n\n SELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey':'key' },{ 'query': 'query { votes(orderBy: \"created\", orderDirection: asc, first: 1000, skip: ' || 2000 || ', where:{created_gte: ' || max_time_start || ',created_lt: ' || max_time_end || '}) { id proposal{id} ipfs voter created choice vp } }' },'Vault/prod/external/snapshot') AS resp, SYSDATE() AS _inserted_timestamp\n FROM\n (\n SELECT\n DATE_PART(epoch_second, max_vote_start :: TIMESTAMP) AS max_time_start, DATE_PART(epoch_second, max_vote_start :: TIMESTAMP) + 86400 AS max_time_end\n FROM\n (\n\n\nSELECT\n MAX(vote_timestamp) AS max_vote_start\nFROM\n EXTERNAL.bronze.snapshot_votes\n) AS max_time)) \nUNION ALL\n\n\n (\n\n SELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey':'key' },{ 'query': 'query { votes(orderBy: \"created\", orderDirection: asc, first: 1000, skip: ' || 3000 || ', where:{created_gte: ' || max_time_start || ',created_lt: ' || max_time_end || '}) { id proposal{id} ipfs voter created choice vp } }' },'Vault/prod/external/snapshot') AS resp, SYSDATE() AS _inserted_timestamp\n FROM\n (\n SELECT\n DATE_PART(epoch_second, max_vote_start :: TIMESTAMP) AS max_time_start, DATE_PART(epoch_second, max_vote_start :: TIMESTAMP) + 86400 AS max_time_end\n FROM\n (\n\n\nSELECT\n MAX(vote_timestamp) AS max_vote_start\nFROM\n EXTERNAL.bronze.snapshot_votes\n) AS max_time)) \nUNION ALL\n\n\n (\n\n SELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey':'key' },{ 'query': 'query { votes(orderBy: \"created\", orderDirection: asc, first: 1000, skip: ' || 4000 || ', where:{created_gte: ' || max_time_start || ',created_lt: ' || max_time_end || '}) { id proposal{id} ipfs voter created choice vp } }' },'Vault/prod/external/snapshot') AS resp, SYSDATE() AS _inserted_timestamp\n FROM\n (\n SELECT\n DATE_PART(epoch_second, max_vote_start :: TIMESTAMP) AS max_time_start, DATE_PART(epoch_second, max_vote_start :: TIMESTAMP) + 86400 AS max_time_end\n FROM\n (\n\n\nSELECT\n MAX(vote_timestamp) AS max_vote_start\nFROM\n EXTERNAL.bronze.snapshot_votes\n) AS max_time)) \nUNION ALL\n\n\n (\n\n SELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey':'key' },{ 'query': 'query { votes(orderBy: \"created\", orderDirection: asc, first: 1000, skip: ' || 5000 || ', where:{created_gte: ' || max_time_start || ',created_lt: ' || max_time_end || '}) { id proposal{id} ipfs voter created choice vp } }' },'Vault/prod/external/snapshot') AS resp, SYSDATE() AS _inserted_timestamp\n FROM\n (\n SELECT\n DATE_PART(epoch_second, max_vote_start :: TIMESTAMP) AS max_time_start, DATE_PART(epoch_second, max_vote_start :: TIMESTAMP) + 86400 AS max_time_end\n FROM\n (\n\n\nSELECT\n MAX(vote_timestamp) AS max_vote_start\nFROM\n EXTERNAL.bronze.snapshot_votes\n) AS max_time)) \n),\nvotes_initial AS (\n SELECT\n SPLIT(\n VALUE :choice :: STRING,\n ';'\n ) AS vote_option,\n VALUE :id :: STRING AS id,\n VALUE :ipfs :: STRING AS ipfs,\n VALUE :proposal :id :: STRING AS proposal_id,\n VALUE :voter :: STRING AS voter,\n VALUE :vp :: NUMBER AS voting_power,\n TO_TIMESTAMP_NTZ(\n VALUE :created\n ) AS vote_timestamp,\n _inserted_timestamp\n FROM\n initial_votes_request,\n LATERAL FLATTEN(\n input => resp :data :data :votes\n ) qualify(ROW_NUMBER() over(PARTITION BY id\n ORDER BY\n TO_TIMESTAMP_NTZ(VALUE :created) DESC)) = 1\n),\nfinal_votes_request AS (\n (\nSELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey': (\nSELECT\n api_key\nFROM\n crosschain.silver.apis_keys\nWHERE\n api_name = 'snapshot') },{ 'query': 'query { votes(orderBy: \"created\", orderDirection: asc, first: 1000, skip: ' || 0 || ', where:{created_gte: ' || max_time_start || ',created_lt: ' || max_time_end || '}) { id proposal{id} ipfs voter created choice vp } }' }) AS resp, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n DATE_PART(epoch_second, max_vote_start :: TIMESTAMP) AS max_time_start, DATE_PART(epoch_second, max_vote_start :: TIMESTAMP) + 86400 AS max_time_end\nFROM\n (\nSELECT\n MAX(vote_timestamp) AS max_vote_start\nFROM\n votes_initial) AS max_time)) \n UNION ALL\n \n\n (\nSELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey': (\nSELECT\n api_key\nFROM\n crosschain.silver.apis_keys\nWHERE\n api_name = 'snapshot') },{ 'query': 'query { votes(orderBy: \"created\", orderDirection: asc, first: 1000, skip: ' || 1000 || ', where:{created_gte: ' || max_time_start || ',created_lt: ' || max_time_end || '}) { id proposal{id} ipfs voter created choice vp } }' }) AS resp, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n DATE_PART(epoch_second, max_vote_start :: TIMESTAMP) AS max_time_start, DATE_PART(epoch_second, max_vote_start :: TIMESTAMP) + 86400 AS max_time_end\nFROM\n (\nSELECT\n MAX(vote_timestamp) AS max_vote_start\nFROM\n votes_initial) AS max_time)) \n UNION ALL\n \n\n (\nSELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey': (\nSELECT\n api_key\nFROM\n crosschain.silver.apis_keys\nWHERE\n api_name = 'snapshot') },{ 'query': 'query { votes(orderBy: \"created\", orderDirection: asc, first: 1000, skip: ' || 2000 || ', where:{created_gte: ' || max_time_start || ',created_lt: ' || max_time_end || '}) { id proposal{id} ipfs voter created choice vp } }' }) AS resp, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n DATE_PART(epoch_second, max_vote_start :: TIMESTAMP) AS max_time_start, DATE_PART(epoch_second, max_vote_start :: TIMESTAMP) + 86400 AS max_time_end\nFROM\n (\nSELECT\n MAX(vote_timestamp) AS max_vote_start\nFROM\n votes_initial) AS max_time)) \n UNION ALL\n \n\n (\nSELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey': (\nSELECT\n api_key\nFROM\n crosschain.silver.apis_keys\nWHERE\n api_name = 'snapshot') },{ 'query': 'query { votes(orderBy: \"created\", orderDirection: asc, first: 1000, skip: ' || 3000 || ', where:{created_gte: ' || max_time_start || ',created_lt: ' || max_time_end || '}) { id proposal{id} ipfs voter created choice vp } }' }) AS resp, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n DATE_PART(epoch_second, max_vote_start :: TIMESTAMP) AS max_time_start, DATE_PART(epoch_second, max_vote_start :: TIMESTAMP) + 86400 AS max_time_end\nFROM\n (\nSELECT\n MAX(vote_timestamp) AS max_vote_start\nFROM\n votes_initial) AS max_time)) \n UNION ALL\n \n\n (\nSELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey': (\nSELECT\n api_key\nFROM\n crosschain.silver.apis_keys\nWHERE\n api_name = 'snapshot') },{ 'query': 'query { votes(orderBy: \"created\", orderDirection: asc, first: 1000, skip: ' || 4000 || ', where:{created_gte: ' || max_time_start || ',created_lt: ' || max_time_end || '}) { id proposal{id} ipfs voter created choice vp } }' }) AS resp, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n DATE_PART(epoch_second, max_vote_start :: TIMESTAMP) AS max_time_start, DATE_PART(epoch_second, max_vote_start :: TIMESTAMP) + 86400 AS max_time_end\nFROM\n (\nSELECT\n MAX(vote_timestamp) AS max_vote_start\nFROM\n votes_initial) AS max_time)) \n UNION ALL\n \n\n (\nSELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey': (\nSELECT\n api_key\nFROM\n crosschain.silver.apis_keys\nWHERE\n api_name = 'snapshot') },{ 'query': 'query { votes(orderBy: \"created\", orderDirection: asc, first: 1000, skip: ' || 5000 || ', where:{created_gte: ' || max_time_start || ',created_lt: ' || max_time_end || '}) { id proposal{id} ipfs voter created choice vp } }' }) AS resp, SYSDATE() AS _inserted_timestamp\nFROM\n (\nSELECT\n DATE_PART(epoch_second, max_vote_start :: TIMESTAMP) AS max_time_start, DATE_PART(epoch_second, max_vote_start :: TIMESTAMP) + 86400 AS max_time_end\nFROM\n (\nSELECT\n MAX(vote_timestamp) AS max_vote_start\nFROM\n votes_initial) AS max_time)) \n),\nvotes_final AS (\n SELECT\n SPLIT(\n VALUE :choice :: STRING,\n ';'\n ) AS vote_option,\n VALUE :id :: STRING AS id,\n VALUE :ipfs :: STRING AS ipfs,\n VALUE :proposal :id :: STRING AS proposal_id,\n VALUE :voter :: STRING AS voter,\n VALUE :vp :: NUMBER AS voting_power,\n TO_TIMESTAMP_NTZ(\n VALUE :created\n ) AS vote_timestamp,\n _inserted_timestamp\n FROM\n final_votes_request,\n LATERAL FLATTEN(\n input => resp :data :data :votes\n ) qualify(ROW_NUMBER() over(PARTITION BY id\n ORDER BY\n TO_TIMESTAMP_NTZ(VALUE :created) DESC)) = 1\n),\nvotes_merged AS (\n SELECT\n *\n FROM\n votes_initial\n UNION ALL\n SELECT\n *\n FROM\n votes_final\n)\nSELECT\n id,\n ipfs,\n proposal_id,\n voter,\n voting_power,\n vote_timestamp,\n vote_option,\n _inserted_timestamp\nFROM\n votes_merged\nWHERE\n proposal_id IS NOT NULL qualify(ROW_NUMBER() over(PARTITION BY id\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__snapshot_spaces": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__snapshot_spaces", "resource_type": "model", "package_name": "external_models", "path": "snapshot/bronze/bronze__snapshot_spaces.sql", "original_file_path": "models/snapshot/bronze/bronze__snapshot_spaces.sql", "unique_id": "model.external_models.bronze__snapshot_spaces", "fqn": ["external_models", "snapshot", "bronze", "bronze__snapshot_spaces"], "alias": "snapshot_spaces", "checksum": {"name": "sha256", "checksum": "a51832fb6ced28dc304e930a2f5e3247b508f20988620b0720c208a571a9f254"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["snapshot"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "space_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["snapshot"], "description": "", "columns": {"SPACE_ID": {"name": "SPACE_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SPACE": {"name": "SPACE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/snapshot/bronze/bronze__snapshot_spaces.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "space_id", "full_refresh": false, "tags": ["snapshot"]}, "created_at": 1760113501.635254, "relation_name": "EXTERNAL.bronze.snapshot_spaces", "raw_code": "{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'space_id',\n full_refresh = false,\n tags = ['snapshot']\n) }}\n\nWITH requests AS ({% for item in range(6) %}\n (\n\n SELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey':'key' },{ 'query': 'query { spaces(orderBy: \"created\", orderDirection: desc, first: 1000, skip: ' || {{ item * 1000 }} || ') { id name about network symbol admins members categories domain private treasuries { address name network } verified } }' },'Vault/prod/external/snapshot') AS resp, SYSDATE() AS _inserted_timestamp) {% if not loop.last %}\n UNION ALL\n {% endif %}\n {% endfor %}),\n FINAL AS (\n SELECT\n VALUE :id :: STRING AS space_id,\n VALUE :name :: STRING AS SPACE,\n VALUE :about :: STRING AS about,\n VALUE :network :: STRING AS network,\n VALUE :symbol :: STRING AS symbol,\n VALUE :admins :: variant AS admins,\n VALUE :members :: variant AS members,\n VALUE :categories :: variant AS categories,\n VALUE :domain :: STRING AS domain,\n VALUE :private :: BOOLEAN AS is_private,\n VALUE :treasuries :: variant AS treasuries,\n VALUE :verified :: BOOLEAN AS is_verified,\n _inserted_timestamp\n FROM\n requests,\n LATERAL FLATTEN(\n input => resp :data :data :spaces\n ) qualify(ROW_NUMBER() over(PARTITION BY space_id\n ORDER BY\n _inserted_timestamp DESC)) = 1\n )\nSELECT\n space_id,\n SPACE,\n about,\n symbol,\n network,\n categories,\n domain,\n is_private,\n is_verified,\n admins,\n members,\n treasuries,\n _inserted_timestamp\nFROM\n FINAL", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": "target/compiled/external_models/models/snapshot/bronze/bronze__snapshot_spaces.sql", "compiled": true, "compiled_code": "\n\nWITH requests AS (\n (\n\n SELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey':'key' },{ 'query': 'query { spaces(orderBy: \"created\", orderDirection: desc, first: 1000, skip: ' || 0 || ') { id name about network symbol admins members categories domain private treasuries { address name network } verified } }' },'Vault/prod/external/snapshot') AS resp, SYSDATE() AS _inserted_timestamp) \n UNION ALL\n \n \n (\n\n SELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey':'key' },{ 'query': 'query { spaces(orderBy: \"created\", orderDirection: desc, first: 1000, skip: ' || 1000 || ') { id name about network symbol admins members categories domain private treasuries { address name network } verified } }' },'Vault/prod/external/snapshot') AS resp, SYSDATE() AS _inserted_timestamp) \n UNION ALL\n \n \n (\n\n SELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey':'key' },{ 'query': 'query { spaces(orderBy: \"created\", orderDirection: desc, first: 1000, skip: ' || 2000 || ') { id name about network symbol admins members categories domain private treasuries { address name network } verified } }' },'Vault/prod/external/snapshot') AS resp, SYSDATE() AS _inserted_timestamp) \n UNION ALL\n \n \n (\n\n SELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey':'key' },{ 'query': 'query { spaces(orderBy: \"created\", orderDirection: desc, first: 1000, skip: ' || 3000 || ') { id name about network symbol admins members categories domain private treasuries { address name network } verified } }' },'Vault/prod/external/snapshot') AS resp, SYSDATE() AS _inserted_timestamp) \n UNION ALL\n \n \n (\n\n SELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey':'key' },{ 'query': 'query { spaces(orderBy: \"created\", orderDirection: desc, first: 1000, skip: ' || 4000 || ') { id name about network symbol admins members categories domain private treasuries { address name network } verified } }' },'Vault/prod/external/snapshot') AS resp, SYSDATE() AS _inserted_timestamp) \n UNION ALL\n \n \n (\n\n SELECT\n live.udf_api('GET', 'https://hub.snapshot.org/graphql',{ 'apiKey':'key' },{ 'query': 'query { spaces(orderBy: \"created\", orderDirection: desc, first: 1000, skip: ' || 5000 || ') { id name about network symbol admins members categories domain private treasuries { address name network } verified } }' },'Vault/prod/external/snapshot') AS resp, SYSDATE() AS _inserted_timestamp) \n ),\n FINAL AS (\n SELECT\n VALUE :id :: STRING AS space_id,\n VALUE :name :: STRING AS SPACE,\n VALUE :about :: STRING AS about,\n VALUE :network :: STRING AS network,\n VALUE :symbol :: STRING AS symbol,\n VALUE :admins :: variant AS admins,\n VALUE :members :: variant AS members,\n VALUE :categories :: variant AS categories,\n VALUE :domain :: STRING AS domain,\n VALUE :private :: BOOLEAN AS is_private,\n VALUE :treasuries :: variant AS treasuries,\n VALUE :verified :: BOOLEAN AS is_verified,\n _inserted_timestamp\n FROM\n requests,\n LATERAL FLATTEN(\n input => resp :data :data :spaces\n ) qualify(ROW_NUMBER() over(PARTITION BY space_id\n ORDER BY\n _inserted_timestamp DESC)) = 1\n )\nSELECT\n space_id,\n SPACE,\n about,\n symbol,\n network,\n categories,\n domain,\n is_private,\n is_verified,\n admins,\n members,\n treasuries,\n _inserted_timestamp\nFROM\n FINAL", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.streamline__oklink_complete": {"database": "EXTERNAL", "schema": "streamline", "name": "streamline__oklink_complete", "resource_type": "model", "package_name": "external_models", "path": "oklink/streamline/streamline__oklink_complete.sql", "original_file_path": "models/oklink/streamline/streamline__oklink_complete.sql", "unique_id": "model.external_models.streamline__oklink_complete", "fqn": ["external_models", "oklink", "streamline", "streamline__oklink_complete"], "alias": "oklink_complete", "checksum": {"name": "sha256", "checksum": "c944ba741df46ae9c4c5088fd2e88e87a57b4373a54511a5053556aa01ad6066"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline_realtime"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": [" date_day", "blockchain", "metric"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "merge_exclude_columns": ["inserted_timestamp"]}, "tags": ["streamline_realtime"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": [" date_day", "blockchain", "metric"], "merge_exclude_columns": ["inserted_timestamp"], "tags": ["streamline_realtime"]}, "created_at": 1760113498.0828283, "relation_name": "EXTERNAL.streamline.oklink_complete", "raw_code": "-- depends_on: {{ ref('bronze__oklink_FR') }}\n-- depends_on: {{ ref('bronze__oklink') }}\n{{ config (\n materialized = \"incremental\",\n unique_key = [' date_day','blockchain','metric'],\n merge_exclude_columns = [\"inserted_timestamp\"],\n tags = ['streamline_realtime']\n) }}\n\nSELECT\n date_day,\n blockchain,\n metric,\n partition_key,\n _inserted_timestamp,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n file_name,\n '{{ invocation_id }}' AS _invocation_id,\nFROM\n\n{% if is_incremental() %}\n{{ ref('bronze__oklink') }}\n{% else %}\n {{ ref('bronze__oklink_FR') }}\n{% endif %}\nWHERE\n DATA :errors IS NULL\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_INSERTED_TIMESTAMP), '1970-01-01' :: DATE) max_INSERTED_TIMESTAMP\n FROM\n {{ this }})\n {% endif %}\n\n qualify ROW_NUMBER() over (\n PARTITION BY date_day,\n blockchain,\n metric\n ORDER BY\n _inserted_timestamp DESC\n ) = 1", "language": "sql", "refs": [{"name": "bronze__oklink_FR", "package": null, "version": null}, {"name": "bronze__oklink", "package": null, "version": null}, {"name": "bronze__oklink_FR", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.external_models.bronze__oklink_FR", "model.external_models.bronze__oklink"]}, "compiled_path": "target/compiled/external_models/models/oklink/streamline/streamline__oklink_complete.sql", "compiled": true, "compiled_code": "-- depends_on: EXTERNAL.bronze.oklink_FR\n-- depends_on: EXTERNAL.bronze.oklink\n\n\nSELECT\n date_day,\n blockchain,\n metric,\n partition_key,\n _inserted_timestamp,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n file_name,\n 'f3fd32af-64d3-4c75-bfb6-95e2946ea073' AS _invocation_id,\nFROM\n\n\nEXTERNAL.bronze.oklink\n\nWHERE\n DATA :errors IS NULL\n\n\nAND _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_INSERTED_TIMESTAMP), '1970-01-01' :: DATE) max_INSERTED_TIMESTAMP\n FROM\n EXTERNAL.streamline.oklink_complete)\n \n\n qualify ROW_NUMBER() over (\n PARTITION BY date_day,\n blockchain,\n metric\n ORDER BY\n _inserted_timestamp DESC\n ) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.streamline__oklink_metrics": {"database": "EXTERNAL", "schema": "streamline", "name": "streamline__oklink_metrics", "resource_type": "model", "package_name": "external_models", "path": "oklink/streamline/streamline__oklink_metrics.sql", "original_file_path": "models/oklink/streamline/streamline__oklink_metrics.sql", "unique_id": "model.external_models.streamline__oklink_metrics", "fqn": ["external_models", "oklink", "streamline", "streamline__oklink_metrics"], "alias": "oklink_metrics", "checksum": {"name": "sha256", "checksum": "d58685b8f11f088fe30a72bfc891dd2d25ddeb5c5d55cb2dd3012a4d4e95ab6c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline_view"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["streamline_view"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["streamline_view"]}, "created_at": 1760113498.0920205, "relation_name": "EXTERNAL.streamline.oklink_metrics", "raw_code": "{{ config(\n materialized = 'view',\n tags = ['streamline_view']\n) }}\n-- Chains: SCROLL, SUI, FTM, LINEA\n-- Address: LINEA, SCROLL, RONIN (Only `newActiveAddresses`), FTM\n-- Stats: FTM\nWITH chains AS (\n\n SELECT\n 'SCROLL' AS chain_short_name,\n 'scroll' AS blockchain\n UNION ALL\n SELECT\n 'SUI',\n 'sui'\n UNION ALL\n SELECT\n 'FTM',\n 'fantom'\n UNION ALL\n SELECT\n 'LINEA',\n 'linea'\n UNION ALL\n SELECT\n 'RONIN',\n 'ronin'\n UNION ALL\n SELECT\n 'ZKSYNC',\n 'zksync'\n),\nmetrics AS (\n -- Addresses count metrics (no date params)\n SELECT\n blockchain,\n chain_short_name,\n 'address' AS metric,\n 'blockchain/address' AS endpoint,\n FALSE AS historical_data,\n 'Count of addresses on ' || blockchain AS description,\n NULL :: DATE AS chain_start_date\n FROM\n chains\n UNION ALL\n SELECT\n blockchain,\n chain_short_name,\n 'stats' AS metric,\n 'blockchain/stats' AS endpoint,\n TRUE AS historical_data,\n 'Blockchain statistics for ' || blockchain AS description,\n CASE\n blockchain\n WHEN 'fantom' THEN '2019-12-27'\n END AS chain_start_date\n FROM\n chains\n WHERE\n blockchain IN ('fantom')\n)\nSELECT\n date_day,\n blockchain,\n metric,\n endpoint,\n chain_short_name,\n (DATE_PART('EPOCH', date_day) * 1000) :: STRING AS xtime,\n description\nFROM\n {{ source(\n 'crosschain_core',\n 'dim_dates'\n ) }}\n CROSS JOIN metrics\nWHERE\n (\n metric = 'address'\n AND date_day = SYSDATE() :: DATE\n )\n OR (\n metric = 'stats'\n AND date_day >= chain_start_date\n AND date_day < SYSDATE() :: DATE\n )", "language": "sql", "refs": [], "sources": [["crosschain_core", "dim_dates"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.crosschain_core.dim_dates"]}, "compiled_path": "target/compiled/external_models/models/oklink/streamline/streamline__oklink_metrics.sql", "compiled": true, "compiled_code": "\n-- Chains: SCROLL, SUI, FTM, LINEA\n-- Address: LINEA, SCROLL, RONIN (Only `newActiveAddresses`), FTM\n-- Stats: FTM\nWITH chains AS (\n\n SELECT\n 'SCROLL' AS chain_short_name,\n 'scroll' AS blockchain\n UNION ALL\n SELECT\n 'SUI',\n 'sui'\n UNION ALL\n SELECT\n 'FTM',\n 'fantom'\n UNION ALL\n SELECT\n 'LINEA',\n 'linea'\n UNION ALL\n SELECT\n 'RONIN',\n 'ronin'\n UNION ALL\n SELECT\n 'ZKSYNC',\n 'zksync'\n),\nmetrics AS (\n -- Addresses count metrics (no date params)\n SELECT\n blockchain,\n chain_short_name,\n 'address' AS metric,\n 'blockchain/address' AS endpoint,\n FALSE AS historical_data,\n 'Count of addresses on ' || blockchain AS description,\n NULL :: DATE AS chain_start_date\n FROM\n chains\n UNION ALL\n SELECT\n blockchain,\n chain_short_name,\n 'stats' AS metric,\n 'blockchain/stats' AS endpoint,\n TRUE AS historical_data,\n 'Blockchain statistics for ' || blockchain AS description,\n CASE\n blockchain\n WHEN 'fantom' THEN '2019-12-27'\n END AS chain_start_date\n FROM\n chains\n WHERE\n blockchain IN ('fantom')\n)\nSELECT\n date_day,\n blockchain,\n metric,\n endpoint,\n chain_short_name,\n (DATE_PART('EPOCH', date_day) * 1000) :: STRING AS xtime,\n description\nFROM\n crosschain.core.dim_dates\n CROSS JOIN metrics\nWHERE\n (\n metric = 'address'\n AND date_day = SYSDATE() :: DATE\n )\n OR (\n metric = 'stats'\n AND date_day >= chain_start_date\n AND date_day < SYSDATE() :: DATE\n )", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.streamline__oklink_realtime": {"database": "EXTERNAL", "schema": "streamline", "name": "streamline__oklink_realtime", "resource_type": "model", "package_name": "external_models", "path": "oklink/streamline/streamline__oklink_realtime.sql", "original_file_path": "models/oklink/streamline/streamline__oklink_realtime.sql", "unique_id": "model.external_models.streamline__oklink_realtime", "fqn": ["external_models", "oklink", "streamline", "streamline__oklink_realtime"], "alias": "oklink_realtime", "checksum": {"name": "sha256", "checksum": "1362bcd935cbd1b82517979de86a4270b6d9c030e3e0a5dc64d968a1486a3e29"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline_realtime"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "\n \n \n SELECT\n NULL\n \n", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["streamline_realtime"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["streamline_realtime"], "post-hook": ["\n \n \n SELECT\n NULL\n \n"]}, "created_at": 1760113498.0947094, "relation_name": "EXTERNAL.streamline.oklink_realtime", "raw_code": "{{ config (\n materialized = \"view\",\n post_hook = fsc_utils.if_data_call_function_v2(\n func = 'streamline.udf_bulk_rest_api_v2',\n target = \"{{this.schema}}.{{this.identifier}}\",\n params ={ \"external_table\": \"oklink\",\n \"sql_limit\": \"100\",\n \"producer_batch_size\": \"100\",\n \"worker_batch_size\": \"100\",\n \"async_concurrent_requests\": \"1\",\n \"sql_source\": \"{{this.identifier}}\",\n \"order_by_column\": \"date_day desc\" }\n ),\n tags = ['streamline_realtime']\n) }}\n\nWITH metrics AS (\n\n SELECT\n date_day,\n blockchain,\n metric,\n endpoint || '?chainShortName=' || chain_short_name || CASE\n WHEN metric = 'address' THEN ''\n WHEN metric = 'stats' THEN '&startTime=' || xtime || '&endTime=' || xtime || '&limit=' || 1 || '&page=' || 1\n END AS full_endpoint\n FROM\n {{ ref(\"streamline__oklink_metrics\") }} A\n LEFT JOIN {{ ref(\"streamline__oklink_complete\") }}\n b USING (\n blockchain,\n metric,\n date_day\n )\n WHERE\n b._invocation_id IS NULL\n)\nSELECT\n TO_NUMBER(to_char(date_day, 'YYYYMMDD')) AS date_day,\n blockchain,\n metric,\n TO_NUMBER(to_char(SYSDATE() :: DATE, 'YYYYMMDD')) AS partition_key,\n {{ target.database }}.live.udf_api(\n 'GET',\n 'https://www.oklink.com/api/v5/explorer/' || full_endpoint,\n OBJECT_CONSTRUCT(\n 'Content-Type',\n 'application/json',\n 'Ok-Access-Key',\n '{Authentication}'\n ),{},\n 'Vault/prod/external/oklink'\n ) AS request\nFROM\n metrics", "language": "sql", "refs": [{"name": "streamline__oklink_metrics", "package": null, "version": null}, {"name": "streamline__oklink_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_utils.if_data_call_function_v2"], "nodes": ["model.external_models.streamline__oklink_metrics", "model.external_models.streamline__oklink_complete"]}, "compiled_path": "target/compiled/external_models/models/oklink/streamline/streamline__oklink_realtime.sql", "compiled": true, "compiled_code": "\n\nWITH metrics AS (\n\n SELECT\n date_day,\n blockchain,\n metric,\n endpoint || '?chainShortName=' || chain_short_name || CASE\n WHEN metric = 'address' THEN ''\n WHEN metric = 'stats' THEN '&startTime=' || xtime || '&endTime=' || xtime || '&limit=' || 1 || '&page=' || 1\n END AS full_endpoint\n FROM\n EXTERNAL.streamline.oklink_metrics A\n LEFT JOIN EXTERNAL.streamline.oklink_complete\n b USING (\n blockchain,\n metric,\n date_day\n )\n WHERE\n b._invocation_id IS NULL\n)\nSELECT\n TO_NUMBER(to_char(date_day, 'YYYYMMDD')) AS date_day,\n blockchain,\n metric,\n TO_NUMBER(to_char(SYSDATE() :: DATE, 'YYYYMMDD')) AS partition_key,\n EXTERNAL.live.udf_api(\n 'GET',\n 'https://www.oklink.com/api/v5/explorer/' || full_endpoint,\n OBJECT_CONSTRUCT(\n 'Content-Type',\n 'application/json',\n 'Ok-Access-Key',\n '{Authentication}'\n ),{},\n 'Vault/prod/external/oklink'\n ) AS request\nFROM\n metrics", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__oklink_FR": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__oklink_FR", "resource_type": "model", "package_name": "external_models", "path": "oklink/bronze/bronze__oklink_FR.sql", "original_file_path": "models/oklink/bronze/bronze__oklink_FR.sql", "unique_id": "model.external_models.bronze__oklink_FR", "fqn": ["external_models", "oklink", "bronze", "bronze__oklink_FR"], "alias": "oklink_FR", "checksum": {"name": "sha256", "checksum": "9318dddeff20c5b548c51a6d252a63f2478ed3e14984bf959bff80a3bdcba83f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view"}, "created_at": 1760113498.144695, "relation_name": "EXTERNAL.bronze.oklink_FR", "raw_code": "{{ config (\n materialized = 'view'\n) }}\n{{ streamline_external_table_FR_query_v2(\n model = 'oklink',\n partition_function = \"CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 3), '_', 1) AS INTEGER)\",\n partition_name = \"partition_key\",\n other_cols = \"to_date(value:DATE_DAY::STRING,'YYYYMMDD') AS DATE_DAY, value:BLOCKCHAIN::STRING AS BLOCKCHAIN, value:METRIC::STRING AS METRIC\"\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "oklink"], ["bronze_streamline", "oklink"]], "metrics": [], "depends_on": {"macros": ["macro.external_models.streamline_external_table_FR_query_v2"], "nodes": ["source.external_models.bronze_streamline.oklink"]}, "compiled_path": "target/compiled/external_models/models/oklink/bronze/bronze__oklink_FR.sql", "compiled": true, "compiled_code": "\n\nWITH meta AS (\n SELECT\n LAST_MODIFIED::timestamp_ntz AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 3), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => 'streamline.external.oklink'\n )\n ) A\n)\nSELECT\n to_date(value:DATE_DAY::STRING,'YYYYMMDD') AS DATE_DAY, value:BLOCKCHAIN::STRING AS BLOCKCHAIN, value:METRIC::STRING AS METRIC,\n DATA,\n _inserted_timestamp,\n s.partition_key,\n s.value AS VALUE,\n file_name\nFROM\n streamline.external.oklink\n s\nJOIN \n meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\nWHERE\n b.partition_key = s.partition_key\n AND (\n data:error:code IS NULL\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__oklink": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__oklink", "resource_type": "model", "package_name": "external_models", "path": "oklink/bronze/bronze__oklink.sql", "original_file_path": "models/oklink/bronze/bronze__oklink.sql", "unique_id": "model.external_models.bronze__oklink", "fqn": ["external_models", "oklink", "bronze", "bronze__oklink"], "alias": "oklink", "checksum": {"name": "sha256", "checksum": "a5c57da877ba94b74d25a1f77722cdf6179754c0f55b7ec6305e806517760c14"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view"}, "created_at": 1760113498.1542034, "relation_name": "EXTERNAL.bronze.oklink", "raw_code": "{{ config (\n materialized = 'view'\n) }}\n{{ streamline_external_table_query_v2(\n model = 'oklink',\n partition_function = \"CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 3), '_', 1) AS INTEGER)\",\n partition_name = \"partition_key\",\n other_cols = \"to_date(value:DATE_DAY::STRING,'YYYYMMDD') AS DATE_DAY, value:BLOCKCHAIN::STRING AS BLOCKCHAIN, value:METRIC::STRING AS METRIC\"\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "oklink"], ["bronze_streamline", "oklink"]], "metrics": [], "depends_on": {"macros": ["macro.external_models.streamline_external_table_query_v2"], "nodes": ["source.external_models.bronze_streamline.oklink"]}, "compiled_path": "target/compiled/external_models/models/oklink/bronze/bronze__oklink.sql", "compiled": true, "compiled_code": "\n\nWITH meta AS (\n SELECT\n LAST_MODIFIED::timestamp_ntz AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 3), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_file_registration_history(\n start_time => DATEADD('day', -3, CURRENT_TIMESTAMP()),\n table_name => 'streamline.external.oklink')\n ) A\n)\nSELECT\n to_date(value:DATE_DAY::STRING,'YYYYMMDD') AS DATE_DAY, value:BLOCKCHAIN::STRING AS BLOCKCHAIN, value:METRIC::STRING AS METRIC,\n DATA,\n _inserted_timestamp,\n s.partition_key,\n s.value AS VALUE,\n file_name\nFROM\n streamline.external.oklink\n s\nJOIN \n meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\nWHERE\n b.partition_key = s.partition_key\n AND (\n data:error:code IS NULL\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.silver__defillama_dex_volume": {"database": "EXTERNAL", "schema": "silver", "name": "silver__defillama_dex_volume", "resource_type": "model", "package_name": "external_models", "path": "defillama/silver/silver__defillama_dex_volume.sql", "original_file_path": "models/defillama/silver/silver__defillama_dex_volume.sql", "unique_id": "model.external_models.silver__defillama_dex_volume", "fqn": ["external_models", "defillama", "silver", "silver__defillama_dex_volume"], "alias": "defillama_dex_volume", "checksum": {"name": "sha256", "checksum": "f21fd03e262663ade6be2a034da02ae72b05308b5c035a3aa27f38d77410f254"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama"], "description": "", "columns": {"CHAIN": {"name": "CHAIN", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ID": {"name": "ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/silver/silver__defillama_dex_volume.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": "id", "full_refresh": false, "tags": ["defillama"]}, "created_at": 1760113502.0772288, "relation_name": "EXTERNAL.silver.defillama_dex_volume", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = 'id',\n full_refresh = false,\n tags = ['defillama']\n) }}\n\nWITH api_pull AS (\n\n SELECT\n PARSE_JSON(\n live.udf_api(\n 'GET',\n 'https://pro-api.llama.fi/{api_key}/api/overview/dexs?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true&dataType=dailyVolume',{},{},'Vault/prod/external/defillama'\n )\n ) :data :protocols AS response,\n SYSDATE() AS _inserted_timestamp\n),\nlat_flat AS (\n SELECT\n r.value AS VALUE,\n r.value :displayName :: STRING AS protocol,\n _inserted_timestamp\n FROM\n api_pull,\n LATERAL FLATTEN (\n input => response\n ) AS r\n),\nchain_breakdown AS (\n SELECT\n k.key AS chain,\n SYSDATE() :: DATE AS TIMESTAMP,\n protocol,\n k.value AS dex_object,\n v.value :: INTEGER AS daily_volume,\n _inserted_timestamp\n FROM\n lat_flat,\n LATERAL FLATTEN(\n input => VALUE :breakdown24h\n ) k,\n LATERAL FLATTEN(\n input => k.value\n ) v\n)\nSELECT\n chain,\n TIMESTAMP,\n LOWER(protocol) AS protocol,\n daily_volume,\n dex_object,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['chain', 'protocol', 'timestamp']\n ) }} AS id\nFROM\n chain_breakdown", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key"], "nodes": []}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_dex_volume.sql", "compiled": true, "compiled_code": "\n\nWITH api_pull AS (\n\n SELECT\n PARSE_JSON(\n live.udf_api(\n 'GET',\n 'https://pro-api.llama.fi/{api_key}/api/overview/dexs?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true&dataType=dailyVolume',{},{},'Vault/prod/external/defillama'\n )\n ) :data :protocols AS response,\n SYSDATE() AS _inserted_timestamp\n),\nlat_flat AS (\n SELECT\n r.value AS VALUE,\n r.value :displayName :: STRING AS protocol,\n _inserted_timestamp\n FROM\n api_pull,\n LATERAL FLATTEN (\n input => response\n ) AS r\n),\nchain_breakdown AS (\n SELECT\n k.key AS chain,\n SYSDATE() :: DATE AS TIMESTAMP,\n protocol,\n k.value AS dex_object,\n v.value :: INTEGER AS daily_volume,\n _inserted_timestamp\n FROM\n lat_flat,\n LATERAL FLATTEN(\n input => VALUE :breakdown24h\n ) k,\n LATERAL FLATTEN(\n input => k.value\n ) v\n)\nSELECT\n chain,\n TIMESTAMP,\n LOWER(protocol) AS protocol,\n daily_volume,\n dex_object,\n _inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(chain as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(protocol as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(timestamp as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS id\nFROM\n chain_breakdown", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.silver__defillama_chains_tvl": {"database": "EXTERNAL", "schema": "silver", "name": "silver__defillama_chains_tvl", "resource_type": "model", "package_name": "external_models", "path": "defillama/silver/silver__defillama_chains_tvl.sql", "original_file_path": "models/defillama/silver/silver__defillama_chains_tvl.sql", "unique_id": "model.external_models.silver__defillama_chains_tvl", "fqn": ["external_models", "defillama", "silver", "silver__defillama_chains_tvl"], "alias": "defillama_chains_tvl", "checksum": {"name": "sha256", "checksum": "77692d4fa8f42216a61a7494d931feb6aa5dda2d54f6f822fdcdd4cbc3e209e7"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama"], "description": "", "columns": {"_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ID": {"name": "ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/silver/silver__defillama_chains_tvl.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": "id", "full_refresh": false, "tags": ["defillama"]}, "created_at": 1760113502.136762, "relation_name": "EXTERNAL.silver.defillama_chains_tvl", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = 'id',\n full_refresh = false,\n tags = ['defillama']\n) }}\n\nWITH tvl_base AS (\n\n{% for item in range(7) %}\n(\nSELECT\n chain_id,\n chain,\n live.udf_api(\n 'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/charts/',chain),{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\nFROM (\n SELECT \n DISTINCT chain, \n chain_id,\n row_num\n FROM {{ ref('bronze__defillama_chains') }}\n WHERE row_num BETWEEN {{ item * 60 + 1 }} AND {{ (item + 1) * 60 }}\n )\n{% if is_incremental() %}\nWHERE chain NOT IN (\n SELECT\n chain\n FROM (\n SELECT \n DISTINCT chain,\n MAX(timestamp::DATE) AS max_timestamp\n FROM {{ this }}\n GROUP BY 1\n HAVING CURRENT_DATE = max_timestamp\n )\n)\n{% endif %}\n) {% if not loop.last %}\nUNION ALL\n{% endif %}\n{% endfor %}\n)\n\nSELECT\n chain_id,\n chain,\n TO_TIMESTAMP(VALUE:date::INTEGER) AS timestamp,\n VALUE:totalLiquidityUSD::INTEGER AS tvl_usd,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['chain_id', 'chain', 'timestamp']\n ) }} AS id\nFROM tvl_base,\n LATERAL FLATTEN (input=> read:data)\nqualify (ROW_NUMBER () over (PARTITION BY chain_id, chain, TIMESTAMP\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "bronze__defillama_chains", "package": null, "version": null}, {"name": "bronze__defillama_chains", "package": null, "version": null}, {"name": "bronze__defillama_chains", "package": null, "version": null}, {"name": "bronze__defillama_chains", "package": null, "version": null}, {"name": "bronze__defillama_chains", "package": null, "version": null}, {"name": "bronze__defillama_chains", "package": null, "version": null}, {"name": "bronze__defillama_chains", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.external_models.bronze__defillama_chains"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_chains_tvl.sql", "compiled": true, "compiled_code": "\n\nWITH tvl_base AS (\n\n\n(\nSELECT\n chain_id,\n chain,\n live.udf_api(\n 'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/charts/',chain),{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\nFROM (\n SELECT \n DISTINCT chain, \n chain_id,\n row_num\n FROM EXTERNAL.bronze.defillama_chains\n WHERE row_num BETWEEN 1 AND 60\n )\n\nWHERE chain NOT IN (\n SELECT\n chain\n FROM (\n SELECT \n DISTINCT chain,\n MAX(timestamp::DATE) AS max_timestamp\n FROM EXTERNAL.silver.defillama_chains_tvl\n GROUP BY 1\n HAVING CURRENT_DATE = max_timestamp\n )\n)\n\n) \nUNION ALL\n\n\n(\nSELECT\n chain_id,\n chain,\n live.udf_api(\n 'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/charts/',chain),{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\nFROM (\n SELECT \n DISTINCT chain, \n chain_id,\n row_num\n FROM EXTERNAL.bronze.defillama_chains\n WHERE row_num BETWEEN 61 AND 120\n )\n\nWHERE chain NOT IN (\n SELECT\n chain\n FROM (\n SELECT \n DISTINCT chain,\n MAX(timestamp::DATE) AS max_timestamp\n FROM EXTERNAL.silver.defillama_chains_tvl\n GROUP BY 1\n HAVING CURRENT_DATE = max_timestamp\n )\n)\n\n) \nUNION ALL\n\n\n(\nSELECT\n chain_id,\n chain,\n live.udf_api(\n 'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/charts/',chain),{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\nFROM (\n SELECT \n DISTINCT chain, \n chain_id,\n row_num\n FROM EXTERNAL.bronze.defillama_chains\n WHERE row_num BETWEEN 121 AND 180\n )\n\nWHERE chain NOT IN (\n SELECT\n chain\n FROM (\n SELECT \n DISTINCT chain,\n MAX(timestamp::DATE) AS max_timestamp\n FROM EXTERNAL.silver.defillama_chains_tvl\n GROUP BY 1\n HAVING CURRENT_DATE = max_timestamp\n )\n)\n\n) \nUNION ALL\n\n\n(\nSELECT\n chain_id,\n chain,\n live.udf_api(\n 'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/charts/',chain),{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\nFROM (\n SELECT \n DISTINCT chain, \n chain_id,\n row_num\n FROM EXTERNAL.bronze.defillama_chains\n WHERE row_num BETWEEN 181 AND 240\n )\n\nWHERE chain NOT IN (\n SELECT\n chain\n FROM (\n SELECT \n DISTINCT chain,\n MAX(timestamp::DATE) AS max_timestamp\n FROM EXTERNAL.silver.defillama_chains_tvl\n GROUP BY 1\n HAVING CURRENT_DATE = max_timestamp\n )\n)\n\n) \nUNION ALL\n\n\n(\nSELECT\n chain_id,\n chain,\n live.udf_api(\n 'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/charts/',chain),{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\nFROM (\n SELECT \n DISTINCT chain, \n chain_id,\n row_num\n FROM EXTERNAL.bronze.defillama_chains\n WHERE row_num BETWEEN 241 AND 300\n )\n\nWHERE chain NOT IN (\n SELECT\n chain\n FROM (\n SELECT \n DISTINCT chain,\n MAX(timestamp::DATE) AS max_timestamp\n FROM EXTERNAL.silver.defillama_chains_tvl\n GROUP BY 1\n HAVING CURRENT_DATE = max_timestamp\n )\n)\n\n) \nUNION ALL\n\n\n(\nSELECT\n chain_id,\n chain,\n live.udf_api(\n 'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/charts/',chain),{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\nFROM (\n SELECT \n DISTINCT chain, \n chain_id,\n row_num\n FROM EXTERNAL.bronze.defillama_chains\n WHERE row_num BETWEEN 301 AND 360\n )\n\nWHERE chain NOT IN (\n SELECT\n chain\n FROM (\n SELECT \n DISTINCT chain,\n MAX(timestamp::DATE) AS max_timestamp\n FROM EXTERNAL.silver.defillama_chains_tvl\n GROUP BY 1\n HAVING CURRENT_DATE = max_timestamp\n )\n)\n\n) \nUNION ALL\n\n\n(\nSELECT\n chain_id,\n chain,\n live.udf_api(\n 'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/charts/',chain),{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\nFROM (\n SELECT \n DISTINCT chain, \n chain_id,\n row_num\n FROM EXTERNAL.bronze.defillama_chains\n WHERE row_num BETWEEN 361 AND 420\n )\n\nWHERE chain NOT IN (\n SELECT\n chain\n FROM (\n SELECT \n DISTINCT chain,\n MAX(timestamp::DATE) AS max_timestamp\n FROM EXTERNAL.silver.defillama_chains_tvl\n GROUP BY 1\n HAVING CURRENT_DATE = max_timestamp\n )\n)\n\n) \n\n)\n\nSELECT\n chain_id,\n chain,\n TO_TIMESTAMP(VALUE:date::INTEGER) AS timestamp,\n VALUE:totalLiquidityUSD::INTEGER AS tvl_usd,\n _inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(chain_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(chain as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(timestamp as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS id\nFROM tvl_base,\n LATERAL FLATTEN (input=> read:data)\nqualify (ROW_NUMBER () over (PARTITION BY chain_id, chain, TIMESTAMP\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.silver__defillama_perp_daily_volume": {"database": "EXTERNAL", "schema": "silver", "name": "silver__defillama_perp_daily_volume", "resource_type": "model", "package_name": "external_models", "path": "defillama/silver/silver__defillama_perp_daily_volume.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_daily_volume.sql", "unique_id": "model.external_models.silver__defillama_perp_daily_volume", "fqn": ["external_models", "defillama", "silver", "silver__defillama_perp_daily_volume"], "alias": "defillama_perp_daily_volume", "checksum": {"name": "sha256", "checksum": "e7617799b1cca3fc8e11e53d6c6e6e705d51a45ff31119e275a5a96ae7603716"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "defillama_perp_daily_volume_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["date", "chain", "protocol_id"]}, "tags": ["defillama"], "description": "", "columns": {"date": {"name": "date", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "chain": {"name": "chain", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "protocol_id": {"name": "protocol_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "protocol_slug": {"name": "protocol_slug", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "protocol": {"name": "protocol", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "volume": {"name": "volume", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "defillama_perp_metrics_id": {"name": "defillama_perp_metrics_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "defillama_perp_daily_volume_id": {"name": "defillama_perp_daily_volume_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_inserted_timestamp": {"name": "_inserted_timestamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inserted_timestamp": {"name": "inserted_timestamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "modified_timestamp": {"name": "modified_timestamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/silver/silver__defillama_perp_daily_volume.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": "defillama_perp_daily_volume_id", "cluster_by": ["date", "chain", "protocol_id"], "tags": ["defillama"]}, "created_at": 1760113502.0047412, "relation_name": "EXTERNAL.silver.defillama_perp_daily_volume", "raw_code": "-- depends_on: {{ ref('silver__defillama_perp_metrics') }}\n{{ config(\n materialized = 'incremental',\n unique_key = 'defillama_perp_daily_volume_id',\n cluster_by = ['date','chain','protocol_id'],\n tags = ['defillama']\n) }}\n\nwith base as (\n select \n protocol_id,\n protocol_slug,\n name,\n display_name,\n total_data_chart_breakdown,\n timestamp,\n _inserted_timestamp,\n defillama_perp_metrics_id\n from {{ ref('silver__defillama_perp_metrics') }}\n {% if is_incremental() %}\n where _inserted_timestamp > (\n select coalesce(max(_inserted_timestamp), '2025-01-01') from {{ this }}\n )\n {% endif %}\n),\n\n-- Flatten the total_data_chart_breakdown to get daily data points\ndaily_data_flattened as (\n select \n protocol_id,\n protocol_slug,\n name,\n display_name,\n timestamp,\n _inserted_timestamp,\n defillama_perp_metrics_id,\n daily_date.value[0]::bigint as date_timestamp,\n to_date(to_timestamp(daily_date.value[0]::bigint)) as date_day,\n daily_date.value[1] as chain_breakdown_object,\n daily_date.index as day_index\n from base,\n lateral flatten(input => total_data_chart_breakdown) as daily_date\n),\n\n-- Flatten the chain breakdown object to get blockchain/volume pairs\nchain_volume_flattened as (\n select \n ddf.protocol_id,\n ddf.protocol_slug,\n ddf.name,\n ddf.display_name,\n ddf.timestamp,\n ddf._inserted_timestamp,\n ddf.defillama_perp_metrics_id,\n ddf.date_day,\n ddf.date_timestamp,\n ddf.day_index,\n chain_breakdown.key as chain,\n chain_breakdown.value as protocol_volumes\n from daily_data_flattened ddf,\n lateral flatten(input => ddf.chain_breakdown_object) as chain_breakdown\n),\n\n-- Flatten the protocol volumes to get individual protocol volumes per blockchain\nfinal as (\n select \n cvf.date_day as date,\n cvf.chain,\n cvf.protocol_id,\n cvf.protocol_slug,\n cvf.name as protocol,\n protocol_vol.value::float as volume,\n cvf._inserted_timestamp,\n cvf.defillama_perp_metrics_id,\n {{ dbt_utils.generate_surrogate_key(\n ['cvf.protocol_id','cvf.date_day','cvf.chain']\n ) }} as defillama_perp_daily_volume_id,\n sysdate() as inserted_timestamp,\n sysdate() as modified_timestamp,\n '{{ invocation_id }}' as _invocation_id\n from chain_volume_flattened cvf,\n lateral flatten(input => cvf.protocol_volumes) as protocol_vol\n)\n\nselect \n date,\n chain,\n protocol_id,\n protocol_slug,\n protocol,\n volume,\n defillama_perp_metrics_id,\n defillama_perp_daily_volume_id,\n _inserted_timestamp,\n inserted_timestamp,\n modified_timestamp,\n _invocation_id\nfrom \n final qualify row_number() over (partition by defillama_perp_daily_volume_id order by _inserted_timestamp desc) = 1", "language": "sql", "refs": [{"name": "silver__defillama_perp_metrics", "package": null, "version": null}, {"name": "silver__defillama_perp_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.external_models.silver__defillama_perp_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_daily_volume.sql", "compiled": true, "compiled_code": "-- depends_on: EXTERNAL.silver.defillama_perp_metrics\n\n\nwith base as (\n select \n protocol_id,\n protocol_slug,\n name,\n display_name,\n total_data_chart_breakdown,\n timestamp,\n _inserted_timestamp,\n defillama_perp_metrics_id\n from EXTERNAL.silver.defillama_perp_metrics\n \n where _inserted_timestamp > (\n select coalesce(max(_inserted_timestamp), '2025-01-01') from EXTERNAL.silver.defillama_perp_daily_volume\n )\n \n),\n\n-- Flatten the total_data_chart_breakdown to get daily data points\ndaily_data_flattened as (\n select \n protocol_id,\n protocol_slug,\n name,\n display_name,\n timestamp,\n _inserted_timestamp,\n defillama_perp_metrics_id,\n daily_date.value[0]::bigint as date_timestamp,\n to_date(to_timestamp(daily_date.value[0]::bigint)) as date_day,\n daily_date.value[1] as chain_breakdown_object,\n daily_date.index as day_index\n from base,\n lateral flatten(input => total_data_chart_breakdown) as daily_date\n),\n\n-- Flatten the chain breakdown object to get blockchain/volume pairs\nchain_volume_flattened as (\n select \n ddf.protocol_id,\n ddf.protocol_slug,\n ddf.name,\n ddf.display_name,\n ddf.timestamp,\n ddf._inserted_timestamp,\n ddf.defillama_perp_metrics_id,\n ddf.date_day,\n ddf.date_timestamp,\n ddf.day_index,\n chain_breakdown.key as chain,\n chain_breakdown.value as protocol_volumes\n from daily_data_flattened ddf,\n lateral flatten(input => ddf.chain_breakdown_object) as chain_breakdown\n),\n\n-- Flatten the protocol volumes to get individual protocol volumes per blockchain\nfinal as (\n select \n cvf.date_day as date,\n cvf.chain,\n cvf.protocol_id,\n cvf.protocol_slug,\n cvf.name as protocol,\n protocol_vol.value::float as volume,\n cvf._inserted_timestamp,\n cvf.defillama_perp_metrics_id,\n \n \nmd5(cast(coalesce(cast(cvf.protocol_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(cvf.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(cvf.chain as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as defillama_perp_daily_volume_id,\n sysdate() as inserted_timestamp,\n sysdate() as modified_timestamp,\n 'f3fd32af-64d3-4c75-bfb6-95e2946ea073' as _invocation_id\n from chain_volume_flattened cvf,\n lateral flatten(input => cvf.protocol_volumes) as protocol_vol\n)\n\nselect \n date,\n chain,\n protocol_id,\n protocol_slug,\n protocol,\n volume,\n defillama_perp_metrics_id,\n defillama_perp_daily_volume_id,\n _inserted_timestamp,\n inserted_timestamp,\n modified_timestamp,\n _invocation_id\nfrom \n final qualify row_number() over (partition by defillama_perp_daily_volume_id order by _inserted_timestamp desc) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.silver__defillama_bridge_volume_by_chain": {"database": "EXTERNAL", "schema": "silver", "name": "silver__defillama_bridge_volume_by_chain", "resource_type": "model", "package_name": "external_models", "path": "defillama/silver/silver__defillama_bridge_volume_by_chain.sql", "original_file_path": "models/defillama/silver/silver__defillama_bridge_volume_by_chain.sql", "unique_id": "model.external_models.silver__defillama_bridge_volume_by_chain", "fqn": ["external_models", "defillama", "silver", "silver__defillama_bridge_volume_by_chain"], "alias": "defillama_bridge_volume_by_chain", "checksum": {"name": "sha256", "checksum": "1c7a1230aa94a5f66a9c304dc163bded088a31f62214b5ee1b4c2b351f96b7dc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "defillama_bridge_vol_by_chain_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama"], "description": "", "columns": {"BRIDGE_ID": {"name": "BRIDGE_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BRIDGE": {"name": "BRIDGE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAIN": {"name": "CHAIN", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DATE": {"name": "DATE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DEPOSIT_TXS": {"name": "DEPOSIT_TXS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DEPOSIT_USD": {"name": "DEPOSIT_USD", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "WITHDRAW_TXS": {"name": "WITHDRAW_TXS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "WITHDRAW_USD": {"name": "WITHDRAW_USD", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/silver/silver__defillama_bridge_volume_by_chain.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": "defillama_bridge_vol_by_chain_id", "full_refresh": false, "tags": ["defillama"]}, "created_at": 1760113501.7676904, "relation_name": "EXTERNAL.silver.defillama_bridge_volume_by_chain", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = 'defillama_bridge_vol_by_chain_id',\n full_refresh = false,\n tags = ['defillama']\n) }}\n\nWITH list_of_bridges AS (\n\n SELECT\n bridge_id,\n bridge,\n bridge_name,\n LOWER(\n VALUE :: STRING\n ) AS chain\n FROM\n {{ ref('bronze__defillama_bridges') }},\n LATERAL FLATTEN (\n input => chains\n )\n WHERE\n chain IN (\n SELECT\n DISTINCT blockchain\n FROM\n {{ source(\n 'crosschain_defi',\n 'ez_bridge_activity'\n ) }}\n )\n),\n\nbuild_requests as (\n select \n bridge_id, \n bridge, \n bridge_name, \n chain, \n CONCAT(bridge_id, '-', chain) AS bridge_id_chain, \n ROW_NUMBER() over (\n ORDER BY\n bridge_id_chain\n ) AS row_number_request\nFROM\n list_of_bridges\n {% if is_incremental() %}\nwhere\n bridge_id_chain NOT IN \n (\nSELECT\n bridge_id_chain\nFROM\n (\nSELECT\n bridge_id_chain,\n MAX(DATE) AS max_timestamp\nFROM\n {{ this }}\nGROUP BY \n ALL \nHAVING\n SYSDATE()::date = max_timestamp)\n )\n{% endif %}) ,\n\nrequests AS (\n {% for item in range(10) %}\nSELECT\n bridge_id, \n bridge, \n bridge_name, \n chain, \n bridge_id_chain, \n live.udf_api('GET', CONCAT('https://bridges.llama.fi/bridgevolume/', chain, '?id=', bridge_id),{},{}) AS READ\nFROM\n build_requests\nWHERE\n row_number_request BETWEEN {{ item * 40 + 1 }}\n AND {{(item + 1) * 40 }}\n\n{% if not loop.last %}\nUNION ALL\n{% endif %}\n{% endfor %})\nSELECT\n bridge_id,\n bridge,\n bridge_name,\n chain,\n bridge_id_chain,\n TO_TIMESTAMP(\n VALUE :date :: INTEGER\n )::DATE AS date,\n coalesce(VALUE :depositTxs :: INTEGER, 0) AS deposit_txs,\n coalesce(VALUE :depositUSD :: INTEGER, 0) AS deposit_usd,\n coalesce(VALUE :withdrawTxs :: INTEGER, 0) AS withdraw_txs,\n coalesce(VALUE :withdrawUSD :: INTEGER, 0) AS withdraw_usd,\n SYSDATE() as inserted_timestamp,\n SYSDATE() as modified_timestamp,\n {{ dbt_utils.generate_surrogate_key(['bridge_id_chain', 'date']) }} AS defillama_bridge_vol_by_chain_id,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n requests,\n LATERAL FLATTEN (\n input => READ :data\n )\n WHERE VALUE :depositTxs IS NOT NULL or VALUE :withdrawTxs IS NOT NULL", "language": "sql", "refs": [{"name": "bronze__defillama_bridges", "package": null, "version": null}], "sources": [["crosschain_defi", "ez_bridge_activity"]], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["source.external_models.crosschain_defi.ez_bridge_activity", "model.external_models.bronze__defillama_bridges"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_bridge_volume_by_chain.sql", "compiled": true, "compiled_code": "\n\nWITH list_of_bridges AS (\n\n SELECT\n bridge_id,\n bridge,\n bridge_name,\n LOWER(\n VALUE :: STRING\n ) AS chain\n FROM\n EXTERNAL.bronze.defillama_bridges,\n LATERAL FLATTEN (\n input => chains\n )\n WHERE\n chain IN (\n SELECT\n DISTINCT blockchain\n FROM\n crosschain.defi.ez_bridge_activity\n )\n),\n\nbuild_requests as (\n select \n bridge_id, \n bridge, \n bridge_name, \n chain, \n CONCAT(bridge_id, '-', chain) AS bridge_id_chain, \n ROW_NUMBER() over (\n ORDER BY\n bridge_id_chain\n ) AS row_number_request\nFROM\n list_of_bridges\n \nwhere\n bridge_id_chain NOT IN \n (\nSELECT\n bridge_id_chain\nFROM\n (\nSELECT\n bridge_id_chain,\n MAX(DATE) AS max_timestamp\nFROM\n EXTERNAL.silver.defillama_bridge_volume_by_chain\nGROUP BY \n ALL \nHAVING\n SYSDATE()::date = max_timestamp)\n )\n) ,\n\nrequests AS (\n \nSELECT\n bridge_id, \n bridge, \n bridge_name, \n chain, \n bridge_id_chain, \n live.udf_api('GET', CONCAT('https://bridges.llama.fi/bridgevolume/', chain, '?id=', bridge_id),{},{}) AS READ\nFROM\n build_requests\nWHERE\n row_number_request BETWEEN 1\n AND 40\n\n\nUNION ALL\n\n\nSELECT\n bridge_id, \n bridge, \n bridge_name, \n chain, \n bridge_id_chain, \n live.udf_api('GET', CONCAT('https://bridges.llama.fi/bridgevolume/', chain, '?id=', bridge_id),{},{}) AS READ\nFROM\n build_requests\nWHERE\n row_number_request BETWEEN 41\n AND 80\n\n\nUNION ALL\n\n\nSELECT\n bridge_id, \n bridge, \n bridge_name, \n chain, \n bridge_id_chain, \n live.udf_api('GET', CONCAT('https://bridges.llama.fi/bridgevolume/', chain, '?id=', bridge_id),{},{}) AS READ\nFROM\n build_requests\nWHERE\n row_number_request BETWEEN 81\n AND 120\n\n\nUNION ALL\n\n\nSELECT\n bridge_id, \n bridge, \n bridge_name, \n chain, \n bridge_id_chain, \n live.udf_api('GET', CONCAT('https://bridges.llama.fi/bridgevolume/', chain, '?id=', bridge_id),{},{}) AS READ\nFROM\n build_requests\nWHERE\n row_number_request BETWEEN 121\n AND 160\n\n\nUNION ALL\n\n\nSELECT\n bridge_id, \n bridge, \n bridge_name, \n chain, \n bridge_id_chain, \n live.udf_api('GET', CONCAT('https://bridges.llama.fi/bridgevolume/', chain, '?id=', bridge_id),{},{}) AS READ\nFROM\n build_requests\nWHERE\n row_number_request BETWEEN 161\n AND 200\n\n\nUNION ALL\n\n\nSELECT\n bridge_id, \n bridge, \n bridge_name, \n chain, \n bridge_id_chain, \n live.udf_api('GET', CONCAT('https://bridges.llama.fi/bridgevolume/', chain, '?id=', bridge_id),{},{}) AS READ\nFROM\n build_requests\nWHERE\n row_number_request BETWEEN 201\n AND 240\n\n\nUNION ALL\n\n\nSELECT\n bridge_id, \n bridge, \n bridge_name, \n chain, \n bridge_id_chain, \n live.udf_api('GET', CONCAT('https://bridges.llama.fi/bridgevolume/', chain, '?id=', bridge_id),{},{}) AS READ\nFROM\n build_requests\nWHERE\n row_number_request BETWEEN 241\n AND 280\n\n\nUNION ALL\n\n\nSELECT\n bridge_id, \n bridge, \n bridge_name, \n chain, \n bridge_id_chain, \n live.udf_api('GET', CONCAT('https://bridges.llama.fi/bridgevolume/', chain, '?id=', bridge_id),{},{}) AS READ\nFROM\n build_requests\nWHERE\n row_number_request BETWEEN 281\n AND 320\n\n\nUNION ALL\n\n\nSELECT\n bridge_id, \n bridge, \n bridge_name, \n chain, \n bridge_id_chain, \n live.udf_api('GET', CONCAT('https://bridges.llama.fi/bridgevolume/', chain, '?id=', bridge_id),{},{}) AS READ\nFROM\n build_requests\nWHERE\n row_number_request BETWEEN 321\n AND 360\n\n\nUNION ALL\n\n\nSELECT\n bridge_id, \n bridge, \n bridge_name, \n chain, \n bridge_id_chain, \n live.udf_api('GET', CONCAT('https://bridges.llama.fi/bridgevolume/', chain, '?id=', bridge_id),{},{}) AS READ\nFROM\n build_requests\nWHERE\n row_number_request BETWEEN 361\n AND 400\n\n\n)\nSELECT\n bridge_id,\n bridge,\n bridge_name,\n chain,\n bridge_id_chain,\n TO_TIMESTAMP(\n VALUE :date :: INTEGER\n )::DATE AS date,\n coalesce(VALUE :depositTxs :: INTEGER, 0) AS deposit_txs,\n coalesce(VALUE :depositUSD :: INTEGER, 0) AS deposit_usd,\n coalesce(VALUE :withdrawTxs :: INTEGER, 0) AS withdraw_txs,\n coalesce(VALUE :withdrawUSD :: INTEGER, 0) AS withdraw_usd,\n SYSDATE() as inserted_timestamp,\n SYSDATE() as modified_timestamp,\n \n \nmd5(cast(coalesce(cast(bridge_id_chain as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS defillama_bridge_vol_by_chain_id,\n 'f3fd32af-64d3-4c75-bfb6-95e2946ea073' AS _invocation_id\nFROM\n requests,\n LATERAL FLATTEN (\n input => READ :data\n )\n WHERE VALUE :depositTxs IS NOT NULL or VALUE :withdrawTxs IS NOT NULL", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.silver__defillama_protocol_tvl_history": {"database": "EXTERNAL", "schema": "silver", "name": "silver__defillama_protocol_tvl_history", "resource_type": "model", "package_name": "external_models", "path": "defillama/silver/silver__defillama_protocol_tvl_history.sql", "original_file_path": "models/defillama/silver/silver__defillama_protocol_tvl_history.sql", "unique_id": "model.external_models.silver__defillama_protocol_tvl_history", "fqn": ["external_models", "defillama", "silver", "silver__defillama_protocol_tvl_history"], "alias": "defillama_protocol_tvl_history", "checksum": {"name": "sha256", "checksum": "838529b50a97440639a2f969c874b960fd0c286e353950b4cef017713965f953"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama_history"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["protocol_id", "chain", "timestamp"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["timestamp", "protocol_id", "chain"]}, "tags": ["defillama_history"], "description": "", "columns": {"timestamp": {"name": "timestamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "protocol_id": {"name": "protocol_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "category": {"name": "category", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "protocol": {"name": "protocol", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "symbol": {"name": "symbol", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "chain": {"name": "chain", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "chain_tvl": {"name": "chain_tvl", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "chain_tvl_prev_day": {"name": "chain_tvl_prev_day", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "chain_tvl_prev_week": {"name": "chain_tvl_prev_week", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "chain_tvl_prev_month": {"name": "chain_tvl_prev_month", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "defillama_protocol_tvl_history_id": {"name": "defillama_protocol_tvl_history_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_inserted_timestamp": {"name": "_inserted_timestamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inserted_timestamp": {"name": "inserted_timestamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "modified_timestamp": {"name": "modified_timestamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_invocation_id": {"name": "_invocation_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/silver/silver__defillama_protocol_tvl_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": ["protocol_id", "chain", "timestamp"], "cluster_by": ["timestamp", "protocol_id", "chain"], "tags": ["defillama_history"]}, "created_at": 1760113502.203589, "relation_name": "EXTERNAL.silver.defillama_protocol_tvl_history", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = ['protocol_id', 'chain', 'timestamp'],\n cluster_by = ['timestamp', 'protocol_id', 'chain'],\n tags = ['defillama_history']\n) }}\n\nWITH tvl_history AS (\n SELECT\n protocol_id,\n category,\n r.key AS chain,\n r.value AS VALUE,\n _inserted_timestamp\n FROM\n {{ ref('bronze__defillama_protocol_tvl_history') }},\n LATERAL FLATTEN (response) AS r\n {% if is_incremental() %}\n WHERE\n _inserted_timestamp >= (\n SELECT\n max(_inserted_timestamp)\n FROM\n {{ this }}\n )\n {% endif %}\n),\n\ndaily_tvl_data AS (\n SELECT\n protocol_id,\n category,\n chain,\n r.value :date AS unix_timestamp,\n DATE_TRUNC(\n 'HOUR',\n TIMEADD(\n SECOND,\n r.value :date :: INT,\n '1970-01-01' :: timestamp_ntz\n )\n )::DATE AS timestamp,\n r.value :totalLiquidityUSD::INT AS chain_tvl,\n _inserted_timestamp\n FROM\n tvl_history,\n LATERAL FLATTEN (\n VALUE :tvl\n ) AS r\n),\n\ndaily_tvl_with_lags AS (\n SELECT\n timestamp,\n protocol_id,\n category,\n chain,\n chain_tvl,\n LAG(chain_tvl, 1) OVER (\n PARTITION BY protocol_id, chain\n ORDER BY timestamp\n ) AS chain_tvl_prev_day,\n LAG(chain_tvl, 7) OVER (\n PARTITION BY protocol_id, chain\n ORDER BY timestamp\n ) AS chain_tvl_prev_week,\n LAG(chain_tvl, 30) OVER (\n PARTITION BY protocol_id, chain\n ORDER BY timestamp\n ) AS chain_tvl_prev_month,\n _inserted_timestamp\n FROM\n daily_tvl_data\n QUALIFY ROW_NUMBER() OVER (\n PARTITION BY timestamp, protocol_id, chain\n ORDER BY _inserted_timestamp DESC\n ) = 1\n)\n\nSELECT\n d.timestamp,\n d.protocol_id,\n d.category,\n p.protocol,\n p.symbol,\n d.chain,\n d.chain_tvl,\n d.chain_tvl_prev_day,\n d.chain_tvl_prev_week,\n d.chain_tvl_prev_month,\n d._inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['d.protocol_id','d.chain','d.timestamp']\n ) }} AS defillama_protocol_tvl_history_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n daily_tvl_with_lags d\n LEFT JOIN {{ ref('defillama__dim_protocols') }} p\n ON p.protocol_id = d.protocol_id\nQUALIFY ROW_NUMBER() OVER (\n PARTITION BY d.timestamp, d.protocol_id, d.chain\n ORDER BY d._inserted_timestamp DESC\n) = 1", "language": "sql", "refs": [{"name": "bronze__defillama_protocol_tvl_history", "package": null, "version": null}, {"name": "defillama__dim_protocols", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.external_models.bronze__defillama_protocol_tvl_history", "model.external_models.defillama__dim_protocols"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_protocol_tvl_history.sql", "compiled": true, "compiled_code": "\n\nWITH tvl_history AS (\n SELECT\n protocol_id,\n category,\n r.key AS chain,\n r.value AS VALUE,\n _inserted_timestamp\n FROM\n EXTERNAL.bronze.defillama_protocol_tvl_history,\n LATERAL FLATTEN (response) AS r\n \n WHERE\n _inserted_timestamp >= (\n SELECT\n max(_inserted_timestamp)\n FROM\n EXTERNAL.silver.defillama_protocol_tvl_history\n )\n \n),\n\ndaily_tvl_data AS (\n SELECT\n protocol_id,\n category,\n chain,\n r.value :date AS unix_timestamp,\n DATE_TRUNC(\n 'HOUR',\n TIMEADD(\n SECOND,\n r.value :date :: INT,\n '1970-01-01' :: timestamp_ntz\n )\n )::DATE AS timestamp,\n r.value :totalLiquidityUSD::INT AS chain_tvl,\n _inserted_timestamp\n FROM\n tvl_history,\n LATERAL FLATTEN (\n VALUE :tvl\n ) AS r\n),\n\ndaily_tvl_with_lags AS (\n SELECT\n timestamp,\n protocol_id,\n category,\n chain,\n chain_tvl,\n LAG(chain_tvl, 1) OVER (\n PARTITION BY protocol_id, chain\n ORDER BY timestamp\n ) AS chain_tvl_prev_day,\n LAG(chain_tvl, 7) OVER (\n PARTITION BY protocol_id, chain\n ORDER BY timestamp\n ) AS chain_tvl_prev_week,\n LAG(chain_tvl, 30) OVER (\n PARTITION BY protocol_id, chain\n ORDER BY timestamp\n ) AS chain_tvl_prev_month,\n _inserted_timestamp\n FROM\n daily_tvl_data\n QUALIFY ROW_NUMBER() OVER (\n PARTITION BY timestamp, protocol_id, chain\n ORDER BY _inserted_timestamp DESC\n ) = 1\n)\n\nSELECT\n d.timestamp,\n d.protocol_id,\n d.category,\n p.protocol,\n p.symbol,\n d.chain,\n d.chain_tvl,\n d.chain_tvl_prev_day,\n d.chain_tvl_prev_week,\n d.chain_tvl_prev_month,\n d._inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(d.protocol_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(d.chain as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(d.timestamp as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS defillama_protocol_tvl_history_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'f3fd32af-64d3-4c75-bfb6-95e2946ea073' AS _invocation_id\nFROM\n daily_tvl_with_lags d\n LEFT JOIN EXTERNAL.defillama.dim_protocols p\n ON p.protocol_id = d.protocol_id\nQUALIFY ROW_NUMBER() OVER (\n PARTITION BY d.timestamp, d.protocol_id, d.chain\n ORDER BY d._inserted_timestamp DESC\n) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.silver__defillama_protocol_tvl": {"database": "EXTERNAL", "schema": "silver", "name": "silver__defillama_protocol_tvl", "resource_type": "model", "package_name": "external_models", "path": "defillama/silver/silver__defillama_protocol_tvl.sql", "original_file_path": "models/defillama/silver/silver__defillama_protocol_tvl.sql", "unique_id": "model.external_models.silver__defillama_protocol_tvl", "fqn": ["external_models", "defillama", "silver", "silver__defillama_protocol_tvl"], "alias": "defillama_protocol_tvl", "checksum": {"name": "sha256", "checksum": "36b6bc49a43c256256c0a314b75ec1b9301619a0c5b259dc38e27168c9f80a6c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["defillama_tvl_id"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["timestamp", "protocol_id"]}, "tags": ["defillama"], "description": "", "columns": {"_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DEFILLAMA_TVL_ID": {"name": "DEFILLAMA_TVL_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/silver/silver__defillama_protocol_tvl.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": ["defillama_tvl_id"], "cluster_by": ["timestamp", "protocol_id"], "tags": ["defillama"]}, "created_at": 1760113501.9827166, "relation_name": "EXTERNAL.silver.defillama_protocol_tvl", "raw_code": "-- depends_on: {{ ref('silver__defillama_protocol_tvl_history') }}\n{{ config(\n materialized = 'incremental',\n unique_key = ['defillama_tvl_id'],\n cluster_by = ['timestamp', 'protocol_id'],\n tags = ['defillama']\n) }}\n\nWITH FINAL AS (\n\n SELECT\n _inserted_timestamp :: DATE AS TIMESTAMP,\n protocol_id,\n category,\n NAME AS protocol,\n market_cap,\n symbol,\n tvl,\n tvl_prev_day,\n tvl_prev_week,\n tvl_prev_month,\n chain,\n chain_tvl,\n chain_tvl_prev_day,\n chain_tvl_prev_week,\n chain_tvl_prev_month,\n _inserted_timestamp\n FROM\n {{ ref('bronze__defillama_protocol_tvl') }}\n\n{% if is_incremental() %}\nWHERE\n _inserted_timestamp :: DATE > (\n SELECT\n MAX(\n _inserted_timestamp :: DATE\n )\n FROM\n {{ this }}\n )\n{% endif %}\n)\n{% if is_incremental() and var('HEAL', false) %}\n,\nhistorical_heal as(\n SELECT\n timestamp,\n protocol_id,\n category,\n protocol,\n NULL AS market_cap,\n symbol,\n NULL AS tvl,\n NULL AS tvl_prev_day,\n NULL AS tvl_prev_week,\n NULL AS tvl_prev_month,\n chain,\n chain_tvl,\n chain_tvl_prev_day,\n chain_tvl_prev_week,\n chain_tvl_prev_month,\n _inserted_timestamp,\n defillama_protocol_tvl_history_id as defillama_tvl_id,\n inserted_timestamp,\n modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\n FROM\n {{ ref('silver__defillama_protocol_tvl_history') }}\n WHERE\n defillama_protocol_tvl_history_id not in (\n select \n distinct defillama_tvl_id \n FROM\n {{ this }}\n )\n)\n{% endif %}\nSELECT\n *,\n {{ dbt_utils.generate_surrogate_key(\n ['protocol_id','chain','timestamp']\n ) }} AS defillama_tvl_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n FINAL\n{% if is_incremental() and var('HEAL', false) %}\nUNION ALL\nSELECT\n *\nFROM\n historical_heal\n{% endif %}", "language": "sql", "refs": [{"name": "silver__defillama_protocol_tvl_history", "package": null, "version": null}, {"name": "bronze__defillama_protocol_tvl", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.external_models.silver__defillama_protocol_tvl_history", "model.external_models.bronze__defillama_protocol_tvl"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_protocol_tvl.sql", "compiled": true, "compiled_code": "-- depends_on: EXTERNAL.silver.defillama_protocol_tvl_history\n\n\nWITH FINAL AS (\n\n SELECT\n _inserted_timestamp :: DATE AS TIMESTAMP,\n protocol_id,\n category,\n NAME AS protocol,\n market_cap,\n symbol,\n tvl,\n tvl_prev_day,\n tvl_prev_week,\n tvl_prev_month,\n chain,\n chain_tvl,\n chain_tvl_prev_day,\n chain_tvl_prev_week,\n chain_tvl_prev_month,\n _inserted_timestamp\n FROM\n EXTERNAL.bronze.defillama_protocol_tvl\n\n\nWHERE\n _inserted_timestamp :: DATE > (\n SELECT\n MAX(\n _inserted_timestamp :: DATE\n )\n FROM\n EXTERNAL.silver.defillama_protocol_tvl\n )\n\n)\n\nSELECT\n *,\n \n \nmd5(cast(coalesce(cast(protocol_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(chain as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(timestamp as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS defillama_tvl_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'f3fd32af-64d3-4c75-bfb6-95e2946ea073' AS _invocation_id\nFROM\n FINAL\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.silver__defillama_protocols": {"database": "EXTERNAL", "schema": "silver", "name": "silver__defillama_protocols", "resource_type": "model", "package_name": "external_models", "path": "defillama/silver/silver__defillama_protocols.sql", "original_file_path": "models/defillama/silver/silver__defillama_protocols.sql", "unique_id": "model.external_models.silver__defillama_protocols", "fqn": ["external_models", "defillama", "silver", "silver__defillama_protocols"], "alias": "defillama_protocols", "checksum": {"name": "sha256", "checksum": "3dc4dfa5309cd916b89a956b862ef7a7025535105fcc3c08e13a4d2077a70d92"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "defillama_protocols_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["run_date"]}, "tags": ["defillama"], "description": "", "columns": {"_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/silver/silver__defillama_protocols.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": "defillama_protocols_id", "cluster_by": ["run_date"], "tags": ["defillama"]}, "created_at": 1760113502.1187396, "relation_name": "EXTERNAL.silver.defillama_protocols", "raw_code": "-- depends_on: {{ ref('bronze__defillama_protocols') }}\n{{ config(\n materialized = 'incremental',\n unique_key = 'defillama_protocols_id',\n cluster_by = ['run_date'],\n tags = ['defillama']\n) }}\n\nSELECT\n TO_TIMESTAMP(VALUE:\"RUN_TIMESTAMP\"::INT) AS run_timestamp,\n TO_TIMESTAMP(VALUE:\"RUN_TIMESTAMP\"::INT)::DATE AS run_date,\n DATA:id::STRING AS protocol_id,\n DATA:slug::STRING AS protocol_slug,\n REGEXP_REPLACE(DATA:parentProtocol::STRING, '^parent#', '') AS parent_protocol,\n DATA:name::STRING AS protocol,\n CASE \n WHEN DATA:address::STRING = '-' THEN NULL \n ELSE SUBSTRING(LOWER(DATA:address::STRING), CHARINDEX(':', LOWER(DATA:address::STRING))+1) \n END AS address,\n CASE \n WHEN DATA:symbol::STRING = '-' THEN NULL \n ELSE DATA:symbol::STRING \n END AS symbol,\n DATA:description::STRING AS description,\n DATA:chain::STRING AS chain,\n DATA:audits::INTEGER AS num_audits,\n DATA:audit_note::STRING AS audit_note,\n DATA:category::STRING AS category,\n DATA:url::STRING AS url,\n DATA:logo::STRING AS logo,\n DATA:twitter::STRING AS twitter,\n DATA:tvl::FLOAT AS tvl,\n DATA:chains AS chains,\n DATA:chainTvls AS chain_tvls,\n DATA,\n _inserted_timestamp,\n sysdate() as inserted_timestamp,\n sysdate() as modified_timestamp,\n '{{ invocation_id }}' as _invocation_id,\n {{ dbt_utils.generate_surrogate_key(\n ['protocol_id','run_date']\n ) }} AS defillama_protocols_id\n from \n {% if is_incremental() %}\n {{ ref('bronze__defillama_protocols') }}\n where _inserted_timestamp > (\n select coalesce(max(_inserted_timestamp), '2025-01-01') from {{ this }}\n )\n {% else %}\n {{ ref('bronze__defillama_protocols_FR') }}\n {% endif %}\n\nQUALIFY(\n ROW_NUMBER() OVER (PARTITION BY defillama_protocols_id ORDER BY _inserted_timestamp DESC)\n) = 1", "language": "sql", "refs": [{"name": "bronze__defillama_protocols", "package": null, "version": null}, {"name": "bronze__defillama_protocols_FR", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental"], "nodes": ["model.external_models.bronze__defillama_protocols", "model.external_models.bronze__defillama_protocols_FR"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_protocols.sql", "compiled": true, "compiled_code": "-- depends_on: EXTERNAL.bronze.defillama_protocols\n\n\nSELECT\n TO_TIMESTAMP(VALUE:\"RUN_TIMESTAMP\"::INT) AS run_timestamp,\n TO_TIMESTAMP(VALUE:\"RUN_TIMESTAMP\"::INT)::DATE AS run_date,\n DATA:id::STRING AS protocol_id,\n DATA:slug::STRING AS protocol_slug,\n REGEXP_REPLACE(DATA:parentProtocol::STRING, '^parent#', '') AS parent_protocol,\n DATA:name::STRING AS protocol,\n CASE \n WHEN DATA:address::STRING = '-' THEN NULL \n ELSE SUBSTRING(LOWER(DATA:address::STRING), CHARINDEX(':', LOWER(DATA:address::STRING))+1) \n END AS address,\n CASE \n WHEN DATA:symbol::STRING = '-' THEN NULL \n ELSE DATA:symbol::STRING \n END AS symbol,\n DATA:description::STRING AS description,\n DATA:chain::STRING AS chain,\n DATA:audits::INTEGER AS num_audits,\n DATA:audit_note::STRING AS audit_note,\n DATA:category::STRING AS category,\n DATA:url::STRING AS url,\n DATA:logo::STRING AS logo,\n DATA:twitter::STRING AS twitter,\n DATA:tvl::FLOAT AS tvl,\n DATA:chains AS chains,\n DATA:chainTvls AS chain_tvls,\n DATA,\n _inserted_timestamp,\n sysdate() as inserted_timestamp,\n sysdate() as modified_timestamp,\n 'f3fd32af-64d3-4c75-bfb6-95e2946ea073' as _invocation_id,\n \n \nmd5(cast(coalesce(cast(protocol_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(run_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS defillama_protocols_id\n from \n \n EXTERNAL.bronze.defillama_protocols\n where _inserted_timestamp > (\n select coalesce(max(_inserted_timestamp), '2025-01-01') from EXTERNAL.silver.defillama_protocols\n )\n \n\nQUALIFY(\n ROW_NUMBER() OVER (PARTITION BY defillama_protocols_id ORDER BY _inserted_timestamp DESC)\n) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.silver__defillama_options_notional": {"database": "EXTERNAL", "schema": "silver", "name": "silver__defillama_options_notional", "resource_type": "model", "package_name": "external_models", "path": "defillama/silver/silver__defillama_options_notional.sql", "original_file_path": "models/defillama/silver/silver__defillama_options_notional.sql", "unique_id": "model.external_models.silver__defillama_options_notional", "fqn": ["external_models", "defillama", "silver", "silver__defillama_options_notional"], "alias": "defillama_options_notional", "checksum": {"name": "sha256", "checksum": "0a062a80b4fe78d973816fc3d5a0707b5ff68028540269a80bcfae54f8dde069"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama"], "description": "", "columns": {"CHAIN": {"name": "CHAIN", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ID": {"name": "ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/silver/silver__defillama_options_notional.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": "id", "full_refresh": false, "tags": ["defillama"]}, "created_at": 1760113501.8003345, "relation_name": "EXTERNAL.silver.defillama_options_notional", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = 'id',\n full_refresh = false,\n tags = ['defillama']\n) }}\n\nWITH all_chains_options_base AS (\n\nSELECT\n LOWER(VALUE::STRING) AS chain,\n ROW_NUMBER() OVER (ORDER BY chain) AS row_num, \n _inserted_timestamp\nFROM (\n SELECT\n live.udf_api(\n 'GET','https://pro-api.llama.fi/{api_key}/api/overview/options?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true&dataType=dailyNotionalVolume',{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\n ),\nLATERAL FLATTEN (input=> read:data:allChains) \n),\n\noptions_base AS (\n\n{% for item in range(5) %}\n(\nSELECT\n chain,\n live.udf_api(\n 'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/overview/options/',chain,'?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=false&dataType=dailyNotionalVolume'),{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\nFROM (\n SELECT \n DISTINCT chain, \n row_num\n FROM all_chains_options_base\n WHERE row_num BETWEEN {{ item * 5 + 1 }} AND {{ (item + 1) * 5 }}\n )\n{% if is_incremental() %}\nWHERE chain NOT IN (\n SELECT\n chain\n FROM (\n SELECT \n DISTINCT chain,\n MAX(timestamp::DATE) AS max_timestamp\n FROM {{ this }}\n GROUP BY 1\n HAVING CURRENT_DATE = max_timestamp\n )\n)\n{% endif %}\n) {% if not loop.last %}\nUNION ALL\n{% endif %}\n{% endfor %}\n),\n\nreads_output AS (\n\nSELECT\n chain,\n TO_TIMESTAMP(VALUE[0]::INTEGER) AS timestamp,\n VALUE[1] AS options_object,\n _inserted_timestamp\nFROM options_base,\n LATERAL FLATTEN (input=> read:data:totalDataChartBreakdown)\n)\n\nSELECT\n chain,\n timestamp,\n key::STRING AS protocol, \n value::INTEGER AS daily_volume_notional,\n options_object,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['chain', 'protocol', 'timestamp']\n ) }} AS id\nFROM reads_output,\n LATERAL FLATTEN(input => PARSE_JSON(reads_output.options_object))", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key"], "nodes": []}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_options_notional.sql", "compiled": true, "compiled_code": "\n\nWITH all_chains_options_base AS (\n\nSELECT\n LOWER(VALUE::STRING) AS chain,\n ROW_NUMBER() OVER (ORDER BY chain) AS row_num, \n _inserted_timestamp\nFROM (\n SELECT\n live.udf_api(\n 'GET','https://pro-api.llama.fi/{api_key}/api/overview/options?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true&dataType=dailyNotionalVolume',{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\n ),\nLATERAL FLATTEN (input=> read:data:allChains) \n),\n\noptions_base AS (\n\n\n(\nSELECT\n chain,\n live.udf_api(\n 'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/overview/options/',chain,'?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=false&dataType=dailyNotionalVolume'),{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\nFROM (\n SELECT \n DISTINCT chain, \n row_num\n FROM all_chains_options_base\n WHERE row_num BETWEEN 1 AND 5\n )\n\nWHERE chain NOT IN (\n SELECT\n chain\n FROM (\n SELECT \n DISTINCT chain,\n MAX(timestamp::DATE) AS max_timestamp\n FROM EXTERNAL.silver.defillama_options_notional\n GROUP BY 1\n HAVING CURRENT_DATE = max_timestamp\n )\n)\n\n) \nUNION ALL\n\n\n(\nSELECT\n chain,\n live.udf_api(\n 'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/overview/options/',chain,'?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=false&dataType=dailyNotionalVolume'),{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\nFROM (\n SELECT \n DISTINCT chain, \n row_num\n FROM all_chains_options_base\n WHERE row_num BETWEEN 6 AND 10\n )\n\nWHERE chain NOT IN (\n SELECT\n chain\n FROM (\n SELECT \n DISTINCT chain,\n MAX(timestamp::DATE) AS max_timestamp\n FROM EXTERNAL.silver.defillama_options_notional\n GROUP BY 1\n HAVING CURRENT_DATE = max_timestamp\n )\n)\n\n) \nUNION ALL\n\n\n(\nSELECT\n chain,\n live.udf_api(\n 'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/overview/options/',chain,'?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=false&dataType=dailyNotionalVolume'),{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\nFROM (\n SELECT \n DISTINCT chain, \n row_num\n FROM all_chains_options_base\n WHERE row_num BETWEEN 11 AND 15\n )\n\nWHERE chain NOT IN (\n SELECT\n chain\n FROM (\n SELECT \n DISTINCT chain,\n MAX(timestamp::DATE) AS max_timestamp\n FROM EXTERNAL.silver.defillama_options_notional\n GROUP BY 1\n HAVING CURRENT_DATE = max_timestamp\n )\n)\n\n) \nUNION ALL\n\n\n(\nSELECT\n chain,\n live.udf_api(\n 'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/overview/options/',chain,'?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=false&dataType=dailyNotionalVolume'),{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\nFROM (\n SELECT \n DISTINCT chain, \n row_num\n FROM all_chains_options_base\n WHERE row_num BETWEEN 16 AND 20\n )\n\nWHERE chain NOT IN (\n SELECT\n chain\n FROM (\n SELECT \n DISTINCT chain,\n MAX(timestamp::DATE) AS max_timestamp\n FROM EXTERNAL.silver.defillama_options_notional\n GROUP BY 1\n HAVING CURRENT_DATE = max_timestamp\n )\n)\n\n) \nUNION ALL\n\n\n(\nSELECT\n chain,\n live.udf_api(\n 'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/overview/options/',chain,'?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=false&dataType=dailyNotionalVolume'),{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\nFROM (\n SELECT \n DISTINCT chain, \n row_num\n FROM all_chains_options_base\n WHERE row_num BETWEEN 21 AND 25\n )\n\nWHERE chain NOT IN (\n SELECT\n chain\n FROM (\n SELECT \n DISTINCT chain,\n MAX(timestamp::DATE) AS max_timestamp\n FROM EXTERNAL.silver.defillama_options_notional\n GROUP BY 1\n HAVING CURRENT_DATE = max_timestamp\n )\n)\n\n) \n\n),\n\nreads_output AS (\n\nSELECT\n chain,\n TO_TIMESTAMP(VALUE[0]::INTEGER) AS timestamp,\n VALUE[1] AS options_object,\n _inserted_timestamp\nFROM options_base,\n LATERAL FLATTEN (input=> read:data:totalDataChartBreakdown)\n)\n\nSELECT\n chain,\n timestamp,\n key::STRING AS protocol, \n value::INTEGER AS daily_volume_notional,\n options_object,\n _inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(chain as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(protocol as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(timestamp as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS id\nFROM reads_output,\n LATERAL FLATTEN(input => PARSE_JSON(reads_output.options_object))", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.silver__defillama_bridge_volume": {"database": "EXTERNAL", "schema": "silver", "name": "silver__defillama_bridge_volume", "resource_type": "model", "package_name": "external_models", "path": "defillama/silver/silver__defillama_bridge_volume.sql", "original_file_path": "models/defillama/silver/silver__defillama_bridge_volume.sql", "unique_id": "model.external_models.silver__defillama_bridge_volume", "fqn": ["external_models", "defillama", "silver", "silver__defillama_bridge_volume"], "alias": "defillama_bridge_volume", "checksum": {"name": "sha256", "checksum": "934ab7fa47e5fd793b084340e5b53a1707a78b74a1986bb67bbe574accab709e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama"], "description": "", "columns": {"BRIDGE_ID": {"name": "BRIDGE_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BRIDGE": {"name": "BRIDGE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ID": {"name": "ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/silver/silver__defillama_bridge_volume.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": "id", "full_refresh": false, "tags": ["defillama"]}, "created_at": 1760113501.8222775, "relation_name": "EXTERNAL.silver.defillama_bridge_volume", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = 'id',\n full_refresh = false,\n tags = ['defillama']\n) }}\n\nWITH bridge_base AS (\n\n{% for item in range(5) %}\n(\nSELECT\n bridge_id,\n bridge,\n bridge_name,\n live.udf_api(\n 'GET',CONCAT('https://bridges.llama.fi/bridgevolume/all?id=',bridge_id),{},{}\n ) AS read,\n SYSDATE() AS _inserted_timestamp\nFROM (\n SELECT \n bridge_id,\n bridge,\n bridge_name,\n row_num\n FROM {{ ref('bronze__defillama_bridges') }}\n WHERE row_num BETWEEN {{ item * 10 + 1 }} AND {{ (item + 1) * 10}}\n )\n{% if is_incremental() %}\nWHERE bridge_id NOT IN (\n SELECT\n bridge_id\n FROM (\n SELECT \n DISTINCT bridge_id,\n MAX(timestamp::DATE) AS max_timestamp\n FROM {{ this }}\n GROUP BY 1\n HAVING CURRENT_DATE = max_timestamp\n )\n)\n{% endif %}\n) {% if not loop.last %}\nUNION ALL\n{% endif %}\n{% endfor %}\n)\n\nSELECT\n bridge_id,\n bridge,\n bridge_name,\n TO_TIMESTAMP(VALUE:date::INTEGER) AS timestamp,\n VALUE:depositTxs::INTEGER AS deposit_txs,\n VALUE:depositUSD::INTEGER AS deposit_usd,\n VALUE:withdrawTxs::INTEGER AS withdraw_txs,\n VALUE:withdrawUSD::INTEGER AS withdraw_usd,\n _inserted_timestamp,\n CONCAT(bridge_id,'-',bridge,'-',timestamp) AS id\nFROM bridge_base,\n LATERAL FLATTEN (input=> read:data)\nWHERE id IS NOT NULL", "language": "sql", "refs": [{"name": "bronze__defillama_bridges", "package": null, "version": null}, {"name": "bronze__defillama_bridges", "package": null, "version": null}, {"name": "bronze__defillama_bridges", "package": null, "version": null}, {"name": "bronze__defillama_bridges", "package": null, "version": null}, {"name": "bronze__defillama_bridges", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.external_models.bronze__defillama_bridges"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_bridge_volume.sql", "compiled": true, "compiled_code": "\n\nWITH bridge_base AS (\n\n\n(\nSELECT\n bridge_id,\n bridge,\n bridge_name,\n live.udf_api(\n 'GET',CONCAT('https://bridges.llama.fi/bridgevolume/all?id=',bridge_id),{},{}\n ) AS read,\n SYSDATE() AS _inserted_timestamp\nFROM (\n SELECT \n bridge_id,\n bridge,\n bridge_name,\n row_num\n FROM EXTERNAL.bronze.defillama_bridges\n WHERE row_num BETWEEN 1 AND 10\n )\n\nWHERE bridge_id NOT IN (\n SELECT\n bridge_id\n FROM (\n SELECT \n DISTINCT bridge_id,\n MAX(timestamp::DATE) AS max_timestamp\n FROM EXTERNAL.silver.defillama_bridge_volume\n GROUP BY 1\n HAVING CURRENT_DATE = max_timestamp\n )\n)\n\n) \nUNION ALL\n\n\n(\nSELECT\n bridge_id,\n bridge,\n bridge_name,\n live.udf_api(\n 'GET',CONCAT('https://bridges.llama.fi/bridgevolume/all?id=',bridge_id),{},{}\n ) AS read,\n SYSDATE() AS _inserted_timestamp\nFROM (\n SELECT \n bridge_id,\n bridge,\n bridge_name,\n row_num\n FROM EXTERNAL.bronze.defillama_bridges\n WHERE row_num BETWEEN 11 AND 20\n )\n\nWHERE bridge_id NOT IN (\n SELECT\n bridge_id\n FROM (\n SELECT \n DISTINCT bridge_id,\n MAX(timestamp::DATE) AS max_timestamp\n FROM EXTERNAL.silver.defillama_bridge_volume\n GROUP BY 1\n HAVING CURRENT_DATE = max_timestamp\n )\n)\n\n) \nUNION ALL\n\n\n(\nSELECT\n bridge_id,\n bridge,\n bridge_name,\n live.udf_api(\n 'GET',CONCAT('https://bridges.llama.fi/bridgevolume/all?id=',bridge_id),{},{}\n ) AS read,\n SYSDATE() AS _inserted_timestamp\nFROM (\n SELECT \n bridge_id,\n bridge,\n bridge_name,\n row_num\n FROM EXTERNAL.bronze.defillama_bridges\n WHERE row_num BETWEEN 21 AND 30\n )\n\nWHERE bridge_id NOT IN (\n SELECT\n bridge_id\n FROM (\n SELECT \n DISTINCT bridge_id,\n MAX(timestamp::DATE) AS max_timestamp\n FROM EXTERNAL.silver.defillama_bridge_volume\n GROUP BY 1\n HAVING CURRENT_DATE = max_timestamp\n )\n)\n\n) \nUNION ALL\n\n\n(\nSELECT\n bridge_id,\n bridge,\n bridge_name,\n live.udf_api(\n 'GET',CONCAT('https://bridges.llama.fi/bridgevolume/all?id=',bridge_id),{},{}\n ) AS read,\n SYSDATE() AS _inserted_timestamp\nFROM (\n SELECT \n bridge_id,\n bridge,\n bridge_name,\n row_num\n FROM EXTERNAL.bronze.defillama_bridges\n WHERE row_num BETWEEN 31 AND 40\n )\n\nWHERE bridge_id NOT IN (\n SELECT\n bridge_id\n FROM (\n SELECT \n DISTINCT bridge_id,\n MAX(timestamp::DATE) AS max_timestamp\n FROM EXTERNAL.silver.defillama_bridge_volume\n GROUP BY 1\n HAVING CURRENT_DATE = max_timestamp\n )\n)\n\n) \nUNION ALL\n\n\n(\nSELECT\n bridge_id,\n bridge,\n bridge_name,\n live.udf_api(\n 'GET',CONCAT('https://bridges.llama.fi/bridgevolume/all?id=',bridge_id),{},{}\n ) AS read,\n SYSDATE() AS _inserted_timestamp\nFROM (\n SELECT \n bridge_id,\n bridge,\n bridge_name,\n row_num\n FROM EXTERNAL.bronze.defillama_bridges\n WHERE row_num BETWEEN 41 AND 50\n )\n\nWHERE bridge_id NOT IN (\n SELECT\n bridge_id\n FROM (\n SELECT \n DISTINCT bridge_id,\n MAX(timestamp::DATE) AS max_timestamp\n FROM EXTERNAL.silver.defillama_bridge_volume\n GROUP BY 1\n HAVING CURRENT_DATE = max_timestamp\n )\n)\n\n) \n\n)\n\nSELECT\n bridge_id,\n bridge,\n bridge_name,\n TO_TIMESTAMP(VALUE:date::INTEGER) AS timestamp,\n VALUE:depositTxs::INTEGER AS deposit_txs,\n VALUE:depositUSD::INTEGER AS deposit_usd,\n VALUE:withdrawTxs::INTEGER AS withdraw_txs,\n VALUE:withdrawUSD::INTEGER AS withdraw_usd,\n _inserted_timestamp,\n CONCAT(bridge_id,'-',bridge,'-',timestamp) AS id\nFROM bridge_base,\n LATERAL FLATTEN (input=> read:data)\nWHERE id IS NOT NULL", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.silver__defillama_investors": {"database": "EXTERNAL", "schema": "silver", "name": "silver__defillama_investors", "resource_type": "model", "package_name": "external_models", "path": "defillama/silver/silver__defillama_investors.sql", "original_file_path": "models/defillama/silver/silver__defillama_investors.sql", "unique_id": "model.external_models.silver__defillama_investors", "fqn": ["external_models", "defillama", "silver", "silver__defillama_investors"], "alias": "defillama_investors", "checksum": {"name": "sha256", "checksum": "a13e63640c650683ac1f635bc2802e4fb5fbaf914bf2a9f362310a45776246c7"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama"], "description": "", "columns": {"INVESTOR": {"name": "INVESTOR", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/silver/silver__defillama_investors.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "table", "tags": ["defillama"]}, "created_at": 1760113502.0474226, "relation_name": "EXTERNAL.silver.defillama_investors", "raw_code": "{{ config(\n materialized = 'table',\n tags = ['defillama']\n) }}\n\nWITH investor_deals AS (\n -- Flatten lead investors\n SELECT \n TRIM(lead_investor.value::STRING) AS investor,\n funding_date,\n project_name,\n funding_round,\n amount_raised,\n chains,\n category,\n raise_id,\n _inserted_timestamp\n FROM {{ ref('silver__defillama_raises') }} r,\n LATERAL FLATTEN(input => r.lead_investors) AS lead_investor\n WHERE investor IS NOT NULL \n AND investor != ''\n \n UNION ALL\n \n -- Flatten other investors\n SELECT \n TRIM(other_investor.value::STRING) AS investor,\n funding_date,\n project_name,\n funding_round,\n amount_raised,\n chains,\n category,\n raise_id,\n _inserted_timestamp\n FROM {{ ref('silver__defillama_raises') }} r,\n LATERAL FLATTEN(input => r.other_investors) AS other_investor\n WHERE investor IS NOT NULL \n AND investor != ''\n),\n\ninvestor_chains AS (\n -- Flatten chains for each investor deal\n SELECT \n investor,\n funding_date,\n project_name,\n funding_round,\n amount_raised,\n TRIM(chains.value::STRING) AS chain,\n category,\n raise_id,\n _inserted_timestamp\n FROM investor_deals d,\n LATERAL FLATTEN(input => d.chains) AS chains\n WHERE chain IS NOT NULL \n AND chain != ''\n),\n\ninvestor_aggregates AS (\n SELECT \n investor,\n COUNT(DISTINCT raise_id) AS deals,\n SUM(amount_raised) AS total_amount,\n MEDIAN(amount_raised) AS median_amount,\n ARRAY_AGG(DISTINCT chain) AS chains,\n ARRAY_AGG(DISTINCT project_name) AS projects,\n MAX(_inserted_timestamp) AS _inserted_timestamp\n FROM investor_chains\n GROUP BY investor\n),\n\ntop_deals AS (\n SELECT \n investor,\n category AS top_project_category,\n funding_round AS top_round_type,\n ROW_NUMBER() OVER (\n PARTITION BY investor \n ORDER BY amount_raised DESC, funding_date DESC\n ) AS rn\n FROM investor_deals\n),\n\ninvestor_metrics AS (\n SELECT \n a.investor,\n a.deals,\n a.total_amount,\n a.median_amount,\n a.chains,\n a.projects,\n t.top_project_category,\n t.top_round_type,\n a._inserted_timestamp\n FROM investor_aggregates a\n LEFT JOIN top_deals t \n ON a.investor = t.investor \n AND t.rn = 1\n)\n\nSELECT \n investor,\n deals,\n total_amount,\n median_amount,\n chains,\n top_project_category,\n top_round_type,\n projects,\n {{ dbt_utils.generate_surrogate_key(['investor']) }} AS defillama_investors_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n _inserted_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM investor_metrics\n\nQUALIFY(\n ROW_NUMBER() OVER (PARTITION BY investor ORDER BY _inserted_timestamp DESC)\n) = 1", "language": "sql", "refs": [{"name": "silver__defillama_raises", "package": null, "version": null}, {"name": "silver__defillama_raises", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.external_models.silver__defillama_raises"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_investors.sql", "compiled": true, "compiled_code": "\n\nWITH investor_deals AS (\n -- Flatten lead investors\n SELECT \n TRIM(lead_investor.value::STRING) AS investor,\n funding_date,\n project_name,\n funding_round,\n amount_raised,\n chains,\n category,\n raise_id,\n _inserted_timestamp\n FROM EXTERNAL.silver.defillama_raises r,\n LATERAL FLATTEN(input => r.lead_investors) AS lead_investor\n WHERE investor IS NOT NULL \n AND investor != ''\n \n UNION ALL\n \n -- Flatten other investors\n SELECT \n TRIM(other_investor.value::STRING) AS investor,\n funding_date,\n project_name,\n funding_round,\n amount_raised,\n chains,\n category,\n raise_id,\n _inserted_timestamp\n FROM EXTERNAL.silver.defillama_raises r,\n LATERAL FLATTEN(input => r.other_investors) AS other_investor\n WHERE investor IS NOT NULL \n AND investor != ''\n),\n\ninvestor_chains AS (\n -- Flatten chains for each investor deal\n SELECT \n investor,\n funding_date,\n project_name,\n funding_round,\n amount_raised,\n TRIM(chains.value::STRING) AS chain,\n category,\n raise_id,\n _inserted_timestamp\n FROM investor_deals d,\n LATERAL FLATTEN(input => d.chains) AS chains\n WHERE chain IS NOT NULL \n AND chain != ''\n),\n\ninvestor_aggregates AS (\n SELECT \n investor,\n COUNT(DISTINCT raise_id) AS deals,\n SUM(amount_raised) AS total_amount,\n MEDIAN(amount_raised) AS median_amount,\n ARRAY_AGG(DISTINCT chain) AS chains,\n ARRAY_AGG(DISTINCT project_name) AS projects,\n MAX(_inserted_timestamp) AS _inserted_timestamp\n FROM investor_chains\n GROUP BY investor\n),\n\ntop_deals AS (\n SELECT \n investor,\n category AS top_project_category,\n funding_round AS top_round_type,\n ROW_NUMBER() OVER (\n PARTITION BY investor \n ORDER BY amount_raised DESC, funding_date DESC\n ) AS rn\n FROM investor_deals\n),\n\ninvestor_metrics AS (\n SELECT \n a.investor,\n a.deals,\n a.total_amount,\n a.median_amount,\n a.chains,\n a.projects,\n t.top_project_category,\n t.top_round_type,\n a._inserted_timestamp\n FROM investor_aggregates a\n LEFT JOIN top_deals t \n ON a.investor = t.investor \n AND t.rn = 1\n)\n\nSELECT \n investor,\n deals,\n total_amount,\n median_amount,\n chains,\n top_project_category,\n top_round_type,\n projects,\n \n \nmd5(cast(coalesce(cast(investor as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS defillama_investors_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n _inserted_timestamp,\n 'f3fd32af-64d3-4c75-bfb6-95e2946ea073' AS _invocation_id\nFROM investor_metrics\n\nQUALIFY(\n ROW_NUMBER() OVER (PARTITION BY investor ORDER BY _inserted_timestamp DESC)\n) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.silver__defillama_protocol_fees": {"database": "EXTERNAL", "schema": "silver", "name": "silver__defillama_protocol_fees", "resource_type": "model", "package_name": "external_models", "path": "defillama/silver/silver__defillama_protocol_fees.sql", "original_file_path": "models/defillama/silver/silver__defillama_protocol_fees.sql", "unique_id": "model.external_models.silver__defillama_protocol_fees", "fqn": ["external_models", "defillama", "silver", "silver__defillama_protocol_fees"], "alias": "defillama_protocol_fees", "checksum": {"name": "sha256", "checksum": "a63f50c4aad0d2d9b47df0d7da697b98ff9e2afdcc3be047ee54f6ab05243437"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama"], "description": "", "columns": {"CHAIN": {"name": "CHAIN", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ID": {"name": "ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/silver/silver__defillama_protocol_fees.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": "id", "full_refresh": false, "tags": ["defillama"]}, "created_at": 1760113501.7436273, "relation_name": "EXTERNAL.silver.defillama_protocol_fees", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = 'id',\n full_refresh = false,\n tags = ['defillama']\n) }}\n\nWITH all_chains_fees_base AS (\n\nSELECT\n LOWER(VALUE::STRING) AS chain,\n ROW_NUMBER() OVER (ORDER BY chain) AS row_num, \n _inserted_timestamp\nFROM (\n SELECT\n live.udf_api(\n 'GET','https://pro-api.llama.fi/{api_key}/api/overview/fees?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true&dataType=dailyFees',{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\n ),\nLATERAL FLATTEN (input=> read:data:allChains) \n),\n\nfees_base AS (\n\n{% for item in range(7) %}\n(\nSELECT\n chain,\n live.udf_api(\n 'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/overview/fees/',chain,'?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=false&dataType=dailyFees'),{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\nFROM (\n SELECT \n DISTINCT chain, \n row_num\n FROM all_chains_fees_base\n WHERE row_num BETWEEN {{ item * 15 + 1 }} AND {{ (item + 1) * 15 }}\n )\n{% if is_incremental() %}\nWHERE chain NOT IN (\n SELECT\n chain\n FROM (\n SELECT \n DISTINCT chain,\n MAX(timestamp::DATE) AS max_timestamp\n FROM {{ this }}\n GROUP BY 1\n HAVING CURRENT_DATE = max_timestamp\n )\n)\n{% endif %}\n) {% if not loop.last %}\nUNION ALL\n{% endif %}\n{% endfor %}\n),\n\nreads_output AS (\n\nSELECT\n chain,\n TO_TIMESTAMP(VALUE[0]::INTEGER) AS timestamp,\n VALUE[1] AS fees_object,\n _inserted_timestamp\nFROM fees_base,\n LATERAL FLATTEN (input=> read:data:totalDataChartBreakdown)\n)\n\nSELECT\n chain,\n timestamp,\n key::STRING AS protocol, \n value::INTEGER AS daily_fees,\n fees_object,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['chain', 'protocol', 'timestamp']\n ) }} AS id\nFROM reads_output,\n LATERAL FLATTEN(input => PARSE_JSON(reads_output.fees_object))", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key"], "nodes": []}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_protocol_fees.sql", "compiled": true, "compiled_code": "\n\nWITH all_chains_fees_base AS (\n\nSELECT\n LOWER(VALUE::STRING) AS chain,\n ROW_NUMBER() OVER (ORDER BY chain) AS row_num, \n _inserted_timestamp\nFROM (\n SELECT\n live.udf_api(\n 'GET','https://pro-api.llama.fi/{api_key}/api/overview/fees?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true&dataType=dailyFees',{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\n ),\nLATERAL FLATTEN (input=> read:data:allChains) \n),\n\nfees_base AS (\n\n\n(\nSELECT\n chain,\n live.udf_api(\n 'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/overview/fees/',chain,'?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=false&dataType=dailyFees'),{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\nFROM (\n SELECT \n DISTINCT chain, \n row_num\n FROM all_chains_fees_base\n WHERE row_num BETWEEN 1 AND 15\n )\n\nWHERE chain NOT IN (\n SELECT\n chain\n FROM (\n SELECT \n DISTINCT chain,\n MAX(timestamp::DATE) AS max_timestamp\n FROM EXTERNAL.silver.defillama_protocol_fees\n GROUP BY 1\n HAVING CURRENT_DATE = max_timestamp\n )\n)\n\n) \nUNION ALL\n\n\n(\nSELECT\n chain,\n live.udf_api(\n 'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/overview/fees/',chain,'?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=false&dataType=dailyFees'),{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\nFROM (\n SELECT \n DISTINCT chain, \n row_num\n FROM all_chains_fees_base\n WHERE row_num BETWEEN 16 AND 30\n )\n\nWHERE chain NOT IN (\n SELECT\n chain\n FROM (\n SELECT \n DISTINCT chain,\n MAX(timestamp::DATE) AS max_timestamp\n FROM EXTERNAL.silver.defillama_protocol_fees\n GROUP BY 1\n HAVING CURRENT_DATE = max_timestamp\n )\n)\n\n) \nUNION ALL\n\n\n(\nSELECT\n chain,\n live.udf_api(\n 'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/overview/fees/',chain,'?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=false&dataType=dailyFees'),{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\nFROM (\n SELECT \n DISTINCT chain, \n row_num\n FROM all_chains_fees_base\n WHERE row_num BETWEEN 31 AND 45\n )\n\nWHERE chain NOT IN (\n SELECT\n chain\n FROM (\n SELECT \n DISTINCT chain,\n MAX(timestamp::DATE) AS max_timestamp\n FROM EXTERNAL.silver.defillama_protocol_fees\n GROUP BY 1\n HAVING CURRENT_DATE = max_timestamp\n )\n)\n\n) \nUNION ALL\n\n\n(\nSELECT\n chain,\n live.udf_api(\n 'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/overview/fees/',chain,'?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=false&dataType=dailyFees'),{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\nFROM (\n SELECT \n DISTINCT chain, \n row_num\n FROM all_chains_fees_base\n WHERE row_num BETWEEN 46 AND 60\n )\n\nWHERE chain NOT IN (\n SELECT\n chain\n FROM (\n SELECT \n DISTINCT chain,\n MAX(timestamp::DATE) AS max_timestamp\n FROM EXTERNAL.silver.defillama_protocol_fees\n GROUP BY 1\n HAVING CURRENT_DATE = max_timestamp\n )\n)\n\n) \nUNION ALL\n\n\n(\nSELECT\n chain,\n live.udf_api(\n 'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/overview/fees/',chain,'?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=false&dataType=dailyFees'),{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\nFROM (\n SELECT \n DISTINCT chain, \n row_num\n FROM all_chains_fees_base\n WHERE row_num BETWEEN 61 AND 75\n )\n\nWHERE chain NOT IN (\n SELECT\n chain\n FROM (\n SELECT \n DISTINCT chain,\n MAX(timestamp::DATE) AS max_timestamp\n FROM EXTERNAL.silver.defillama_protocol_fees\n GROUP BY 1\n HAVING CURRENT_DATE = max_timestamp\n )\n)\n\n) \nUNION ALL\n\n\n(\nSELECT\n chain,\n live.udf_api(\n 'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/overview/fees/',chain,'?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=false&dataType=dailyFees'),{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\nFROM (\n SELECT \n DISTINCT chain, \n row_num\n FROM all_chains_fees_base\n WHERE row_num BETWEEN 76 AND 90\n )\n\nWHERE chain NOT IN (\n SELECT\n chain\n FROM (\n SELECT \n DISTINCT chain,\n MAX(timestamp::DATE) AS max_timestamp\n FROM EXTERNAL.silver.defillama_protocol_fees\n GROUP BY 1\n HAVING CURRENT_DATE = max_timestamp\n )\n)\n\n) \nUNION ALL\n\n\n(\nSELECT\n chain,\n live.udf_api(\n 'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/overview/fees/',chain,'?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=false&dataType=dailyFees'),{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\nFROM (\n SELECT \n DISTINCT chain, \n row_num\n FROM all_chains_fees_base\n WHERE row_num BETWEEN 91 AND 105\n )\n\nWHERE chain NOT IN (\n SELECT\n chain\n FROM (\n SELECT \n DISTINCT chain,\n MAX(timestamp::DATE) AS max_timestamp\n FROM EXTERNAL.silver.defillama_protocol_fees\n GROUP BY 1\n HAVING CURRENT_DATE = max_timestamp\n )\n)\n\n) \n\n),\n\nreads_output AS (\n\nSELECT\n chain,\n TO_TIMESTAMP(VALUE[0]::INTEGER) AS timestamp,\n VALUE[1] AS fees_object,\n _inserted_timestamp\nFROM fees_base,\n LATERAL FLATTEN (input=> read:data:totalDataChartBreakdown)\n)\n\nSELECT\n chain,\n timestamp,\n key::STRING AS protocol, \n value::INTEGER AS daily_fees,\n fees_object,\n _inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(chain as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(protocol as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(timestamp as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS id\nFROM reads_output,\n LATERAL FLATTEN(input => PARSE_JSON(reads_output.fees_object))", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.silver__defillama_stablecoin_supply": {"database": "EXTERNAL", "schema": "silver", "name": "silver__defillama_stablecoin_supply", "resource_type": "model", "package_name": "external_models", "path": "defillama/silver/silver__defillama_stablecoin_supply.sql", "original_file_path": "models/defillama/silver/silver__defillama_stablecoin_supply.sql", "unique_id": "model.external_models.silver__defillama_stablecoin_supply", "fqn": ["external_models", "defillama", "silver", "silver__defillama_stablecoin_supply"], "alias": "defillama_stablecoin_supply", "checksum": {"name": "sha256", "checksum": "050400102e501e8a6dfd4b4c72ff0694abf707db9852487b0dbf81e33c6634c2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "defillama_stablecoin_supply_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["stale"], "description": "", "columns": {"_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DEFILLAMA_STABLECOIN_SUPPLY_ID": {"name": "DEFILLAMA_STABLECOIN_SUPPLY_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/silver/silver__defillama_stablecoin_supply.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "table", "unique_key": "defillama_stablecoin_supply_id", "tags": ["stale"]}, "created_at": 1760113502.0569768, "relation_name": "EXTERNAL.silver.defillama_stablecoin_supply", "raw_code": "{{ config(\n materialized = 'table',\n unique_key = 'defillama_stablecoin_supply_id',\n tags = ['stale']\n) }}\n\nWITH expand_flatten AS (\n\n SELECT\n f.address,\n f.symbol,\n f.name,\n f.stablecoin_id,\n d.chains,\n d.peg_type AS peg_type,\n CASE\n WHEN d.peg_type = 'peggedUSD' THEN VALUE :circulating :peggedUSD :: INTEGER\n WHEN d.peg_type = 'peggedVAR' THEN VALUE :circulating :peggedVAR :: INTEGER\n WHEN d.peg_type = 'peggedJPY' THEN VALUE :circulating :peggedJPY :: INTEGER\n WHEN d.peg_type = 'peggedEUR' THEN VALUE :circulating :peggedEUR :: INTEGER\n WHEN d.peg_type = 'peggedAUD' THEN VALUE :circulating :peggedAUD :: INTEGER\n WHEN d.peg_type = 'peggedCAD' THEN VALUE :circulating :peggedCAD :: INTEGER\n WHEN d.peg_type = 'peggedGBP' THEN VALUE :circulating :peggedGBP :: INTEGER\n WHEN d.peg_type = 'peggedCNY' THEN VALUE :circulating :peggedCNY :: INTEGER\n WHEN d.peg_type = 'peggedUAH' THEN VALUE :circulating :peggedUAH :: INTEGER\n WHEN d.peg_type = 'peggedCHF' THEN VALUE :circulating :peggedCHF :: INTEGER\n WHEN d.peg_type = 'peggedARS' THEN VALUE :circulating :peggedARS :: INTEGER\n END AS circulating,\n CASE\n WHEN d.peg_type = 'peggedUSD' THEN VALUE :minted :peggedUSD :: INTEGER\n WHEN d.peg_type = 'peggedVAR' THEN VALUE :minted :peggedVAR :: INTEGER\n WHEN d.peg_type = 'peggedJPY' THEN VALUE :minted :peggedJPY :: INTEGER\n WHEN d.peg_type = 'peggedEUR' THEN VALUE :minted :peggedEUR :: INTEGER\n WHEN d.peg_type = 'peggedAUD' THEN VALUE :minted :peggedAUD :: INTEGER\n WHEN d.peg_type = 'peggedCAD' THEN VALUE :minted :peggedCAD :: INTEGER\n WHEN d.peg_type = 'peggedGBP' THEN VALUE :minted :peggedGBP :: INTEGER\n WHEN d.peg_type = 'peggedCNY' THEN VALUE :minted :peggedCNY :: INTEGER\n WHEN d.peg_type = 'peggedUAH' THEN VALUE :minted :peggedUAH :: INTEGER\n WHEN d.peg_type = 'peggedCHF' THEN VALUE :minted :peggedCHF :: INTEGER\n WHEN d.peg_type = 'peggedARS' THEN VALUE :minted :peggedARS :: INTEGER\n END AS minted,\n CASE\n WHEN d.peg_type = 'peggedUSD' THEN VALUE :unreleased :peggedUSD :: INTEGER\n WHEN d.peg_type = 'peggedVAR' THEN VALUE :unreleased :peggedVAR :: INTEGER\n WHEN d.peg_type = 'peggedJPY' THEN VALUE :unreleased :peggedJPY :: INTEGER\n WHEN d.peg_type = 'peggedEUR' THEN VALUE :unreleased :peggedEUR :: INTEGER\n WHEN d.peg_type = 'peggedAUD' THEN VALUE :unreleased :peggedAUD :: INTEGER\n WHEN d.peg_type = 'peggedCAD' THEN VALUE :unreleased :peggedCAD :: INTEGER\n WHEN d.peg_type = 'peggedGBP' THEN VALUE :unreleased :peggedGBP :: INTEGER\n WHEN d.peg_type = 'peggedCNY' THEN VALUE :unreleased :peggedCNY :: INTEGER\n WHEN d.peg_type = 'peggedUAH' THEN VALUE :unreleased :peggedUAH :: INTEGER\n WHEN d.peg_type = 'peggedCHF' THEN VALUE :unreleased :peggedCHF :: INTEGER\n WHEN d.peg_type = 'peggedARS' THEN VALUE :unreleased :peggedARS :: INTEGER\n END AS unreleased,\n f.timestamp,\n VALUE,\n f._inserted_timestamp\n FROM\n {{ ref('bronze__defillama_stablecoin_supply') }}\n f\n LEFT JOIN {{ ref('bronze__defillama_stablecoins') }}\n d\n ON f.stablecoin_id = d.stablecoin_id\n),\nFINAL AS (\n SELECT\n address,\n symbol,\n NAME AS stablecoin,\n stablecoin_id,\n chains,\n peg_type,\n TIMESTAMP,\n VALUE,\n circulating,\n minted,\n unreleased,\n _inserted_timestamp\n FROM\n expand_flatten\n)\nSELECT\n *,\n {{ dbt_utils.generate_surrogate_key(\n ['stablecoin','timestamp']\n ) }} AS defillama_stablecoin_supply_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n FINAL", "language": "sql", "refs": [{"name": "bronze__defillama_stablecoin_supply", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.external_models.bronze__defillama_stablecoin_supply", "model.external_models.bronze__defillama_stablecoins"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_stablecoin_supply.sql", "compiled": true, "compiled_code": "\n\nWITH expand_flatten AS (\n\n SELECT\n f.address,\n f.symbol,\n f.name,\n f.stablecoin_id,\n d.chains,\n d.peg_type AS peg_type,\n CASE\n WHEN d.peg_type = 'peggedUSD' THEN VALUE :circulating :peggedUSD :: INTEGER\n WHEN d.peg_type = 'peggedVAR' THEN VALUE :circulating :peggedVAR :: INTEGER\n WHEN d.peg_type = 'peggedJPY' THEN VALUE :circulating :peggedJPY :: INTEGER\n WHEN d.peg_type = 'peggedEUR' THEN VALUE :circulating :peggedEUR :: INTEGER\n WHEN d.peg_type = 'peggedAUD' THEN VALUE :circulating :peggedAUD :: INTEGER\n WHEN d.peg_type = 'peggedCAD' THEN VALUE :circulating :peggedCAD :: INTEGER\n WHEN d.peg_type = 'peggedGBP' THEN VALUE :circulating :peggedGBP :: INTEGER\n WHEN d.peg_type = 'peggedCNY' THEN VALUE :circulating :peggedCNY :: INTEGER\n WHEN d.peg_type = 'peggedUAH' THEN VALUE :circulating :peggedUAH :: INTEGER\n WHEN d.peg_type = 'peggedCHF' THEN VALUE :circulating :peggedCHF :: INTEGER\n WHEN d.peg_type = 'peggedARS' THEN VALUE :circulating :peggedARS :: INTEGER\n END AS circulating,\n CASE\n WHEN d.peg_type = 'peggedUSD' THEN VALUE :minted :peggedUSD :: INTEGER\n WHEN d.peg_type = 'peggedVAR' THEN VALUE :minted :peggedVAR :: INTEGER\n WHEN d.peg_type = 'peggedJPY' THEN VALUE :minted :peggedJPY :: INTEGER\n WHEN d.peg_type = 'peggedEUR' THEN VALUE :minted :peggedEUR :: INTEGER\n WHEN d.peg_type = 'peggedAUD' THEN VALUE :minted :peggedAUD :: INTEGER\n WHEN d.peg_type = 'peggedCAD' THEN VALUE :minted :peggedCAD :: INTEGER\n WHEN d.peg_type = 'peggedGBP' THEN VALUE :minted :peggedGBP :: INTEGER\n WHEN d.peg_type = 'peggedCNY' THEN VALUE :minted :peggedCNY :: INTEGER\n WHEN d.peg_type = 'peggedUAH' THEN VALUE :minted :peggedUAH :: INTEGER\n WHEN d.peg_type = 'peggedCHF' THEN VALUE :minted :peggedCHF :: INTEGER\n WHEN d.peg_type = 'peggedARS' THEN VALUE :minted :peggedARS :: INTEGER\n END AS minted,\n CASE\n WHEN d.peg_type = 'peggedUSD' THEN VALUE :unreleased :peggedUSD :: INTEGER\n WHEN d.peg_type = 'peggedVAR' THEN VALUE :unreleased :peggedVAR :: INTEGER\n WHEN d.peg_type = 'peggedJPY' THEN VALUE :unreleased :peggedJPY :: INTEGER\n WHEN d.peg_type = 'peggedEUR' THEN VALUE :unreleased :peggedEUR :: INTEGER\n WHEN d.peg_type = 'peggedAUD' THEN VALUE :unreleased :peggedAUD :: INTEGER\n WHEN d.peg_type = 'peggedCAD' THEN VALUE :unreleased :peggedCAD :: INTEGER\n WHEN d.peg_type = 'peggedGBP' THEN VALUE :unreleased :peggedGBP :: INTEGER\n WHEN d.peg_type = 'peggedCNY' THEN VALUE :unreleased :peggedCNY :: INTEGER\n WHEN d.peg_type = 'peggedUAH' THEN VALUE :unreleased :peggedUAH :: INTEGER\n WHEN d.peg_type = 'peggedCHF' THEN VALUE :unreleased :peggedCHF :: INTEGER\n WHEN d.peg_type = 'peggedARS' THEN VALUE :unreleased :peggedARS :: INTEGER\n END AS unreleased,\n f.timestamp,\n VALUE,\n f._inserted_timestamp\n FROM\n EXTERNAL.bronze.defillama_stablecoin_supply\n f\n LEFT JOIN EXTERNAL.bronze.defillama_stablecoins\n d\n ON f.stablecoin_id = d.stablecoin_id\n),\nFINAL AS (\n SELECT\n address,\n symbol,\n NAME AS stablecoin,\n stablecoin_id,\n chains,\n peg_type,\n TIMESTAMP,\n VALUE,\n circulating,\n minted,\n unreleased,\n _inserted_timestamp\n FROM\n expand_flatten\n)\nSELECT\n *,\n \n \nmd5(cast(coalesce(cast(stablecoin as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(timestamp as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS defillama_stablecoin_supply_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'f3fd32af-64d3-4c75-bfb6-95e2946ea073' AS _invocation_id\nFROM\n FINAL", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.silver__defillama_pool_yields": {"database": "EXTERNAL", "schema": "silver", "name": "silver__defillama_pool_yields", "resource_type": "model", "package_name": "external_models", "path": "defillama/silver/silver__defillama_pool_yields.sql", "original_file_path": "models/defillama/silver/silver__defillama_pool_yields.sql", "unique_id": "model.external_models.silver__defillama_pool_yields", "fqn": ["external_models", "defillama", "silver", "silver__defillama_pool_yields"], "alias": "defillama_pool_yields", "checksum": {"name": "sha256", "checksum": "7a0bfff88fc556887567707e039dc0e73c419d1824ccae5a596a505d8e5986c6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "defillama_yield_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama"], "description": "", "columns": {"_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TIMESTAMP": {"name": "TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/silver/silver__defillama_pool_yields.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": "defillama_yield_id", "full_refresh": false, "tags": ["defillama"]}, "created_at": 1760113502.098733, "relation_name": "EXTERNAL.silver.defillama_pool_yields", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = 'defillama_yield_id',\n full_refresh = false,\n tags = ['defillama']\n) }}\n\nWITH pool_yields AS (\n\n SELECT\n live.udf_api('GET', CONCAT('https://yields.llama.fi/pools'),{},{}) AS READ,\n SYSDATE() :: DATE AS TIMESTAMP,\n SYSDATE() AS _inserted_timestamp\n),\nFINAL AS (\n SELECT\n TIMESTAMP,\n VALUE :apy :: FLOAT AS apy,\n VALUE :apyBase :: FLOAT AS apy_base,\n VALUE :apyBase7d :: FLOAT AS base_7d,\n VALUE :apyBaseInception :: FLOAT AS apy_base_inception,\n VALUE :apyMean30d :: FLOAT AS apy_mean_30d,\n VALUE :apyPct1D :: FLOAT AS apy_pct_1d,\n VALUE :apyPct30D :: FLOAT AS apy_pct_30d,\n VALUE :apyPct7D :: FLOAT AS apy_pct_7d,\n VALUE :apyReward :: FLOAT AS apy_rewards,\n VALUE :chain :: STRING AS chain,\n VALUE :count :: INTEGER AS COUNT,\n VALUE :exposure :: STRING AS exposure,\n VALUE :il7d :: FLOAT AS il_7d,\n VALUE :ilRisk :: STRING AS il_risk,\n VALUE :mu :: FLOAT AS mu,\n VALUE :outlier :: BOOLEAN AS outlier,\n VALUE :pool :: STRING AS pool_id,\n VALUE :poolMeta :: STRING AS pool_meta,\n VALUE :predictions :: variant AS predictions,\n VALUE :project :: STRING AS projects,\n VALUE :rewardTokens :: variant AS reward_tokens,\n VALUE :sigma :: FLOAT AS sigma,\n VALUE :stablecoin :: BOOLEAN AS stablecoin,\n VALUE :symbol :: STRING AS symbol,\n VALUE :tvlUsd :: INTEGER AS tvl_usd,\n VALUE :underlyingTokens :: variant AS underlying_tokens,\n VALUE :volumeUsd1d :: FLOAT AS volume_usd_1d,\n VALUE :volumeUsd7d :: FLOAT AS volume_usd_7d,\n _inserted_timestamp\n FROM\n pool_yields,\n LATERAL FLATTEN (\n input => READ :data :data\n )\n\n{% if is_incremental() %}\nWHERE\n _inserted_timestamp :: DATE > (\n SELECT\n MAX(_inserted_timestamp) :: DATE\n FROM\n {{ this }}\n )\n{% endif %}\n)\nSELECT\n TIMESTAMP,\n apy,\n apy_base,\n base_7d,\n apy_base_inception,\n apy_mean_30d,\n apy_pct_1d,\n apy_pct_30d,\n apy_pct_7d,\n apy_rewards,\n chain,\n COUNT,\n exposure,\n il_7d,\n il_risk,\n mu,\n outlier,\n pool_id,\n pool_meta,\n predictions,\n projects,\n CASE\n WHEN reward_tokens [0] IS NULL THEN NULL\n ELSE reward_tokens\n END AS reward_tokens,\n sigma,\n stablecoin,\n symbol,\n tvl_usd,\n CASE\n WHEN underlying_tokens [0] IS NULL THEN NULL\n ELSE underlying_tokens\n END AS underlying_tokens,\n volume_usd_1d,\n volume_usd_7d,\n {{ dbt_utils.generate_surrogate_key(\n ['pool_id','chain','timestamp']\n ) }} AS defillama_yield_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n _inserted_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n FINAL", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key"], "nodes": []}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_pool_yields.sql", "compiled": true, "compiled_code": "\n\nWITH pool_yields AS (\n\n SELECT\n live.udf_api('GET', CONCAT('https://yields.llama.fi/pools'),{},{}) AS READ,\n SYSDATE() :: DATE AS TIMESTAMP,\n SYSDATE() AS _inserted_timestamp\n),\nFINAL AS (\n SELECT\n TIMESTAMP,\n VALUE :apy :: FLOAT AS apy,\n VALUE :apyBase :: FLOAT AS apy_base,\n VALUE :apyBase7d :: FLOAT AS base_7d,\n VALUE :apyBaseInception :: FLOAT AS apy_base_inception,\n VALUE :apyMean30d :: FLOAT AS apy_mean_30d,\n VALUE :apyPct1D :: FLOAT AS apy_pct_1d,\n VALUE :apyPct30D :: FLOAT AS apy_pct_30d,\n VALUE :apyPct7D :: FLOAT AS apy_pct_7d,\n VALUE :apyReward :: FLOAT AS apy_rewards,\n VALUE :chain :: STRING AS chain,\n VALUE :count :: INTEGER AS COUNT,\n VALUE :exposure :: STRING AS exposure,\n VALUE :il7d :: FLOAT AS il_7d,\n VALUE :ilRisk :: STRING AS il_risk,\n VALUE :mu :: FLOAT AS mu,\n VALUE :outlier :: BOOLEAN AS outlier,\n VALUE :pool :: STRING AS pool_id,\n VALUE :poolMeta :: STRING AS pool_meta,\n VALUE :predictions :: variant AS predictions,\n VALUE :project :: STRING AS projects,\n VALUE :rewardTokens :: variant AS reward_tokens,\n VALUE :sigma :: FLOAT AS sigma,\n VALUE :stablecoin :: BOOLEAN AS stablecoin,\n VALUE :symbol :: STRING AS symbol,\n VALUE :tvlUsd :: INTEGER AS tvl_usd,\n VALUE :underlyingTokens :: variant AS underlying_tokens,\n VALUE :volumeUsd1d :: FLOAT AS volume_usd_1d,\n VALUE :volumeUsd7d :: FLOAT AS volume_usd_7d,\n _inserted_timestamp\n FROM\n pool_yields,\n LATERAL FLATTEN (\n input => READ :data :data\n )\n\n\nWHERE\n _inserted_timestamp :: DATE > (\n SELECT\n MAX(_inserted_timestamp) :: DATE\n FROM\n EXTERNAL.silver.defillama_pool_yields\n )\n\n)\nSELECT\n TIMESTAMP,\n apy,\n apy_base,\n base_7d,\n apy_base_inception,\n apy_mean_30d,\n apy_pct_1d,\n apy_pct_30d,\n apy_pct_7d,\n apy_rewards,\n chain,\n COUNT,\n exposure,\n il_7d,\n il_risk,\n mu,\n outlier,\n pool_id,\n pool_meta,\n predictions,\n projects,\n CASE\n WHEN reward_tokens [0] IS NULL THEN NULL\n ELSE reward_tokens\n END AS reward_tokens,\n sigma,\n stablecoin,\n symbol,\n tvl_usd,\n CASE\n WHEN underlying_tokens [0] IS NULL THEN NULL\n ELSE underlying_tokens\n END AS underlying_tokens,\n volume_usd_1d,\n volume_usd_7d,\n \n \nmd5(cast(coalesce(cast(pool_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(chain as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(timestamp as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS defillama_yield_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n _inserted_timestamp,\n 'f3fd32af-64d3-4c75-bfb6-95e2946ea073' AS _invocation_id\nFROM\n FINAL", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.silver__defillama_protocol_revenue": {"database": "EXTERNAL", "schema": "silver", "name": "silver__defillama_protocol_revenue", "resource_type": "model", "package_name": "external_models", "path": "defillama/silver/silver__defillama_protocol_revenue.sql", "original_file_path": "models/defillama/silver/silver__defillama_protocol_revenue.sql", "unique_id": "model.external_models.silver__defillama_protocol_revenue", "fqn": ["external_models", "defillama", "silver", "silver__defillama_protocol_revenue"], "alias": "defillama_protocol_revenue", "checksum": {"name": "sha256", "checksum": "4c60bc8c1db3392352a3e6a35b4a5556eb0bf415241c1e1a8e12b24fb6c77c73"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama"], "description": "", "columns": {"CHAIN": {"name": "CHAIN", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ID": {"name": "ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/silver/silver__defillama_protocol_revenue.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": "id", "full_refresh": false, "tags": ["defillama"]}, "created_at": 1760113502.1794026, "relation_name": "EXTERNAL.silver.defillama_protocol_revenue", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = 'id',\n full_refresh = false,\n tags = ['defillama']\n) }}\n\nWITH api_pull AS (\n\n SELECT\n PARSE_JSON(\n live.udf_api(\n 'GET',\n 'https://pro-api.llama.fi/{api_key}/api/overview/fees?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true&dataType=dailyRevenue',{},{},'Vault/prod/external/defillama'\n )\n ) :data :protocols AS response,\n SYSDATE() AS _inserted_timestamp\n),\nlat_flat AS (\n SELECT\n r.value AS VALUE,\n r.value :displayName :: STRING AS protocol,\n _inserted_timestamp\n FROM\n api_pull,\n LATERAL FLATTEN (\n input => response\n ) AS r\n),\nchain_breakdown AS (\n SELECT\n k.key AS chain,\n SYSDATE() :: DATE AS TIMESTAMP,\n protocol,\n k.value AS rev_object,\n v.value :: INTEGER AS daily_rev,\n _inserted_timestamp\n FROM\n lat_flat,\n LATERAL FLATTEN(\n input => VALUE :breakdown24h\n ) k,\n LATERAL FLATTEN(\n input => k.value\n ) v\n)\nSELECT\n chain,\n TIMESTAMP,\n protocol,\n daily_rev,\n rev_object,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['chain', 'protocol', 'timestamp']\n ) }} AS id\nFROM\n chain_breakdown", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key"], "nodes": []}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_protocol_revenue.sql", "compiled": true, "compiled_code": "\n\nWITH api_pull AS (\n\n SELECT\n PARSE_JSON(\n live.udf_api(\n 'GET',\n 'https://pro-api.llama.fi/{api_key}/api/overview/fees?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true&dataType=dailyRevenue',{},{},'Vault/prod/external/defillama'\n )\n ) :data :protocols AS response,\n SYSDATE() AS _inserted_timestamp\n),\nlat_flat AS (\n SELECT\n r.value AS VALUE,\n r.value :displayName :: STRING AS protocol,\n _inserted_timestamp\n FROM\n api_pull,\n LATERAL FLATTEN (\n input => response\n ) AS r\n),\nchain_breakdown AS (\n SELECT\n k.key AS chain,\n SYSDATE() :: DATE AS TIMESTAMP,\n protocol,\n k.value AS rev_object,\n v.value :: INTEGER AS daily_rev,\n _inserted_timestamp\n FROM\n lat_flat,\n LATERAL FLATTEN(\n input => VALUE :breakdown24h\n ) k,\n LATERAL FLATTEN(\n input => k.value\n ) v\n)\nSELECT\n chain,\n TIMESTAMP,\n protocol,\n daily_rev,\n rev_object,\n _inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(chain as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(protocol as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(timestamp as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS id\nFROM\n chain_breakdown", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.silver__defillama_stablecoin_metrics": {"database": "EXTERNAL", "schema": "silver", "name": "silver__defillama_stablecoin_metrics", "resource_type": "model", "package_name": "external_models", "path": "defillama/silver/silver__defillama_stablecoin_metrics.sql", "original_file_path": "models/defillama/silver/silver__defillama_stablecoin_metrics.sql", "unique_id": "model.external_models.silver__defillama_stablecoin_metrics", "fqn": ["external_models", "defillama", "silver", "silver__defillama_stablecoin_metrics"], "alias": "defillama_stablecoin_metrics", "checksum": {"name": "sha256", "checksum": "6d4040f93c6bffa0bbd9c4a7ff0313cfab546148bb003ac892f3c2edc0f38b86"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "defillama_stablecoin_metrics_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["date_day", "chain"]}, "tags": ["defillama"], "description": "", "columns": {"_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DATE_DAY": {"name": "DATE_DAY", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DEFILLAMA_STABLECOIN_METRICS_ID": {"name": "DEFILLAMA_STABLECOIN_METRICS_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/silver/silver__defillama_stablecoin_metrics.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": "defillama_stablecoin_metrics_id", "cluster_by": ["date_day", "chain"], "tags": ["defillama"]}, "created_at": 1760113501.9318726, "relation_name": "EXTERNAL.silver.defillama_stablecoin_metrics", "raw_code": "-- depends_on: {{ ref('bronze__defillama_stablecoin_metrics') }}\n{{ config(\n materialized = 'incremental',\n unique_key = 'defillama_stablecoin_metrics_id',\n cluster_by = ['date_day','chain'],\n tags = ['defillama']\n) }}\n\nwith base as (\n select \n value:\"CHAIN\"::string as chain,\n value:\"STABLECOIN_ID\"::string as stablecoin_id,\n to_timestamp(value:\"RUN_TIMESTAMP\"::string) as run_timestamp,\n partition_key,\n data:totalCirculatingUSD as total_circulating_usd,\n data:totalMintedUSD as total_minted_usd,\n data:totalCirculating as total_circulating,\n data:totalBridgedToUSD as total_bridged_to_usd,\n data:totalUnreleased as total_unreleased,\n to_date(data:date::string) as date_day,\n _inserted_timestamp\n from \n {% if is_incremental() %}\n {{ ref('bronze__defillama_stablecoin_metrics') }}\n where _inserted_timestamp > (\n select coalesce(max(_inserted_timestamp), '2025-01-01') from {{ this }}\n )\n {% else %}\n {{ ref('bronze__defillama_stablecoin_metrics_FR') }}\n {% endif %}\n)\nselect \nchain,\ndate_day,\nstablecoin_id,\ntotal_circulating_usd,\ntotal_minted_usd,\ntotal_circulating,\ntotal_bridged_to_usd,\ntotal_unreleased,\nrun_timestamp,\npartition_key,\n_inserted_timestamp,\n{{ dbt_utils.generate_surrogate_key(\n ['chain','stablecoin_id','date_day', 'run_timestamp']\n) }} as defillama_stablecoin_metrics_id,\nsysdate() as inserted_timestamp,\nsysdate() as modified_timestamp,\n'{{ invocation_id }}' as _invocation_id\nfrom base \nwhere date_day is not null\nqualify row_number() over (partition by defillama_stablecoin_metrics_id order by _inserted_timestamp desc) = 1", "language": "sql", "refs": [{"name": "bronze__defillama_stablecoin_metrics", "package": null, "version": null}, {"name": "bronze__defillama_stablecoin_metrics_FR", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.external_models.bronze__defillama_stablecoin_metrics", "model.external_models.bronze__defillama_stablecoin_metrics_FR"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_stablecoin_metrics.sql", "compiled": true, "compiled_code": "-- depends_on: EXTERNAL.bronze.defillama_stablecoin_metrics\n\n\nwith base as (\n select \n value:\"CHAIN\"::string as chain,\n value:\"STABLECOIN_ID\"::string as stablecoin_id,\n to_timestamp(value:\"RUN_TIMESTAMP\"::string) as run_timestamp,\n partition_key,\n data:totalCirculatingUSD as total_circulating_usd,\n data:totalMintedUSD as total_minted_usd,\n data:totalCirculating as total_circulating,\n data:totalBridgedToUSD as total_bridged_to_usd,\n data:totalUnreleased as total_unreleased,\n to_date(data:date::string) as date_day,\n _inserted_timestamp\n from \n \n EXTERNAL.bronze.defillama_stablecoin_metrics\n where _inserted_timestamp > (\n select coalesce(max(_inserted_timestamp), '2025-01-01') from EXTERNAL.silver.defillama_stablecoin_metrics\n )\n \n)\nselect \nchain,\ndate_day,\nstablecoin_id,\ntotal_circulating_usd,\ntotal_minted_usd,\ntotal_circulating,\ntotal_bridged_to_usd,\ntotal_unreleased,\nrun_timestamp,\npartition_key,\n_inserted_timestamp,\n\n \nmd5(cast(coalesce(cast(chain as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(stablecoin_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(run_timestamp as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as defillama_stablecoin_metrics_id,\nsysdate() as inserted_timestamp,\nsysdate() as modified_timestamp,\n'f3fd32af-64d3-4c75-bfb6-95e2946ea073' as _invocation_id\nfrom base \nwhere date_day is not null\nqualify row_number() over (partition by defillama_stablecoin_metrics_id order by _inserted_timestamp desc) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.silver__defillama_perp_metrics": {"database": "EXTERNAL", "schema": "silver", "name": "silver__defillama_perp_metrics", "resource_type": "model", "package_name": "external_models", "path": "defillama/silver/silver__defillama_perp_metrics.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_metrics.sql", "unique_id": "model.external_models.silver__defillama_perp_metrics", "fqn": ["external_models", "defillama", "silver", "silver__defillama_perp_metrics"], "alias": "defillama_perp_metrics", "checksum": {"name": "sha256", "checksum": "927136c03d033c169cea0736685173c4372ed74376eb2182ca8521b6f1c9646b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "defillama_perp_metrics_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["timestamp", "protocol_id"]}, "tags": ["defillama"], "description": "", "columns": {"timestamp": {"name": "timestamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "protocol_id": {"name": "protocol_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "category": {"name": "category", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "module": {"name": "module", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "logo": {"name": "logo", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "chains": {"name": "chains", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "protocol_type": {"name": "protocol_type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "methodology_url": {"name": "methodology_url", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "methodology": {"name": "methodology", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "protocol_slug": {"name": "protocol_slug", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_24h": {"name": "total_24h", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_48h_to_24h": {"name": "total_48h_to_24h", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_7d": {"name": "total_7d", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_30d": {"name": "total_30d", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_all_time": {"name": "total_all_time", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_1d": {"name": "change_1d", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_data_chart_breakdown": {"name": "total_data_chart_breakdown", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "defillama_perp_metrics_id": {"name": "defillama_perp_metrics_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_inserted_timestamp": {"name": "_inserted_timestamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inserted_timestamp": {"name": "inserted_timestamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "modified_timestamp": {"name": "modified_timestamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/silver/silver__defillama_perp_metrics.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": "defillama_perp_metrics_id", "cluster_by": ["timestamp", "protocol_id"], "tags": ["defillama"]}, "created_at": 1760113501.85458, "relation_name": "EXTERNAL.silver.defillama_perp_metrics", "raw_code": "-- depends_on: {{ ref('bronze__defillama_perp_metrics') }}\n{{ config(\n materialized = 'incremental',\n unique_key = 'defillama_perp_metrics_id',\n cluster_by = ['timestamp','protocol_id'],\n tags = ['defillama']\n) }}\n\nwith base_raw as (\n select \n data,\n _inserted_timestamp\n from \n {% if is_incremental() %}\n {{ ref('bronze__defillama_perp_metrics') }}\n where _inserted_timestamp > (\n select coalesce(max(_inserted_timestamp), '2025-01-01') from {{ this }}\n )\n AND DATA IS NOT NULL\n {% else %}\n {{ ref('bronze__defillama_perp_metrics_FR') }}\n WHERE DATA IS NOT NULL\n {% endif %}\n),\nbase as (\n select \n _inserted_timestamp :: DATE AS timestamp,\n DATA :defillamaId :: STRING AS protocol_id,\n DATA :category :: STRING AS category,\n DATA :name :: STRING AS name,\n DATA :displayName :: STRING AS display_name,\n DATA :module :: STRING AS module,\n DATA :logo :: STRING AS logo,\n DATA :chains AS chains,\n DATA :protocolType :: STRING AS protocol_type,\n DATA :methodologyURL :: STRING AS methodology_url,\n DATA :methodology AS methodology,\n DATA :parentProtocol :: STRING AS parent_protocol,\n DATA :slug :: STRING AS slug,\n DATA :linkedProtocols AS linked_protocols,\n DATA :total24h :: FLOAT AS total_24h,\n DATA :total48hto24h :: FLOAT AS total_48h_to_24h,\n DATA :total7d :: FLOAT AS total_7d,\n DATA :total30d :: FLOAT AS total_30d,\n DATA :totalAllTime :: FLOAT AS total_all_time,\n DATA :change_1d :: FLOAT AS change_1d,\n DATA :totalDataChartBreakdown AS total_data_chart_breakdown,\n _inserted_timestamp\n from base_raw\n where data:defillamaId IS NOT NULL\n and TRY_CAST(data:defillamaId::STRING AS NUMBER) IS NOT NULL\n)\nselect \n timestamp,\n protocol_id,\n category,\n name,\n display_name,\n module,\n logo,\n chains,\n protocol_type,\n methodology_url,\n methodology,\n parent_protocol,\n slug as protocol_slug,\n linked_protocols,\n total_24h,\n total_48h_to_24h,\n total_7d,\n total_30d,\n total_all_time,\n change_1d,\n total_data_chart_breakdown,\n {{ dbt_utils.generate_surrogate_key(\n ['protocol_id','timestamp']\n ) }} as defillama_perp_metrics_id,\n _inserted_timestamp,\n sysdate() as inserted_timestamp,\n sysdate() as modified_timestamp,\n '{{ invocation_id }}' as _invocation_id\nfrom base\nqualify row_number() over (partition by defillama_perp_metrics_id order by _inserted_timestamp desc) = 1", "language": "sql", "refs": [{"name": "bronze__defillama_perp_metrics", "package": null, "version": null}, {"name": "bronze__defillama_perp_metrics_FR", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.external_models.bronze__defillama_perp_metrics", "model.external_models.bronze__defillama_perp_metrics_FR"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_metrics.sql", "compiled": true, "compiled_code": "-- depends_on: EXTERNAL.bronze.defillama_perp_metrics\n\n\nwith base_raw as (\n select \n data,\n _inserted_timestamp\n from \n \n EXTERNAL.bronze.defillama_perp_metrics\n where _inserted_timestamp > (\n select coalesce(max(_inserted_timestamp), '2025-01-01') from EXTERNAL.silver.defillama_perp_metrics\n )\n AND DATA IS NOT NULL\n \n),\nbase as (\n select \n _inserted_timestamp :: DATE AS timestamp,\n DATA :defillamaId :: STRING AS protocol_id,\n DATA :category :: STRING AS category,\n DATA :name :: STRING AS name,\n DATA :displayName :: STRING AS display_name,\n DATA :module :: STRING AS module,\n DATA :logo :: STRING AS logo,\n DATA :chains AS chains,\n DATA :protocolType :: STRING AS protocol_type,\n DATA :methodologyURL :: STRING AS methodology_url,\n DATA :methodology AS methodology,\n DATA :parentProtocol :: STRING AS parent_protocol,\n DATA :slug :: STRING AS slug,\n DATA :linkedProtocols AS linked_protocols,\n DATA :total24h :: FLOAT AS total_24h,\n DATA :total48hto24h :: FLOAT AS total_48h_to_24h,\n DATA :total7d :: FLOAT AS total_7d,\n DATA :total30d :: FLOAT AS total_30d,\n DATA :totalAllTime :: FLOAT AS total_all_time,\n DATA :change_1d :: FLOAT AS change_1d,\n DATA :totalDataChartBreakdown AS total_data_chart_breakdown,\n _inserted_timestamp\n from base_raw\n where data:defillamaId IS NOT NULL\n and TRY_CAST(data:defillamaId::STRING AS NUMBER) IS NOT NULL\n)\nselect \n timestamp,\n protocol_id,\n category,\n name,\n display_name,\n module,\n logo,\n chains,\n protocol_type,\n methodology_url,\n methodology,\n parent_protocol,\n slug as protocol_slug,\n linked_protocols,\n total_24h,\n total_48h_to_24h,\n total_7d,\n total_30d,\n total_all_time,\n change_1d,\n total_data_chart_breakdown,\n \n \nmd5(cast(coalesce(cast(protocol_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(timestamp as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as defillama_perp_metrics_id,\n _inserted_timestamp,\n sysdate() as inserted_timestamp,\n sysdate() as modified_timestamp,\n 'f3fd32af-64d3-4c75-bfb6-95e2946ea073' as _invocation_id\nfrom base\nqualify row_number() over (partition by defillama_perp_metrics_id order by _inserted_timestamp desc) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.silver__defillama_options_premium": {"database": "EXTERNAL", "schema": "silver", "name": "silver__defillama_options_premium", "resource_type": "model", "package_name": "external_models", "path": "defillama/silver/silver__defillama_options_premium.sql", "original_file_path": "models/defillama/silver/silver__defillama_options_premium.sql", "unique_id": "model.external_models.silver__defillama_options_premium", "fqn": ["external_models", "defillama", "silver", "silver__defillama_options_premium"], "alias": "defillama_options_premium", "checksum": {"name": "sha256", "checksum": "7375d622c63400428e38e60213646e775c3788f9acc6370b74edf85a30f4526d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama"], "description": "", "columns": {"CHAIN": {"name": "CHAIN", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ID": {"name": "ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/silver/silver__defillama_options_premium.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": "id", "full_refresh": false, "tags": ["defillama"]}, "created_at": 1760113502.156876, "relation_name": "EXTERNAL.silver.defillama_options_premium", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = 'id',\n full_refresh = false,\n tags = ['defillama']\n) }}\n\nWITH all_chains_options_base AS (\n\nSELECT\n LOWER(VALUE::STRING) AS chain,\n ROW_NUMBER() OVER (ORDER BY chain) AS row_num, \n _inserted_timestamp\nFROM (\n SELECT\n live.udf_api(\n 'GET','https://pro-api.llama.fi/{api_key}/api/overview/options?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true&dataType=dailyPremiumVolume',{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\n ),\nLATERAL FLATTEN (input=> read:data:allChains) \n),\n\noptions_base AS (\n\n{% for item in range(5) %}\n(\nSELECT\n chain,\n live.udf_api(\n 'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/overview/options/',chain,'?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=false&dataType=dailyPremiumVolume'),{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\nFROM (\n SELECT \n DISTINCT chain, \n row_num\n FROM all_chains_options_base\n WHERE row_num BETWEEN {{ item * 5 + 1 }} AND {{ (item + 1) * 5 }}\n )\n{% if is_incremental() %}\nWHERE chain NOT IN (\n SELECT\n chain\n FROM (\n SELECT \n DISTINCT chain,\n MAX(timestamp::DATE) AS max_timestamp\n FROM {{ this }}\n GROUP BY 1\n HAVING CURRENT_DATE = max_timestamp\n )\n)\n{% endif %}\n) {% if not loop.last %}\nUNION ALL\n{% endif %}\n{% endfor %}\n),\n\nreads_output AS (\n\nSELECT\n chain,\n TO_TIMESTAMP(VALUE[0]::INTEGER) AS timestamp,\n VALUE[1] AS options_object,\n _inserted_timestamp\nFROM options_base,\n LATERAL FLATTEN (input=> read:data:totalDataChartBreakdown)\n)\n\nSELECT\n chain,\n timestamp,\n key::STRING AS protocol, \n value::INTEGER AS daily_volume_premium,\n options_object,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['chain', 'protocol', 'timestamp']\n ) }} AS id\nFROM reads_output,\n LATERAL FLATTEN(input => PARSE_JSON(reads_output.options_object))", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key"], "nodes": []}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_options_premium.sql", "compiled": true, "compiled_code": "\n\nWITH all_chains_options_base AS (\n\nSELECT\n LOWER(VALUE::STRING) AS chain,\n ROW_NUMBER() OVER (ORDER BY chain) AS row_num, \n _inserted_timestamp\nFROM (\n SELECT\n live.udf_api(\n 'GET','https://pro-api.llama.fi/{api_key}/api/overview/options?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true&dataType=dailyPremiumVolume',{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\n ),\nLATERAL FLATTEN (input=> read:data:allChains) \n),\n\noptions_base AS (\n\n\n(\nSELECT\n chain,\n live.udf_api(\n 'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/overview/options/',chain,'?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=false&dataType=dailyPremiumVolume'),{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\nFROM (\n SELECT \n DISTINCT chain, \n row_num\n FROM all_chains_options_base\n WHERE row_num BETWEEN 1 AND 5\n )\n\nWHERE chain NOT IN (\n SELECT\n chain\n FROM (\n SELECT \n DISTINCT chain,\n MAX(timestamp::DATE) AS max_timestamp\n FROM EXTERNAL.silver.defillama_options_premium\n GROUP BY 1\n HAVING CURRENT_DATE = max_timestamp\n )\n)\n\n) \nUNION ALL\n\n\n(\nSELECT\n chain,\n live.udf_api(\n 'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/overview/options/',chain,'?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=false&dataType=dailyPremiumVolume'),{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\nFROM (\n SELECT \n DISTINCT chain, \n row_num\n FROM all_chains_options_base\n WHERE row_num BETWEEN 6 AND 10\n )\n\nWHERE chain NOT IN (\n SELECT\n chain\n FROM (\n SELECT \n DISTINCT chain,\n MAX(timestamp::DATE) AS max_timestamp\n FROM EXTERNAL.silver.defillama_options_premium\n GROUP BY 1\n HAVING CURRENT_DATE = max_timestamp\n )\n)\n\n) \nUNION ALL\n\n\n(\nSELECT\n chain,\n live.udf_api(\n 'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/overview/options/',chain,'?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=false&dataType=dailyPremiumVolume'),{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\nFROM (\n SELECT \n DISTINCT chain, \n row_num\n FROM all_chains_options_base\n WHERE row_num BETWEEN 11 AND 15\n )\n\nWHERE chain NOT IN (\n SELECT\n chain\n FROM (\n SELECT \n DISTINCT chain,\n MAX(timestamp::DATE) AS max_timestamp\n FROM EXTERNAL.silver.defillama_options_premium\n GROUP BY 1\n HAVING CURRENT_DATE = max_timestamp\n )\n)\n\n) \nUNION ALL\n\n\n(\nSELECT\n chain,\n live.udf_api(\n 'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/overview/options/',chain,'?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=false&dataType=dailyPremiumVolume'),{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\nFROM (\n SELECT \n DISTINCT chain, \n row_num\n FROM all_chains_options_base\n WHERE row_num BETWEEN 16 AND 20\n )\n\nWHERE chain NOT IN (\n SELECT\n chain\n FROM (\n SELECT \n DISTINCT chain,\n MAX(timestamp::DATE) AS max_timestamp\n FROM EXTERNAL.silver.defillama_options_premium\n GROUP BY 1\n HAVING CURRENT_DATE = max_timestamp\n )\n)\n\n) \nUNION ALL\n\n\n(\nSELECT\n chain,\n live.udf_api(\n 'GET',CONCAT('https://pro-api.llama.fi/{api_key}/api/overview/options/',chain,'?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=false&dataType=dailyPremiumVolume'),{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\nFROM (\n SELECT \n DISTINCT chain, \n row_num\n FROM all_chains_options_base\n WHERE row_num BETWEEN 21 AND 25\n )\n\nWHERE chain NOT IN (\n SELECT\n chain\n FROM (\n SELECT \n DISTINCT chain,\n MAX(timestamp::DATE) AS max_timestamp\n FROM EXTERNAL.silver.defillama_options_premium\n GROUP BY 1\n HAVING CURRENT_DATE = max_timestamp\n )\n)\n\n) \n\n),\n\nreads_output AS (\n\nSELECT\n chain,\n TO_TIMESTAMP(VALUE[0]::INTEGER) AS timestamp,\n VALUE[1] AS options_object,\n _inserted_timestamp\nFROM options_base,\n LATERAL FLATTEN (input=> read:data:totalDataChartBreakdown)\n)\n\nSELECT\n chain,\n timestamp,\n key::STRING AS protocol, \n value::INTEGER AS daily_volume_premium,\n options_object,\n _inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(chain as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(protocol as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(timestamp as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS id\nFROM reads_output,\n LATERAL FLATTEN(input => PARSE_JSON(reads_output.options_object))", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.silver__defillama_usdt_usdc_supply": {"database": "EXTERNAL", "schema": "silver", "name": "silver__defillama_usdt_usdc_supply", "resource_type": "model", "package_name": "external_models", "path": "defillama/silver/silver__defillama_usdt_usdc_supply.sql", "original_file_path": "models/defillama/silver/silver__defillama_usdt_usdc_supply.sql", "unique_id": "model.external_models.silver__defillama_usdt_usdc_supply", "fqn": ["external_models", "defillama", "silver", "silver__defillama_usdt_usdc_supply"], "alias": "defillama_usdt_usdc_supply", "checksum": {"name": "sha256", "checksum": "c01b8d83da265d8986271b549aee6d92b9be6781d5d1df2595d389f3c0a0cdf0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "defillama_usdc_usdt_supply_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": "chain"}, "tags": ["stale"], "description": "", "columns": {"_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/silver/silver__defillama_usdt_usdc_supply.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "cluster_by": "chain", "unique_key": "defillama_usdc_usdt_supply_id", "tags": ["stale"]}, "created_at": 1760113501.9636445, "relation_name": "EXTERNAL.silver.defillama_usdt_usdc_supply", "raw_code": "{{ config(\n materialized = 'incremental',\n cluster_by = 'chain',\n unique_key = 'defillama_usdc_usdt_supply_id',\n tags = ['stale']\n) }}\n\nWITH base AS (\n\n SELECT\n chain,\n stablecoin_id,\n READ,\n _inserted_timestamp\n FROM\n {{ ref('bronze__defillama_usdc_usdt_supply') }}\n\n{% if is_incremental() %}\nWHERE\n _inserted_timestamp > (\n SELECT\n MAX(_inserted_timestamp)\n FROM\n {{ this }}\n )\n{% endif %}\n),\nflattened_supply AS (\n SELECT\n chain,\n stablecoin_id,\n TO_TIMESTAMP_NTZ(\n VALUE :date :: INT\n ) AS DATE,\n VALUE :totalBridgedToUSD :peggedUSD :: FLOAT AS total_bridged_usd,\n VALUE :totalCirculating :peggedUSD :: FLOAT AS total_circulating,\n VALUE :totalCirculatingUSD :peggedUSD :: FLOAT AS total_circulating_usd,\n _inserted_timestamp\n FROM\n base,\n LATERAL FLATTEN(\n input => READ :data\n )\n)\nSELECT\n A.date,\n A.stablecoin_id,\n b.stablecoin,\n b.symbol,\n A.chain,\n A.total_bridged_usd,\n A.total_circulating,\n A.total_circulating_usd,\n A._inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['chain','date','a.stablecoin_id']\n ) }} AS defillama_usdc_usdt_supply_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n flattened_supply A\n LEFT JOIN {{ ref('bronze__defillama_stablecoins') }}\n b\n ON A.stablecoin_id = b.stablecoin_id \n{% if is_incremental() %}\nWHERE\n DATE > (\n SELECT\n MAX(DATE) :: DATE\n FROM\n {{ this }}\n )\n{% endif %}\n qualify ROW_NUMBER() over (\n PARTITION BY A.chain,\n A.date,\n A.stablecoin_id\n ORDER BY\n A._inserted_timestamp DESC\n ) = 1", "language": "sql", "refs": [{"name": "bronze__defillama_usdc_usdt_supply", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.external_models.bronze__defillama_usdc_usdt_supply", "model.external_models.bronze__defillama_stablecoins"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_usdt_usdc_supply.sql", "compiled": true, "compiled_code": "\n\nWITH base AS (\n\n SELECT\n chain,\n stablecoin_id,\n READ,\n _inserted_timestamp\n FROM\n EXTERNAL.bronze.defillama_usdc_usdt_supply\n\n\nWHERE\n _inserted_timestamp > (\n SELECT\n MAX(_inserted_timestamp)\n FROM\n EXTERNAL.silver.defillama_usdt_usdc_supply\n )\n\n),\nflattened_supply AS (\n SELECT\n chain,\n stablecoin_id,\n TO_TIMESTAMP_NTZ(\n VALUE :date :: INT\n ) AS DATE,\n VALUE :totalBridgedToUSD :peggedUSD :: FLOAT AS total_bridged_usd,\n VALUE :totalCirculating :peggedUSD :: FLOAT AS total_circulating,\n VALUE :totalCirculatingUSD :peggedUSD :: FLOAT AS total_circulating_usd,\n _inserted_timestamp\n FROM\n base,\n LATERAL FLATTEN(\n input => READ :data\n )\n)\nSELECT\n A.date,\n A.stablecoin_id,\n b.stablecoin,\n b.symbol,\n A.chain,\n A.total_bridged_usd,\n A.total_circulating,\n A.total_circulating_usd,\n A._inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(chain as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(date as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(a.stablecoin_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS defillama_usdc_usdt_supply_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'f3fd32af-64d3-4c75-bfb6-95e2946ea073' AS _invocation_id\nFROM\n flattened_supply A\n LEFT JOIN EXTERNAL.bronze.defillama_stablecoins\n b\n ON A.stablecoin_id = b.stablecoin_id \n\nWHERE\n DATE > (\n SELECT\n MAX(DATE) :: DATE\n FROM\n EXTERNAL.silver.defillama_usdt_usdc_supply\n )\n\n qualify ROW_NUMBER() over (\n PARTITION BY A.chain,\n A.date,\n A.stablecoin_id\n ORDER BY\n A._inserted_timestamp DESC\n ) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.silver__defillama_raises": {"database": "EXTERNAL", "schema": "silver", "name": "silver__defillama_raises", "resource_type": "model", "package_name": "external_models", "path": "defillama/silver/silver__defillama_raises.sql", "original_file_path": "models/defillama/silver/silver__defillama_raises.sql", "unique_id": "model.external_models.silver__defillama_raises", "fqn": ["external_models", "defillama", "silver", "silver__defillama_raises"], "alias": "defillama_raises", "checksum": {"name": "sha256", "checksum": "ef969f861d3bcc75e30e899b2d31cce4f32721672feee207143a0afd3904bf4d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["raise_id"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama"], "description": "", "columns": {"RAISE_ID": {"name": "RAISE_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROJECT_NAME": {"name": "PROJECT_NAME", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FUNDING_DATE": {"name": "FUNDING_DATE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/silver/silver__defillama_raises.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": ["raise_id"], "tags": ["defillama"]}, "created_at": 1760113501.7301602, "relation_name": "EXTERNAL.silver.defillama_raises", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = ['raise_id'],\n tags = ['defillama']\n) }}\n\nSELECT \n funding_date,\n project_name,\n funding_round,\n amount_raised * 1000000 AS amount_raised,\n chains,\n sector,\n category,\n category_group,\n source,\n lead_investors,\n other_investors,\n valuation,\n defillama_id,\n raise_id,\n {{ dbt_utils.generate_surrogate_key(\n ['raise_id']\n ) }} AS defillama_raises_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n _inserted_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n {{ ref('bronze__defillama_raises') }}\n\n{% if is_incremental() %}\nWHERE _inserted_timestamp > (\n SELECT\n MAX(_inserted_timestamp)\n FROM\n {{ this }}\n)\n{% endif %}\n\nQUALIFY(\n ROW_NUMBER() OVER (PARTITION BY raise_id ORDER BY _inserted_timestamp DESC)\n) = 1", "language": "sql", "refs": [{"name": "bronze__defillama_raises", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental"], "nodes": ["model.external_models.bronze__defillama_raises"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_raises.sql", "compiled": true, "compiled_code": "\n\nSELECT \n funding_date,\n project_name,\n funding_round,\n amount_raised * 1000000 AS amount_raised,\n chains,\n sector,\n category,\n category_group,\n source,\n lead_investors,\n other_investors,\n valuation,\n defillama_id,\n raise_id,\n \n \nmd5(cast(coalesce(cast(raise_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS defillama_raises_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n _inserted_timestamp,\n 'f3fd32af-64d3-4c75-bfb6-95e2946ea073' AS _invocation_id\nFROM\n EXTERNAL.bronze.defillama_raises\n\n\nWHERE _inserted_timestamp > (\n SELECT\n MAX(_inserted_timestamp)\n FROM\n EXTERNAL.silver.defillama_raises\n)\n\n\nQUALIFY(\n ROW_NUMBER() OVER (PARTITION BY raise_id ORDER BY _inserted_timestamp DESC)\n) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.streamline__defillama_protocol_historical_complete": {"database": "EXTERNAL", "schema": "streamline", "name": "streamline__defillama_protocol_historical_complete", "resource_type": "model", "package_name": "external_models", "path": "defillama/streamline/streamline__defillama_protocol_historical_complete.sql", "original_file_path": "models/defillama/streamline/streamline__defillama_protocol_historical_complete.sql", "unique_id": "model.external_models.streamline__defillama_protocol_historical_complete", "fqn": ["external_models", "defillama", "streamline", "streamline__defillama_protocol_historical_complete"], "alias": "defillama_protocol_historical_complete", "checksum": {"name": "sha256", "checksum": "886f0597e506b95062a1b729694cadc6483cd746e243bea5b0fe27f8e5339fbd"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama_history"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["protocol_id", "_inserted_timestamp"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "merge_exclude_columns": ["inserted_timestamp"]}, "tags": ["defillama_history"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": ["protocol_id", "_inserted_timestamp"], "merge_exclude_columns": ["inserted_timestamp"], "tags": ["defillama_history"]}, "created_at": 1760113498.4129548, "relation_name": "EXTERNAL.streamline.defillama_protocol_historical_complete", "raw_code": "-- depends_on: {{ ref('bronze__defillama_protocol_historical_FR') }}\n-- depends_on: {{ ref('bronze__defillama_protocol_historical') }}\n{{ config (\n materialized = \"incremental\",\n unique_key = ['protocol_id','_inserted_timestamp'],\n merge_exclude_columns = [\"inserted_timestamp\"],\n tags = ['defillama_history']\n) }}\n\nWITH complete_data AS (\n\n SELECT\n VALUE:PROTOCOL_ID::INT AS protocol_id,\n _inserted_timestamp\n FROM\n\n{% if is_incremental() %}\n{{ ref('bronze__defillama_protocol_historical') }}\nWHERE\n _inserted_timestamp > (\n SELECT\n max(_inserted_timestamp)\n FROM\n {{ this }}\n )\n {% else %}\n {{ ref('bronze__defillama_protocol_historical_FR') }}\n {% endif %}\n)\nSELECT\n protocol_id,\n {{ dbt_utils.generate_surrogate_key(\n ['protocol_id','_inserted_timestamp']\n ) }} AS complete_defillama_protocol_historical_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n _inserted_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n complete_data qualify(ROW_NUMBER() over (PARTITION BY protocol_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "language": "sql", "refs": [{"name": "bronze__defillama_protocol_historical_FR", "package": null, "version": null}, {"name": "bronze__defillama_protocol_historical", "package": null, "version": null}, {"name": "bronze__defillama_protocol_historical_FR", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.external_models.bronze__defillama_protocol_historical_FR", "model.external_models.bronze__defillama_protocol_historical"]}, "compiled_path": "target/compiled/external_models/models/defillama/streamline/streamline__defillama_protocol_historical_complete.sql", "compiled": true, "compiled_code": "-- depends_on: EXTERNAL.bronze.defillama_protocol_historical_FR\n-- depends_on: EXTERNAL.bronze.defillama_protocol_historical\n\n\nWITH complete_data AS (\n\n SELECT\n VALUE:PROTOCOL_ID::INT AS protocol_id,\n _inserted_timestamp\n FROM\n\n\nEXTERNAL.bronze.defillama_protocol_historical\nWHERE\n _inserted_timestamp > (\n SELECT\n max(_inserted_timestamp)\n FROM\n EXTERNAL.streamline.defillama_protocol_historical_complete\n )\n \n)\nSELECT\n protocol_id,\n \n \nmd5(cast(coalesce(cast(protocol_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_inserted_timestamp as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS complete_defillama_protocol_historical_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n _inserted_timestamp,\n 'f3fd32af-64d3-4c75-bfb6-95e2946ea073' AS _invocation_id\nFROM\n complete_data qualify(ROW_NUMBER() over (PARTITION BY protocol_id\nORDER BY\n _inserted_timestamp DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.streamline__defillama_protocol_historical": {"database": "EXTERNAL", "schema": "streamline", "name": "streamline__defillama_protocol_historical", "resource_type": "model", "package_name": "external_models", "path": "defillama/streamline/streamline__defillama_protocol_historical.sql", "original_file_path": "models/defillama/streamline/streamline__defillama_protocol_historical.sql", "unique_id": "model.external_models.streamline__defillama_protocol_historical", "fqn": ["external_models", "defillama", "streamline", "streamline__defillama_protocol_historical"], "alias": "defillama_protocol_historical", "checksum": {"name": "sha256", "checksum": "d6367c5826168dd4cba730d06d083e1890028ce3dd9c79717dd0fe88c0dd3c60"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama_history"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "\n \n \n SELECT\n NULL\n \n", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama_history"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["defillama_history"], "post-hook": ["\n \n \n SELECT\n NULL\n \n"]}, "created_at": 1760113498.4221287, "relation_name": "EXTERNAL.streamline.defillama_protocol_historical", "raw_code": "{{ config (\n materialized = \"view\",\n post_hook = fsc_utils.if_data_call_function_v2(\n func = 'streamline.udf_bulk_rest_api_v2',\n target = \"{{this.schema}}.{{this.identifier}}\",\n params ={ \"external_table\" :\"defillama_protocol_historical\",\n \"sql_limit\" :\"200\",\n \"producer_batch_size\" :\"200\",\n \"worker_batch_size\" :\"200\",\n \"async_concurrent_requests\" :\"1\",\n \"sql_source\" :\"{{this.identifier}}\" }\n ),\n tags = ['defillama_history']\n) }}\n\nWITH base AS (\n\n SELECT\n protocol_slug,\n protocol_id\n FROM\n {{ ref('defillama__dim_protocols') }}\n WHERE\n protocol_id NOT IN (\n SELECT\n protocol_id\n FROM\n {{ ref('streamline__defillama_protocol_historical_complete') }}\n WHERE\n protocol_id IS NOT NULL\n )\n AND protocol_id IN (\n SELECT\n PROTOCOL_ID\n FROM\n {{ ref('bronze__defillama_protocol_tvl_historical_response_sizes') }}\n WHERE\n size_mb < 15\n AND\n status_code = 200\n )\n ORDER BY\n protocol_id ASC\n LIMIT 200\n)\nSELECT\n protocol_id,\n date_part('epoch_second', sysdate()::DATE) AS partition_key,\n {{ target.database }}.live.udf_api(\n 'GET',\n 'https://pro-api.llama.fi/{api_key}/api/protocol/' || protocol_slug,\n OBJECT_CONSTRUCT(\n 'Content-Type', 'text/plain',\n 'Accept', 'text/plain'\n ),\n {},\n 'Vault/prod/external/defillama'\n ) AS request\nFROM\n base\nORDER BY\n protocol_id ASC", "language": "sql", "refs": [{"name": "defillama__dim_protocols", "package": null, "version": null}, {"name": "streamline__defillama_protocol_historical_complete", "package": null, "version": null}, {"name": "bronze__defillama_protocol_tvl_historical_response_sizes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_utils.if_data_call_function_v2"], "nodes": ["model.external_models.defillama__dim_protocols", "model.external_models.streamline__defillama_protocol_historical_complete", "seed.external_models.bronze__defillama_protocol_tvl_historical_response_sizes"]}, "compiled_path": "target/compiled/external_models/models/defillama/streamline/streamline__defillama_protocol_historical.sql", "compiled": true, "compiled_code": "\n\nWITH base AS (\n\n SELECT\n protocol_slug,\n protocol_id\n FROM\n EXTERNAL.defillama.dim_protocols\n WHERE\n protocol_id NOT IN (\n SELECT\n protocol_id\n FROM\n EXTERNAL.streamline.defillama_protocol_historical_complete\n WHERE\n protocol_id IS NOT NULL\n )\n AND protocol_id IN (\n SELECT\n PROTOCOL_ID\n FROM\n EXTERNAL.bronze.defillama_protocol_tvl_historical_response_sizes\n WHERE\n size_mb < 15\n AND\n status_code = 200\n )\n ORDER BY\n protocol_id ASC\n LIMIT 200\n)\nSELECT\n protocol_id,\n date_part('epoch_second', sysdate()::DATE) AS partition_key,\n EXTERNAL.live.udf_api(\n 'GET',\n 'https://pro-api.llama.fi/{api_key}/api/protocol/' || protocol_slug,\n OBJECT_CONSTRUCT(\n 'Content-Type', 'text/plain',\n 'Accept', 'text/plain'\n ),\n {},\n 'Vault/prod/external/defillama'\n ) AS request\nFROM\n base\nORDER BY\n protocol_id ASC", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.streamline__defillama_perp_metrics": {"database": "EXTERNAL", "schema": "streamline", "name": "streamline__defillama_perp_metrics", "resource_type": "model", "package_name": "external_models", "path": "defillama/streamline/realtime/streamline__defillama_perp_metrics.sql", "original_file_path": "models/defillama/streamline/realtime/streamline__defillama_perp_metrics.sql", "unique_id": "model.external_models.streamline__defillama_perp_metrics", "fqn": ["external_models", "defillama", "streamline", "realtime", "streamline__defillama_perp_metrics"], "alias": "defillama_perp_metrics", "checksum": {"name": "sha256", "checksum": "0538c0d1e2af62310d83a850e896d4bf68c761acd001d5abd2547aee385e6732"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama_streamline"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "\n \n \n SELECT\n NULL\n \n", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama_streamline"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["defillama_streamline"], "post-hook": ["\n \n \n SELECT\n NULL\n \n"]}, "created_at": 1760113498.4311357, "relation_name": "EXTERNAL.streamline.defillama_perp_metrics", "raw_code": "{{ config (\n materialized = \"view\",\n post_hook = fsc_utils.if_data_call_function_v2(\n func = 'streamline.udf_bulk_rest_api_v2',\n target = \"{{this.schema}}.{{this.identifier}}\",\n params ={ \"external_table\" :\"defillama_perp_metrics\",\n \"sql_limit\" :\"10000\",\n \"producer_batch_size\" :\"10\",\n \"worker_batch_size\" :\"1\",\n \"async_concurrent_requests\" :\"1\",\n \"sql_source\" :\"{{this.identifier}}\",\n \"exploded_key\": tojson(['data'])\n }\n ),\n tags = ['defillama_streamline']\n) }}\n\nWITH perps as (\n\n select \n protocol_slug,\n protocol_id\n from {{ ref('bronze__defillama_perps') }}\n)\nSELECT\n protocol_slug,\n protocol_id,\n date_part('epoch_second', sysdate()) as run_timestamp,\n date_part('epoch_second', sysdate()::DATE) AS partition_key,\n {{ target.database }}.live.udf_api(\n 'GET',\n 'https://pro-api.llama.fi/{api_key}/api/summary/derivatives/'|| protocol_slug || '?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=false',\n OBJECT_CONSTRUCT(\n 'Content-Type', 'text/plain',\n 'Accept', 'text/plain',\n 'fsc-quantum-state', 'streamline'\n ),\n {},\n 'Vault/prod/external/defillama'\n ) AS request\nFROM\n perps\nwhere protocol_slug is not null\nlimit 10000", "language": "sql", "refs": [{"name": "bronze__defillama_perps", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_utils.if_data_call_function_v2"], "nodes": ["model.external_models.bronze__defillama_perps"]}, "compiled_path": "target/compiled/external_models/models/defillama/streamline/realtime/streamline__defillama_perp_metrics.sql", "compiled": true, "compiled_code": "\n\nWITH perps as (\n\n select \n protocol_slug,\n protocol_id\n from EXTERNAL.bronze.defillama_perps\n)\nSELECT\n protocol_slug,\n protocol_id,\n date_part('epoch_second', sysdate()) as run_timestamp,\n date_part('epoch_second', sysdate()::DATE) AS partition_key,\n EXTERNAL.live.udf_api(\n 'GET',\n 'https://pro-api.llama.fi/{api_key}/api/summary/derivatives/'|| protocol_slug || '?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=false',\n OBJECT_CONSTRUCT(\n 'Content-Type', 'text/plain',\n 'Accept', 'text/plain',\n 'fsc-quantum-state', 'streamline'\n ),\n {},\n 'Vault/prod/external/defillama'\n ) AS request\nFROM\n perps\nwhere protocol_slug is not null\nlimit 10000", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.streamline__defillama_protocols": {"database": "EXTERNAL", "schema": "streamline", "name": "streamline__defillama_protocols", "resource_type": "model", "package_name": "external_models", "path": "defillama/streamline/realtime/streamline__defillama_protocols.sql", "original_file_path": "models/defillama/streamline/realtime/streamline__defillama_protocols.sql", "unique_id": "model.external_models.streamline__defillama_protocols", "fqn": ["external_models", "defillama", "streamline", "realtime", "streamline__defillama_protocols"], "alias": "defillama_protocols", "checksum": {"name": "sha256", "checksum": "bad894badeb621665f705df164144af3b5fd14a8bff40a3acf4633a49f5ca4ac"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama_streamline"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "\n \n \n SELECT\n NULL\n \n", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama_streamline"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["defillama_streamline"], "post-hook": ["\n \n \n SELECT\n NULL\n \n"]}, "created_at": 1760113498.439348, "relation_name": "EXTERNAL.streamline.defillama_protocols", "raw_code": "{{ config (\n materialized = \"view\",\n post_hook = fsc_utils.if_data_call_function_v2(\n func = 'streamline.udf_bulk_rest_api_v2',\n target = \"{{this.schema}}.{{this.identifier}}\",\n params ={ \"external_table\" :\"defillama_protocols\",\n \"sql_limit\" :\"10000\",\n \"producer_batch_size\" :\"10\",\n \"worker_batch_size\" :\"1\",\n \"async_concurrent_requests\" :\"1\",\n \"sql_source\" :\"{{this.identifier}}\",\n \"exploded_key\": tojson(['data'])\n }\n ),\n tags = ['defillama_streamline']\n) }}\n\nSELECT\n date_part('epoch_second', sysdate()) as run_timestamp,\n date_part('epoch_second', sysdate()::DATE) AS partition_key,\n {{ target.database }}.live.udf_api(\n 'GET',\n 'https://pro-api.llama.fi/{api_key}/api/protocols',\n OBJECT_CONSTRUCT(\n 'Content-Type', 'text/plain',\n 'Accept', 'text/plain',\n 'fsc-quantum-state', 'streamline'\n ),\n {},\n 'Vault/prod/external/defillama'\n ) AS request", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_utils.if_data_call_function_v2"], "nodes": []}, "compiled_path": "target/compiled/external_models/models/defillama/streamline/realtime/streamline__defillama_protocols.sql", "compiled": true, "compiled_code": "\n\nSELECT\n date_part('epoch_second', sysdate()) as run_timestamp,\n date_part('epoch_second', sysdate()::DATE) AS partition_key,\n EXTERNAL.live.udf_api(\n 'GET',\n 'https://pro-api.llama.fi/{api_key}/api/protocols',\n OBJECT_CONSTRUCT(\n 'Content-Type', 'text/plain',\n 'Accept', 'text/plain',\n 'fsc-quantum-state', 'streamline'\n ),\n {},\n 'Vault/prod/external/defillama'\n ) AS request", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.streamline__defillama_stablecoin_metrics": {"database": "EXTERNAL", "schema": "streamline", "name": "streamline__defillama_stablecoin_metrics", "resource_type": "model", "package_name": "external_models", "path": "defillama/streamline/realtime/streamline__defillama_stablecoin_metrics.sql", "original_file_path": "models/defillama/streamline/realtime/streamline__defillama_stablecoin_metrics.sql", "unique_id": "model.external_models.streamline__defillama_stablecoin_metrics", "fqn": ["external_models", "defillama", "streamline", "realtime", "streamline__defillama_stablecoin_metrics"], "alias": "defillama_stablecoin_metrics", "checksum": {"name": "sha256", "checksum": "30b7a1cf8e3d892e0a4fb498351ef787e4f6d1ae5620df6c09b909505394c6f4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama_streamline"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "\n \n \n SELECT\n NULL\n \n", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama_streamline"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["defillama_streamline"], "post-hook": ["\n \n \n SELECT\n NULL\n \n"]}, "created_at": 1760113498.447158, "relation_name": "EXTERNAL.streamline.defillama_stablecoin_metrics", "raw_code": "{{ config (\n materialized = \"view\",\n post_hook = fsc_utils.if_data_call_function_v2(\n func = 'streamline.udf_bulk_rest_api_v2',\n target = \"{{this.schema}}.{{this.identifier}}\",\n params ={ \"external_table\" :\"defillama_stablecoin_metrics\",\n \"sql_limit\" :\"10000\",\n \"producer_batch_size\" :\"10\",\n \"worker_batch_size\" :\"1\",\n \"async_concurrent_requests\" :\"1\",\n \"sql_source\" :\"{{this.identifier}}\",\n \"exploded_key\": tojson(['data'])\n }\n ),\n tags = ['defillama_streamline']\n) }}\n\nWITH stablecoins as (\n\n select \n stablecoin_id,\n stablecoin,\n symbol,\n peg_type,\n peg_mechanism,\n price_source,\n value::string as chain\n from {{ ref('bronze__defillama_stablecoins') }},\n lateral flatten (input => chains)\n)\nSELECT\n chain,\n stablecoin_id,\n date_part('epoch_second', sysdate()) as run_timestamp,\n date_part('epoch_second', sysdate()::DATE) AS partition_key,\n {{ target.database }}.live.udf_api(\n 'GET',\n 'https://pro-api.llama.fi/{api_key}/stablecoins/stablecoincharts/' || chain || '?stablecoin=' || stablecoin_id,\n OBJECT_CONSTRUCT(\n 'Content-Type', 'text/plain',\n 'Accept', 'text/plain',\n 'fsc-quantum-state', 'streamline'\n ),\n {},\n 'Vault/prod/external/defillama'\n ) AS request\nFROM\n stablecoins\nwhere chain is not null and stablecoin_id is not null\n\norder by chain\n\nlimit 10000", "language": "sql", "refs": [{"name": "bronze__defillama_stablecoins", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_utils.if_data_call_function_v2"], "nodes": ["model.external_models.bronze__defillama_stablecoins"]}, "compiled_path": "target/compiled/external_models/models/defillama/streamline/realtime/streamline__defillama_stablecoin_metrics.sql", "compiled": true, "compiled_code": "\n\nWITH stablecoins as (\n\n select \n stablecoin_id,\n stablecoin,\n symbol,\n peg_type,\n peg_mechanism,\n price_source,\n value::string as chain\n from EXTERNAL.bronze.defillama_stablecoins,\n lateral flatten (input => chains)\n)\nSELECT\n chain,\n stablecoin_id,\n date_part('epoch_second', sysdate()) as run_timestamp,\n date_part('epoch_second', sysdate()::DATE) AS partition_key,\n EXTERNAL.live.udf_api(\n 'GET',\n 'https://pro-api.llama.fi/{api_key}/stablecoins/stablecoincharts/' || chain || '?stablecoin=' || stablecoin_id,\n OBJECT_CONSTRUCT(\n 'Content-Type', 'text/plain',\n 'Accept', 'text/plain',\n 'fsc-quantum-state', 'streamline'\n ),\n {},\n 'Vault/prod/external/defillama'\n ) AS request\nFROM\n stablecoins\nwhere chain is not null and stablecoin_id is not null\n\norder by chain\n\nlimit 10000", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__defillama_perp_metrics_FR": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__defillama_perp_metrics_FR", "resource_type": "model", "package_name": "external_models", "path": "defillama/streamline/bronze/bronze__defillama_perp_metrics_FR.sql", "original_file_path": "models/defillama/streamline/bronze/bronze__defillama_perp_metrics_FR.sql", "unique_id": "model.external_models.bronze__defillama_perp_metrics_FR", "fqn": ["external_models", "defillama", "streamline", "bronze", "bronze__defillama_perp_metrics_FR"], "alias": "defillama_perp_metrics_FR", "checksum": {"name": "sha256", "checksum": "6c0013fbba5d3868904c9604384c3ab3e8b0648f7d8e89c4330a988661fdc178"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama_streamline"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama_streamline"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["defillama_streamline"]}, "created_at": 1760113498.4554365, "relation_name": "EXTERNAL.bronze.defillama_perp_metrics_FR", "raw_code": "{{ config (\n materialized = 'view',\n tags = ['defillama_streamline']\n) }}\n{{ streamline_external_table_FR_query_v2(\n model = 'defillama_perp_metrics',\n partition_function = \"CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER)\",\n partition_name = \"partition_key\"\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "defillama_perp_metrics"], ["bronze_streamline", "defillama_perp_metrics"]], "metrics": [], "depends_on": {"macros": ["macro.external_models.streamline_external_table_FR_query_v2"], "nodes": ["source.external_models.bronze_streamline.defillama_perp_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/streamline/bronze/bronze__defillama_perp_metrics_FR.sql", "compiled": true, "compiled_code": "\n\nWITH meta AS (\n SELECT\n LAST_MODIFIED::timestamp_ntz AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => 'streamline.external.defillama_perp_metrics'\n )\n ) A\n)\nSELECT\n \n DATA,\n _inserted_timestamp,\n s.partition_key,\n s.value AS VALUE,\n file_name\nFROM\n streamline.external.defillama_perp_metrics\n s\nJOIN \n meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\nWHERE\n b.partition_key = s.partition_key\n AND (\n data:error:code IS NULL\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__defillama_stablecoin_metrics_FR": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__defillama_stablecoin_metrics_FR", "resource_type": "model", "package_name": "external_models", "path": "defillama/streamline/bronze/bronze__defillama_stablecoin_metrics_FR.sql", "original_file_path": "models/defillama/streamline/bronze/bronze__defillama_stablecoin_metrics_FR.sql", "unique_id": "model.external_models.bronze__defillama_stablecoin_metrics_FR", "fqn": ["external_models", "defillama", "streamline", "bronze", "bronze__defillama_stablecoin_metrics_FR"], "alias": "defillama_stablecoin_metrics_FR", "checksum": {"name": "sha256", "checksum": "daed8637c1bdf7225aca5c030ac77a08093e415c5eefc09f8c39770bb03c54eb"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama_streamline"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama_streamline"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["defillama_streamline"]}, "created_at": 1760113498.4631057, "relation_name": "EXTERNAL.bronze.defillama_stablecoin_metrics_FR", "raw_code": "{{ config (\n materialized = 'view',\n tags = ['defillama_streamline']\n) }}\n{{ streamline_external_table_FR_query_v2(\n model = 'defillama_stablecoin_metrics',\n partition_function = \"CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER)\",\n partition_name = \"partition_key\"\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "defillama_stablecoin_metrics"], ["bronze_streamline", "defillama_stablecoin_metrics"]], "metrics": [], "depends_on": {"macros": ["macro.external_models.streamline_external_table_FR_query_v2"], "nodes": ["source.external_models.bronze_streamline.defillama_stablecoin_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/streamline/bronze/bronze__defillama_stablecoin_metrics_FR.sql", "compiled": true, "compiled_code": "\n\nWITH meta AS (\n SELECT\n LAST_MODIFIED::timestamp_ntz AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => 'streamline.external.defillama_stablecoin_metrics'\n )\n ) A\n)\nSELECT\n \n DATA,\n _inserted_timestamp,\n s.partition_key,\n s.value AS VALUE,\n file_name\nFROM\n streamline.external.defillama_stablecoin_metrics\n s\nJOIN \n meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\nWHERE\n b.partition_key = s.partition_key\n AND (\n data:error:code IS NULL\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__defillama_protocols_FR": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__defillama_protocols_FR", "resource_type": "model", "package_name": "external_models", "path": "defillama/streamline/bronze/bronze__defillama_protocols_FR.sql", "original_file_path": "models/defillama/streamline/bronze/bronze__defillama_protocols_FR.sql", "unique_id": "model.external_models.bronze__defillama_protocols_FR", "fqn": ["external_models", "defillama", "streamline", "bronze", "bronze__defillama_protocols_FR"], "alias": "defillama_protocols_FR", "checksum": {"name": "sha256", "checksum": "4a604ea13e3044a80cf0c81df52594e57ae9a9b17093ebfc03c6a147d6750387"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama_streamline"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama_streamline"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["defillama_streamline"]}, "created_at": 1760113498.4695644, "relation_name": "EXTERNAL.bronze.defillama_protocols_FR", "raw_code": "{{ config (\n materialized = 'view',\n tags = ['defillama_streamline']\n) }}\n{{ streamline_external_table_FR_query_v2(\n model = 'defillama_protocols',\n partition_function = \"CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER)\",\n partition_name = \"partition_key\"\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "defillama_protocols"], ["bronze_streamline", "defillama_protocols"]], "metrics": [], "depends_on": {"macros": ["macro.external_models.streamline_external_table_FR_query_v2"], "nodes": ["source.external_models.bronze_streamline.defillama_protocols"]}, "compiled_path": "target/compiled/external_models/models/defillama/streamline/bronze/bronze__defillama_protocols_FR.sql", "compiled": true, "compiled_code": "\n\nWITH meta AS (\n SELECT\n LAST_MODIFIED::timestamp_ntz AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => 'streamline.external.defillama_protocols'\n )\n ) A\n)\nSELECT\n \n DATA,\n _inserted_timestamp,\n s.partition_key,\n s.value AS VALUE,\n file_name\nFROM\n streamline.external.defillama_protocols\n s\nJOIN \n meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\nWHERE\n b.partition_key = s.partition_key\n AND (\n data:error:code IS NULL\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__defillama_protocols": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__defillama_protocols", "resource_type": "model", "package_name": "external_models", "path": "defillama/streamline/bronze/bronze__defillama_protocols.sql", "original_file_path": "models/defillama/streamline/bronze/bronze__defillama_protocols.sql", "unique_id": "model.external_models.bronze__defillama_protocols", "fqn": ["external_models", "defillama", "streamline", "bronze", "bronze__defillama_protocols"], "alias": "defillama_protocols", "checksum": {"name": "sha256", "checksum": "e78e981a96b7876b38cd07f0f3f33c611a7ed101719b90092a051194de368aa1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama_streamline"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama_streamline"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["defillama_streamline"]}, "created_at": 1760113498.4759111, "relation_name": "EXTERNAL.bronze.defillama_protocols", "raw_code": "{{ config (\n materialized = 'view',\n tags = ['defillama_streamline']\n) }}\n{{ streamline_external_table_query_v2(\n model = 'defillama_protocols',\n partition_function = \"CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER)\",\n partition_name = \"partition_key\"\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "defillama_protocols"], ["bronze_streamline", "defillama_protocols"]], "metrics": [], "depends_on": {"macros": ["macro.external_models.streamline_external_table_query_v2"], "nodes": ["source.external_models.bronze_streamline.defillama_protocols"]}, "compiled_path": "target/compiled/external_models/models/defillama/streamline/bronze/bronze__defillama_protocols.sql", "compiled": true, "compiled_code": "\n\nWITH meta AS (\n SELECT\n LAST_MODIFIED::timestamp_ntz AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_file_registration_history(\n start_time => DATEADD('day', -3, CURRENT_TIMESTAMP()),\n table_name => 'streamline.external.defillama_protocols')\n ) A\n)\nSELECT\n \n DATA,\n _inserted_timestamp,\n s.partition_key,\n s.value AS VALUE,\n file_name\nFROM\n streamline.external.defillama_protocols\n s\nJOIN \n meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\nWHERE\n b.partition_key = s.partition_key\n AND (\n data:error:code IS NULL\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__defillama_perp_metrics": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__defillama_perp_metrics", "resource_type": "model", "package_name": "external_models", "path": "defillama/streamline/bronze/bronze__defillama_perp_metrics.sql", "original_file_path": "models/defillama/streamline/bronze/bronze__defillama_perp_metrics.sql", "unique_id": "model.external_models.bronze__defillama_perp_metrics", "fqn": ["external_models", "defillama", "streamline", "bronze", "bronze__defillama_perp_metrics"], "alias": "defillama_perp_metrics", "checksum": {"name": "sha256", "checksum": "63d2ca977eed9b012af32a4dce85bf15aed56ae3c46c4f406147aafc2c209d08"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama_streamline"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama_streamline"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["defillama_streamline"]}, "created_at": 1760113498.4833305, "relation_name": "EXTERNAL.bronze.defillama_perp_metrics", "raw_code": "{{ config (\n materialized = 'view',\n tags = ['defillama_streamline']\n) }}\n{{ streamline_external_table_query_v2(\n model = 'defillama_perp_metrics',\n partition_function = \"CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER)\",\n partition_name = \"partition_key\"\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "defillama_perp_metrics"], ["bronze_streamline", "defillama_perp_metrics"]], "metrics": [], "depends_on": {"macros": ["macro.external_models.streamline_external_table_query_v2"], "nodes": ["source.external_models.bronze_streamline.defillama_perp_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/streamline/bronze/bronze__defillama_perp_metrics.sql", "compiled": true, "compiled_code": "\n\nWITH meta AS (\n SELECT\n LAST_MODIFIED::timestamp_ntz AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_file_registration_history(\n start_time => DATEADD('day', -3, CURRENT_TIMESTAMP()),\n table_name => 'streamline.external.defillama_perp_metrics')\n ) A\n)\nSELECT\n \n DATA,\n _inserted_timestamp,\n s.partition_key,\n s.value AS VALUE,\n file_name\nFROM\n streamline.external.defillama_perp_metrics\n s\nJOIN \n meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\nWHERE\n b.partition_key = s.partition_key\n AND (\n data:error:code IS NULL\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__defillama_stablecoin_metrics": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__defillama_stablecoin_metrics", "resource_type": "model", "package_name": "external_models", "path": "defillama/streamline/bronze/bronze__defillama_stablecoin_metrics.sql", "original_file_path": "models/defillama/streamline/bronze/bronze__defillama_stablecoin_metrics.sql", "unique_id": "model.external_models.bronze__defillama_stablecoin_metrics", "fqn": ["external_models", "defillama", "streamline", "bronze", "bronze__defillama_stablecoin_metrics"], "alias": "defillama_stablecoin_metrics", "checksum": {"name": "sha256", "checksum": "0cd04b11db2e40c2ed9bb7dd10236aacdac121b800a19a7e106d7c41ea80f8d4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama_streamline"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama_streamline"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["defillama_streamline"]}, "created_at": 1760113498.4896543, "relation_name": "EXTERNAL.bronze.defillama_stablecoin_metrics", "raw_code": "{{ config (\n materialized = 'view',\n tags = ['defillama_streamline']\n) }}\n{{ streamline_external_table_query_v2(\n model = 'defillama_stablecoin_metrics',\n partition_function = \"CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER)\",\n partition_name = \"partition_key\"\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "defillama_stablecoin_metrics"], ["bronze_streamline", "defillama_stablecoin_metrics"]], "metrics": [], "depends_on": {"macros": ["macro.external_models.streamline_external_table_query_v2"], "nodes": ["source.external_models.bronze_streamline.defillama_stablecoin_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/streamline/bronze/bronze__defillama_stablecoin_metrics.sql", "compiled": true, "compiled_code": "\n\nWITH meta AS (\n SELECT\n LAST_MODIFIED::timestamp_ntz AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 4), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_file_registration_history(\n start_time => DATEADD('day', -3, CURRENT_TIMESTAMP()),\n table_name => 'streamline.external.defillama_stablecoin_metrics')\n ) A\n)\nSELECT\n \n DATA,\n _inserted_timestamp,\n s.partition_key,\n s.value AS VALUE,\n file_name\nFROM\n streamline.external.defillama_stablecoin_metrics\n s\nJOIN \n meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\nWHERE\n b.partition_key = s.partition_key\n AND (\n data:error:code IS NULL\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__defillama_protocol_historical_FR": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__defillama_protocol_historical_FR", "resource_type": "model", "package_name": "external_models", "path": "defillama/streamline/bronze/bronze__defillama_protocol_historical_FR.sql", "original_file_path": "models/defillama/streamline/bronze/bronze__defillama_protocol_historical_FR.sql", "unique_id": "model.external_models.bronze__defillama_protocol_historical_FR", "fqn": ["external_models", "defillama", "streamline", "bronze", "bronze__defillama_protocol_historical_FR"], "alias": "defillama_protocol_historical_FR", "checksum": {"name": "sha256", "checksum": "0d63b90efc13bb42d7bcc3587ea140081017cb9412e84c23e81688e8bbbc0b22"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view"}, "created_at": 1760113498.496111, "relation_name": "EXTERNAL.bronze.defillama_protocol_historical_FR", "raw_code": "{{ config (\n materialized = 'view'\n) }}\n{{ streamline_external_table_FR_query_v2(\n model = 'defillama_protocol_historical',\n partition_function = \"CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 3), '_', 1) AS INTEGER)\",\n partition_name = \"partition_key\",\n other_cols = \"value:PROTOCOL_ID::INTEGER AS protocol_id\"\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "defillama_protocol_historical"], ["bronze_streamline", "defillama_protocol_historical"]], "metrics": [], "depends_on": {"macros": ["macro.external_models.streamline_external_table_FR_query_v2"], "nodes": ["source.external_models.bronze_streamline.defillama_protocol_historical"]}, "compiled_path": "target/compiled/external_models/models/defillama/streamline/bronze/bronze__defillama_protocol_historical_FR.sql", "compiled": true, "compiled_code": "\n\nWITH meta AS (\n SELECT\n LAST_MODIFIED::timestamp_ntz AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 3), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => 'streamline.external.defillama_protocol_historical'\n )\n ) A\n)\nSELECT\n value:PROTOCOL_ID::INTEGER AS protocol_id,\n DATA,\n _inserted_timestamp,\n s.partition_key,\n s.value AS VALUE,\n file_name\nFROM\n streamline.external.defillama_protocol_historical\n s\nJOIN \n meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\nWHERE\n b.partition_key = s.partition_key\n AND (\n data:error:code IS NULL\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__defillama_protocol_historical": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__defillama_protocol_historical", "resource_type": "model", "package_name": "external_models", "path": "defillama/streamline/bronze/bronze__defillama_protocol_historical.sql", "original_file_path": "models/defillama/streamline/bronze/bronze__defillama_protocol_historical.sql", "unique_id": "model.external_models.bronze__defillama_protocol_historical", "fqn": ["external_models", "defillama", "streamline", "bronze", "bronze__defillama_protocol_historical"], "alias": "defillama_protocol_historical", "checksum": {"name": "sha256", "checksum": "610f0f66eb01898f3b33dc793d7133d2f7c81ebb325a26d8f378c5e50c990d2a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view"}, "created_at": 1760113498.5024183, "relation_name": "EXTERNAL.bronze.defillama_protocol_historical", "raw_code": "{{ config (\n materialized = 'view'\n) }}\n{{ streamline_external_table_query_v2(\n model = 'defillama_protocol_historical',\n partition_function = \"CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 3), '_', 1) AS INTEGER)\",\n partition_name = \"partition_key\",\n other_cols = \"value:PROTOCOL_ID::INTEGER AS protocol_id\"\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "defillama_protocol_historical"], ["bronze_streamline", "defillama_protocol_historical"]], "metrics": [], "depends_on": {"macros": ["macro.external_models.streamline_external_table_query_v2"], "nodes": ["source.external_models.bronze_streamline.defillama_protocol_historical"]}, "compiled_path": "target/compiled/external_models/models/defillama/streamline/bronze/bronze__defillama_protocol_historical.sql", "compiled": true, "compiled_code": "\n\nWITH meta AS (\n SELECT\n LAST_MODIFIED::timestamp_ntz AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 3), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_file_registration_history(\n start_time => DATEADD('day', -3, CURRENT_TIMESTAMP()),\n table_name => 'streamline.external.defillama_protocol_historical')\n ) A\n)\nSELECT\n value:PROTOCOL_ID::INTEGER AS protocol_id,\n DATA,\n _inserted_timestamp,\n s.partition_key,\n s.value AS VALUE,\n file_name\nFROM\n streamline.external.defillama_protocol_historical\n s\nJOIN \n meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\nWHERE\n b.partition_key = s.partition_key\n AND (\n data:error:code IS NULL\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.defillama__fact_pool_yields": {"database": "EXTERNAL", "schema": "defillama", "name": "defillama__fact_pool_yields", "resource_type": "model", "package_name": "external_models", "path": "defillama/gold/defillama__fact_pool_yields.sql", "original_file_path": "models/defillama/gold/defillama__fact_pool_yields.sql", "unique_id": "model.external_models.defillama__fact_pool_yields", "fqn": ["external_models", "defillama", "gold", "defillama__fact_pool_yields"], "alias": "fact_pool_yields", "checksum": {"name": "sha256", "checksum": "b156c3665eb11dbedf6da7ed541b0c34069139c0af17588c83f0f1f3d422932b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama"], "description": "This table contains yield data at a pool level, where available.", "columns": {"DATE": {"name": "DATE", "description": "Date associated with the reported records.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "POOL_ID": {"name": "POOL_ID", "description": "The Defillama ID of the pool.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAIN": {"name": "CHAIN", "description": "The name of the blockchain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROJECTS": {"name": "PROJECTS", "description": "Projects the pool belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SYMBOL": {"name": "SYMBOL", "description": "The symbol of the tokens associated with the pool.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "APY": {"name": "APY", "description": "Base APY + Reward APY.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "APY_BASE": {"name": "APY_BASE", "description": "Annualized percentage yield from trading fees/supplying. For DEXes, we use the 24-hour fees and scale those to a year.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BASE_7D": {"name": "BASE_7D", "description": "Annualized percentage yield from trading fees from the last 7 days.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "APY_BASE_INCEPTION": {"name": "APY_BASE_INCEPTION", "description": "Annualized percentage yield since inception.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "APY_MEAN_30D": {"name": "APY_MEAN_30D", "description": "Average APY in the last 30 days.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "APY_PCT_1D": {"name": "APY_PCT_1D", "description": "Percent change of APY in the last 24 hours.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "APY_PCT_7D": {"name": "APY_PCT_7D", "description": "Percent change of APY in the last 7 days.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "APY_PCT_30D": {"name": "APY_PCT_30D", "description": "Percent change of APY in the last 30 days.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "APY_REWARDS": {"name": "APY_REWARDS", "description": "Annualized percentage yield from incentives.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "IL_7D": {"name": "IL_7D", "description": "The percentage of impermanent loss between LPing for the last 7 days versus holding the underlying assets instead.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "IL_RISK": {"name": "IL_RISK", "description": "Yes or No if the pool has impermanent loss risk.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "REWARD_TOKENS": {"name": "REWARD_TOKENS", "description": "Addresses of the incentive tokens.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MU": {"name": "MU", "description": "Expected return based on the mean of potential returns of the pool.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SIGMA": {"name": "SIGMA", "description": "The representation of pool volatility/risk. A higher sigma indicates a higher risk.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "STABLECOIN": {"name": "STABLECOIN", "description": "Boolean indicating if the pool is a stablecoin-to-stablecoin pool.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TVL_USD": {"name": "TVL_USD", "description": "The total value locked in the pool.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "UNDERLYING_TOKENS": {"name": "UNDERLYING_TOKENS", "description": "The addresses of the tokens associated with the pool.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VOLUME_USD_1D": {"name": "VOLUME_USD_1D", "description": "Total volume of the pool in the last 24 hours.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VOLUME_USD_7D": {"name": "VOLUME_USD_7D", "description": "Total volume of the pool in the last 7 days.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/gold/defillama__fact_pool_yields.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["defillama"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}}, "created_at": 1760113502.2903168, "relation_name": "EXTERNAL.defillama.fact_pool_yields", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['defillama'],\n meta={\n 'database_tags':{\n 'table': {\n 'PROTOCOL': 'DEFILLAMA'\n }\n }\n }\n) }}\n\nSELECT\n TIMESTAMP :: DATE AS DATE,\n pool_id,\n projects,\n chain,\n symbol,\n apy,\n apy_base,\n base_7d,\n apy_base_inception,\n apy_mean_30d,\n apy_pct_1d,\n apy_pct_7d,\n apy_pct_30d,\n apy_rewards,\n il_7d,\n il_risk,\n reward_tokens,\n mu,\n sigma,\n stablecoin,\n tvl_usd,\n underlying_tokens,\n volume_usd_1d,\n volume_usd_7d\nFROM\n {{ ref('silver__defillama_pool_yields') }} f", "language": "sql", "refs": [{"name": "silver__defillama_pool_yields", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.external_models.silver__defillama_pool_yields"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__fact_pool_yields.sql", "compiled": true, "compiled_code": "\n\nSELECT\n TIMESTAMP :: DATE AS DATE,\n pool_id,\n projects,\n chain,\n symbol,\n apy,\n apy_base,\n base_7d,\n apy_base_inception,\n apy_mean_30d,\n apy_pct_1d,\n apy_pct_7d,\n apy_pct_30d,\n apy_rewards,\n il_7d,\n il_risk,\n reward_tokens,\n mu,\n sigma,\n stablecoin,\n tvl_usd,\n underlying_tokens,\n volume_usd_1d,\n volume_usd_7d\nFROM\n EXTERNAL.silver.defillama_pool_yields f", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.defillama__fact_protocol_fees_revenue": {"database": "EXTERNAL", "schema": "defillama", "name": "defillama__fact_protocol_fees_revenue", "resource_type": "model", "package_name": "external_models", "path": "defillama/gold/defillama__fact_protocol_fees_revenue.sql", "original_file_path": "models/defillama/gold/defillama__fact_protocol_fees_revenue.sql", "unique_id": "model.external_models.defillama__fact_protocol_fees_revenue", "fqn": ["external_models", "defillama", "gold", "defillama__fact_protocol_fees_revenue"], "alias": "fact_protocol_fees_revenue", "checksum": {"name": "sha256", "checksum": "94e158d909c93bd8397959c4bd54a4bbdf0f88fe4114d27cbead1f33bf66c450"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama"], "description": "This table contains historical fees and revenue for the protocols listed on Defillama in `dim_protocols`, where available.", "columns": {"DATE": {"name": "DATE", "description": "Date associated with the reported records.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAIN": {"name": "CHAIN", "description": "The name of the blockchain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROTOCOL": {"name": "PROTOCOL", "description": "The name of the protocol.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FEES": {"name": "FEES", "description": "The total amount of fees earned by the protocol on a daily basis, denominated in USD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "REVENUE": {"name": "REVENUE", "description": "The total amount of revenue earned by the protocol on a daily basis, denominated in USD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/gold/defillama__fact_protocol_fees_revenue.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["defillama"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}}, "created_at": 1760113502.2757638, "relation_name": "EXTERNAL.defillama.fact_protocol_fees_revenue", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['defillama'],\n meta={\n 'database_tags':{\n 'table': {\n 'PROTOCOL': 'DEFILLAMA'\n }\n }\n }\n) }}\n\nSELECT\n f.TIMESTAMP :: DATE AS DATE,\n f.chain,\n f.protocol,\n COALESCE(daily_fees,0) AS fees,\n COALESCE(daily_rev,0) AS revenue\nFROM\n {{ ref('silver__defillama_protocol_fees') }} f\nLEFT JOIN\n {{ ref('silver__defillama_protocol_revenue') }} r\n ON f.TIMESTAMP = r.TIMESTAMP AND f.chain = r.chain AND f.protocol = r.protocol", "language": "sql", "refs": [{"name": "silver__defillama_protocol_fees", "package": null, "version": null}, {"name": "silver__defillama_protocol_revenue", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.external_models.silver__defillama_protocol_fees", "model.external_models.silver__defillama_protocol_revenue"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__fact_protocol_fees_revenue.sql", "compiled": true, "compiled_code": "\n\nSELECT\n f.TIMESTAMP :: DATE AS DATE,\n f.chain,\n f.protocol,\n COALESCE(daily_fees,0) AS fees,\n COALESCE(daily_rev,0) AS revenue\nFROM\n EXTERNAL.silver.defillama_protocol_fees f\nLEFT JOIN\n EXTERNAL.silver.defillama_protocol_revenue r\n ON f.TIMESTAMP = r.TIMESTAMP AND f.chain = r.chain AND f.protocol = r.protocol", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.defillama__dim_stablecoins": {"database": "EXTERNAL", "schema": "defillama", "name": "defillama__dim_stablecoins", "resource_type": "model", "package_name": "external_models", "path": "defillama/gold/defillama__dim_stablecoins.sql", "original_file_path": "models/defillama/gold/defillama__dim_stablecoins.sql", "unique_id": "model.external_models.defillama__dim_stablecoins", "fqn": ["external_models", "defillama", "gold", "defillama__dim_stablecoins"], "alias": "dim_stablecoins", "checksum": {"name": "sha256", "checksum": "91bfd8453d2b5a9d10b3b5a6bdc6076069b85fc7f3737a5f06e166681553153f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama"], "description": "This table contains dimensional information about the stablecoins listed on Defillama.", "columns": {"STABLECOIN_ID": {"name": "STABLECOIN_ID", "description": "Unique identifier of the stablecoin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "STABLECOIN": {"name": "STABLECOIN", "description": "Name of the stablecoin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SYMBOL": {"name": "SYMBOL", "description": "Symbol of the stablecoin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PEG_TYPE": {"name": "PEG_TYPE", "description": "Type of asset that the stablecoin is pegged to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PEG_MECHANISM": {"name": "PEG_MECHANISM", "description": "The method used for the stablecoin peg (e.g. algorithmic, crypto-backed etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PRICE_SOURCE": {"name": "PRICE_SOURCE", "description": "The source of the prices listed on Defillama.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAINS": {"name": "CHAINS", "description": "Array of the various chains or networks that the stablecoin is deployed on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/gold/defillama__dim_stablecoins.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["defillama"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}}, "created_at": 1760113502.3308742, "relation_name": "EXTERNAL.defillama.dim_stablecoins", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['defillama'],\n meta={\n 'database_tags':{\n 'table': {\n 'PROTOCOL': 'DEFILLAMA'\n }\n }\n }\n) }}\n\nSELECT\n stablecoin_id,\n stablecoin,\n symbol,\n peg_type,\n peg_mechanism,\n price_source,\n chains\nFROM \n {{ ref('bronze__defillama_stablecoins') }}", "language": "sql", "refs": [{"name": "bronze__defillama_stablecoins", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.external_models.bronze__defillama_stablecoins"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__dim_stablecoins.sql", "compiled": true, "compiled_code": "\n\nSELECT\n stablecoin_id,\n stablecoin,\n symbol,\n peg_type,\n peg_mechanism,\n price_source,\n chains\nFROM \n EXTERNAL.bronze.defillama_stablecoins", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.defillama__ez_investors": {"database": "EXTERNAL", "schema": "defillama", "name": "defillama__ez_investors", "resource_type": "model", "package_name": "external_models", "path": "defillama/gold/defillama__ez_investors.sql", "original_file_path": "models/defillama/gold/defillama__ez_investors.sql", "unique_id": "model.external_models.defillama__ez_investors", "fqn": ["external_models", "defillama", "gold", "defillama__ez_investors"], "alias": "ez_investors", "checksum": {"name": "sha256", "checksum": "0c7d738abd67f39b374dd2ca7742af8dd9d53f70859d5414b4924c92432927f8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama"], "description": "This table contains aggregated information about investors, sourced from Defillama's Raises data, providing easy-to-use metrics.", "columns": {"INVESTOR": {"name": "INVESTOR", "description": "Name of the investor or investment firm.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DEALS": {"name": "DEALS", "description": "Total number of funding deals the investor has participated in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOTAL_AMOUNT": {"name": "TOTAL_AMOUNT", "description": "Total amount invested across all deals (in USD).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MEDIAN_AMOUNT": {"name": "MEDIAN_AMOUNT", "description": "Median investment amount per deal (in USD).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAINS": {"name": "CHAINS", "description": "Array of blockchain networks the investor has invested in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOP_PROJECT_CATEGORY": {"name": "TOP_PROJECT_CATEGORY", "description": "Category of the project representing the investor's largest investment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOP_ROUND_TYPE": {"name": "TOP_ROUND_TYPE", "description": "Type of funding round for the investor's largest investment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROJECTS": {"name": "PROJECTS", "description": "Array of project names the investor has invested in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DEFILLAMA_INVESTORS_ID": {"name": "DEFILLAMA_INVESTORS_ID", "description": "Generated surrogate key for the table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "Timestamp when the record was first inserted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "Timestamp when the record was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "Internal timestamp for data pipeline tracking.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INVOCATION_ID": {"name": "_INVOCATION_ID", "description": "DBT invocation identifier for lineage tracking.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/gold/defillama__ez_investors.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["defillama"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}}, "created_at": 1760113502.328864, "relation_name": "EXTERNAL.defillama.ez_investors", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['defillama'],\n meta={\n 'database_tags':{\n 'table': {\n 'PROTOCOL': 'DEFILLAMA'\n }\n }\n }\n) }}\n\nSELECT\n investor,\n deals,\n total_amount,\n median_amount,\n chains,\n top_project_category,\n top_round_type,\n projects,\n defillama_investors_id,\n inserted_timestamp,\n modified_timestamp,\n _inserted_timestamp,\n _invocation_id\nFROM {{ ref('silver__defillama_investors') }}", "language": "sql", "refs": [{"name": "silver__defillama_investors", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.external_models.silver__defillama_investors"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__ez_investors.sql", "compiled": true, "compiled_code": "\n\nSELECT\n investor,\n deals,\n total_amount,\n median_amount,\n chains,\n top_project_category,\n top_round_type,\n projects,\n defillama_investors_id,\n inserted_timestamp,\n modified_timestamp,\n _inserted_timestamp,\n _invocation_id\nFROM EXTERNAL.silver.defillama_investors", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.defillama__dim_perps": {"database": "EXTERNAL", "schema": "defillama", "name": "defillama__dim_perps", "resource_type": "model", "package_name": "external_models", "path": "defillama/gold/defillama__dim_perps.sql", "original_file_path": "models/defillama/gold/defillama__dim_perps.sql", "unique_id": "model.external_models.defillama__dim_perps", "fqn": ["external_models", "defillama", "gold", "defillama__dim_perps"], "alias": "dim_perps", "checksum": {"name": "sha256", "checksum": "372467ff9c8bb90d42c48e9334581483108e5942cdfe8ba026da3bd131571e70"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama"], "description": "This table contains dimensional information about the perpetual protocols listed on Defillama.", "columns": {"protocol_id": {"name": "protocol_id", "description": "Unique identifier of the protocol from Defillama.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "protocol_slug": {"name": "protocol_slug", "description": "URL-friendly slug identifier for the protocol.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "category": {"name": "category", "description": "The category of protocol (e.g. Dexes, Options, Yield, Derivatives etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "protocol": {"name": "protocol", "description": "Name of the protocol.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "chains": {"name": "chains", "description": "Array of the various chains or networks that the protocol is deployed on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_protocol": {"name": "parent_protocol", "description": "Parent protocol identifier if this is a sub-protocol.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "linked_protocols": {"name": "linked_protocols", "description": "Array of related or linked protocols.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/gold/defillama__dim_perps.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["defillama"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}}, "created_at": 1760113502.282337, "relation_name": "EXTERNAL.defillama.dim_perps", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['defillama'],\n meta={\n 'database_tags':{\n 'table': {\n 'PROTOCOL': 'DEFILLAMA'\n }\n }\n }\n) }}\n\nSELECT\n protocol_id,\n protocol_slug,\n NAME as protocol,\n category,\n chains,\n parent_protocol,\n linked_protocols\nFROM\n {{ ref('bronze__defillama_perps') }}", "language": "sql", "refs": [{"name": "bronze__defillama_perps", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.external_models.bronze__defillama_perps"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__dim_perps.sql", "compiled": true, "compiled_code": "\n\nSELECT\n protocol_id,\n protocol_slug,\n NAME as protocol,\n category,\n chains,\n parent_protocol,\n linked_protocols\nFROM\n EXTERNAL.bronze.defillama_perps", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.defillama__dim_chains": {"database": "EXTERNAL", "schema": "defillama", "name": "defillama__dim_chains", "resource_type": "model", "package_name": "external_models", "path": "defillama/gold/defillama__dim_chains.sql", "original_file_path": "models/defillama/gold/defillama__dim_chains.sql", "unique_id": "model.external_models.defillama__dim_chains", "fqn": ["external_models", "defillama", "gold", "defillama__dim_chains"], "alias": "dim_chains", "checksum": {"name": "sha256", "checksum": "8989b468d78ccc81e34f0a4f02b4eec3862771736c4e01fd02993a43398f1981"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama"], "description": "This table contains dimensional information about the blockchains and networks listed on Defillama.", "columns": {"CHAIN_ID": {"name": "CHAIN_ID", "description": "Unique identifier of the chain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAIN": {"name": "CHAIN", "description": "Name of the blockchain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_SYMBOL": {"name": "TOKEN_SYMBOL", "description": "Symbol for the native token of the chain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAIN_SYMBOL": {"name": "CHAIN_SYMBOL", "description": "The official abbreviation or symbol representing the blockchain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_NAME": {"name": "TOKEN_NAME", "description": "The full name of the native token used on the blockchain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOKEN_DECIMALS": {"name": "TOKEN_DECIMALS", "description": "The number of decimals used by the native token, dictating its smallest divisible unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NETWORK_ID": {"name": "NETWORK_ID", "description": "Identifier that distinguishes between multiple networks within a single blockchain (e.g., Mainnet vs Testnet).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "RPC": {"name": "RPC", "description": "URL of the primary RPC endpoint used to interact with the blockchain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FAUCETS": {"name": "FAUCETS", "description": "List or URLs of faucets available for obtaining test tokens on the chain's testnets.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INFO_URL": {"name": "INFO_URL", "description": "URL to an official or authoritative information source about the blockchain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SHORT_NAME": {"name": "SHORT_NAME", "description": "A shorter or abbreviated version of the blockchain's name, used in contexts with limited space.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EXPLORERS": {"name": "EXPLORERS", "description": "List of URLs or platforms where transactions, blocks, and other chain activities can be explored and verified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/gold/defillama__dim_chains.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["defillama"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}}, "created_at": 1760113502.2706404, "relation_name": "EXTERNAL.defillama.dim_chains", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['defillama'],\n meta={\n 'database_tags':{\n 'table': {\n 'PROTOCOL': 'DEFILLAMA'\n }\n }\n }\n) }}\n\nSELECT\n chain,\n chain_symbol,\n token_name,\n token_decimals,\n token_symbol,\n chain_id,\n network_id,\n rpc,\n faucets,\n info_url,\n short_name,\n explorers\nFROM \n {{ ref('bronze__defillama_chainlist') }}", "language": "sql", "refs": [{"name": "bronze__defillama_chainlist", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.external_models.bronze__defillama_chainlist"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__dim_chains.sql", "compiled": true, "compiled_code": "\n\nSELECT\n chain,\n chain_symbol,\n token_name,\n token_decimals,\n token_symbol,\n chain_id,\n network_id,\n rpc,\n faucets,\n info_url,\n short_name,\n explorers\nFROM \n EXTERNAL.bronze.defillama_chainlist", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.defillama__ez_stablecoin_metrics": {"database": "EXTERNAL", "schema": "defillama", "name": "defillama__ez_stablecoin_metrics", "resource_type": "model", "package_name": "external_models", "path": "defillama/gold/defillama__ez_stablecoin_metrics.sql", "original_file_path": "models/defillama/gold/defillama__ez_stablecoin_metrics.sql", "unique_id": "model.external_models.defillama__ez_stablecoin_metrics", "fqn": ["external_models", "defillama", "gold", "defillama__ez_stablecoin_metrics"], "alias": "ez_stablecoin_metrics", "checksum": {"name": "sha256", "checksum": "217cd7f1c08f00e624828a0a5e8559064e984bd91a13f8af73b7f0127b7125e5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "ez_stablecoin_metrics_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["date_day", "chain"]}, "tags": ["defillama"], "description": "This table provides comprehensive, easy-to-use stablecoin metrics aggregated from Defillama's stablecoin data. \nIt combines stablecoin metadata (name, symbol, peg type, mechanism) with daily metrics (circulating supply, \nminted amount, bridged amounts) across different blockchain networks. The model deduplicates data by selecting \nthe latest record for each stablecoin-chain-date combination and provides a clean interface for analyzing \nstablecoin performance and adoption across various networks.\n\n**Key Features:**\n- Incremental processing for efficient data updates\n- Deduplication of multiple API calls per day\n- Cross-chain stablecoin analysis capabilities\n- Peg type and mechanism classification\n- USD-denominated metrics for easy comparison\n\n**Use Cases:**\n- Stablecoin market analysis and trends\n- Cross-chain stablecoin adoption tracking\n- DeFi protocol stablecoin usage analysis\n- Regulatory reporting on stablecoin circulation\n- Risk assessment of different peg mechanisms\n", "columns": {"chain": {"name": "chain", "description": "The blockchain network where the stablecoin metrics are measured. Values are normalized to lowercase \nwith spaces replaced by underscores (e.g., 'ethereum', 'hyperliquid_l1', 'polygon'). This field \nenables cross-chain analysis of stablecoin adoption and usage patterns.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "The date for which the stablecoin metrics are reported. Stored as a DATE type, this field enables \ntime-series analysis of stablecoin performance, including daily trends, seasonal patterns, and \nlong-term growth analysis.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stablecoin_id": {"name": "stablecoin_id", "description": "Unique identifier for the stablecoin as defined by Defillama. This is the primary key used to link \nstablecoin metadata with daily metrics. Used for joining with stablecoin reference data to get \nadditional attributes like name, symbol, and peg mechanism.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stablecoin": {"name": "stablecoin", "description": "The full name of the stablecoin (e.g., 'Tether USD', 'USD Coin', 'Dai'). This human-readable name \nis useful for reporting and analysis purposes, providing context for the metrics being analyzed.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "symbol": {"name": "symbol", "description": "The ticker symbol for the stablecoin (e.g., 'USDT', 'USDC', 'DAI'). This short identifier is \ncommonly used in trading pairs and financial reporting, making it easier to reference specific \nstablecoins in analysis.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "peg_type": {"name": "peg_type", "description": "The type of peg mechanism used by the stablecoin. Common values include 'peggedUSD', 'peggedEUR', 'peggedCNY', etc. \nThis classification helps analyze the target currency of the stablecoin and its intended use case \nin global markets.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "peg_mechanism": {"name": "peg_mechanism", "description": "The technical mechanism used to maintain the stablecoin's peg. Options include 'algorithmic', \n'crypto-backed', 'fiat-backed'. This field is crucial for risk assessment as different mechanisms \nhave varying levels of stability and failure modes.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_circulating_usd": {"name": "total_circulating_usd", "description": "The total circulating supply of the stablecoin denominated in USD. This represents the actual \namount of the stablecoin available in the market for trading and use in DeFi protocols. \n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_minted_usd": {"name": "total_minted_usd", "description": "The total amount of the stablecoin that has been minted (created) denominated in USD. This \nrepresents the maximum supply that has been generated, which may be different from the circulating \nsupply due to burning or other mechanisms.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_circulating": {"name": "total_circulating", "description": "The total circulating supply of the stablecoin in its native units (not USD denominated). This \nprovides the raw token count that is available in the market, useful for understanding the \nactual token distribution and for calculations that require native units. See peg_type for the \nunit of the total_circulating.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_bridged_to_usd": {"name": "total_bridged_to_usd", "description": "The total amount of the stablecoin that has been bridged to other networks, denominated in USD. \nThis metric is particularly important for cross-chain analysis as it shows how much of the \nstablecoin supply is available on different blockchain networks through bridging protocols.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_unreleased": {"name": "total_unreleased", "description": "The total amount of the stablecoin that has been minted but not yet released to the market, \ndenominated in its native unit. This represents tokens that are held in reserve or locked in contracts, \nproviding insight into the stablecoin issuer's reserve management strategy. See peg_type for the \nunit of the total_unreleased.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ez_stablecoin_metrics_id": {"name": "ez_stablecoin_metrics_id", "description": "A unique surrogate key generated from the combination of chain, date_day, and stablecoin_id. \nThis serves as the primary key for the table and ensures uniqueness across the combination of \nthese three critical dimensions. Generated using dbt_utils.generate_surrogate_key().\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inserted_timestamp": {"name": "inserted_timestamp", "description": "Timestamp when the record was inserted into this table. This is set to the current system time \n(SYSDATE()) when the record is created, providing an audit trail of when data was loaded.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "modified_timestamp": {"name": "modified_timestamp", "description": "Timestamp when the record was last modified. Currently set to SYSDATE() on each run, this field \ncan be used for incremental processing and to track when data was last updated.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/gold/defillama__ez_stablecoin_metrics.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": "ez_stablecoin_metrics_id", "cluster_by": ["date_day", "chain"], "tags": ["defillama"]}, "created_at": 1760113502.2239788, "relation_name": "EXTERNAL.defillama.ez_stablecoin_metrics", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = 'ez_stablecoin_metrics_id',\n cluster_by = ['date_day','chain'],\n tags = ['defillama']\n) }}\n\nwith base as (\n select \n replace(lower(s.chain), ' ', '_') as chain,\n s.date_day,\n s.stablecoin_id,\n sc.stablecoin,\n sc.symbol,\n sc.peg_type,\n sc.peg_mechanism,\n GET_PATH(s.total_circulating_usd, sc.peg_type)::float as total_circulating_usd,\n GET_PATH(s.total_minted_usd, sc.peg_type)::float as total_minted_usd,\n GET_PATH(s.total_circulating, sc.peg_type)::float as total_circulating,\n GET_PATH(s.total_bridged_to_usd, sc.peg_type)::float as total_bridged_to_usd,\n GET_PATH(s.total_unreleased, sc.peg_type)::float as total_unreleased,\n run_timestamp\n from \n {{ ref('silver__defillama_stablecoin_metrics') }} s\n left join {{ ref('bronze__defillama_stablecoins') }} sc using (stablecoin_id)\n {% if is_incremental() %}\n left join {{ this }} t \n on t.chain = replace(lower(s.chain), ' ', '_') \n and t.date_day = s.date_day \n and t.stablecoin_id = s.stablecoin_id\n {% endif %}\n\n {% if is_incremental() %}\n where s.modified_timestamp > (\n select coalesce(max(modified_timestamp), '2025-01-01') from {{ this }}\n )\n and t.ez_stablecoin_metrics_id is null -- this is to avoid reloading the same data\n {% endif %}\n),\nlatest_records as (\n select *\n from base\n qualify row_number() over (partition by chain, stablecoin_id, date_day order by run_timestamp desc) = 1\n)\nselect \n chain,\n date_day,\n stablecoin_id,\n stablecoin,\n symbol,\n peg_type,\n peg_mechanism,\n total_circulating_usd,\n total_minted_usd,\n total_circulating,\n total_bridged_to_usd,\n total_unreleased,\n {{ dbt_utils.generate_surrogate_key(\n ['chain','date_day','stablecoin_id']\n ) }} as ez_stablecoin_metrics_id,\n sysdate() as inserted_timestamp,\n sysdate() as modified_timestamp\nfrom latest_records\nwhere date_day is not null", "language": "sql", "refs": [{"name": "silver__defillama_stablecoin_metrics", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.external_models.silver__defillama_stablecoin_metrics", "model.external_models.bronze__defillama_stablecoins"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__ez_stablecoin_metrics.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n select \n replace(lower(s.chain), ' ', '_') as chain,\n s.date_day,\n s.stablecoin_id,\n sc.stablecoin,\n sc.symbol,\n sc.peg_type,\n sc.peg_mechanism,\n GET_PATH(s.total_circulating_usd, sc.peg_type)::float as total_circulating_usd,\n GET_PATH(s.total_minted_usd, sc.peg_type)::float as total_minted_usd,\n GET_PATH(s.total_circulating, sc.peg_type)::float as total_circulating,\n GET_PATH(s.total_bridged_to_usd, sc.peg_type)::float as total_bridged_to_usd,\n GET_PATH(s.total_unreleased, sc.peg_type)::float as total_unreleased,\n run_timestamp\n from \n EXTERNAL.silver.defillama_stablecoin_metrics s\n left join EXTERNAL.bronze.defillama_stablecoins sc using (stablecoin_id)\n \n left join EXTERNAL.defillama.ez_stablecoin_metrics t \n on t.chain = replace(lower(s.chain), ' ', '_') \n and t.date_day = s.date_day \n and t.stablecoin_id = s.stablecoin_id\n \n\n \n where s.modified_timestamp > (\n select coalesce(max(modified_timestamp), '2025-01-01') from EXTERNAL.defillama.ez_stablecoin_metrics\n )\n and t.ez_stablecoin_metrics_id is null -- this is to avoid reloading the same data\n \n),\nlatest_records as (\n select *\n from base\n qualify row_number() over (partition by chain, stablecoin_id, date_day order by run_timestamp desc) = 1\n)\nselect \n chain,\n date_day,\n stablecoin_id,\n stablecoin,\n symbol,\n peg_type,\n peg_mechanism,\n total_circulating_usd,\n total_minted_usd,\n total_circulating,\n total_bridged_to_usd,\n total_unreleased,\n \n \nmd5(cast(coalesce(cast(chain as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(stablecoin_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as ez_stablecoin_metrics_id,\n sysdate() as inserted_timestamp,\n sysdate() as modified_timestamp\nfrom latest_records\nwhere date_day is not null", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.defillama__fact_raises": {"database": "EXTERNAL", "schema": "defillama", "name": "defillama__fact_raises", "resource_type": "model", "package_name": "external_models", "path": "defillama/gold/defillama__fact_raises.sql", "original_file_path": "models/defillama/gold/defillama__fact_raises.sql", "unique_id": "model.external_models.defillama__fact_raises", "fqn": ["external_models", "defillama", "gold", "defillama__fact_raises"], "alias": "fact_raises", "checksum": {"name": "sha256", "checksum": "cc3d71354258a04cc1db631e8f03b4a70867fb4358240d7a667d617d59093435"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama"], "description": "This table contains fact-based information about funding raises for projects tracked by Defillama.", "columns": {"FUNDING_DATE": {"name": "FUNDING_DATE", "description": "Date when the funding round occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROJECT_NAME": {"name": "PROJECT_NAME", "description": "Name of the project that received funding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FUNDING_ROUND": {"name": "FUNDING_ROUND", "description": "Type of funding round (e.g., Series A, Seed, Private, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AMOUNT_RAISED": {"name": "AMOUNT_RAISED", "description": "Amount of money raised in the funding round (in USD).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAINS": {"name": "CHAINS", "description": "Array of blockchain networks that the project operates on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SECTOR": {"name": "SECTOR", "description": "Industry sector classification of the project.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CATEGORY": {"name": "CATEGORY", "description": "Specific category classification of the project.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CATEGORY_GROUP": {"name": "CATEGORY_GROUP", "description": "Higher-level category grouping for the project.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SOURCE": {"name": "SOURCE", "description": "Source of the funding information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LEAD_INVESTORS": {"name": "LEAD_INVESTORS", "description": "Array of lead investors in the funding round.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "OTHER_INVESTORS": {"name": "OTHER_INVESTORS", "description": "Array of other participating investors in the funding round.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VALUATION": {"name": "VALUATION", "description": "Company valuation at the time of the funding round (in USD).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DEFILLAMA_ID": {"name": "DEFILLAMA_ID", "description": "DeFiLlama's unique identifier for the project.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "RAISE_ID": {"name": "RAISE_ID", "description": "Unique identifier for the specific funding round.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DEFILLAMA_RAISES_ID": {"name": "DEFILLAMA_RAISES_ID", "description": "Generated surrogate key for the table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "Timestamp when the record was first inserted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "Timestamp when the record was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "Internal timestamp for data pipeline tracking.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INVOCATION_ID": {"name": "_INVOCATION_ID", "description": "DBT invocation identifier for lineage tracking.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/gold/defillama__fact_raises.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["defillama"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}}, "created_at": 1760113502.2807763, "relation_name": "EXTERNAL.defillama.fact_raises", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['defillama'],\n meta={\n 'database_tags':{\n 'table': {\n 'PROTOCOL': 'DEFILLAMA'\n }\n }\n }\n) }}\n\nSELECT\n funding_date,\n project_name,\n funding_round,\n amount_raised,\n chains,\n sector,\n category,\n category_group,\n source,\n lead_investors,\n other_investors,\n valuation,\n defillama_id,\n raise_id,\n defillama_raises_id,\n inserted_timestamp,\n modified_timestamp,\n _inserted_timestamp,\n _invocation_id\nFROM {{ ref('silver__defillama_raises') }}", "language": "sql", "refs": [{"name": "silver__defillama_raises", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.external_models.silver__defillama_raises"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__fact_raises.sql", "compiled": true, "compiled_code": "\n\nSELECT\n funding_date,\n project_name,\n funding_round,\n amount_raised,\n chains,\n sector,\n category,\n category_group,\n source,\n lead_investors,\n other_investors,\n valuation,\n defillama_id,\n raise_id,\n defillama_raises_id,\n inserted_timestamp,\n modified_timestamp,\n _inserted_timestamp,\n _invocation_id\nFROM EXTERNAL.silver.defillama_raises", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.defillama__dim_protocols": {"database": "EXTERNAL", "schema": "defillama", "name": "defillama__dim_protocols", "resource_type": "model", "package_name": "external_models", "path": "defillama/gold/defillama__dim_protocols.sql", "original_file_path": "models/defillama/gold/defillama__dim_protocols.sql", "unique_id": "model.external_models.defillama__dim_protocols", "fqn": ["external_models", "defillama", "gold", "defillama__dim_protocols"], "alias": "dim_protocols", "checksum": {"name": "sha256", "checksum": "c9dee6d6df040882c4cfd794f6bef4ecde3450a86e192d754f880d1cc95409fd"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "protocol_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama"], "description": "This table contains dimensional information about the protocols listed on Defillama.", "columns": {"PROTOCOL_ID": {"name": "PROTOCOL_ID", "description": "Unique identifier for the protocol.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROTOCOL_SLUG": {"name": "PROTOCOL_SLUG", "description": "Slug for the protocol.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROTOCOL": {"name": "PROTOCOL", "description": "Name of the protocol.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ADDRESS": {"name": "ADDRESS", "description": "Contract address of the protocol.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SYMBOL": {"name": "SYMBOL", "description": "Symbol for the protocol.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DESCRIPTION": {"name": "DESCRIPTION", "description": "Description of the protocol.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAIN": {"name": "CHAIN", "description": "Chain the protocol is operating on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAINS": {"name": "CHAINS", "description": "Chains the protocol is available on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CATEGORY": {"name": "CATEGORY", "description": "Category the protocol belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NUM_AUDITS": {"name": "NUM_AUDITS", "description": "Number of audits the protocol has undergone.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TWITTER": {"name": "TWITTER", "description": "Number of audits the protocol has undergone.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AUDIT_NOTE": {"name": "AUDIT_NOTE", "description": "Notes on the audits of the protocol.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TVL": {"name": "TVL", "description": "Total value locked of the protocol as of the last run.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAIN_TVLS": {"name": "CHAIN_TVLS", "description": "Total value locked of the protocol on each chain as of the last run.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/gold/defillama__dim_protocols.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": "protocol_id", "tags": ["defillama"]}, "created_at": 1760113502.296322, "relation_name": "EXTERNAL.defillama.dim_protocols", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = 'protocol_id',\n tags = ['defillama']\n) }}\n\nSELECT\n protocol_id,\n protocol_slug,\n protocol,\n address,\n symbol,\n description,\n chain,\n chains,\n category,\n num_audits,\n audit_note,\n twitter,\n tvl,\n chain_tvls,\n sysdate() as inserted_timestamp,\n sysdate() as modified_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['protocol_id']\n ) }} AS dim_protocols_id\nFROM {{ ref('silver__defillama_protocols') }}\nWHERE 1=1\n{% if is_incremental() %}\nAND modified_timestamp > (\n SELECT MAX(modified_timestamp) FROM {{ this }}\n)\n{% endif %}\nQUALIFY ROW_NUMBER() OVER (PARTITION BY dim_protocols_id ORDER BY modified_timestamp DESC) = 1", "language": "sql", "refs": [{"name": "silver__defillama_protocols", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental"], "nodes": ["model.external_models.silver__defillama_protocols"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__dim_protocols.sql", "compiled": true, "compiled_code": "\n\nSELECT\n protocol_id,\n protocol_slug,\n protocol,\n address,\n symbol,\n description,\n chain,\n chains,\n category,\n num_audits,\n audit_note,\n twitter,\n tvl,\n chain_tvls,\n sysdate() as inserted_timestamp,\n sysdate() as modified_timestamp,\n \n \nmd5(cast(coalesce(cast(protocol_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS dim_protocols_id\nFROM EXTERNAL.silver.defillama_protocols\nWHERE 1=1\n\nAND modified_timestamp > (\n SELECT MAX(modified_timestamp) FROM EXTERNAL.defillama.dim_protocols\n)\n\nQUALIFY ROW_NUMBER() OVER (PARTITION BY dim_protocols_id ORDER BY modified_timestamp DESC) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.defillama__fact_dex_volume": {"database": "EXTERNAL", "schema": "defillama", "name": "defillama__fact_dex_volume", "resource_type": "model", "package_name": "external_models", "path": "defillama/gold/defillama__fact_dex_volume.sql", "original_file_path": "models/defillama/gold/defillama__fact_dex_volume.sql", "unique_id": "model.external_models.defillama__fact_dex_volume", "fqn": ["external_models", "defillama", "gold", "defillama__fact_dex_volume"], "alias": "fact_dex_volume", "checksum": {"name": "sha256", "checksum": "c52b49cc99fa87e7ffd23c48d19f7338659537cc845bb36f4ab03ee7fb608dae"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama"], "description": "This table contains historical decentralized exchange volumes for the protocols listed on Defillama in `dim_protocols`, where available.", "columns": {"DATE": {"name": "DATE", "description": "Date associated with the reported records.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAIN": {"name": "CHAIN", "description": "The name of the blockchain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROTOCOL": {"name": "PROTOCOL", "description": "The name of the protocol.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VOLUME": {"name": "VOLUME", "description": "The total volume driven by the protocol on a daily basis, denominated in USD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/gold/defillama__fact_dex_volume.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["defillama"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}}, "created_at": 1760113502.257133, "relation_name": "EXTERNAL.defillama.fact_dex_volume", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['defillama'],\n meta={\n 'database_tags':{\n 'table': {\n 'PROTOCOL': 'DEFILLAMA'\n }\n }\n }\n) }}\n\nSELECT\n TIMESTAMP :: DATE AS DATE,\n chain,\n protocol,\n daily_volume AS volume\nFROM\n {{ ref('silver__defillama_dex_volume') }} f", "language": "sql", "refs": [{"name": "silver__defillama_dex_volume", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.external_models.silver__defillama_dex_volume"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__fact_dex_volume.sql", "compiled": true, "compiled_code": "\n\nSELECT\n TIMESTAMP :: DATE AS DATE,\n chain,\n protocol,\n daily_volume AS volume\nFROM\n EXTERNAL.silver.defillama_dex_volume f", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.defillama__fact_chain_tvl": {"database": "EXTERNAL", "schema": "defillama", "name": "defillama__fact_chain_tvl", "resource_type": "model", "package_name": "external_models", "path": "defillama/gold/defillama__fact_chain_tvl.sql", "original_file_path": "models/defillama/gold/defillama__fact_chain_tvl.sql", "unique_id": "model.external_models.defillama__fact_chain_tvl", "fqn": ["external_models", "defillama", "gold", "defillama__fact_chain_tvl"], "alias": "fact_chain_tvl", "checksum": {"name": "sha256", "checksum": "2504499ff31aa138a63abf20e6b35ba813cff2c40efa98af29c9f081a5dcd25f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama"], "description": "This table contains historical TVL (Total Value Locked) for the chains listed on Defillama in `dim_chains`.", "columns": {"DATE": {"name": "DATE", "description": "Date associated with the reported TVL.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAIN_ID": {"name": "CHAIN_ID", "description": "Unique identifier of the blockchain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAIN": {"name": "CHAIN", "description": "Name of the blockchain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TVL_USD": {"name": "TVL_USD", "description": "Total Value Locked on the blockchain denominated in USD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/gold/defillama__fact_chain_tvl.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["defillama"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}}, "created_at": 1760113502.3242261, "relation_name": "EXTERNAL.defillama.fact_chain_tvl", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['defillama'],\n meta={\n 'database_tags':{\n 'table': {\n 'PROTOCOL': 'DEFILLAMA'\n }\n }\n }\n) }}\n\nSELECT\n TIMESTAMP :: DATE AS DATE,\n chain_id,\n chain,\n tvl_usd \nFROM\n {{ ref('silver__defillama_chains_tvl') }}", "language": "sql", "refs": [{"name": "silver__defillama_chains_tvl", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.external_models.silver__defillama_chains_tvl"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__fact_chain_tvl.sql", "compiled": true, "compiled_code": "\n\nSELECT\n TIMESTAMP :: DATE AS DATE,\n chain_id,\n chain,\n tvl_usd \nFROM\n EXTERNAL.silver.defillama_chains_tvl", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.defillama__fact_protocol_tvl": {"database": "EXTERNAL", "schema": "defillama", "name": "defillama__fact_protocol_tvl", "resource_type": "model", "package_name": "external_models", "path": "defillama/gold/defillama__fact_protocol_tvl.sql", "original_file_path": "models/defillama/gold/defillama__fact_protocol_tvl.sql", "unique_id": "model.external_models.defillama__fact_protocol_tvl", "fqn": ["external_models", "defillama", "gold", "defillama__fact_protocol_tvl"], "alias": "fact_protocol_tvl", "checksum": {"name": "sha256", "checksum": "0764a909a4229d3e6f6e04ff0cb9d30703902d0f85ddb846b2a1b3149302bc17"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama"], "description": "This table contains protocol TVL at a chain level, where available.", "columns": {"DATE": {"name": "DATE", "description": "Date associated with the reported records.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAIN": {"name": "CHAIN", "description": "The name of the blockchain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROTOCOL_ID": {"name": "PROTOCOL_ID", "description": "The Defillama ID of the protocol.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CATEGORY": {"name": "CATEGORY", "description": "The category the protocol belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MARKET_CAP": {"name": "MARKET_CAP", "description": "The total market cap of the protocol. This is not available for all dates as the historical API does not provide this information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SYMBOL": {"name": "SYMBOL", "description": "The symbol of the token associated with the protocol.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAIN_TVL": {"name": "CHAIN_TVL", "description": "The total value locked on the chain for that protocol.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAIN_TVL_PREV_DAY": {"name": "CHAIN_TVL_PREV_DAY", "description": "The total value locked on the chain for that protocol, for the previous day.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAIN_TVL_PREV_WEEK": {"name": "CHAIN_TVL_PREV_WEEK", "description": "The total value locked on the chain for that protocol, for the previous week.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAIN_TVL_PREV_MONTH": {"name": "CHAIN_TVL_PREV_MONTH", "description": "The total value locked on the chain for that protocol, for the previous month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/gold/defillama__fact_protocol_tvl.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["defillama"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}}, "created_at": 1760113502.2742481, "relation_name": "EXTERNAL.defillama.fact_protocol_tvl", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['defillama'],\n meta={\n 'database_tags':{\n 'table': {\n 'PROTOCOL': 'DEFILLAMA'\n }\n }\n }\n) }}\n\nSELECT\n TIMESTAMP :: DATE AS DATE,\n chain,\n protocol_id,\n category,\n protocol,\n market_cap,\n symbol,\n chain_tvl, \n chain_tvl_prev_day,\n chain_tvl_prev_week,\n chain_tvl_prev_month\nFROM\n {{ ref('silver__defillama_protocol_tvl') }} f", "language": "sql", "refs": [{"name": "silver__defillama_protocol_tvl", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.external_models.silver__defillama_protocol_tvl"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__fact_protocol_tvl.sql", "compiled": true, "compiled_code": "\n\nSELECT\n TIMESTAMP :: DATE AS DATE,\n chain,\n protocol_id,\n category,\n protocol,\n market_cap,\n symbol,\n chain_tvl, \n chain_tvl_prev_day,\n chain_tvl_prev_week,\n chain_tvl_prev_month\nFROM\n EXTERNAL.silver.defillama_protocol_tvl f", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.defillama__fact_stablecoin_supply": {"database": "EXTERNAL", "schema": "defillama", "name": "defillama__fact_stablecoin_supply", "resource_type": "model", "package_name": "external_models", "path": "defillama/gold/defillama__fact_stablecoin_supply.sql", "original_file_path": "models/defillama/gold/defillama__fact_stablecoin_supply.sql", "unique_id": "model.external_models.defillama__fact_stablecoin_supply", "fqn": ["external_models", "defillama", "gold", "defillama__fact_stablecoin_supply"], "alias": "fact_stablecoin_supply", "checksum": {"name": "sha256", "checksum": "536ba0ae5a94de884779f5d82c9fda153714d9a01360013b44f7198252c76e7b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["stale"], "description": "This table contains historical circulating supply for the stablecoins in `dim_stablecoins`, where available.", "columns": {"DATE": {"name": "DATE", "description": "Date associated with the reported records.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "STABLECOIN_ID": {"name": "STABLECOIN_ID", "description": "The Defillama ID of the stablecoin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "STABLECOIN": {"name": "STABLECOIN", "description": "The name of the stablecoin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SYMBOL": {"name": "SYMBOL", "description": "The symbol of the stablecoin.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAINS": {"name": "CHAINS", "description": "The name of the blockchain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CIRCULATING": {"name": "CIRCULATING", "description": "The total circulating supply of the stablecoin for that date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "UNRELEASED": {"name": "UNRELEASED", "description": "The total unreleased supply of the stablecoin for that date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/gold/defillama__fact_stablecoin_supply.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["stale"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}}, "created_at": 1760113502.325798, "relation_name": "EXTERNAL.defillama.fact_stablecoin_supply", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['stale'],\n meta={\n 'database_tags':{\n 'table': {\n 'PROTOCOL': 'DEFILLAMA'\n }\n }\n }\n) }}\n\nSELECT\n TIMESTAMP :: DATE AS DATE,\n stablecoin_id,\n stablecoin,\n symbol,\n chains,\n circulating,\n unreleased\nFROM\n {{ ref('silver__defillama_stablecoin_supply') }} f", "language": "sql", "refs": [{"name": "silver__defillama_stablecoin_supply", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.external_models.silver__defillama_stablecoin_supply"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__fact_stablecoin_supply.sql", "compiled": true, "compiled_code": "\n\nSELECT\n TIMESTAMP :: DATE AS DATE,\n stablecoin_id,\n stablecoin,\n symbol,\n chains,\n circulating,\n unreleased\nFROM\n EXTERNAL.silver.defillama_stablecoin_supply f", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.defillama__dim_bridges": {"database": "EXTERNAL", "schema": "defillama", "name": "defillama__dim_bridges", "resource_type": "model", "package_name": "external_models", "path": "defillama/gold/defillama__dim_bridges.sql", "original_file_path": "models/defillama/gold/defillama__dim_bridges.sql", "unique_id": "model.external_models.defillama__dim_bridges", "fqn": ["external_models", "defillama", "gold", "defillama__dim_bridges"], "alias": "dim_bridges", "checksum": {"name": "sha256", "checksum": "a23e6ca237961bb7865d78fb25cc8df7e826144ea745a383be643c3f4a48cbba"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama"], "description": "This table contains dimensional information about the bridges listed on Defillama.", "columns": {"BRIDGE_ID": {"name": "BRIDGE_ID", "description": "Unique identifier of the bridge.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BRIDGE": {"name": "BRIDGE", "description": "The name of the listed bridge.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BRIDGE_NAME": {"name": "BRIDGE_NAME", "description": "The more descriptive, official display name of the bridge.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAINS": {"name": "CHAINS", "description": "Array of the various chains or networks that the bridge interacts with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DESTINATION_CHAIN": {"name": "DESTINATION_CHAIN", "description": "The chain that serves as the primary destination for the bridge.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/gold/defillama__dim_bridges.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["defillama"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}}, "created_at": 1760113502.259402, "relation_name": "EXTERNAL.defillama.dim_bridges", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['defillama'],\n meta={\n 'database_tags':{\n 'table': {\n 'PROTOCOL': 'DEFILLAMA'\n }\n }\n }\n) }}\n\nSELECT\n bridge_id,\n bridge,\n bridge_name,\n chains,\n destination_chain\nFROM {{ ref('bronze__defillama_bridges') }}", "language": "sql", "refs": [{"name": "bronze__defillama_bridges", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.external_models.bronze__defillama_bridges"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__dim_bridges.sql", "compiled": true, "compiled_code": "\n\nSELECT\n bridge_id,\n bridge,\n bridge_name,\n chains,\n destination_chain\nFROM EXTERNAL.bronze.defillama_bridges", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.defillama__dim_dexes": {"database": "EXTERNAL", "schema": "defillama", "name": "defillama__dim_dexes", "resource_type": "model", "package_name": "external_models", "path": "defillama/gold/defillama__dim_dexes.sql", "original_file_path": "models/defillama/gold/defillama__dim_dexes.sql", "unique_id": "model.external_models.defillama__dim_dexes", "fqn": ["external_models", "defillama", "gold", "defillama__dim_dexes"], "alias": "dim_dexes", "checksum": {"name": "sha256", "checksum": "8d104b2ba6de2497259f7456086c5215516b81446106bb93475e43d9d106bf56"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama"], "description": "This table contains dimensional information about the decentralized exchanges (DEX) listed on Defillama.", "columns": {"dex_id": {"name": "dex_id", "description": "Unique identifier of the dex.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DEX": {"name": "DEX", "description": "Name of the dex.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CATEGORY": {"name": "CATEGORY", "description": "The category of protocol the decentralized exhange belongs to (e.g. Dexes, Options, Yield, Derivatives etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAINS": {"name": "CHAINS", "description": "Array of the various chains or networks that the dex is deployed on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/gold/defillama__dim_dexes.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["defillama"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}}, "created_at": 1760113502.291928, "relation_name": "EXTERNAL.defillama.dim_dexes", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['defillama'],\n meta={\n 'database_tags':{\n 'table': {\n 'PROTOCOL': 'DEFILLAMA'\n }\n }\n }\n) }}\n\nSELECT\n dex_id,\n dex,\n category,\n chains \nFROM {{ ref('bronze__defillama_dexes') }}", "language": "sql", "refs": [{"name": "bronze__defillama_dexes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.external_models.bronze__defillama_dexes"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__dim_dexes.sql", "compiled": true, "compiled_code": "\n\nSELECT\n dex_id,\n dex,\n category,\n chains \nFROM EXTERNAL.bronze.defillama_dexes", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.defillama__fact_bridge_volume": {"database": "EXTERNAL", "schema": "defillama", "name": "defillama__fact_bridge_volume", "resource_type": "model", "package_name": "external_models", "path": "defillama/gold/defillama__fact_bridge_volume.sql", "original_file_path": "models/defillama/gold/defillama__fact_bridge_volume.sql", "unique_id": "model.external_models.defillama__fact_bridge_volume", "fqn": ["external_models", "defillama", "gold", "defillama__fact_bridge_volume"], "alias": "fact_bridge_volume", "checksum": {"name": "sha256", "checksum": "c7b8e76da640f5071abc3e261a56bbdea545d122edde6cec3141639747dc2b6f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama"], "description": "This table contains historical deposit and withdraw transaction volume for the bridges listed on Defillama in `dim_bridges`.", "columns": {"DATE": {"name": "DATE", "description": "Date associated with the reported records.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BRIDGE_ID": {"name": "BRIDGE_ID", "description": "Unique identifier of the bridge.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BRIDGE": {"name": "BRIDGE", "description": "Name of the bridge.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BRIDGE_NAME": {"name": "BRIDGE_NAME", "description": "The more descriptive, official display name of the bridge.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DEPOSIT_TXS": {"name": "DEPOSIT_TXS", "description": "Total number of deposit transactions to the bridge.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DEPOSIT_USD": {"name": "DEPOSIT_USD", "description": "Total value of deposits to the bridge, denominated in USD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "WITHDRAW_TXS": {"name": "WITHDRAW_TXS", "description": "Total number of withdrawal transactions to the bridge.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "WITHDRAW_USD": {"name": "WITHDRAW_USD", "description": "Total value of withdrawals to the bridge, denominated in USD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/gold/defillama__fact_bridge_volume.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["defillama"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}}, "created_at": 1760113502.2929003, "relation_name": "EXTERNAL.defillama.fact_bridge_volume", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['defillama'],\n meta={\n 'database_tags':{\n 'table': {\n 'PROTOCOL': 'DEFILLAMA'\n }\n }\n }\n) }}\n\nSELECT\n TIMESTAMP :: DATE AS DATE,\n bridge_id,\n bridge,\n bridge_name,\n deposit_txs,\n deposit_usd,\n withdraw_txs,\n withdraw_usd\nFROM\n {{ ref('silver__defillama_bridge_volume') }}", "language": "sql", "refs": [{"name": "silver__defillama_bridge_volume", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.external_models.silver__defillama_bridge_volume"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__fact_bridge_volume.sql", "compiled": true, "compiled_code": "\n\nSELECT\n TIMESTAMP :: DATE AS DATE,\n bridge_id,\n bridge,\n bridge_name,\n deposit_txs,\n deposit_usd,\n withdraw_txs,\n withdraw_usd\nFROM\n EXTERNAL.silver.defillama_bridge_volume", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.defillama__dim_pools": {"database": "EXTERNAL", "schema": "defillama", "name": "defillama__dim_pools", "resource_type": "model", "package_name": "external_models", "path": "defillama/gold/defillama__dim_pools.sql", "original_file_path": "models/defillama/gold/defillama__dim_pools.sql", "unique_id": "model.external_models.defillama__dim_pools", "fqn": ["external_models", "defillama", "gold", "defillama__dim_pools"], "alias": "dim_pools", "checksum": {"name": "sha256", "checksum": "979e6f5123381818d941bcb77b815181ae3298bca8f20749f5c2fedf04f01d48"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama"], "description": "This table contains dimensional information about DeFi pools listed on DefiLlama.", "columns": {"POOL_ID": {"name": "POOL_ID", "description": "The unique identifier for each pool.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROTOCOL": {"name": "PROTOCOL", "description": "The protocol the pool is part of.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SYMBOL": {"name": "SYMBOL", "description": "The symbol of the pool.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAIN": {"name": "CHAIN", "description": "The chain the pool is located on.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "REWARD_TOKENS": {"name": "REWARD_TOKENS", "description": "The addresses of the tokens rewarded by the pool.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "UNDERLYING_TOKENS": {"name": "UNDERLYING_TOKENS", "description": "The underlying tokens that make up the pool.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "IS_STABLECOIN": {"name": "IS_STABLECOIN", "description": "Boolean column displaying whether the pool contains a stablecoin or not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ILRISK": {"name": "ILRISK", "description": "Boolean column displaying whether the pool has explicit illiquidity risk.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EXPOSURE_TYPE": {"name": "EXPOSURE_TYPE", "description": "The type of exposure of the pool.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "POOL_METADATA": {"name": "POOL_METADATA", "description": "Metadata of the pool.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/gold/defillama__dim_pools.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["defillama"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}}, "created_at": 1760113502.3232126, "relation_name": "EXTERNAL.defillama.dim_pools", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['defillama'],\n meta={\n 'database_tags':{\n 'table': {\n 'PROTOCOL': 'DEFILLAMA'\n }\n }\n }\n) }}\n\nSELECT\n pool AS pool_id,\n project AS protocol,\n symbol,\n chain,\n CASE\n WHEN rewardtokens ILIKE 'none' THEN NULL\n ELSE LOWER(rewardtokens)\n END AS reward_tokens,\n CASE\n WHEN underlyingtokens ILIKE 'none' THEN NULL\n ELSE LOWER(underlyingtokens)\n END AS underlying_tokens,\n stablecoin AS is_stablecoin,\n ilrisk,\n exposure AS exposure_type,\n poolmeta AS pool_metadata\nFROM\n {{ ref('bronze__defillama_api_pools_20230209_131432') }}", "language": "sql", "refs": [{"name": "bronze__defillama_api_pools_20230209_131432", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["seed.external_models.bronze__defillama_api_pools_20230209_131432"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__dim_pools.sql", "compiled": true, "compiled_code": "\n\nSELECT\n pool AS pool_id,\n project AS protocol,\n symbol,\n chain,\n CASE\n WHEN rewardtokens ILIKE 'none' THEN NULL\n ELSE LOWER(rewardtokens)\n END AS reward_tokens,\n CASE\n WHEN underlyingtokens ILIKE 'none' THEN NULL\n ELSE LOWER(underlyingtokens)\n END AS underlying_tokens,\n stablecoin AS is_stablecoin,\n ilrisk,\n exposure AS exposure_type,\n poolmeta AS pool_metadata\nFROM\n EXTERNAL.bronze.defillama_api_pools_20230209_131432", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.defillama__fact_usdt_usdc_supply": {"database": "EXTERNAL", "schema": "defillama", "name": "defillama__fact_usdt_usdc_supply", "resource_type": "model", "package_name": "external_models", "path": "defillama/gold/defillama__fact_usdt_usdc_supply.sql", "original_file_path": "models/defillama/gold/defillama__fact_usdt_usdc_supply.sql", "unique_id": "model.external_models.defillama__fact_usdt_usdc_supply", "fqn": ["external_models", "defillama", "gold", "defillama__fact_usdt_usdc_supply"], "alias": "fact_usdt_usdc_supply", "checksum": {"name": "sha256", "checksum": "4e84b3178726d2292aede8bfc7ddcb51d35bfbce6e23f715226bb4572e2939ab"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["stale"], "description": "Daily USDT and USDC supply metrics across different blockchains", "columns": {"DATE": {"name": "DATE", "description": "Date of the supply data point", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "STABLECOIN_ID": {"name": "STABLECOIN_ID", "description": "Unique identifier for the stablecoin from Defillama", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "STABLECOIN": {"name": "STABLECOIN", "description": "Name of the stablecoin", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SYMBOL": {"name": "SYMBOL", "description": "Token symbol (USDC or USDT)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAIN": {"name": "CHAIN", "description": "Blockchain network where the stablecoin is deployed", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOTAL_BRIDGED_USD": {"name": "TOTAL_BRIDGED_USD", "description": "Total value of bridged stablecoins in USD", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOTAL_CIRCULATING": {"name": "TOTAL_CIRCULATING", "description": "Total circulating supply of the stablecoin", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOTAL_CIRCULATING_USD": {"name": "TOTAL_CIRCULATING_USD", "description": "Total circulating supply in USD value", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DEFILLAMA_FACT_USDT_USDC_SUPPLY_ID": {"name": "DEFILLAMA_FACT_USDT_USDC_SUPPLY_ID", "description": "Unique identifier for this record", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "Timestamp when the record was inserted", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "Timestamp when the record was last modified", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/gold/defillama__fact_usdt_usdc_supply.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["stale"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}}, "created_at": 1760113502.2624302, "relation_name": "EXTERNAL.defillama.fact_usdt_usdc_supply", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['stale'],\n meta={\n 'database_tags':{\n 'table': {\n 'PROTOCOL': 'DEFILLAMA'\n }\n }\n }\n) }}\n\nSELECT\n date,\n stablecoin_id,\n stablecoin,\n symbol,\n chain,\n total_bridged_usd,\n total_circulating,\n total_circulating_usd,\n defillama_usdc_usdt_supply_id as defillama_fact_usdt_usdc_supply_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n {{ ref('silver__defillama_usdt_usdc_supply') }} f", "language": "sql", "refs": [{"name": "silver__defillama_usdt_usdc_supply", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.external_models.silver__defillama_usdt_usdc_supply"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__fact_usdt_usdc_supply.sql", "compiled": true, "compiled_code": "\n\nSELECT\n date,\n stablecoin_id,\n stablecoin,\n symbol,\n chain,\n total_bridged_usd,\n total_circulating,\n total_circulating_usd,\n defillama_usdc_usdt_supply_id as defillama_fact_usdt_usdc_supply_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n EXTERNAL.silver.defillama_usdt_usdc_supply f", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.defillama__fact_options_volume": {"database": "EXTERNAL", "schema": "defillama", "name": "defillama__fact_options_volume", "resource_type": "model", "package_name": "external_models", "path": "defillama/gold/defillama__fact_options_volume.sql", "original_file_path": "models/defillama/gold/defillama__fact_options_volume.sql", "unique_id": "model.external_models.defillama__fact_options_volume", "fqn": ["external_models", "defillama", "gold", "defillama__fact_options_volume"], "alias": "fact_options_volume", "checksum": {"name": "sha256", "checksum": "3acc9a04e42c9da97d53d10c315a4fca0b2904cca43c7029c0fd8131e45bfa9c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama"], "description": "This table contains historical options volumes for the protocols listed on Defillama in `dim_protocols`, where available.", "columns": {"DATE": {"name": "DATE", "description": "Date associated with the reported records.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAIN": {"name": "CHAIN", "description": "The name of the blockchain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROTOCOL": {"name": "PROTOCOL", "description": "The name of the protocol.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VOLUME_PREMIUM": {"name": "VOLUME_PREMIUM", "description": "The total premium volume driven by the protocol on a daily basis, denominated in USD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VOLUME_NOTIONAL": {"name": "VOLUME_NOTIONAL", "description": "The total notional volume driven by the protocol on a daily basis, denominated in USD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/gold/defillama__fact_options_volume.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["defillama"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}}, "created_at": 1760113502.2186992, "relation_name": "EXTERNAL.defillama.fact_options_volume", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['defillama'],\n meta={\n 'database_tags':{\n 'table': {\n 'PROTOCOL': 'DEFILLAMA'\n }\n }\n }\n) }}\n\nSELECT\n p.TIMESTAMP :: DATE AS DATE,\n p.chain,\n p.protocol,\n COALESCE(daily_volume_premium,0) AS volume_premium,\n COALESCE(daily_volume_notional,0) AS volume_notional\nFROM\n {{ ref('silver__defillama_options_premium') }} p\nLEFT JOIN\n {{ ref('silver__defillama_options_notional') }} n\n ON p.TIMESTAMP = n.TIMESTAMP AND p.chain = n.chain AND p.protocol = n.protocol", "language": "sql", "refs": [{"name": "silver__defillama_options_premium", "package": null, "version": null}, {"name": "silver__defillama_options_notional", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.external_models.silver__defillama_options_premium", "model.external_models.silver__defillama_options_notional"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__fact_options_volume.sql", "compiled": true, "compiled_code": "\n\nSELECT\n p.TIMESTAMP :: DATE AS DATE,\n p.chain,\n p.protocol,\n COALESCE(daily_volume_premium,0) AS volume_premium,\n COALESCE(daily_volume_notional,0) AS volume_notional\nFROM\n EXTERNAL.silver.defillama_options_premium p\nLEFT JOIN\n EXTERNAL.silver.defillama_options_notional n\n ON p.TIMESTAMP = n.TIMESTAMP AND p.chain = n.chain AND p.protocol = n.protocol", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.defillama__fact_perp_volume": {"database": "EXTERNAL", "schema": "defillama", "name": "defillama__fact_perp_volume", "resource_type": "model", "package_name": "external_models", "path": "defillama/gold/defillama__fact_perp_volume.sql", "original_file_path": "models/defillama/gold/defillama__fact_perp_volume.sql", "unique_id": "model.external_models.defillama__fact_perp_volume", "fqn": ["external_models", "defillama", "gold", "defillama__fact_perp_volume"], "alias": "fact_perp_volume", "checksum": {"name": "sha256", "checksum": "aebdcb48e09fba394e20ee639c81c0efc399dd7461fac21ba407e60ce28734b2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama"], "description": "This table contains historical perpetual protocol volumes for the protocols listed on Defillama in `defillama__dim_perps`, where available.", "columns": {"date": {"name": "date", "description": "Date associated with the reported volume records.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "chain": {"name": "chain", "description": "The name of the blockchain where the volume occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "protocol_id": {"name": "protocol_id", "description": "Unique identifier of the protocol from Defillama.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "protocol_slug": {"name": "protocol_slug", "description": "URL-friendly slug identifier for the protocol.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "protocol": {"name": "protocol", "description": "The name of the protocol.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "volume": {"name": "volume", "description": "The total volume driven by the protocol on a daily basis, denominated in USD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/gold/defillama__fact_perp_volume.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["defillama"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}}, "created_at": 1760113502.3317685, "relation_name": "EXTERNAL.defillama.fact_perp_volume", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['defillama'],\n meta={\n 'database_tags':{\n 'table': {\n 'PROTOCOL': 'DEFILLAMA'\n }\n }\n }\n) }}\n\nSELECT\n DATE,\n chain,\n protocol_id,\n protocol_slug,\n protocol,\n volume\nFROM\n {{ ref('silver__defillama_perp_daily_volume') }} f", "language": "sql", "refs": [{"name": "silver__defillama_perp_daily_volume", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.external_models.silver__defillama_perp_daily_volume"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__fact_perp_volume.sql", "compiled": true, "compiled_code": "\n\nSELECT\n DATE,\n chain,\n protocol_id,\n protocol_slug,\n protocol,\n volume\nFROM\n EXTERNAL.silver.defillama_perp_daily_volume f", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.defillama__fact_bridge_volume_by_chain": {"database": "EXTERNAL", "schema": "defillama", "name": "defillama__fact_bridge_volume_by_chain", "resource_type": "model", "package_name": "external_models", "path": "defillama/gold/defillama__fact_bridge_volume_by_chain.sql", "original_file_path": "models/defillama/gold/defillama__fact_bridge_volume_by_chain.sql", "unique_id": "model.external_models.defillama__fact_bridge_volume_by_chain", "fqn": ["external_models", "defillama", "gold", "defillama__fact_bridge_volume_by_chain"], "alias": "fact_bridge_volume_by_chain", "checksum": {"name": "sha256", "checksum": "2833cbdd16a42f309b0e1bfc75bb8d3bda463a366524c2009126f2bae3cb80fa"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama"], "description": "This table contains historical deposit and withdraw transaction volume for the bridges by chain listed on Defillama in `dim_bridges`. Only includes data for chains that are supported in the crosschain table.", "columns": {"DATE": {"name": "DATE", "description": "Date associated with the reported records.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAIN": {"name": "CHAIN", "description": "Chain associated with the reported records.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BRIDGE_ID": {"name": "BRIDGE_ID", "description": "Unique identifier of the bridge.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BRIDGE": {"name": "BRIDGE", "description": "Name of the bridge.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BRIDGE_NAME": {"name": "BRIDGE_NAME", "description": "The more descriptive, official display name of the bridge.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DEPOSIT_TXS": {"name": "DEPOSIT_TXS", "description": "Total number of deposit transactions to the bridge.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DEPOSIT_USD": {"name": "DEPOSIT_USD", "description": "Total value of deposits to the bridge, denominated in USD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "WITHDRAW_TXS": {"name": "WITHDRAW_TXS", "description": "Total number of withdrawal transactions to the bridge.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "WITHDRAW_USD": {"name": "WITHDRAW_USD", "description": "Total value of withdrawals to the bridge, denominated in USD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DEFILLAMA_FACT_BRIDGE_VOLUME_BY_CHAIN_ID": {"name": "DEFILLAMA_FACT_BRIDGE_VOLUME_BY_CHAIN_ID", "description": "Unique identifier for this record", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "Timestamp when the record was inserted", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "Timestamp when the record was last modified", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/gold/defillama__fact_bridge_volume_by_chain.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["defillama"], "meta": {"database_tags": {"table": {"PROTOCOL": "DEFILLAMA"}}}}, "created_at": 1760113502.3332615, "relation_name": "EXTERNAL.defillama.fact_bridge_volume_by_chain", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['defillama'],\n meta={\n 'database_tags':{\n 'table': {\n 'PROTOCOL': 'DEFILLAMA'\n }\n }\n }\n) }}\n\nSELECT\n DATE,\n chain, \n bridge_id,\n bridge,\n bridge_name,\n deposit_txs,\n deposit_usd,\n withdraw_txs,\n withdraw_usd,\n defillama_bridge_vol_by_chain_id as defillama_fact_bridge_volume_by_chain_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n {{ ref('silver__defillama_bridge_volume_by_chain') }}", "language": "sql", "refs": [{"name": "silver__defillama_bridge_volume_by_chain", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.external_models.silver__defillama_bridge_volume_by_chain"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__fact_bridge_volume_by_chain.sql", "compiled": true, "compiled_code": "\n\nSELECT\n DATE,\n chain, \n bridge_id,\n bridge,\n bridge_name,\n deposit_txs,\n deposit_usd,\n withdraw_txs,\n withdraw_usd,\n defillama_bridge_vol_by_chain_id as defillama_fact_bridge_volume_by_chain_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n EXTERNAL.silver.defillama_bridge_volume_by_chain", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__defillama_dexes": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__defillama_dexes", "resource_type": "model", "package_name": "external_models", "path": "defillama/bronze/bronze__defillama_dexes.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_dexes.sql", "unique_id": "model.external_models.bronze__defillama_dexes", "fqn": ["external_models", "defillama", "bronze", "bronze__defillama_dexes"], "alias": "defillama_dexes", "checksum": {"name": "sha256", "checksum": "591377517e067ad2812d4576045137bfb9bb512ba08224720f9049fd3fc5a575"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "dex_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama"], "description": "", "columns": {"DEX_ID": {"name": "DEX_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DEX": {"name": "DEX", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/bronze/bronze__defillama_dexes.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": "dex_id", "tags": ["defillama"]}, "created_at": 1760113502.3345215, "relation_name": "EXTERNAL.bronze.defillama_dexes", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = 'dex_id',\n tags = ['defillama']\n) }}\n\nWITH base AS (\n\nSELECT\n live.udf_api(\n 'GET','https://pro-api.llama.fi/{api_key}/api/overview/dexs?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true&dataType=dailyVolume',{},{},'Vault/prod/external/defillama'\n ) AS dex_read,\n live.udf_api(\n 'GET','https://pro-api.llama.fi/{api_key}/api/overview/options?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true&dataType=dailyPremiumVolume',{},{},'Vault/prod/external/defillama'\n ) AS options_read,\n SYSDATE() AS _inserted_timestamp\n)\n \nSELECT\n VALUE:module::STRING AS dex_id,\n VALUE:name::STRING AS dex,\n VALUE:category::STRING AS category,\n VALUE:chains AS chains,\n _inserted_timestamp\nFROM base,\n LATERAL FLATTEN (input=> dex_read:data:protocols)\n{% if is_incremental() %}\nWHERE dex_id NOT IN (\n SELECT\n DISTINCT dex_id\n FROM\n {{ this }}\n)\n{% endif %}\nUNION\nSELECT\n VALUE:module::STRING AS dex_id,\n VALUE:name::STRING AS dex,\n VALUE:category::STRING AS category,\n VALUE:chains AS chains,\n _inserted_timestamp\nFROM base,\n LATERAL FLATTEN (input=> options_read:data:protocols)\n\n{% if is_incremental() %}\nWHERE dex_id NOT IN (\n SELECT\n DISTINCT dex_id\n FROM\n {{ this }}\n)\n{% endif %}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": []}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_dexes.sql", "compiled": true, "compiled_code": "\n\nWITH base AS (\n\nSELECT\n live.udf_api(\n 'GET','https://pro-api.llama.fi/{api_key}/api/overview/dexs?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true&dataType=dailyVolume',{},{},'Vault/prod/external/defillama'\n ) AS dex_read,\n live.udf_api(\n 'GET','https://pro-api.llama.fi/{api_key}/api/overview/options?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true&dataType=dailyPremiumVolume',{},{},'Vault/prod/external/defillama'\n ) AS options_read,\n SYSDATE() AS _inserted_timestamp\n)\n \nSELECT\n VALUE:module::STRING AS dex_id,\n VALUE:name::STRING AS dex,\n VALUE:category::STRING AS category,\n VALUE:chains AS chains,\n _inserted_timestamp\nFROM base,\n LATERAL FLATTEN (input=> dex_read:data:protocols)\n\nWHERE dex_id NOT IN (\n SELECT\n DISTINCT dex_id\n FROM\n EXTERNAL.bronze.defillama_dexes\n)\n\nUNION\nSELECT\n VALUE:module::STRING AS dex_id,\n VALUE:name::STRING AS dex,\n VALUE:category::STRING AS category,\n VALUE:chains AS chains,\n _inserted_timestamp\nFROM base,\n LATERAL FLATTEN (input=> options_read:data:protocols)\n\n\nWHERE dex_id NOT IN (\n SELECT\n DISTINCT dex_id\n FROM\n EXTERNAL.bronze.defillama_dexes\n)\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__defillama_stablecoin_supply": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__defillama_stablecoin_supply", "resource_type": "model", "package_name": "external_models", "path": "defillama/bronze/bronze__defillama_stablecoin_supply.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_stablecoin_supply.sql", "unique_id": "model.external_models.bronze__defillama_stablecoin_supply", "fqn": ["external_models", "defillama", "bronze", "bronze__defillama_stablecoin_supply"], "alias": "defillama_stablecoin_supply", "checksum": {"name": "sha256", "checksum": "90bdb8e79402fe960817449b9f2de9be483eca8e2dc1064caa2fc2e020eec3be"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["stablecoin_id", "timestamp"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["stale"], "description": "", "columns": {"_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/bronze/bronze__defillama_stablecoin_supply.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "table", "unique_key": ["stablecoin_id", "timestamp"], "tags": ["stale"]}, "created_at": 1760113502.3795776, "relation_name": "EXTERNAL.bronze.defillama_stablecoin_supply", "raw_code": "{{ config(\n materialized = 'table',\n unique_key = ['stablecoin_id','timestamp'],\n tags = ['stale']\n) }}\n\nWITH stablecoin_base AS ({% for item in range(50) %}\n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n {{ ref('bronze__defillama_stablecoins') }}\n WHERE\n row_num BETWEEN {{ item * 5 + 1 }}\n AND {{(item + 1) * 5 }})) {% if not loop.last %}\n UNION ALL\n {% endif %}\n {% endfor %})\nSELECT\n READ :data :address :: STRING AS address,\n READ :data :symbol :: STRING AS symbol,\n READ :data :name :: STRING AS NAME,\n READ :data :id :: STRING AS stablecoin_id,\n VALUE AS VALUE,\n TO_TIMESTAMP(\n VALUE :date :: INTEGER\n ) AS TIMESTAMP,\n _inserted_timestamp\nFROM\n stablecoin_base,\n LATERAL FLATTEN (\n input => READ :data :tokens\n ) f", "language": "sql", "refs": [{"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}, {"name": "bronze__defillama_stablecoins", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.external_models.bronze__defillama_stablecoins"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_stablecoin_supply.sql", "compiled": true, "compiled_code": "\n\nWITH stablecoin_base AS (\n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 1\n AND 5)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 6\n AND 10)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 11\n AND 15)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 16\n AND 20)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 21\n AND 25)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 26\n AND 30)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 31\n AND 35)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 36\n AND 40)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 41\n AND 45)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 46\n AND 50)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 51\n AND 55)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 56\n AND 60)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 61\n AND 65)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 66\n AND 70)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 71\n AND 75)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 76\n AND 80)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 81\n AND 85)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 86\n AND 90)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 91\n AND 95)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 96\n AND 100)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 101\n AND 105)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 106\n AND 110)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 111\n AND 115)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 116\n AND 120)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 121\n AND 125)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 126\n AND 130)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 131\n AND 135)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 136\n AND 140)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 141\n AND 145)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 146\n AND 150)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 151\n AND 155)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 156\n AND 160)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 161\n AND 165)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 166\n AND 170)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 171\n AND 175)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 176\n AND 180)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 181\n AND 185)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 186\n AND 190)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 191\n AND 195)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 196\n AND 200)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 201\n AND 205)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 206\n AND 210)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 211\n AND 215)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 216\n AND 220)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 221\n AND 225)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 226\n AND 230)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 231\n AND 235)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 236\n AND 240)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 241\n AND 245)) \n UNION ALL\n \n \n (\n\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n live.udf_api(\n 'GET', \n 'https://stablecoins.llama.fi/stablecoin/' || stablecoin_id,\n {},\n {},\n 'Vault/prod/external/defillama'\n ) AS READ, \n SYSDATE() AS _inserted_timestamp,\n FROM\n (\n SELECT\n stablecoin_id, \n stablecoin, \n symbol, \n row_num\n FROM\n EXTERNAL.bronze.defillama_stablecoins\n WHERE\n row_num BETWEEN 246\n AND 250)) \n )\nSELECT\n READ :data :address :: STRING AS address,\n READ :data :symbol :: STRING AS symbol,\n READ :data :name :: STRING AS NAME,\n READ :data :id :: STRING AS stablecoin_id,\n VALUE AS VALUE,\n TO_TIMESTAMP(\n VALUE :date :: INTEGER\n ) AS TIMESTAMP,\n _inserted_timestamp\nFROM\n stablecoin_base,\n LATERAL FLATTEN (\n input => READ :data :tokens\n ) f", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__defillama_chains": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__defillama_chains", "resource_type": "model", "package_name": "external_models", "path": "defillama/bronze/bronze__defillama_chains.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_chains.sql", "unique_id": "model.external_models.bronze__defillama_chains", "fqn": ["external_models", "defillama", "bronze", "bronze__defillama_chains"], "alias": "defillama_chains", "checksum": {"name": "sha256", "checksum": "f78610eb2c2511c662259d4fb3c57571b1311cdc759b95ae757e2eddefc6ad29"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "chain", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama"], "description": "", "columns": {"CHAIN": {"name": "CHAIN", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/bronze/bronze__defillama_chains.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": "chain", "tags": ["defillama"]}, "created_at": 1760113502.3504133, "relation_name": "EXTERNAL.bronze.defillama_chains", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = 'chain',\n tags = ['defillama']\n) }}\n\nWITH chain_base AS (\n\nSELECT\n live.udf_api(\n 'GET','https://pro-api.llama.fi/{api_key}/api/chains',{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\n),\n\nFINAL AS (\nSELECT\n VALUE:chainId::STRING AS chain_id,\n VALUE:name::STRING AS chain,\n VALUE:tokenSymbol::STRING AS token_symbol,\n _inserted_timestamp\nFROM chain_base,\n LATERAL FLATTEN (input=> read:data)\n\n{% if is_incremental() %}\nWHERE chain NOT IN (\n SELECT\n DISTINCT chain\n FROM\n {{ this }}\n)\n)\n\nSELECT\n chain_id,\n chain,\n token_symbol,\n m.row_num + ROW_NUMBER() OVER (ORDER BY chain) AS row_num,\n _inserted_timestamp\nFROM FINAL\nJOIN (\n SELECT\n MAX(row_num) AS row_num\n FROM\n {{ this }}\n) m ON 1=1\n\n{% else %}\n)\nSELECT\n chain_id,\n chain,\n token_symbol,\n ROW_NUMBER() OVER (ORDER BY chain) AS row_num,\n _inserted_timestamp\nFROM FINAL\n{% endif %}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": []}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_chains.sql", "compiled": true, "compiled_code": "\n\nWITH chain_base AS (\n\nSELECT\n live.udf_api(\n 'GET','https://pro-api.llama.fi/{api_key}/api/chains',{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\n),\n\nFINAL AS (\nSELECT\n VALUE:chainId::STRING AS chain_id,\n VALUE:name::STRING AS chain,\n VALUE:tokenSymbol::STRING AS token_symbol,\n _inserted_timestamp\nFROM chain_base,\n LATERAL FLATTEN (input=> read:data)\n\n\nWHERE chain NOT IN (\n SELECT\n DISTINCT chain\n FROM\n EXTERNAL.bronze.defillama_chains\n)\n)\n\nSELECT\n chain_id,\n chain,\n token_symbol,\n m.row_num + ROW_NUMBER() OVER (ORDER BY chain) AS row_num,\n _inserted_timestamp\nFROM FINAL\nJOIN (\n SELECT\n MAX(row_num) AS row_num\n FROM\n EXTERNAL.bronze.defillama_chains\n) m ON 1=1\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__defillama_bridges": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__defillama_bridges", "resource_type": "model", "package_name": "external_models", "path": "defillama/bronze/bronze__defillama_bridges.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_bridges.sql", "unique_id": "model.external_models.bronze__defillama_bridges", "fqn": ["external_models", "defillama", "bronze", "bronze__defillama_bridges"], "alias": "defillama_bridges", "checksum": {"name": "sha256", "checksum": "bcd04a53b501b745ac74a0da61c8fddf39c9ec652c54511c52e2ba7685211a04"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "bridge_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama"], "description": "", "columns": {"BRIDGE_ID": {"name": "BRIDGE_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BRIDGE": {"name": "BRIDGE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/bronze/bronze__defillama_bridges.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": "bridge_id", "full_refresh": false, "tags": ["defillama"]}, "created_at": 1760113502.482838, "relation_name": "EXTERNAL.bronze.defillama_bridges", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = 'bridge_id',\n full_refresh = false,\n tags = ['defillama']\n) }}\n\nWITH bridge_base AS (\n\nSELECT\n live.udf_api(\n 'GET','https://bridges.llama.fi/bridges?includeChains=true',{},{}\n ) AS read,\n SYSDATE() AS _inserted_timestamp\n),\n\nFINAL AS (\nSELECT\n VALUE:id::STRING AS bridge_id,\n VALUE:name::STRING AS bridge,\n VALUE:displayName::STRING AS bridge_name,\n VALUE:chains AS chains,\n CASE \n WHEN VALUE:destinationChain::STRING ilike 'false' OR VALUE:destinationChain::STRING = '-' THEN NULL \n ELSE VALUE:destinationChain::STRING \n END AS destination_chain,\n _inserted_timestamp\nFROM bridge_base,\n LATERAL FLATTEN (input=> read:data:bridges)\n\n{% if is_incremental() %}\nWHERE bridge_id NOT IN (\n SELECT\n DISTINCT bridge_id\n FROM\n {{ this }}\n)\n)\n\nSELECT\n bridge_id,\n bridge,\n bridge_name,\n chains,\n destination_chain,\n m.row_num + ROW_NUMBER() OVER (ORDER BY bridge) AS row_num,\n _inserted_timestamp\nFROM FINAL\nJOIN (\n SELECT\n MAX(row_num) AS row_num\n FROM\n {{ this }}\n) m ON 1=1\n\n{% else %}\n)\n\nSELECT\n bridge_id,\n bridge,\n bridge_name,\n chains,\n destination_chain,\n ROW_NUMBER() OVER (ORDER BY bridge) AS row_num,\n _inserted_timestamp\nFROM FINAL\n{% endif %}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": []}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_bridges.sql", "compiled": true, "compiled_code": "\n\nWITH bridge_base AS (\n\nSELECT\n live.udf_api(\n 'GET','https://bridges.llama.fi/bridges?includeChains=true',{},{}\n ) AS read,\n SYSDATE() AS _inserted_timestamp\n),\n\nFINAL AS (\nSELECT\n VALUE:id::STRING AS bridge_id,\n VALUE:name::STRING AS bridge,\n VALUE:displayName::STRING AS bridge_name,\n VALUE:chains AS chains,\n CASE \n WHEN VALUE:destinationChain::STRING ilike 'false' OR VALUE:destinationChain::STRING = '-' THEN NULL \n ELSE VALUE:destinationChain::STRING \n END AS destination_chain,\n _inserted_timestamp\nFROM bridge_base,\n LATERAL FLATTEN (input=> read:data:bridges)\n\n\nWHERE bridge_id NOT IN (\n SELECT\n DISTINCT bridge_id\n FROM\n EXTERNAL.bronze.defillama_bridges\n)\n)\n\nSELECT\n bridge_id,\n bridge,\n bridge_name,\n chains,\n destination_chain,\n m.row_num + ROW_NUMBER() OVER (ORDER BY bridge) AS row_num,\n _inserted_timestamp\nFROM FINAL\nJOIN (\n SELECT\n MAX(row_num) AS row_num\n FROM\n EXTERNAL.bronze.defillama_bridges\n) m ON 1=1\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__defillama_stablecoins": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__defillama_stablecoins", "resource_type": "model", "package_name": "external_models", "path": "defillama/bronze/bronze__defillama_stablecoins.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_stablecoins.sql", "unique_id": "model.external_models.bronze__defillama_stablecoins", "fqn": ["external_models", "defillama", "bronze", "bronze__defillama_stablecoins"], "alias": "defillama_stablecoins", "checksum": {"name": "sha256", "checksum": "b734c0865907f63613c789ccdcc6c342d6bcd9d6eba046c92618d4914e39b5cb"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama"], "description": "", "columns": {"STABLECOIN_ID": {"name": "STABLECOIN_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "STABLECOIN": {"name": "STABLECOIN", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/bronze/bronze__defillama_stablecoins.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "table", "tags": ["defillama"]}, "created_at": 1760113502.364399, "relation_name": "EXTERNAL.bronze.defillama_stablecoins", "raw_code": "{{ config(\n materialized = 'table',\n tags = ['defillama']\n) }}\n\nWITH stablecoin_base AS (\n\n SELECT\n live.udf_api(\n 'GET',\n 'https://stablecoins.llama.fi/stablecoins?includePrices=false',{},{}\n ) AS READ,\n SYSDATE() AS _inserted_timestamp\n),\nFINAL AS (\n SELECT\n VALUE :id :: STRING AS stablecoin_id,\n VALUE :name :: STRING AS stablecoin,\n VALUE :symbol :: STRING AS symbol,\n VALUE :pegType :: STRING AS peg_type,\n VALUE :pegMechanism :: STRING AS peg_mechanism,\n VALUE :priceSource :: STRING AS price_source,\n VALUE :chains AS chains,\n _inserted_timestamp\n FROM\n stablecoin_base,\n LATERAL FLATTEN (\n input => READ :data :peggedAssets\n )\n)\nSELECT\n stablecoin_id,\n stablecoin,\n symbol,\n peg_type,\n peg_mechanism,\n price_source,\n chains,\n ROW_NUMBER() over (\n ORDER BY\n stablecoin\n ) AS row_num,\n _inserted_timestamp,\n sysdate() as inserted_timestamp,\n sysdate() as modified_timestamp,\n '{{ invocation_id }}' as _invocation_id\nFROM\n FINAL", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_stablecoins.sql", "compiled": true, "compiled_code": "\n\nWITH stablecoin_base AS (\n\n SELECT\n live.udf_api(\n 'GET',\n 'https://stablecoins.llama.fi/stablecoins?includePrices=false',{},{}\n ) AS READ,\n SYSDATE() AS _inserted_timestamp\n),\nFINAL AS (\n SELECT\n VALUE :id :: STRING AS stablecoin_id,\n VALUE :name :: STRING AS stablecoin,\n VALUE :symbol :: STRING AS symbol,\n VALUE :pegType :: STRING AS peg_type,\n VALUE :pegMechanism :: STRING AS peg_mechanism,\n VALUE :priceSource :: STRING AS price_source,\n VALUE :chains AS chains,\n _inserted_timestamp\n FROM\n stablecoin_base,\n LATERAL FLATTEN (\n input => READ :data :peggedAssets\n )\n)\nSELECT\n stablecoin_id,\n stablecoin,\n symbol,\n peg_type,\n peg_mechanism,\n price_source,\n chains,\n ROW_NUMBER() over (\n ORDER BY\n stablecoin\n ) AS row_num,\n _inserted_timestamp,\n sysdate() as inserted_timestamp,\n sysdate() as modified_timestamp,\n 'f3fd32af-64d3-4c75-bfb6-95e2946ea073' as _invocation_id\nFROM\n FINAL", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__defillama_raises": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__defillama_raises", "resource_type": "model", "package_name": "external_models", "path": "defillama/bronze/bronze__defillama_raises.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_raises.sql", "unique_id": "model.external_models.bronze__defillama_raises", "fqn": ["external_models", "defillama", "bronze", "bronze__defillama_raises"], "alias": "defillama_raises", "checksum": {"name": "sha256", "checksum": "ce219bff4125c752e2d39e96309f37bc6fc156fc0665d0b9cf2f1ae4be0d7be7"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "raise_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama"], "description": "", "columns": {"RAISE_ID": {"name": "RAISE_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROJECT_NAME": {"name": "PROJECT_NAME", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FUNDING_DATE": {"name": "FUNDING_DATE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/bronze/bronze__defillama_raises.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": "raise_id", "tags": ["defillama"]}, "created_at": 1760113502.42665, "relation_name": "EXTERNAL.bronze.defillama_raises", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = 'raise_id',\n tags = ['defillama']\n) }}\n\nWITH protocol_base AS (\n\nSELECT\n live.udf_api(\n 'GET','https://pro-api.llama.fi/{api_key}/api/raises',{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\n)\n\nSELECT\n TRY_TO_TIMESTAMP(VALUE:date::STRING) AS funding_date,\n VALUE:name::STRING AS project_name,\n VALUE:round::STRING AS funding_round,\n VALUE:amount::FLOAT AS amount_raised,\n VALUE:chains::VARIANT AS chains,\n VALUE:sector::STRING AS sector,\n VALUE:category::STRING AS category,\n VALUE:categoryGroup::STRING AS category_group,\n VALUE:source::STRING AS source,\n VALUE:leadInvestors::VARIANT AS lead_investors,\n VALUE:otherInvestors::VARIANT AS other_investors,\n TRY_TO_NUMBER(VALUE:valuation::STRING) AS valuation,\n VALUE:defillamaId::STRING AS defillama_id,\n MD5(CONCAT(\n COALESCE(VALUE:name::STRING, ''),\n COALESCE(VALUE:date::STRING, ''),\n COALESCE(VALUE:round::STRING, ''),\n COALESCE(VALUE:amount::STRING, '')\n )) AS raise_id,\n _inserted_timestamp\nFROM protocol_base,\n LATERAL FLATTEN (input=> read :data :raises)\n\n{% if is_incremental() %}\nWHERE raise_id NOT IN (\n SELECT\n DISTINCT raise_id\n FROM\n {{ this }}\n)\n{% endif %}\n\nQUALIFY(\n ROW_NUMBER() OVER (PARTITION BY raise_id ORDER BY _inserted_timestamp DESC)\n) = 1", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": []}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_raises.sql", "compiled": true, "compiled_code": "\n\nWITH protocol_base AS (\n\nSELECT\n live.udf_api(\n 'GET','https://pro-api.llama.fi/{api_key}/api/raises',{},{},'Vault/prod/external/defillama'\n ) AS read,\n SYSDATE() AS _inserted_timestamp\n)\n\nSELECT\n TRY_TO_TIMESTAMP(VALUE:date::STRING) AS funding_date,\n VALUE:name::STRING AS project_name,\n VALUE:round::STRING AS funding_round,\n VALUE:amount::FLOAT AS amount_raised,\n VALUE:chains::VARIANT AS chains,\n VALUE:sector::STRING AS sector,\n VALUE:category::STRING AS category,\n VALUE:categoryGroup::STRING AS category_group,\n VALUE:source::STRING AS source,\n VALUE:leadInvestors::VARIANT AS lead_investors,\n VALUE:otherInvestors::VARIANT AS other_investors,\n TRY_TO_NUMBER(VALUE:valuation::STRING) AS valuation,\n VALUE:defillamaId::STRING AS defillama_id,\n MD5(CONCAT(\n COALESCE(VALUE:name::STRING, ''),\n COALESCE(VALUE:date::STRING, ''),\n COALESCE(VALUE:round::STRING, ''),\n COALESCE(VALUE:amount::STRING, '')\n )) AS raise_id,\n _inserted_timestamp\nFROM protocol_base,\n LATERAL FLATTEN (input=> read :data :raises)\n\n\nWHERE raise_id NOT IN (\n SELECT\n DISTINCT raise_id\n FROM\n EXTERNAL.bronze.defillama_raises\n)\n\n\nQUALIFY(\n ROW_NUMBER() OVER (PARTITION BY raise_id ORDER BY _inserted_timestamp DESC)\n) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__defillama_protocol_tvl": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__defillama_protocol_tvl", "resource_type": "model", "package_name": "external_models", "path": "defillama/bronze/bronze__defillama_protocol_tvl.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_protocol_tvl.sql", "unique_id": "model.external_models.bronze__defillama_protocol_tvl", "fqn": ["external_models", "defillama", "bronze", "bronze__defillama_protocol_tvl"], "alias": "defillama_protocol_tvl", "checksum": {"name": "sha256", "checksum": "aa421c51febd60efaec8df516905751ca7a7dec05b2519d5816b1c3ee6432ba9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": ["protocol_id", "chain", "timestamp"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["chain"]}, "tags": ["defillama"], "description": "", "columns": {"PROTOCOL_ID": {"name": "PROTOCOL_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/bronze/bronze__defillama_protocol_tvl.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "full_refresh": false, "unique_key": ["protocol_id", "chain", "timestamp"], "cluster_by": ["chain"], "tags": ["defillama"]}, "created_at": 1760113502.391542, "relation_name": "EXTERNAL.bronze.defillama_protocol_tvl", "raw_code": "{{ config(\n materialized = 'incremental',\n full_refresh = false,\n unique_key = ['protocol_id','chain','timestamp'],\n cluster_by = ['chain'],\n tags = ['defillama']\n) }}\n\nWITH api_pull AS (\n\n SELECT\n PARSE_JSON(\n live.udf_api(\n 'GET',\n 'https://api.llama.fi/lite/protocols2',\n {},\n {}\n )\n ) :data :protocols AS response,\n SYSDATE() AS _inserted_timestamp\n),\nlat_flat AS (\n SELECT\n r.value AS VALUE,\n _inserted_timestamp\n FROM\n api_pull,\n LATERAL FLATTEN (response) AS r\n),\nprotocol_expand AS (\n SELECT\n SYSDATE() :: DATE AS TIMESTAMP,\n VALUE :defillamaId :: STRING AS protocol_id,\n VALUE :category :: STRING AS category,\n VALUE :name :: STRING AS NAME,\n VALUE :mcap :: FLOAT AS market_cap,\n VALUE :symbol :: STRING AS symbol,\n VALUE :chains AS chains,\n VALUE :tvl :: FLOAT AS tvl,\n VALUE :tvlPrevDay :: FLOAT AS tvl_prev_day,\n VALUE :tvlPrevWeek :: FLOAT AS tvl_prev_week,\n VALUE :tvlPrevMonth :: FLOAT AS tvl_prev_month,\n VALUE :chainTvls AS chain_tvls,\n _inserted_timestamp\n FROM\n lat_flat\n\n{% if is_incremental() %}\nWHERE\n _inserted_timestamp :: DATE > (\n SELECT\n MAX(_inserted_timestamp) :: DATE\n FROM\n {{ this }}\n )\n{% endif %}\n)\nSELECT\n timestamp,\n protocol_id,\n category,\n NAME,\n market_cap,\n symbol,\n tvl,\n tvl_prev_day,\n tvl_prev_week,\n tvl_prev_month,\n r.key AS chain,\n r.value :tvl :: INT AS chain_tvl,\n r.value: tvlPrevDay :: INT AS chain_tvl_prev_day,\n r.value: tvlPrevWeek :: INT AS chain_tvl_prev_week,\n r.value: tvlPrevMonth :: INT AS chain_tvl_prev_month,\n _inserted_timestamp\nFROM\n protocol_expand,\n LATERAL FLATTEN (chain_tvls) AS r", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": []}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_protocol_tvl.sql", "compiled": true, "compiled_code": "\n\nWITH api_pull AS (\n\n SELECT\n PARSE_JSON(\n live.udf_api(\n 'GET',\n 'https://api.llama.fi/lite/protocols2',\n {},\n {}\n )\n ) :data :protocols AS response,\n SYSDATE() AS _inserted_timestamp\n),\nlat_flat AS (\n SELECT\n r.value AS VALUE,\n _inserted_timestamp\n FROM\n api_pull,\n LATERAL FLATTEN (response) AS r\n),\nprotocol_expand AS (\n SELECT\n SYSDATE() :: DATE AS TIMESTAMP,\n VALUE :defillamaId :: STRING AS protocol_id,\n VALUE :category :: STRING AS category,\n VALUE :name :: STRING AS NAME,\n VALUE :mcap :: FLOAT AS market_cap,\n VALUE :symbol :: STRING AS symbol,\n VALUE :chains AS chains,\n VALUE :tvl :: FLOAT AS tvl,\n VALUE :tvlPrevDay :: FLOAT AS tvl_prev_day,\n VALUE :tvlPrevWeek :: FLOAT AS tvl_prev_week,\n VALUE :tvlPrevMonth :: FLOAT AS tvl_prev_month,\n VALUE :chainTvls AS chain_tvls,\n _inserted_timestamp\n FROM\n lat_flat\n\n\nWHERE\n _inserted_timestamp :: DATE > (\n SELECT\n MAX(_inserted_timestamp) :: DATE\n FROM\n EXTERNAL.bronze.defillama_protocol_tvl\n )\n\n)\nSELECT\n timestamp,\n protocol_id,\n category,\n NAME,\n market_cap,\n symbol,\n tvl,\n tvl_prev_day,\n tvl_prev_week,\n tvl_prev_month,\n r.key AS chain,\n r.value :tvl :: INT AS chain_tvl,\n r.value: tvlPrevDay :: INT AS chain_tvl_prev_day,\n r.value: tvlPrevWeek :: INT AS chain_tvl_prev_week,\n r.value: tvlPrevMonth :: INT AS chain_tvl_prev_month,\n _inserted_timestamp\nFROM\n protocol_expand,\n LATERAL FLATTEN (chain_tvls) AS r", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__defillama_protocol_tvl_history": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__defillama_protocol_tvl_history", "resource_type": "model", "package_name": "external_models", "path": "defillama/bronze/bronze__defillama_protocol_tvl_history.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_protocol_tvl_history.sql", "unique_id": "model.external_models.bronze__defillama_protocol_tvl_history", "fqn": ["external_models", "defillama", "bronze", "bronze__defillama_protocol_tvl_history"], "alias": "defillama_protocol_tvl_history", "checksum": {"name": "sha256", "checksum": "211ee66a45e46eab73670847d1eeeaf6574c6f817b81198b6452605f24565a17"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama_history"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["protocol_id", "_inserted_timestamp"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["partition_key"]}, "tags": ["defillama_history"], "description": "", "columns": {"PROTOCOL_ID": {"name": "PROTOCOL_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/bronze/bronze__defillama_protocol_tvl_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": ["protocol_id", "_inserted_timestamp"], "cluster_by": ["partition_key"], "tags": ["defillama_history"]}, "created_at": 1760113502.4462252, "relation_name": "EXTERNAL.bronze.defillama_protocol_tvl_history", "raw_code": "-- depends_on: {{ ref('bronze__defillama_protocol_historical') }}\n -- depends_on: {{ ref('bronze__defillama_protocol_historical_FR') }}\n{{ config(\n materialized = 'incremental',\n unique_key = ['protocol_id', '_inserted_timestamp'],\n cluster_by = ['partition_key'],\n tags = ['defillama_history']\n) }}\n\nWITH protocol_base AS (\n\n SELECT\n VALUE:PROTOCOL_ID::INT AS protocol_id,\n partition_key,\n VALUE:data:category AS category,\n _inserted_timestamp,\n VALUE:data:chainTvls AS response\n FROM\n{% if is_incremental() %}\n{{ ref('bronze__defillama_protocol_historical') }}\nWHERE\n _inserted_timestamp >= (\n SELECT\n max(_inserted_timestamp)\n FROM\n {{ this }}\n )\n {% else %}\n {{ ref('bronze__defillama_protocol_historical_FR') }}\n {% endif %}\n)\nselect \n protocol_id,\n category,\n partition_key,\n response,\n {{ dbt_utils.generate_surrogate_key(\n ['protocol_id','_inserted_timestamp']\n ) }} AS bronze_defillama_protocol_historical_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n _inserted_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nfrom \n protocol_base", "language": "sql", "refs": [{"name": "bronze__defillama_protocol_historical", "package": null, "version": null}, {"name": "bronze__defillama_protocol_historical_FR", "package": null, "version": null}, {"name": "bronze__defillama_protocol_historical_FR", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.external_models.bronze__defillama_protocol_historical", "model.external_models.bronze__defillama_protocol_historical_FR"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_protocol_tvl_history.sql", "compiled": true, "compiled_code": "-- depends_on: EXTERNAL.bronze.defillama_protocol_historical\n -- depends_on: EXTERNAL.bronze.defillama_protocol_historical_FR\n\n\nWITH protocol_base AS (\n\n SELECT\n VALUE:PROTOCOL_ID::INT AS protocol_id,\n partition_key,\n VALUE:data:category AS category,\n _inserted_timestamp,\n VALUE:data:chainTvls AS response\n FROM\n\nEXTERNAL.bronze.defillama_protocol_historical\nWHERE\n _inserted_timestamp >= (\n SELECT\n max(_inserted_timestamp)\n FROM\n EXTERNAL.bronze.defillama_protocol_tvl_history\n )\n \n)\nselect \n protocol_id,\n category,\n partition_key,\n response,\n \n \nmd5(cast(coalesce(cast(protocol_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_inserted_timestamp as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS bronze_defillama_protocol_historical_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n _inserted_timestamp,\n 'f3fd32af-64d3-4c75-bfb6-95e2946ea073' AS _invocation_id\nfrom \n protocol_base", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__defillama_chainlist": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__defillama_chainlist", "resource_type": "model", "package_name": "external_models", "path": "defillama/bronze/bronze__defillama_chainlist.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_chainlist.sql", "unique_id": "model.external_models.bronze__defillama_chainlist", "fqn": ["external_models", "defillama", "bronze", "bronze__defillama_chainlist"], "alias": "defillama_chainlist", "checksum": {"name": "sha256", "checksum": "551eb97ef4e388812b33bbb9f1979da750ba24c9da326fe1a5470494f325d509"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "delete+insert", "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "chain_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["defillama"], "description": "", "columns": {"CHAIN_ID": {"name": "CHAIN_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAIN": {"name": "CHAIN", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/bronze/bronze__defillama_chainlist.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "incremental_strategy": "delete+insert", "unique_key": "chain_id", "tags": ["defillama"]}, "created_at": 1760113502.4599254, "relation_name": "EXTERNAL.bronze.defillama_chainlist", "raw_code": "{{ config(\n materialized = 'incremental',\n incremental_strategy = 'delete+insert',\n unique_key = 'chain_id',\n tags = ['defillama']\n) }}\n\nWITH chainlist_base AS (\n\n SELECT\n live.udf_api(\n 'GET',\n 'https://chainid.network/chains.json',{},{}\n ) AS READ,\n SYSDATE() AS _inserted_timestamp\n),\nFINAL AS (\n SELECT\n VALUE :name :: STRING AS chain,\n VALUE :chain :: STRING AS chain_symbol,\n VALUE :icon :: STRING AS icon,\n VALUE :rpc AS rpc,\n VALUE :faucets AS faucets,\n VALUE :nativeCurrency AS native_currency_obj,\n native_currency_obj :name :: STRING AS token_name,\n TRY_TO_NUMBER(\n native_currency_obj :decimals :: STRING\n ) AS token_decimals,\n native_currency_obj :symbol :: STRING AS token_symbol,\n VALUE :infoURL :: STRING AS info_url,\n VALUE :shortName :: STRING AS short_name,\n VALUE :chainId :: STRING AS chain_id,\n VALUE :networkId :: STRING AS network_id,\n VALUE :explorers AS explorers,\n _inserted_timestamp\n FROM\n chainlist_base,\n LATERAL FLATTEN (input => READ :data)\n\n{% if is_incremental() %}\nWHERE\n chain_id NOT IN (\n SELECT\n DISTINCT chain_id\n FROM\n {{ this }}\n )\n{% endif %}\n)\nSELECT\n chain,\n chain_symbol,\n token_name,\n token_decimals,\n token_symbol,\n chain_id,\n network_id,\n icon,\n rpc,\n faucets,\n info_url,\n short_name,\n explorers,\n _inserted_timestamp\nFROM\n FINAL", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": []}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_chainlist.sql", "compiled": true, "compiled_code": "\n\nWITH chainlist_base AS (\n\n SELECT\n live.udf_api(\n 'GET',\n 'https://chainid.network/chains.json',{},{}\n ) AS READ,\n SYSDATE() AS _inserted_timestamp\n),\nFINAL AS (\n SELECT\n VALUE :name :: STRING AS chain,\n VALUE :chain :: STRING AS chain_symbol,\n VALUE :icon :: STRING AS icon,\n VALUE :rpc AS rpc,\n VALUE :faucets AS faucets,\n VALUE :nativeCurrency AS native_currency_obj,\n native_currency_obj :name :: STRING AS token_name,\n TRY_TO_NUMBER(\n native_currency_obj :decimals :: STRING\n ) AS token_decimals,\n native_currency_obj :symbol :: STRING AS token_symbol,\n VALUE :infoURL :: STRING AS info_url,\n VALUE :shortName :: STRING AS short_name,\n VALUE :chainId :: STRING AS chain_id,\n VALUE :networkId :: STRING AS network_id,\n VALUE :explorers AS explorers,\n _inserted_timestamp\n FROM\n chainlist_base,\n LATERAL FLATTEN (input => READ :data)\n\n\nWHERE\n chain_id NOT IN (\n SELECT\n DISTINCT chain_id\n FROM\n EXTERNAL.bronze.defillama_chainlist\n )\n\n)\nSELECT\n chain,\n chain_symbol,\n token_name,\n token_decimals,\n token_symbol,\n chain_id,\n network_id,\n icon,\n rpc,\n faucets,\n info_url,\n short_name,\n explorers,\n _inserted_timestamp\nFROM\n FINAL", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__defillama_perps": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__defillama_perps", "resource_type": "model", "package_name": "external_models", "path": "defillama/bronze/bronze__defillama_perps.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_perps.sql", "unique_id": "model.external_models.bronze__defillama_perps", "fqn": ["external_models", "defillama", "bronze", "bronze__defillama_perps"], "alias": "defillama_perps", "checksum": {"name": "sha256", "checksum": "7bd1e2a09346be3313169bc4a8254f45038d1e4a70c4b883b1379c6692cfb0e9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["defillama"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["protocol_id"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": ["protocol_id"]}, "tags": ["defillama"], "description": "", "columns": {"protocol_id": {"name": "protocol_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "protocol_slug": {"name": "protocol_slug", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "category": {"name": "category", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_inserted_timestamp": {"name": "_inserted_timestamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/bronze/bronze__defillama_perps.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": ["protocol_id"], "cluster_by": ["protocol_id"], "tags": ["defillama"]}, "created_at": 1760113502.4056816, "relation_name": "EXTERNAL.bronze.defillama_perps", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = ['protocol_id'],\n cluster_by = ['protocol_id'],\n tags = ['defillama']\n) }}\n\nWITH api_pull AS (\n\n SELECT\n PARSE_JSON(\n live.udf_api(\n 'GET',\n 'https://pro-api.llama.fi/{api_key}/api/overview/derivatives?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true',\n {},\n {},\n 'Vault/prod/external/defillama'\n )\n ) :data:protocols AS response,\n SYSDATE() AS _inserted_timestamp\n),\nlat_flat AS (\n SELECT\n r.value AS VALUE,\n _inserted_timestamp\n FROM\n api_pull,\n LATERAL FLATTEN (response) AS r\n),\nprotocol_expand AS (\n SELECT\n VALUE :defillamaId :: STRING AS protocol_id,\n VALUE :category :: STRING AS category,\n VALUE :name :: STRING AS NAME,\n VALUE :displayName :: STRING AS display_name,\n VALUE :module :: STRING AS module,\n VALUE :logo :: STRING AS logo,\n VALUE :chains AS chains,\n VALUE :protocolType :: STRING AS protocol_type,\n VALUE :methodologyURL :: STRING AS methodology_url,\n VALUE :methodology AS methodology,\n VALUE :parentProtocol :: STRING AS parent_protocol,\n VALUE :slug :: STRING AS slug,\n VALUE :linkedProtocols AS linked_protocols,\n _inserted_timestamp\n FROM\n lat_flat\n {% if is_incremental() %}\n where VALUE :defillamaId :: STRING NOT IN (\n select protocol_id from {{ this }}\n )\n {% endif %}\n)\nSELECT\n protocol_id,\n slug as protocol_slug,\n category,\n NAME,\n display_name,\n module,\n logo,\n chains,\n protocol_type,\n methodology_url,\n methodology,\n parent_protocol,\n linked_protocols,\n _inserted_timestamp,\n sysdate() as inserted_timestamp,\n sysdate() as modified_timestamp,\n '{{ invocation_id }}' as _invocation_id\nFROM\n protocol_expand", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": []}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_perps.sql", "compiled": true, "compiled_code": "\n\nWITH api_pull AS (\n\n SELECT\n PARSE_JSON(\n live.udf_api(\n 'GET',\n 'https://pro-api.llama.fi/{api_key}/api/overview/derivatives?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true',\n {},\n {},\n 'Vault/prod/external/defillama'\n )\n ) :data:protocols AS response,\n SYSDATE() AS _inserted_timestamp\n),\nlat_flat AS (\n SELECT\n r.value AS VALUE,\n _inserted_timestamp\n FROM\n api_pull,\n LATERAL FLATTEN (response) AS r\n),\nprotocol_expand AS (\n SELECT\n VALUE :defillamaId :: STRING AS protocol_id,\n VALUE :category :: STRING AS category,\n VALUE :name :: STRING AS NAME,\n VALUE :displayName :: STRING AS display_name,\n VALUE :module :: STRING AS module,\n VALUE :logo :: STRING AS logo,\n VALUE :chains AS chains,\n VALUE :protocolType :: STRING AS protocol_type,\n VALUE :methodologyURL :: STRING AS methodology_url,\n VALUE :methodology AS methodology,\n VALUE :parentProtocol :: STRING AS parent_protocol,\n VALUE :slug :: STRING AS slug,\n VALUE :linkedProtocols AS linked_protocols,\n _inserted_timestamp\n FROM\n lat_flat\n \n where VALUE :defillamaId :: STRING NOT IN (\n select protocol_id from EXTERNAL.bronze.defillama_perps\n )\n \n)\nSELECT\n protocol_id,\n slug as protocol_slug,\n category,\n NAME,\n display_name,\n module,\n logo,\n chains,\n protocol_type,\n methodology_url,\n methodology,\n parent_protocol,\n linked_protocols,\n _inserted_timestamp,\n sysdate() as inserted_timestamp,\n sysdate() as modified_timestamp,\n 'f3fd32af-64d3-4c75-bfb6-95e2946ea073' as _invocation_id\nFROM\n protocol_expand", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__defillama_usdc_usdt_supply": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__defillama_usdc_usdt_supply", "resource_type": "model", "package_name": "external_models", "path": "defillama/bronze/bronze__defillama_usdc_usdt_supply.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_usdc_usdt_supply.sql", "unique_id": "model.external_models.bronze__defillama_usdc_usdt_supply", "fqn": ["external_models", "defillama", "bronze", "bronze__defillama_usdc_usdt_supply"], "alias": "defillama_usdc_usdt_supply", "checksum": {"name": "sha256", "checksum": "ece15e18dcb29a09472c4d6e8dc4d863e4ad9a05dab81dd33550b24ff0de91d4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["stale"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["chain", "stablecoin_id", "_inserted_timestamp"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["stale"], "description": "", "columns": {"_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/defillama/bronze/bronze__defillama_usdc_usdt_supply.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": ["chain", "stablecoin_id", "_inserted_timestamp"], "tags": ["stale"]}, "created_at": 1760113502.4753888, "relation_name": "EXTERNAL.bronze.defillama_usdc_usdt_supply", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = ['chain', 'stablecoin_id','_inserted_timestamp'],\n tags = ['stale']\n) }}\n\nWITH usdt_supply AS (\n\n SELECT\n C.chain,\n 1 AS stablecoin_id,\n live.udf_api(\n 'GET',\n 'https://pro-api.llama.fi/{api_key}/stablecoins/stablecoincharts/' || C.chain || '?stablecoin=1',{},{},\n --usdt\n 'Vault/prod/external/defillama'\n ) AS READ,\n SYSDATE() AS _inserted_timestamp\n FROM\n {{ ref('bronze__defillama_usdt_usdc_chain_seed') }} C\n WHERE\n stablecoin_id = 1\n),\nusdc_supply AS (\n SELECT\n C.chain,\n 2 AS stablecoin_id,\n live.udf_api(\n 'GET',\n 'https://pro-api.llama.fi/{api_key}/stablecoins/stablecoincharts/' || C.chain || '?stablecoin=2',{},{},\n --usdc\n 'Vault/prod/external/defillama'\n ) AS READ,\n SYSDATE() AS _inserted_timestamp\n FROM\n {{ ref('bronze__defillama_usdt_usdc_chain_seed') }} C\n WHERE\n stablecoin_id = 2\n)\nSELECT\n chain,\n stablecoin_id,\n READ,\n _inserted_timestamp\nFROM\n usdt_supply\nUNION ALL\nSELECT\n chain,\n stablecoin_id,\n READ,\n _inserted_timestamp\nFROM\n usdc_supply", "language": "sql", "refs": [{"name": "bronze__defillama_usdt_usdc_chain_seed", "package": null, "version": null}, {"name": "bronze__defillama_usdt_usdc_chain_seed", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["seed.external_models.bronze__defillama_usdt_usdc_chain_seed"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_usdc_usdt_supply.sql", "compiled": true, "compiled_code": "\n\nWITH usdt_supply AS (\n\n SELECT\n C.chain,\n 1 AS stablecoin_id,\n live.udf_api(\n 'GET',\n 'https://pro-api.llama.fi/{api_key}/stablecoins/stablecoincharts/' || C.chain || '?stablecoin=1',{},{},\n --usdt\n 'Vault/prod/external/defillama'\n ) AS READ,\n SYSDATE() AS _inserted_timestamp\n FROM\n EXTERNAL.bronze.defillama_usdt_usdc_chain_seed C\n WHERE\n stablecoin_id = 1\n),\nusdc_supply AS (\n SELECT\n C.chain,\n 2 AS stablecoin_id,\n live.udf_api(\n 'GET',\n 'https://pro-api.llama.fi/{api_key}/stablecoins/stablecoincharts/' || C.chain || '?stablecoin=2',{},{},\n --usdc\n 'Vault/prod/external/defillama'\n ) AS READ,\n SYSDATE() AS _inserted_timestamp\n FROM\n EXTERNAL.bronze.defillama_usdt_usdc_chain_seed C\n WHERE\n stablecoin_id = 2\n)\nSELECT\n chain,\n stablecoin_id,\n READ,\n _inserted_timestamp\nFROM\n usdt_supply\nUNION ALL\nSELECT\n chain,\n stablecoin_id,\n READ,\n _inserted_timestamp\nFROM\n usdc_supply", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.streamline__bitquery_realtime": {"database": "EXTERNAL", "schema": "streamline", "name": "streamline__bitquery_realtime", "resource_type": "model", "package_name": "external_models", "path": "bitquery/streamline/streamline__bitquery_realtime.sql", "original_file_path": "models/bitquery/streamline/streamline__bitquery_realtime.sql", "unique_id": "model.external_models.streamline__bitquery_realtime", "fqn": ["external_models", "bitquery", "streamline", "streamline__bitquery_realtime"], "alias": "bitquery_realtime", "checksum": {"name": "sha256", "checksum": "d4fa1bc30ea17a9630df12e9683bd61836eb90a235838803a338ea3c91e554b4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline_realtime"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "\n \n \n SELECT\n NULL\n \n", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["streamline_realtime"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["streamline_realtime"], "post-hook": ["\n \n \n SELECT\n NULL\n \n"]}, "created_at": 1760113498.736975, "relation_name": "EXTERNAL.streamline.bitquery_realtime", "raw_code": "{{ config (\n materialized = \"view\",\n post_hook = fsc_utils.if_data_call_function_v2(\n func = 'streamline.udf_bulk_rest_api_v2',\n target = \"{{this.schema}}.{{this.identifier}}\",\n params ={ \"external_table\" :\"bitquery\",\n \"sql_limit\" :\"100\",\n \"producer_batch_size\" :\"100\",\n \"worker_batch_size\" :\"100\",\n \"async_concurrent_requests\": \"10\",\n \"sql_source\" :\"{{this.identifier}}\",\n \"order_by_column\": \"date_day\" }\n ),\n tags = ['streamline_realtime']\n) }}\n\nWITH metrics AS (\n\n SELECT\n date_day,\n blockchain,\n metric,\n query_text,\n variables\n FROM\n {{ ref(\"streamline__bitquery_metrics\") }} A\n LEFT JOIN {{ ref(\"streamline__bitquery_complete\") }}\n b USING (\n blockchain,\n metric,\n date_day\n )\n WHERE\n b._invocation_id IS NULL\n)\nSELECT\n TO_NUMBER(to_char(date_day, 'YYYYMMDD')) AS date_day,\n blockchain,\n metric,\n TO_NUMBER(to_char(SYSDATE() :: DATE, 'YYYYMMDD')) AS partition_key,\n {{ target.database }}.live.udf_api(\n 'POST',\n 'https://graphql.bitquery.io',\n OBJECT_CONSTRUCT(\n 'Content-Type',\n 'application/json',\n 'Authorization',\n 'Bearer {Authentication}'\n ),\n OBJECT_CONSTRUCT(\n 'query',\n query_text,\n 'variables',\n variables\n ),\n 'Vault/prod/external/bitquery'\n ) AS request\nFROM\n metrics", "language": "sql", "refs": [{"name": "streamline__bitquery_metrics", "package": null, "version": null}, {"name": "streamline__bitquery_complete", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_utils.if_data_call_function_v2"], "nodes": ["model.external_models.streamline__bitquery_metrics", "model.external_models.streamline__bitquery_complete"]}, "compiled_path": "target/compiled/external_models/models/bitquery/streamline/streamline__bitquery_realtime.sql", "compiled": true, "compiled_code": "\n\nWITH metrics AS (\n\n SELECT\n date_day,\n blockchain,\n metric,\n query_text,\n variables\n FROM\n EXTERNAL.streamline.bitquery_metrics A\n LEFT JOIN EXTERNAL.streamline.bitquery_complete\n b USING (\n blockchain,\n metric,\n date_day\n )\n WHERE\n b._invocation_id IS NULL\n)\nSELECT\n TO_NUMBER(to_char(date_day, 'YYYYMMDD')) AS date_day,\n blockchain,\n metric,\n TO_NUMBER(to_char(SYSDATE() :: DATE, 'YYYYMMDD')) AS partition_key,\n EXTERNAL.live.udf_api(\n 'POST',\n 'https://graphql.bitquery.io',\n OBJECT_CONSTRUCT(\n 'Content-Type',\n 'application/json',\n 'Authorization',\n 'Bearer {Authentication}'\n ),\n OBJECT_CONSTRUCT(\n 'query',\n query_text,\n 'variables',\n variables\n ),\n 'Vault/prod/external/bitquery'\n ) AS request\nFROM\n metrics", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.streamline__bitquery_complete": {"database": "EXTERNAL", "schema": "streamline", "name": "streamline__bitquery_complete", "resource_type": "model", "package_name": "external_models", "path": "bitquery/streamline/streamline__bitquery_complete.sql", "original_file_path": "models/bitquery/streamline/streamline__bitquery_complete.sql", "unique_id": "model.external_models.streamline__bitquery_complete", "fqn": ["external_models", "bitquery", "streamline", "streamline__bitquery_complete"], "alias": "bitquery_complete", "checksum": {"name": "sha256", "checksum": "a161f915d27d0b5be5464494e04d5afbd99b851ff3a8d40f1b6ad68491a31321"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline_realtime"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": [" date_day", "blockchain", "metric"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "merge_exclude_columns": ["inserted_timestamp"]}, "tags": ["streamline_realtime"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": [" date_day", "blockchain", "metric"], "merge_exclude_columns": ["inserted_timestamp"], "tags": ["streamline_realtime"]}, "created_at": 1760113498.7450707, "relation_name": "EXTERNAL.streamline.bitquery_complete", "raw_code": "-- depends_on: {{ ref('bronze__bitquery_FR') }}\n-- depends_on: {{ ref('bronze__bitquery') }}\n{{ config (\n materialized = \"incremental\",\n unique_key = [' date_day','blockchain','metric'],\n merge_exclude_columns = [\"inserted_timestamp\"],\n tags = ['streamline_realtime']\n) }}\n\nSELECT\n date_day,\n blockchain,\n metric,\n partition_key,\n _inserted_timestamp,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n file_name,\n '{{ invocation_id }}' AS _invocation_id,\nFROM\n\n{% if is_incremental() %}\n{{ ref('bronze__bitquery') }}\n{% else %}\n {{ ref('bronze__bitquery_FR') }}\n{% endif %}\nWHERE\n DATA :errors IS NULL\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_INSERTED_TIMESTAMP), '1970-01-01' :: DATE) max_INSERTED_TIMESTAMP\n FROM\n {{ this }})\n {% endif %}\n\n qualify ROW_NUMBER() over (\n PARTITION BY date_day,\n blockchain,\n metric\n ORDER BY\n _inserted_timestamp DESC\n ) = 1", "language": "sql", "refs": [{"name": "bronze__bitquery_FR", "package": null, "version": null}, {"name": "bronze__bitquery", "package": null, "version": null}, {"name": "bronze__bitquery_FR", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.external_models.bronze__bitquery_FR", "model.external_models.bronze__bitquery"]}, "compiled_path": "target/compiled/external_models/models/bitquery/streamline/streamline__bitquery_complete.sql", "compiled": true, "compiled_code": "-- depends_on: EXTERNAL.bronze.bitquery_FR\n-- depends_on: EXTERNAL.bronze.bitquery\n\n\nSELECT\n date_day,\n blockchain,\n metric,\n partition_key,\n _inserted_timestamp,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n file_name,\n 'f3fd32af-64d3-4c75-bfb6-95e2946ea073' AS _invocation_id,\nFROM\n\n\nEXTERNAL.bronze.bitquery\n\nWHERE\n DATA :errors IS NULL\n\n\nAND _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_INSERTED_TIMESTAMP), '1970-01-01' :: DATE) max_INSERTED_TIMESTAMP\n FROM\n EXTERNAL.streamline.bitquery_complete)\n \n\n qualify ROW_NUMBER() over (\n PARTITION BY date_day,\n blockchain,\n metric\n ORDER BY\n _inserted_timestamp DESC\n ) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.streamline__bitquery_metrics": {"database": "EXTERNAL", "schema": "streamline", "name": "streamline__bitquery_metrics", "resource_type": "model", "package_name": "external_models", "path": "bitquery/streamline/streamline__bitquery_metrics.sql", "original_file_path": "models/bitquery/streamline/streamline__bitquery_metrics.sql", "unique_id": "model.external_models.streamline__bitquery_metrics", "fqn": ["external_models", "bitquery", "streamline", "streamline__bitquery_metrics"], "alias": "bitquery_metrics", "checksum": {"name": "sha256", "checksum": "202eb06483621a8d0d31072077481f5d462f7eaa71e81886fe6923ea8206b228"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline_view"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["streamline_view"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["streamline_view"]}, "created_at": 1760113498.753175, "relation_name": "EXTERNAL.streamline.bitquery_metrics", "raw_code": "{{ config (\n materialized = \"view\",\n tags = ['streamline_view']\n) }}\n\nWITH metrics AS (\n\n SELECT\n 'hedera' AS blockchain,\n 'tx_count' AS metric,\n 'query ($network: HederaNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) { hedera(network: $network) { transactions(options: {asc: \"date.date\"}, date: {since: $from, till: $till}) { date {date(format: $dateFormat) } countBigInt}} }' AS query_text,\n 'Count of tx hashes by day' AS description\n UNION ALL\n SELECT\n 'ripple' AS blockchain,\n 'tx_count' AS metric,\n 'query ($network: RippleNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) { ripple(network: $network){ transactions(options: {asc: \"date.date\"}, date: {since: $from, till: $till}) { date: date { date(format: $dateFormat) } countBigInt }} }' AS query_text,\n 'Count of tx hashes by day' AS description\n UNION ALL\n SELECT\n 'moonbeam' AS blockchain,\n 'tx_count' AS metric,\n 'query ($network: EthereumNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) { ethereum(network: $network){ transactions(options: {asc: \"date.date\"}, date: {since: $from, till: $till}) { date: date { date(format: $dateFormat) } countBigInt }} }' AS query_text,\n 'Count of tx hashes by day' AS description\n UNION ALL\n SELECT\n 'celo_mainnet' AS blockchain,\n 'tx_count' AS metric,\n 'query ($network: EthereumNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) { ethereum(network: $network){ transactions(options: {asc: \"date.date\"}, date: {since: $from, till: $till}) { date: date { date(format: $dateFormat) } countBigInt }} }' AS query_text,\n 'Count of tx hashes by day' AS description\n UNION ALL\n SELECT\n 'algorand' AS blockchain,\n 'tx_count' AS metric,\n 'query ($network: AlgorandNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) { algorand(network: $network) { transactions(options: {asc: \"date.date\"}, date: {till: $till, since: $from} ) { date: date { date(format: $dateFormat) } countBigInt }} }' AS query_text,\n 'Count of tx hashes by day' AS description\n UNION ALL\n SELECT\n 'filecoin' AS blockchain,\n 'tx_count' AS metric,\n 'query ($network: FilecoinNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) { filecoin(network: $network) { messages(options: {asc: \"date.date\"}, date: {since: $from, till: $till}) { date: date { date(format: $dateFormat) } countBigInt }} }' AS query_text,\n 'Count of messages by day' AS description\n UNION ALL\n SELECT\n 'cardano' AS blockchain,\n 'tx_count' AS metric,\n 'query ($network: CardanoNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) { cardano(network: $network) { transactions(options: {asc: \"date.date\"}, date: {since: $from, till: $till}) { date: date { date(format: $dateFormat) } countBigInt }} }' AS query_text,\n 'Count of messages by day' AS description\n UNION ALL\n SELECT\n 'hedera' AS blockchain,\n 'active_users' AS metric,\n 'query ($network: HederaNetwork!, $from: ISO8601DateTime, $till: ISO8601DateTime) {hedera(network: $network) {transactions(date: {since: $from, till: $till}) { countBigInt(uniq: payer_account) } } }' AS query_text,\n 'distinct counts of payer accounts over the last 30 days' AS description\n UNION ALL\n SELECT\n 'ripple' AS blockchain,\n 'active_users' AS metric,\n 'query ($network: RippleNetwork!, $from: ISO8601DateTime, $till: ISO8601DateTime) { ripple(network: $network) { transactions( date: {since: $from, till: $till}) { countBigInt(uniq: senders) } } } ' AS query_text,\n 'distinct counts of senders over the last 30 days' AS description\n UNION ALL\n SELECT\n 'moonbeam' AS blockchain,\n 'active_users' AS metric,\n 'query ($network: EthereumNetwork!, $from: ISO8601DateTime, $till: ISO8601DateTime) { ethereum(network: $network){ transactions(date: {since: $from, till: $till}) { countBigInt(uniq: senders) }} }' AS query_text,\n 'distinct counts of senders over the last 30 days' AS description\n UNION ALL\n SELECT\n 'celo_mainnet' AS blockchain,\n 'active_users' AS metric,\n 'query ($network: EthereumNetwork!, $from: ISO8601DateTime, $till: ISO8601DateTime) { ethereum(network: $network){ transactions(date: {since: $from, till: $till}) { countBigInt(uniq: senders) }} }' AS query_text,\n 'distinct counts of senders over the last 30 days' AS description\n UNION ALL\n SELECT\n 'algorand' AS blockchain,\n 'active_users' AS metric,\n 'query ($network: AlgorandNetwork!, $from: ISO8601DateTime, $till: ISO8601DateTime) { algorand(network: $network) { transactions( date: {since: $from, till: $till} ) { countBigInt(uniq: senders) }} }' AS query_text,\n 'distinct counts of senders over the last 30 days' AS description\n UNION ALL\n SELECT\n 'filecoin' AS blockchain,\n 'active_users' AS metric,\n 'query ($network: FilecoinNetwork!, $from: ISO8601DateTime, $till: ISO8601DateTime) { filecoin(network: $network) { messages(date: {since: $from, till: $till}) {senders: countBigInt(uniq: senders) }} }' AS query_text,\n 'distinct counts of message senders over the last 30 days' AS description\n UNION ALL\n SELECT\n 'cardano' AS blockchain,\n 'active_users' AS metric,\n 'query ($network: CardanoNetwork!, $from: ISO8601DateTime, $till: ISO8601DateTime) { cardano(network: $network) { activeAddresses(date: {since: $from, till: $till}) { countBigInt(uniq: address) }} }' AS query_text,\n 'distinct counts of addresses over the last 30 days' AS description\n)\nSELECT\n date_day,\n DATEADD(\n 'day',\n -30,\n date_day\n ) AS date_day_minus_30,\n blockchain,\n metric,\n query_text,\n OBJECT_CONSTRUCT(\n 'limit',\n '1',\n 'offset',\n '0',\n 'network',\n blockchain,\n 'from',\n CASE\n WHEN metric = 'active_users' THEN date_day_minus_30\n ELSE date_day\n END,\n 'till',\n date_day,\n 'dateFormat',\n '%Y-%m-%d'\n ) AS variables,\n description\nFROM\n {{ source(\n 'crosschain_core',\n 'dim_dates'\n ) }}\n CROSS JOIN metrics\nWHERE\n date_day >= '2025-01-01'\n AND date_day < SYSDATE() :: DATE", "language": "sql", "refs": [], "sources": [["crosschain_core", "dim_dates"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.crosschain_core.dim_dates"]}, "compiled_path": "target/compiled/external_models/models/bitquery/streamline/streamline__bitquery_metrics.sql", "compiled": true, "compiled_code": "\n\nWITH metrics AS (\n\n SELECT\n 'hedera' AS blockchain,\n 'tx_count' AS metric,\n 'query ($network: HederaNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) { hedera(network: $network) { transactions(options: {asc: \"date.date\"}, date: {since: $from, till: $till}) { date {date(format: $dateFormat) } countBigInt}} }' AS query_text,\n 'Count of tx hashes by day' AS description\n UNION ALL\n SELECT\n 'ripple' AS blockchain,\n 'tx_count' AS metric,\n 'query ($network: RippleNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) { ripple(network: $network){ transactions(options: {asc: \"date.date\"}, date: {since: $from, till: $till}) { date: date { date(format: $dateFormat) } countBigInt }} }' AS query_text,\n 'Count of tx hashes by day' AS description\n UNION ALL\n SELECT\n 'moonbeam' AS blockchain,\n 'tx_count' AS metric,\n 'query ($network: EthereumNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) { ethereum(network: $network){ transactions(options: {asc: \"date.date\"}, date: {since: $from, till: $till}) { date: date { date(format: $dateFormat) } countBigInt }} }' AS query_text,\n 'Count of tx hashes by day' AS description\n UNION ALL\n SELECT\n 'celo_mainnet' AS blockchain,\n 'tx_count' AS metric,\n 'query ($network: EthereumNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) { ethereum(network: $network){ transactions(options: {asc: \"date.date\"}, date: {since: $from, till: $till}) { date: date { date(format: $dateFormat) } countBigInt }} }' AS query_text,\n 'Count of tx hashes by day' AS description\n UNION ALL\n SELECT\n 'algorand' AS blockchain,\n 'tx_count' AS metric,\n 'query ($network: AlgorandNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) { algorand(network: $network) { transactions(options: {asc: \"date.date\"}, date: {till: $till, since: $from} ) { date: date { date(format: $dateFormat) } countBigInt }} }' AS query_text,\n 'Count of tx hashes by day' AS description\n UNION ALL\n SELECT\n 'filecoin' AS blockchain,\n 'tx_count' AS metric,\n 'query ($network: FilecoinNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) { filecoin(network: $network) { messages(options: {asc: \"date.date\"}, date: {since: $from, till: $till}) { date: date { date(format: $dateFormat) } countBigInt }} }' AS query_text,\n 'Count of messages by day' AS description\n UNION ALL\n SELECT\n 'cardano' AS blockchain,\n 'tx_count' AS metric,\n 'query ($network: CardanoNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) { cardano(network: $network) { transactions(options: {asc: \"date.date\"}, date: {since: $from, till: $till}) { date: date { date(format: $dateFormat) } countBigInt }} }' AS query_text,\n 'Count of messages by day' AS description\n UNION ALL\n SELECT\n 'hedera' AS blockchain,\n 'active_users' AS metric,\n 'query ($network: HederaNetwork!, $from: ISO8601DateTime, $till: ISO8601DateTime) {hedera(network: $network) {transactions(date: {since: $from, till: $till}) { countBigInt(uniq: payer_account) } } }' AS query_text,\n 'distinct counts of payer accounts over the last 30 days' AS description\n UNION ALL\n SELECT\n 'ripple' AS blockchain,\n 'active_users' AS metric,\n 'query ($network: RippleNetwork!, $from: ISO8601DateTime, $till: ISO8601DateTime) { ripple(network: $network) { transactions( date: {since: $from, till: $till}) { countBigInt(uniq: senders) } } } ' AS query_text,\n 'distinct counts of senders over the last 30 days' AS description\n UNION ALL\n SELECT\n 'moonbeam' AS blockchain,\n 'active_users' AS metric,\n 'query ($network: EthereumNetwork!, $from: ISO8601DateTime, $till: ISO8601DateTime) { ethereum(network: $network){ transactions(date: {since: $from, till: $till}) { countBigInt(uniq: senders) }} }' AS query_text,\n 'distinct counts of senders over the last 30 days' AS description\n UNION ALL\n SELECT\n 'celo_mainnet' AS blockchain,\n 'active_users' AS metric,\n 'query ($network: EthereumNetwork!, $from: ISO8601DateTime, $till: ISO8601DateTime) { ethereum(network: $network){ transactions(date: {since: $from, till: $till}) { countBigInt(uniq: senders) }} }' AS query_text,\n 'distinct counts of senders over the last 30 days' AS description\n UNION ALL\n SELECT\n 'algorand' AS blockchain,\n 'active_users' AS metric,\n 'query ($network: AlgorandNetwork!, $from: ISO8601DateTime, $till: ISO8601DateTime) { algorand(network: $network) { transactions( date: {since: $from, till: $till} ) { countBigInt(uniq: senders) }} }' AS query_text,\n 'distinct counts of senders over the last 30 days' AS description\n UNION ALL\n SELECT\n 'filecoin' AS blockchain,\n 'active_users' AS metric,\n 'query ($network: FilecoinNetwork!, $from: ISO8601DateTime, $till: ISO8601DateTime) { filecoin(network: $network) { messages(date: {since: $from, till: $till}) {senders: countBigInt(uniq: senders) }} }' AS query_text,\n 'distinct counts of message senders over the last 30 days' AS description\n UNION ALL\n SELECT\n 'cardano' AS blockchain,\n 'active_users' AS metric,\n 'query ($network: CardanoNetwork!, $from: ISO8601DateTime, $till: ISO8601DateTime) { cardano(network: $network) { activeAddresses(date: {since: $from, till: $till}) { countBigInt(uniq: address) }} }' AS query_text,\n 'distinct counts of addresses over the last 30 days' AS description\n)\nSELECT\n date_day,\n DATEADD(\n 'day',\n -30,\n date_day\n ) AS date_day_minus_30,\n blockchain,\n metric,\n query_text,\n OBJECT_CONSTRUCT(\n 'limit',\n '1',\n 'offset',\n '0',\n 'network',\n blockchain,\n 'from',\n CASE\n WHEN metric = 'active_users' THEN date_day_minus_30\n ELSE date_day\n END,\n 'till',\n date_day,\n 'dateFormat',\n '%Y-%m-%d'\n ) AS variables,\n description\nFROM\n crosschain.core.dim_dates\n CROSS JOIN metrics\nWHERE\n date_day >= '2025-01-01'\n AND date_day < SYSDATE() :: DATE", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bitquery__active_users": {"database": "EXTERNAL", "schema": "bitquery", "name": "bitquery__active_users", "resource_type": "model", "package_name": "external_models", "path": "bitquery/gold/bitquery__active_users.sql", "original_file_path": "models/bitquery/gold/bitquery__active_users.sql", "unique_id": "model.external_models.bitquery__active_users", "fqn": ["external_models", "bitquery", "gold", "bitquery__active_users"], "alias": "active_users", "checksum": {"name": "sha256", "checksum": "285eaf87c8eb3d75696110cfc0df12a149efc1a512c533f8f898dff30bdc2692"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["bitquery"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["blockchain", "metric", "as_of_date"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["bitquery"], "description": "This model returns the number of active users for each blockchain and as of date. The distinct number of users is from the 30 days prior to the as of date.\n", "columns": {"BLOCKCHAIN": {"name": "BLOCKCHAIN", "description": "The blockchain where the active users are from.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "METRIC": {"name": "METRIC", "description": "The metric name - always 'active_users'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AS_OF_DATE": {"name": "AS_OF_DATE", "description": "The date when the active users are counted.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ACTIVE_USERS": {"name": "ACTIVE_USERS", "description": "The number of active users. The distinct number of users is from the 30 days prior to the as of date.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/bitquery/gold/bitquery__active_users.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": ["blockchain", "metric", "as_of_date"], "tags": ["bitquery"]}, "created_at": 1760113502.4983172, "relation_name": "EXTERNAL.bitquery.active_users", "raw_code": "-- depends_on: {{ ref('bronze__bitquery') }}\n{{ config(\n materialized = 'incremental',\n unique_key = ['blockchain', 'metric', 'as_of_date'],\n tags = ['bitquery']\n) }}\n\nWITH base AS(\n\n SELECT\n A.blockchain,\n A.metric,\n A.date_Day AS as_of_date,\n COALESCE(\n REGEXP_SUBSTR(\n A.data,\n '\"countBigInt\"\\\\s*:\\\\s*\"([^\"]+)\"',\n 1,\n 1,\n 'e',\n 1\n ),\n REGEXP_SUBSTR(\n A.data,\n '\"senders\"\\\\s*:\\\\s*\"([^\"]+)\"',\n 1,\n 1,\n 'e',\n 1\n )\n ) active_users,\n A._inserted_timestamp\n FROM\n\n{% if is_incremental() %}\n{{ ref('bronze__bitquery') }}\n{% else %}\n {{ ref('bronze__bitquery_FR') }}\n{% endif %}\n\nA\nWHERE\n A.data :errors IS NULL\n AND A.metric = 'active_users'\n AND active_users IS NOT NULL\n\n{% if is_incremental() %}\nAND _inserted_timestamp > (\n SELECT\n MAX(_inserted_timestamp)\n FROM\n {{ this }}\n)\n{% endif %}\n)\nSELECT\n blockchain,\n metric,\n as_of_date,\n active_users,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['blockchain','metric','as_of_date']\n ) }} AS active_users_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n base qualify ROW_NUMBER() over (\n PARTITION BY blockchain,\n metric,\n as_of_date\n ORDER BY\n _inserted_timestamp DESC\n ) = 1", "language": "sql", "refs": [{"name": "bronze__bitquery", "package": null, "version": null}, {"name": "bronze__bitquery_FR", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.external_models.bronze__bitquery", "model.external_models.bronze__bitquery_FR"]}, "compiled_path": "target/compiled/external_models/models/bitquery/gold/bitquery__active_users.sql", "compiled": true, "compiled_code": "-- depends_on: EXTERNAL.bronze.bitquery\n\n\nWITH base AS(\n\n SELECT\n A.blockchain,\n A.metric,\n A.date_Day AS as_of_date,\n COALESCE(\n REGEXP_SUBSTR(\n A.data,\n '\"countBigInt\"\\\\s*:\\\\s*\"([^\"]+)\"',\n 1,\n 1,\n 'e',\n 1\n ),\n REGEXP_SUBSTR(\n A.data,\n '\"senders\"\\\\s*:\\\\s*\"([^\"]+)\"',\n 1,\n 1,\n 'e',\n 1\n )\n ) active_users,\n A._inserted_timestamp\n FROM\n\n\nEXTERNAL.bronze.bitquery\n\n\nA\nWHERE\n A.data :errors IS NULL\n AND A.metric = 'active_users'\n AND active_users IS NOT NULL\n\n\nAND _inserted_timestamp > (\n SELECT\n MAX(_inserted_timestamp)\n FROM\n EXTERNAL.bitquery.active_users\n)\n\n)\nSELECT\n blockchain,\n metric,\n as_of_date,\n active_users,\n _inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(blockchain as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(metric as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(as_of_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS active_users_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'f3fd32af-64d3-4c75-bfb6-95e2946ea073' AS _invocation_id\nFROM\n base qualify ROW_NUMBER() over (\n PARTITION BY blockchain,\n metric,\n as_of_date\n ORDER BY\n _inserted_timestamp DESC\n ) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bitquery__tx_count": {"database": "EXTERNAL", "schema": "bitquery", "name": "bitquery__tx_count", "resource_type": "model", "package_name": "external_models", "path": "bitquery/gold/bitquery__tx_count.sql", "original_file_path": "models/bitquery/gold/bitquery__tx_count.sql", "unique_id": "model.external_models.bitquery__tx_count", "fqn": ["external_models", "bitquery", "gold", "bitquery__tx_count"], "alias": "tx_count", "checksum": {"name": "sha256", "checksum": "7ce4b804718ed32d4d4cf9d058bbe7666cb6e31f5d230bd76d2c8e3e77307fec"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["bitquery"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["blockchain", "metric", "block_date"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["bitquery"], "description": "This model returns the number of transactions for each blockchain and block date.\n", "columns": {"BLOCKCHAIN": {"name": "BLOCKCHAIN", "description": "The blockchain where the transactions are from.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "METRIC": {"name": "METRIC", "description": "The metric name - always 'tx_count'.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_DATE": {"name": "BLOCK_DATE", "description": "The date when the transactions are counted.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_COUNT": {"name": "TX_COUNT", "description": "The number of transactions for this date.\n", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/bitquery/gold/bitquery__tx_count.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": ["blockchain", "metric", "block_date"], "tags": ["bitquery"]}, "created_at": 1760113502.5174737, "relation_name": "EXTERNAL.bitquery.tx_count", "raw_code": "-- depends_on: {{ ref('bronze__bitquery') }}\n{{ config(\n materialized = 'incremental',\n unique_key = ['blockchain', 'metric', 'block_date'],\n tags = ['bitquery']\n) }}\n\nWITH base AS (\n\n SELECT\n A.blockchain,\n A.metric,\n REGEXP_SUBSTR(\n A.data,\n '\"date\"\\\\s*:\\\\s*\\\\{\\\\s*\"date\"\\\\s*:\\\\s*\"([^\"]+)\"',\n 1,\n 1,\n 'e',\n 1\n ) AS block_date,\n REGEXP_SUBSTR(\n A.data,\n '\"countBigInt\"\\\\s*:\\\\s*\"([^\"]+)\"',\n 1,\n 1,\n 'e',\n 1\n ) AS tx_count,\n A._inserted_timestamp\n FROM\n\n{% if is_incremental() %}\n{{ ref('bronze__bitquery') }}\n{% else %}\n {{ ref('bronze__bitquery_FR') }}\n{% endif %}\n\nA\nWHERE\n A.data :errors IS NULL\n AND A.metric = 'tx_count'\n AND tx_count IS NOT NULL\n\n{% if is_incremental() %}\nAND _inserted_timestamp > (\n SELECT\n MAX(_inserted_timestamp)\n FROM\n {{ this }}\n)\n{% endif %}\n)\nSELECT\n blockchain,\n metric,\n block_date,\n tx_count,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['blockchain','metric','block_date']\n ) }} AS accounts_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n base qualify ROW_NUMBER() over (\n PARTITION BY blockchain,\n metric,\n block_date\n ORDER BY\n _inserted_timestamp DESC\n ) = 1", "language": "sql", "refs": [{"name": "bronze__bitquery", "package": null, "version": null}, {"name": "bronze__bitquery_FR", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.external_models.bronze__bitquery", "model.external_models.bronze__bitquery_FR"]}, "compiled_path": "target/compiled/external_models/models/bitquery/gold/bitquery__tx_count.sql", "compiled": true, "compiled_code": "-- depends_on: EXTERNAL.bronze.bitquery\n\n\nWITH base AS (\n\n SELECT\n A.blockchain,\n A.metric,\n REGEXP_SUBSTR(\n A.data,\n '\"date\"\\\\s*:\\\\s*\\\\{\\\\s*\"date\"\\\\s*:\\\\s*\"([^\"]+)\"',\n 1,\n 1,\n 'e',\n 1\n ) AS block_date,\n REGEXP_SUBSTR(\n A.data,\n '\"countBigInt\"\\\\s*:\\\\s*\"([^\"]+)\"',\n 1,\n 1,\n 'e',\n 1\n ) AS tx_count,\n A._inserted_timestamp\n FROM\n\n\nEXTERNAL.bronze.bitquery\n\n\nA\nWHERE\n A.data :errors IS NULL\n AND A.metric = 'tx_count'\n AND tx_count IS NOT NULL\n\n\nAND _inserted_timestamp > (\n SELECT\n MAX(_inserted_timestamp)\n FROM\n EXTERNAL.bitquery.tx_count\n)\n\n)\nSELECT\n blockchain,\n metric,\n block_date,\n tx_count,\n _inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(blockchain as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(metric as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(block_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS accounts_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'f3fd32af-64d3-4c75-bfb6-95e2946ea073' AS _invocation_id\nFROM\n base qualify ROW_NUMBER() over (\n PARTITION BY blockchain,\n metric,\n block_date\n ORDER BY\n _inserted_timestamp DESC\n ) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__bitquery_FR": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__bitquery_FR", "resource_type": "model", "package_name": "external_models", "path": "bitquery/bronze/bronze__bitquery_FR.sql", "original_file_path": "models/bitquery/bronze/bronze__bitquery_FR.sql", "unique_id": "model.external_models.bronze__bitquery_FR", "fqn": ["external_models", "bitquery", "bronze", "bronze__bitquery_FR"], "alias": "bitquery_FR", "checksum": {"name": "sha256", "checksum": "fa6dc59c53b1aaf86f4ae49f27f10d6807f86b48d2e0a46d1f048fe670e4edf9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view"}, "created_at": 1760113498.7756867, "relation_name": "EXTERNAL.bronze.bitquery_FR", "raw_code": "{{ config (\n materialized = 'view'\n) }}\n{{ streamline_external_table_FR_query_v2(\n model = 'bitquery',\n partition_function = \"CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 3), '_', 1) AS INTEGER)\",\n partition_name = \"partition_key\",\n other_cols = \"to_date(value:DATE_DAY::STRING,'YYYYMMDD') AS DATE_DAY, value:BLOCKCHAIN::STRING AS BLOCKCHAIN, value:METRIC::STRING AS METRIC\"\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "bitquery"], ["bronze_streamline", "bitquery"]], "metrics": [], "depends_on": {"macros": ["macro.external_models.streamline_external_table_FR_query_v2"], "nodes": ["source.external_models.bronze_streamline.bitquery"]}, "compiled_path": "target/compiled/external_models/models/bitquery/bronze/bronze__bitquery_FR.sql", "compiled": true, "compiled_code": "\n\nWITH meta AS (\n SELECT\n LAST_MODIFIED::timestamp_ntz AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 3), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => 'streamline.external.bitquery'\n )\n ) A\n)\nSELECT\n to_date(value:DATE_DAY::STRING,'YYYYMMDD') AS DATE_DAY, value:BLOCKCHAIN::STRING AS BLOCKCHAIN, value:METRIC::STRING AS METRIC,\n DATA,\n _inserted_timestamp,\n s.partition_key,\n s.value AS VALUE,\n file_name\nFROM\n streamline.external.bitquery\n s\nJOIN \n meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\nWHERE\n b.partition_key = s.partition_key\n AND (\n data:error:code IS NULL\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__bitquery": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__bitquery", "resource_type": "model", "package_name": "external_models", "path": "bitquery/bronze/bronze__bitquery.sql", "original_file_path": "models/bitquery/bronze/bronze__bitquery.sql", "unique_id": "model.external_models.bronze__bitquery", "fqn": ["external_models", "bitquery", "bronze", "bronze__bitquery"], "alias": "bitquery", "checksum": {"name": "sha256", "checksum": "963ce05ac877ad7cb92a3826baa154ac912dc4d787740af563cf52c9d396d0d7"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view"}, "created_at": 1760113498.7820969, "relation_name": "EXTERNAL.bronze.bitquery", "raw_code": "{{ config (\n materialized = 'view'\n) }}\n{{ streamline_external_table_query_v2(\n model = 'bitquery',\n partition_function = \"CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 3), '_', 1) AS INTEGER)\",\n partition_name = \"partition_key\",\n other_cols = \"to_date(value:DATE_DAY::STRING,'YYYYMMDD') AS DATE_DAY, to_date(value:DATE_DAY::STRING,'YYYYMMDD') AS DATE_DAY, value:BLOCKCHAIN::STRING AS BLOCKCHAIN, value:METRIC::STRING AS METRIC\"\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "bitquery"], ["bronze_streamline", "bitquery"]], "metrics": [], "depends_on": {"macros": ["macro.external_models.streamline_external_table_query_v2"], "nodes": ["source.external_models.bronze_streamline.bitquery"]}, "compiled_path": "target/compiled/external_models/models/bitquery/bronze/bronze__bitquery.sql", "compiled": true, "compiled_code": "\n\nWITH meta AS (\n SELECT\n LAST_MODIFIED::timestamp_ntz AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 3), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_file_registration_history(\n start_time => DATEADD('day', -3, CURRENT_TIMESTAMP()),\n table_name => 'streamline.external.bitquery')\n ) A\n)\nSELECT\n to_date(value:DATE_DAY::STRING,'YYYYMMDD') AS DATE_DAY, to_date(value:DATE_DAY::STRING,'YYYYMMDD') AS DATE_DAY, value:BLOCKCHAIN::STRING AS BLOCKCHAIN, value:METRIC::STRING AS METRIC,\n DATA,\n _inserted_timestamp,\n s.partition_key,\n s.value AS VALUE,\n file_name\nFROM\n streamline.external.bitquery\n s\nJOIN \n meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\nWHERE\n b.partition_key = s.partition_key\n AND (\n data:error:code IS NULL\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.silver__artemis": {"database": "EXTERNAL", "schema": "silver", "name": "silver__artemis", "resource_type": "model", "package_name": "external_models", "path": "artemis/silver/silver__artemis.sql", "original_file_path": "models/artemis/silver/silver__artemis.sql", "unique_id": "model.external_models.silver__artemis", "fqn": ["external_models", "artemis", "silver", "silver__artemis"], "alias": "artemis", "checksum": {"name": "sha256", "checksum": "3ce41759378574009bccd7b75cca8f4caff4d9b3b8152974777c0f392f61ceb8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["silver", "artemis"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["metric_date", "blockchain", "metric"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["silver", "artemis"], "description": "Parsed Artemis blockchain metrics data", "columns": {"metric_date": {"name": "metric_date", "description": "The date of the metric measurement", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blockchain": {"name": "blockchain", "description": "Blockchain name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "metric_value": {"name": "metric_value", "description": "Reported metric value", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "artemis_id": {"name": "artemis_id", "description": "Unique identifier for each metric data point", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_inserted_timestamp": {"name": "_inserted_timestamp", "description": "Timestamp when record was inserted into the bronze layer", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/artemis/silver/silver__artemis.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": ["metric_date", "blockchain", "metric"], "tags": ["silver", "artemis"]}, "created_at": 1760113502.5374885, "relation_name": "EXTERNAL.silver.artemis", "raw_code": "-- depends_on: {{ ref(\"bronze__artemis\")}}\n-- depends_on: {{ ref(\"bronze__artemis_FR\")}}\n{{ config(\n materialized = \"incremental\",\n unique_key = ['metric_date', 'blockchain', 'metric'],\n tags = ['silver', 'artemis']\n) }}\n\nWITH source_data AS (\n\n SELECT\n raw_data,\n partition_key,\n _inserted_timestamp,\n file_name\n FROM\n\n{% if is_incremental() %}\n{{ ref('bronze__artemis') }}\n{% else %}\n {{ ref('bronze__artemis_FR') }}\n{% endif %}\n\n{% if is_incremental() %}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp)\n FROM\n {{ this }}\n )\n{% endif %}\n),\nparsed_data AS (\n SELECT\n s._inserted_timestamp,\n s.partition_key,\n s.file_name,\n blockchain_flat.key AS blockchain,\n metric_flat.key AS metric,\n metrics.value :date :: STRING AS metric_date,\n metrics.value :val AS metric_value\n FROM\n source_data s,\n LATERAL FLATTEN(\n input => COALESCE(\n raw_data :data :artemis_ids,\n raw_data :data :symbols\n )\n ) AS blockchain_flat,\n LATERAL FLATTEN(\n input => blockchain_flat.value\n ) AS metric_flat,\n LATERAL FLATTEN(\n input => metric_flat.value\n ) AS metrics\n WHERE\n COALESCE(\n raw_data :data :artemis_ids,\n raw_data :data :symbols\n ) IS NOT NULL\n)\nSELECT\n TO_DATE(metric_date) AS metric_date,\n blockchain,\n metric,\n metric_value,\n partition_key,\n _inserted_timestamp,\n file_name,\n {{ dbt_utils.generate_surrogate_key(['blockchain', 'metric', 'metric_date']) }} AS artemis_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n parsed_data qualify(ROW_NUMBER() over (PARTITION BY metric_date, blockchain, metric\nORDER BY\n _inserted_timestamp DESC) = 1)", "language": "sql", "refs": [{"name": "bronze__artemis", "package": null, "version": null}, {"name": "bronze__artemis_FR", "package": null, "version": null}, {"name": "bronze__artemis_FR", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.external_models.bronze__artemis", "model.external_models.bronze__artemis_FR"]}, "compiled_path": "target/compiled/external_models/models/artemis/silver/silver__artemis.sql", "compiled": true, "compiled_code": "-- depends_on: EXTERNAL.bronze.artemis\n-- depends_on: EXTERNAL.bronze.artemis_FR\n\n\nWITH source_data AS (\n\n SELECT\n raw_data,\n partition_key,\n _inserted_timestamp,\n file_name\n FROM\n\n\nEXTERNAL.bronze.artemis\n\n\n\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp)\n FROM\n EXTERNAL.silver.artemis\n )\n\n),\nparsed_data AS (\n SELECT\n s._inserted_timestamp,\n s.partition_key,\n s.file_name,\n blockchain_flat.key AS blockchain,\n metric_flat.key AS metric,\n metrics.value :date :: STRING AS metric_date,\n metrics.value :val AS metric_value\n FROM\n source_data s,\n LATERAL FLATTEN(\n input => COALESCE(\n raw_data :data :artemis_ids,\n raw_data :data :symbols\n )\n ) AS blockchain_flat,\n LATERAL FLATTEN(\n input => blockchain_flat.value\n ) AS metric_flat,\n LATERAL FLATTEN(\n input => metric_flat.value\n ) AS metrics\n WHERE\n COALESCE(\n raw_data :data :artemis_ids,\n raw_data :data :symbols\n ) IS NOT NULL\n)\nSELECT\n TO_DATE(metric_date) AS metric_date,\n blockchain,\n metric,\n metric_value,\n partition_key,\n _inserted_timestamp,\n file_name,\n \n \nmd5(cast(coalesce(cast(blockchain as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(metric as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(metric_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS artemis_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'f3fd32af-64d3-4c75-bfb6-95e2946ea073' AS _invocation_id\nFROM\n parsed_data qualify(ROW_NUMBER() over (PARTITION BY metric_date, blockchain, metric\nORDER BY\n _inserted_timestamp DESC) = 1)", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.streamline__artemis_metrics": {"database": "EXTERNAL", "schema": "streamline", "name": "streamline__artemis_metrics", "resource_type": "model", "package_name": "external_models", "path": "artemis/streamline/streamline__artemis_metrics.sql", "original_file_path": "models/artemis/streamline/streamline__artemis_metrics.sql", "unique_id": "model.external_models.streamline__artemis_metrics", "fqn": ["external_models", "artemis", "streamline", "streamline__artemis_metrics"], "alias": "artemis_metrics", "checksum": {"name": "sha256", "checksum": "a0616d34cd5174df2e4cc6e3bc6d4f3d3fe6065763e24971f66a4612c06fcc56"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline_view"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["streamline_view"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["streamline_view"]}, "created_at": 1760113498.798684, "relation_name": "EXTERNAL.streamline.artemis_metrics", "raw_code": "{{ config(\n materialized = 'view',\n tags = ['streamline_view']\n) }}\n\n-- Chains: Scroll, Sui, Stacks, Cardano, Celo, Linea, MultiversX, Starknet, Immutable, Celestia, Wormhole, Acala, Astar, zkSync, Gnosis, Metis, Centrifuge, Fantom, Sonic, Moonbeam, Unichain, Algorand, Berachain\n-- Metrics: DAILY_TXNS (tx_count), DAU (active_users), DAU Cumulative for (TAM? - might introduce double counting since unique wallets are counted daily)\n\nWITH chains AS (\n\n SELECT\n 'scroll' AS artemis_id\n UNION ALL\n SELECT\n 'sui'\n UNION ALL\n SELECT\n 'stacks'\n UNION ALL\n SELECT\n 'cardano'\n UNION ALL\n SELECT\n 'celo'\n UNION ALL\n SELECT\n 'linea'\n UNION ALL\n SELECT\n 'multiversx'\n UNION ALL\n SELECT\n 'starknet'\n UNION ALL\n SELECT\n 'immutable_x'\n UNION ALL\n SELECT\n 'celestia'\n UNION ALL\n SELECT\n 'wormhole'\n UNION ALL\n SELECT\n 'acala'\n UNION ALL\n SELECT\n 'astar'\n UNION ALL\n SELECT\n 'zksync'\n UNION ALL\n SELECT\n 'gnosis'\n UNION ALL\n SELECT\n 'metis'\n UNION ALL\n SELECT\n 'centrifuge'\n UNION ALL\n SELECT\n 'fantom'\n UNION ALL\n SELECT\n 'sonic'\n UNION ALL\n SELECT\n 'moonbeam'\n UNION ALL\n SELECT\n 'unichain'\n UNION ALL\n SELECT\n 'algorand'\n UNION ALL\n SELECT\n 'berachain'\n),\nmetrics AS (\n SELECT\n artemis_id AS blockchain,\n 'tx_count' AS metric,\n '{Service}/data/' AS url,\n 'daily_txns' AS endpoint,\n 'Daily transaction count' AS description\n FROM\n chains\n UNION ALL\n SELECT\n artemis_id AS blockchain,\n 'active_users' AS metric,\n '{Service}/data/' AS url,\n 'dau' AS endpoint,\n 'Daily active users count' AS description\n FROM\n chains\n)\nSELECT\n date_day,\n blockchain,\n metric,\n endpoint,\n url,\n description\nFROM\n {{ source(\n 'crosschain_core',\n 'dim_dates'\n ) }}\n CROSS JOIN metrics\nWHERE date_day >= '2025-01-01'", "language": "sql", "refs": [], "sources": [["crosschain_core", "dim_dates"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.crosschain_core.dim_dates"]}, "compiled_path": "target/compiled/external_models/models/artemis/streamline/streamline__artemis_metrics.sql", "compiled": true, "compiled_code": "\n\n-- Chains: Scroll, Sui, Stacks, Cardano, Celo, Linea, MultiversX, Starknet, Immutable, Celestia, Wormhole, Acala, Astar, zkSync, Gnosis, Metis, Centrifuge, Fantom, Sonic, Moonbeam, Unichain, Algorand, Berachain\n-- Metrics: DAILY_TXNS (tx_count), DAU (active_users), DAU Cumulative for (TAM? - might introduce double counting since unique wallets are counted daily)\n\nWITH chains AS (\n\n SELECT\n 'scroll' AS artemis_id\n UNION ALL\n SELECT\n 'sui'\n UNION ALL\n SELECT\n 'stacks'\n UNION ALL\n SELECT\n 'cardano'\n UNION ALL\n SELECT\n 'celo'\n UNION ALL\n SELECT\n 'linea'\n UNION ALL\n SELECT\n 'multiversx'\n UNION ALL\n SELECT\n 'starknet'\n UNION ALL\n SELECT\n 'immutable_x'\n UNION ALL\n SELECT\n 'celestia'\n UNION ALL\n SELECT\n 'wormhole'\n UNION ALL\n SELECT\n 'acala'\n UNION ALL\n SELECT\n 'astar'\n UNION ALL\n SELECT\n 'zksync'\n UNION ALL\n SELECT\n 'gnosis'\n UNION ALL\n SELECT\n 'metis'\n UNION ALL\n SELECT\n 'centrifuge'\n UNION ALL\n SELECT\n 'fantom'\n UNION ALL\n SELECT\n 'sonic'\n UNION ALL\n SELECT\n 'moonbeam'\n UNION ALL\n SELECT\n 'unichain'\n UNION ALL\n SELECT\n 'algorand'\n UNION ALL\n SELECT\n 'berachain'\n),\nmetrics AS (\n SELECT\n artemis_id AS blockchain,\n 'tx_count' AS metric,\n '{Service}/data/' AS url,\n 'daily_txns' AS endpoint,\n 'Daily transaction count' AS description\n FROM\n chains\n UNION ALL\n SELECT\n artemis_id AS blockchain,\n 'active_users' AS metric,\n '{Service}/data/' AS url,\n 'dau' AS endpoint,\n 'Daily active users count' AS description\n FROM\n chains\n)\nSELECT\n date_day,\n blockchain,\n metric,\n endpoint,\n url,\n description\nFROM\n crosschain.core.dim_dates\n CROSS JOIN metrics\nWHERE date_day >= '2025-01-01'", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.streamline__artemis_realtime": {"database": "EXTERNAL", "schema": "streamline", "name": "streamline__artemis_realtime", "resource_type": "model", "package_name": "external_models", "path": "artemis/streamline/streamline__artemis_realtime.sql", "original_file_path": "models/artemis/streamline/streamline__artemis_realtime.sql", "unique_id": "model.external_models.streamline__artemis_realtime", "fqn": ["external_models", "artemis", "streamline", "streamline__artemis_realtime"], "alias": "artemis_realtime", "checksum": {"name": "sha256", "checksum": "ab30ef11672e97ab3851aa625bec3c82b6624a00ec53d399a8ca9be78d419ca6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline_realtime"], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [{"sql": "\n \n \n SELECT\n NULL\n \n", "transaction": true, "index": null}], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["streamline_realtime"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["streamline_realtime"], "post-hook": ["\n \n \n SELECT\n NULL\n \n"]}, "created_at": 1760113498.8013628, "relation_name": "EXTERNAL.streamline.artemis_realtime", "raw_code": "{{ config (\n materialized = \"view\",\n post_hook = fsc_utils.if_data_call_function_v2(\n func = 'streamline.udf_bulk_rest_api_v2',\n target = \"{{this.schema}}.{{this.identifier}}\",\n params ={ \"external_table\" :\"artemis\",\n \"sql_limit\" :\"10\",\n \"producer_batch_size\" :\"10\",\n \"worker_batch_size\" :\"10\",\n \"async_concurrent_requests\": \"1\",\n \"sql_source\" :\"{{this.identifier}}\",\n \"order_by_column\": \"date_day\" }\n ),\n tags = ['streamline_realtime']\n) }}\n\nWITH complete_data AS (\n \n SELECT\n date_day,\n _invocation_id,\n MAX(date_day) OVER () AS max_complete_date\n FROM\n {{ ref(\"streamline__artemis_complete\") }}\n \n),\ndate_params AS (\n SELECT\n COALESCE(\n DATEADD(day, 1, (SELECT MAX(max_complete_date) FROM complete_data)),\n '2025-01-01'::DATE -- Default backfill start date\n ) AS min_date,\n DATEADD(day, -2, SYSDATE()) AS max_date\n FROM\n complete_data\n),\nmetrics AS (\n SELECT\n m.date_day,\n m.blockchain,\n m.metric,\n m.url,\n m.endpoint,\n TO_CHAR(p.min_date, 'YYYY-MM-DD') AS start_date,\n TO_CHAR(p.max_date, 'YYYY-MM-DD') AS end_date\n FROM\n {{ ref(\"streamline__artemis_metrics\") }} m\n CROSS JOIN date_params p\n LEFT JOIN complete_data c\n ON m.date_day = c.date_day\n WHERE\n m.date_day between p.min_date and p.max_date\n AND c._invocation_id IS NULL\n),\nbatch_data AS (\n SELECT \n MIN(date_day) AS first_day,\n url,\n REPLACE(LISTAGG(DISTINCT endpoint, ',') WITHIN GROUP (ORDER BY endpoint), ',', '%2C') AS encoded_endpoints,\n REPLACE(LISTAGG(DISTINCT blockchain, ',') WITHIN GROUP (ORDER BY blockchain), ',', '%2C') AS encoded_ids,\n MIN(start_date) AS min_start_date,\n MAX(end_date) AS max_end_date\n FROM \n metrics\n GROUP BY \n 2\n)\nSELECT\n TO_NUMBER(TO_CHAR(first_day, 'YYYYMMDD')) AS DATE_DAY,\n TO_NUMBER(TO_CHAR(SYSDATE(), 'YYYYMMDD')) AS partition_key,\n {{ target.database }}.live.udf_api(\n 'GET',\n url || encoded_endpoints || '?APIKey={Authentication}' || '&symbols=' || encoded_ids || '&startDate=' || min_start_date || '&endDate=' || max_end_date, {}, {},\n 'Vault/prod/external/artemis'\n ) AS request\nFROM\n batch_data", "language": "sql", "refs": [{"name": "streamline__artemis_complete", "package": null, "version": null}, {"name": "streamline__artemis_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_utils.if_data_call_function_v2"], "nodes": ["model.external_models.streamline__artemis_complete", "model.external_models.streamline__artemis_metrics"]}, "compiled_path": "target/compiled/external_models/models/artemis/streamline/streamline__artemis_realtime.sql", "compiled": true, "compiled_code": "\n\nWITH complete_data AS (\n \n SELECT\n date_day,\n _invocation_id,\n MAX(date_day) OVER () AS max_complete_date\n FROM\n EXTERNAL.streamline.artemis_complete\n \n),\ndate_params AS (\n SELECT\n COALESCE(\n DATEADD(day, 1, (SELECT MAX(max_complete_date) FROM complete_data)),\n '2025-01-01'::DATE -- Default backfill start date\n ) AS min_date,\n DATEADD(day, -2, SYSDATE()) AS max_date\n FROM\n complete_data\n),\nmetrics AS (\n SELECT\n m.date_day,\n m.blockchain,\n m.metric,\n m.url,\n m.endpoint,\n TO_CHAR(p.min_date, 'YYYY-MM-DD') AS start_date,\n TO_CHAR(p.max_date, 'YYYY-MM-DD') AS end_date\n FROM\n EXTERNAL.streamline.artemis_metrics m\n CROSS JOIN date_params p\n LEFT JOIN complete_data c\n ON m.date_day = c.date_day\n WHERE\n m.date_day between p.min_date and p.max_date\n AND c._invocation_id IS NULL\n),\nbatch_data AS (\n SELECT \n MIN(date_day) AS first_day,\n url,\n REPLACE(LISTAGG(DISTINCT endpoint, ',') WITHIN GROUP (ORDER BY endpoint), ',', '%2C') AS encoded_endpoints,\n REPLACE(LISTAGG(DISTINCT blockchain, ',') WITHIN GROUP (ORDER BY blockchain), ',', '%2C') AS encoded_ids,\n MIN(start_date) AS min_start_date,\n MAX(end_date) AS max_end_date\n FROM \n metrics\n GROUP BY \n 2\n)\nSELECT\n TO_NUMBER(TO_CHAR(first_day, 'YYYYMMDD')) AS DATE_DAY,\n TO_NUMBER(TO_CHAR(SYSDATE(), 'YYYYMMDD')) AS partition_key,\n EXTERNAL.live.udf_api(\n 'GET',\n url || encoded_endpoints || '?APIKey={Authentication}' || '&symbols=' || encoded_ids || '&startDate=' || min_start_date || '&endDate=' || max_end_date, {}, {},\n 'Vault/prod/external/artemis'\n ) AS request\nFROM\n batch_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.streamline__artemis_complete": {"database": "EXTERNAL", "schema": "streamline", "name": "streamline__artemis_complete", "resource_type": "model", "package_name": "external_models", "path": "artemis/streamline/streamline__artemis_complete.sql", "original_file_path": "models/artemis/streamline/streamline__artemis_complete.sql", "unique_id": "model.external_models.streamline__artemis_complete", "fqn": ["external_models", "artemis", "streamline", "streamline__artemis_complete"], "alias": "artemis_complete", "checksum": {"name": "sha256", "checksum": "aba7bae11a7df62ef68b7c8d34bce3d6247cbae89d3e60f35954aecbf2a0dec4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["streamline_realtime"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["date_day"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "merge_exclude_columns": ["inserted_timestamp"]}, "tags": ["streamline_realtime"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": ["date_day"], "merge_exclude_columns": ["inserted_timestamp"], "tags": ["streamline_realtime"]}, "created_at": 1760113498.8097303, "relation_name": "EXTERNAL.streamline.artemis_complete", "raw_code": "-- depends_on: {{ ref(\"bronze__artemis\")}}\n-- depends_on: {{ ref(\"bronze__artemis_FR\")}}\n{{ config (\n materialized = \"incremental\",\n unique_key = ['date_day'],\n merge_exclude_columns = [\"inserted_timestamp\"],\n tags = ['streamline_realtime']\n) }}\n\nWITH bronze AS (\n \n SELECT\n date_day AS request_date_day,\n data,\n partition_key,\n _inserted_timestamp,\n file_name\n FROM\n\n {% if is_incremental() %}\n {{ ref('bronze__artemis') }}\n {% else %}\n {{ ref('bronze__artemis_FR') }}\n {% endif %}\n WHERE\n DATA IS NOT NULL\n\n {% if is_incremental() %}\n AND _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_INSERTED_TIMESTAMP), '1970-01-01' :: DATE) max_INSERTED_TIMESTAMP\n FROM\n {{ this }})\n {% endif %}\n),\nextracted_dates AS (\n SELECT\n request_date_day,\n TO_DATE(date_vals.value:date::STRING) AS extracted_date,\n data,\n partition_key,\n _inserted_timestamp,\n file_name\n FROM\n bronze,\n LATERAL FLATTEN(INPUT => data:data:artemis_ids) AS blockchain_flat,\n LATERAL FLATTEN(INPUT => blockchain_flat.value) AS metric_flat,\n LATERAL FLATTEN(INPUT => metric_flat.value) AS date_vals\n WHERE\n data:data:artemis_ids IS NOT NULL\n)\nSELECT\n extracted_date as date_day,\n partition_key,\n _inserted_timestamp,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n file_name,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n extracted_dates\n\nQUALIFY ROW_NUMBER() OVER (\n PARTITION BY extracted_date\n ORDER BY\n _inserted_timestamp DESC\n) = 1", "language": "sql", "refs": [{"name": "bronze__artemis", "package": null, "version": null}, {"name": "bronze__artemis_FR", "package": null, "version": null}, {"name": "bronze__artemis_FR", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental"], "nodes": ["model.external_models.bronze__artemis", "model.external_models.bronze__artemis_FR"]}, "compiled_path": "target/compiled/external_models/models/artemis/streamline/streamline__artemis_complete.sql", "compiled": true, "compiled_code": "-- depends_on: EXTERNAL.bronze.artemis\n-- depends_on: EXTERNAL.bronze.artemis_FR\n\n\nWITH bronze AS (\n \n SELECT\n date_day AS request_date_day,\n data,\n partition_key,\n _inserted_timestamp,\n file_name\n FROM\n\n \n EXTERNAL.bronze.artemis\n \n WHERE\n DATA IS NOT NULL\n\n \n AND _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_INSERTED_TIMESTAMP), '1970-01-01' :: DATE) max_INSERTED_TIMESTAMP\n FROM\n EXTERNAL.streamline.artemis_complete)\n \n),\nextracted_dates AS (\n SELECT\n request_date_day,\n TO_DATE(date_vals.value:date::STRING) AS extracted_date,\n data,\n partition_key,\n _inserted_timestamp,\n file_name\n FROM\n bronze,\n LATERAL FLATTEN(INPUT => data:data:artemis_ids) AS blockchain_flat,\n LATERAL FLATTEN(INPUT => blockchain_flat.value) AS metric_flat,\n LATERAL FLATTEN(INPUT => metric_flat.value) AS date_vals\n WHERE\n data:data:artemis_ids IS NOT NULL\n)\nSELECT\n extracted_date as date_day,\n partition_key,\n _inserted_timestamp,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n file_name,\n 'f3fd32af-64d3-4c75-bfb6-95e2946ea073' AS _invocation_id\nFROM\n extracted_dates\n\nQUALIFY ROW_NUMBER() OVER (\n PARTITION BY extracted_date\n ORDER BY\n _inserted_timestamp DESC\n) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.artemis__tx_count": {"database": "EXTERNAL", "schema": "artemis", "name": "artemis__tx_count", "resource_type": "model", "package_name": "external_models", "path": "artemis/gold/artemis__tx_count.sql", "original_file_path": "models/artemis/gold/artemis__tx_count.sql", "unique_id": "model.external_models.artemis__tx_count", "fqn": ["external_models", "artemis", "gold", "artemis__tx_count"], "alias": "tx_count", "checksum": {"name": "sha256", "checksum": "21db174e61477917335dcf345a846117f495d7822db9044e8e18482b4d3916a0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["artemis"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["block_date", "blockchain", "metric"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["artemis"], "description": "This model returns the number of transactions for each blockchain and block date", "columns": {"BLOCKCHAIN": {"name": "BLOCKCHAIN", "description": "The blockchain where tx count is counted from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "METRIC": {"name": "METRIC", "description": "The metric name is always set as 'tx_count'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DESCRIPTION": {"name": "DESCRIPTION", "description": "The metric description", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_DATE": {"name": "BLOCK_DATE", "description": "The date as of which the tx count is counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_COUNT": {"name": "TX_COUNT", "description": "The number of tx count for the given blockchain and as of date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_COUNT_ID": {"name": "TX_COUNT_ID", "description": "The surrogate key for the tx count.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/artemis/gold/artemis__tx_count.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": ["block_date", "blockchain", "metric"], "tags": ["artemis"]}, "created_at": 1760113502.5629015, "relation_name": "EXTERNAL.artemis.tx_count", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = ['block_date', 'blockchain', 'metric'],\n tags = ['artemis']\n) }}\n\nSELECT\n blockchain,\n 'tx_count' AS metric,\n 'The reported number of transactions as of the block_date' AS description,\n metric_date AS block_date,\n metric_value :: INT AS tx_count,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(['blockchain', 'metric', 'block_date']) }} AS tx_count_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n {{ ref('silver__artemis') }}\nWHERE\n metric = 'daily_txns'\n AND NULLIF(TRIM(metric_value), 'null') IS NOT NULL\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01' :: timestamp_ntz)\n FROM\n {{ this }})\n {% endif %}\n\n qualify ROW_NUMBER() over (\n PARTITION BY tx_count_id\n ORDER BY\n _inserted_timestamp DESC\n ) = 1", "language": "sql", "refs": [{"name": "silver__artemis", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental"], "nodes": ["model.external_models.silver__artemis"]}, "compiled_path": "target/compiled/external_models/models/artemis/gold/artemis__tx_count.sql", "compiled": true, "compiled_code": "\n\nSELECT\n blockchain,\n 'tx_count' AS metric,\n 'The reported number of transactions as of the block_date' AS description,\n metric_date AS block_date,\n metric_value :: INT AS tx_count,\n _inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(blockchain as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(metric as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(block_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS tx_count_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'f3fd32af-64d3-4c75-bfb6-95e2946ea073' AS _invocation_id\nFROM\n EXTERNAL.silver.artemis\nWHERE\n metric = 'daily_txns'\n AND NULLIF(TRIM(metric_value), 'null') IS NOT NULL\n\n\nAND _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01' :: timestamp_ntz)\n FROM\n EXTERNAL.artemis.tx_count)\n \n\n qualify ROW_NUMBER() over (\n PARTITION BY tx_count_id\n ORDER BY\n _inserted_timestamp DESC\n ) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.artemis__active_users": {"database": "EXTERNAL", "schema": "artemis", "name": "artemis__active_users", "resource_type": "model", "package_name": "external_models", "path": "artemis/gold/artemis__active_users.sql", "original_file_path": "models/artemis/gold/artemis__active_users.sql", "unique_id": "model.external_models.artemis__active_users", "fqn": ["external_models", "artemis", "gold", "artemis__active_users"], "alias": "active_users", "checksum": {"name": "sha256", "checksum": "53ef3d2b69284c51e1dc4a4bd2102a36b16eb32346a9174205cf2e3914b251e1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["artemis"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["block_date", "blockchain", "metric"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["artemis"], "description": "This model returns the number of active users for each blockchain and block date", "columns": {"BLOCKCHAIN": {"name": "BLOCKCHAIN", "description": "The blockchain where active users are counted from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "METRIC": {"name": "METRIC", "description": "The metric name is always set as 'active_users'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DESCRIPTION": {"name": "DESCRIPTION", "description": "The metric description", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_DATE": {"name": "BLOCK_DATE", "description": "The date as of which the active users are counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ACTIVE_USERS": {"name": "ACTIVE_USERS", "description": "The number of active users for the given blockchain and as of date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ACTIVE_USERS_ID": {"name": "ACTIVE_USERS_ID", "description": "The surrogate key for the tx count.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/artemis/gold/artemis__active_users.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": ["block_date", "blockchain", "metric"], "tags": ["artemis"]}, "created_at": 1760113502.5483632, "relation_name": "EXTERNAL.artemis.active_users", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = ['block_date', 'blockchain', 'metric'],\n tags = ['artemis']\n) }}\n\nSELECT\n blockchain,\n 'active_users' AS metric,\n 'The reported number of active users as of the block_date' AS description,\n metric_date AS block_date,\n metric_value :: INT AS active_users,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(['blockchain', 'metric', 'block_date']) }} AS active_users_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n {{ ref('silver__artemis') }}\nWHERE\n metric = 'dau'\n AND NULLIF(TRIM(metric_value), 'null') IS NOT NULL\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01' :: timestamp_ntz)\n FROM\n {{ this }})\n {% endif %}\n\n qualify ROW_NUMBER() over (\n PARTITION BY active_users_id\n ORDER BY\n _inserted_timestamp DESC\n ) = 1", "language": "sql", "refs": [{"name": "silver__artemis", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental"], "nodes": ["model.external_models.silver__artemis"]}, "compiled_path": "target/compiled/external_models/models/artemis/gold/artemis__active_users.sql", "compiled": true, "compiled_code": "\n\nSELECT\n blockchain,\n 'active_users' AS metric,\n 'The reported number of active users as of the block_date' AS description,\n metric_date AS block_date,\n metric_value :: INT AS active_users,\n _inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(blockchain as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(metric as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(block_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS active_users_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n 'f3fd32af-64d3-4c75-bfb6-95e2946ea073' AS _invocation_id\nFROM\n EXTERNAL.silver.artemis\nWHERE\n metric = 'dau'\n AND NULLIF(TRIM(metric_value), 'null') IS NOT NULL\n\n\nAND _inserted_timestamp >= (\n SELECT\n COALESCE(MAX(_inserted_timestamp), '1970-01-01' :: timestamp_ntz)\n FROM\n EXTERNAL.artemis.active_users)\n \n\n qualify ROW_NUMBER() over (\n PARTITION BY active_users_id\n ORDER BY\n _inserted_timestamp DESC\n ) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__artemis_FR": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__artemis_FR", "resource_type": "model", "package_name": "external_models", "path": "artemis/bronze/bronze__artemis_FR.sql", "original_file_path": "models/artemis/bronze/bronze__artemis_FR.sql", "unique_id": "model.external_models.bronze__artemis_FR", "fqn": ["external_models", "artemis", "bronze", "bronze__artemis_FR"], "alias": "artemis_FR", "checksum": {"name": "sha256", "checksum": "6948f697be5e244d7ba50d4cd3a97b81e486ee6eb7414dc3d6d63de0759a85d8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view"}, "created_at": 1760113498.8357458, "relation_name": "EXTERNAL.bronze.artemis_FR", "raw_code": "{{ config (\n materialized = 'view'\n) }}\n{{ streamline_external_table_FR_query_v2(\n model = 'artemis',\n partition_function = \"CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 3), '_', 1) AS INTEGER)\",\n partition_name = \"partition_key\",\n other_cols = \"to_date(value:DATE_DAY::STRING,'YYYYMMDD') AS DATE_DAY, value:data AS raw_data\"\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "artemis"], ["bronze_streamline", "artemis"]], "metrics": [], "depends_on": {"macros": ["macro.external_models.streamline_external_table_FR_query_v2"], "nodes": ["source.external_models.bronze_streamline.artemis"]}, "compiled_path": "target/compiled/external_models/models/artemis/bronze/bronze__artemis_FR.sql", "compiled": true, "compiled_code": "\n\nWITH meta AS (\n SELECT\n LAST_MODIFIED::timestamp_ntz AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 3), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => 'streamline.external.artemis'\n )\n ) A\n)\nSELECT\n to_date(value:DATE_DAY::STRING,'YYYYMMDD') AS DATE_DAY, value:data AS raw_data,\n DATA,\n _inserted_timestamp,\n s.partition_key,\n s.value AS VALUE,\n file_name\nFROM\n streamline.external.artemis\n s\nJOIN \n meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\nWHERE\n b.partition_key = s.partition_key\n AND (\n data:error:code IS NULL\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__artemis": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__artemis", "resource_type": "model", "package_name": "external_models", "path": "artemis/bronze/bronze__artemis.sql", "original_file_path": "models/artemis/bronze/bronze__artemis.sql", "unique_id": "model.external_models.bronze__artemis", "fqn": ["external_models", "artemis", "bronze", "bronze__artemis"], "alias": "artemis", "checksum": {"name": "sha256", "checksum": "5696d202b573015239449124b08241d11cc03e4d4673bce33f2a9697ad18dbbc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view"}, "created_at": 1760113498.842699, "relation_name": "EXTERNAL.bronze.artemis", "raw_code": "{{ config (\n materialized = 'view'\n) }}\n{{ streamline_external_table_query_v2(\n model = 'artemis',\n partition_function = \"CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 3), '_', 1) AS INTEGER)\",\n partition_name = \"partition_key\",\n other_cols = \"to_date(value:DATE_DAY::STRING,'YYYYMMDD') AS DATE_DAY, value:data AS raw_data\"\n) }}", "language": "sql", "refs": [], "sources": [["bronze_streamline", "artemis"], ["bronze_streamline", "artemis"]], "metrics": [], "depends_on": {"macros": ["macro.external_models.streamline_external_table_query_v2"], "nodes": ["source.external_models.bronze_streamline.artemis"]}, "compiled_path": "target/compiled/external_models/models/artemis/bronze/bronze__artemis.sql", "compiled": true, "compiled_code": "\n\nWITH meta AS (\n SELECT\n LAST_MODIFIED::timestamp_ntz AS _inserted_timestamp,\n file_name,\n CAST(SPLIT_PART(SPLIT_PART(file_name, '/', 3), '_', 1) AS INTEGER) AS partition_key\n FROM\n TABLE(\n information_schema.external_table_file_registration_history(\n start_time => DATEADD('day', -3, CURRENT_TIMESTAMP()),\n table_name => 'streamline.external.artemis')\n ) A\n)\nSELECT\n to_date(value:DATE_DAY::STRING,'YYYYMMDD') AS DATE_DAY, value:data AS raw_data,\n DATA,\n _inserted_timestamp,\n s.partition_key,\n s.value AS VALUE,\n file_name\nFROM\n streamline.external.artemis\n s\nJOIN \n meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\nWHERE\n b.partition_key = s.partition_key\n AND (\n data:error:code IS NULL\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.blast__fact_leaderboard": {"database": "EXTERNAL", "schema": "blast", "name": "blast__fact_leaderboard", "resource_type": "model", "package_name": "external_models", "path": "blast/blast__fact_leaderboard.sql", "original_file_path": "models/blast/blast__fact_leaderboard.sql", "unique_id": "model.external_models.blast__fact_leaderboard", "fqn": ["external_models", "blast", "blast__fact_leaderboard"], "alias": "fact_leaderboard", "checksum": {"name": "sha256", "checksum": "b0c11d2f4330845ebf7c616786bc19e1ce6aba4c16734e6af365d4ab1b5b1967"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["blast"], "meta": {"database_tags": {"table": {"PROTOCOL": "BLAST"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["blast"], "description": "This table contains daily snapshots of the top 500 leaderboards for Blast Points and Gold.", "columns": {"DATE": {"name": "DATE", "description": "The date of the leaderboard snapshot.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LEADERBOARD_TYPE": {"name": "LEADERBOARD_TYPE", "description": "The criterion by which the leaderboard is ranked, either points or gold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "RANK": {"name": "RANK", "description": "The rank (1-500) associated with the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NAME": {"name": "NAME", "description": "The name of the user associated with that rank.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "POINTS_AMOUNT": {"name": "POINTS_AMOUNT", "description": "The amount of points accrued by the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "GOLD_AMOUNT": {"name": "GOLD_AMOUNT", "description": "The amount of gold accrued by the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INVITED_BY": {"name": "INVITED_BY", "description": "The user who referred the associated user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "BLAST"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/blast/blast__fact_leaderboard.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["blast"], "meta": {"database_tags": {"table": {"PROTOCOL": "BLAST"}}}}, "created_at": 1760113502.5945098, "relation_name": "EXTERNAL.blast.fact_leaderboard", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['blast'],\n meta={\n 'database_tags':{\n 'table': {\n 'PROTOCOL': 'BLAST'\n }\n }\n }\n) }}\n\nSELECT\n DATE,\n leaderboard_type,\n RANK,\n NAME,\n points_amount,\n gold_amount,\n invited_by\nFROM \n {{ ref('bronze__blast_leaderboard') }}", "language": "sql", "refs": [{"name": "bronze__blast_leaderboard", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.external_models.bronze__blast_leaderboard"]}, "compiled_path": "target/compiled/external_models/models/blast/blast__fact_leaderboard.sql", "compiled": true, "compiled_code": "\n\nSELECT\n DATE,\n leaderboard_type,\n RANK,\n NAME,\n points_amount,\n gold_amount,\n invited_by\nFROM \n EXTERNAL.bronze.blast_leaderboard", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__blast_leaderboard": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__blast_leaderboard", "resource_type": "model", "package_name": "external_models", "path": "blast/bronze__blast_leaderboard.sql", "original_file_path": "models/blast/bronze__blast_leaderboard.sql", "unique_id": "model.external_models.bronze__blast_leaderboard", "fqn": ["external_models", "blast", "bronze__blast_leaderboard"], "alias": "blast_leaderboard", "checksum": {"name": "sha256", "checksum": "394c45b9cbbb820df50bc7c93a55de3868f9699f4f7c846d1b8f98b0f9a8d211"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["blast"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["blast"], "description": "", "columns": {"RANK": {"name": "RANK", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ID": {"name": "ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/blast/bronze__blast_leaderboard.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": "id", "full_refresh": false, "tags": ["blast"]}, "created_at": 1760113502.5776515, "relation_name": "EXTERNAL.bronze.blast_leaderboard", "raw_code": "{{ config(\n materialized = 'incremental',\n unique_key = 'id',\n full_refresh = false,\n tags = ['blast']\n) }}\n\nWITH api_call AS (\n\n SELECT\n live.udf_api(\n 'GET',\n 'https://waitlist-api.prod.blast.io/v1/leaderboard/top-season-2?sortBy=GOLD',{},{}\n ) AS READ,\n 'gold' AS leaderboard_type,\n SYSDATE() AS _inserted_timestamp\n UNION ALL\n SELECT\n live.udf_api(\n 'GET',\n 'https://waitlist-api.prod.blast.io/v1/leaderboard/top-season-2?sortBy=POINTS',{},{}\n ) AS READ,\n 'points' AS leaderboard_type,\n SYSDATE() AS _inserted_timestamp\n)\nSELECT\n SYSDATE() :: DATE AS DATE,\n leaderboard_type,\n VALUE :rank :: INTEGER AS RANK,\n VALUE :displayName :: STRING AS NAME,\n VALUE :points :: INTEGER AS points_amount,\n VALUE :gold :: FLOAT AS gold_amount,\n VALUE :referrerDisplayName :: STRING AS invited_by,\n {{ dbt_utils.generate_surrogate_key(\n ['date', 'rank', 'leaderboard_type']\n ) }} AS id,\n _inserted_timestamp\nFROM\n api_call,\n LATERAL FLATTEN (\n input => READ :data :users\n ) f\n\n{% if is_incremental() %}\nWHERE\n _inserted_timestamp :: DATE > (\n SELECT\n MAX(_inserted_timestamp) :: DATE\n FROM\n {{ this }}\n )\n{% endif %}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental"], "nodes": []}, "compiled_path": "target/compiled/external_models/models/blast/bronze__blast_leaderboard.sql", "compiled": true, "compiled_code": "\n\nWITH api_call AS (\n\n SELECT\n live.udf_api(\n 'GET',\n 'https://waitlist-api.prod.blast.io/v1/leaderboard/top-season-2?sortBy=GOLD',{},{}\n ) AS READ,\n 'gold' AS leaderboard_type,\n SYSDATE() AS _inserted_timestamp\n UNION ALL\n SELECT\n live.udf_api(\n 'GET',\n 'https://waitlist-api.prod.blast.io/v1/leaderboard/top-season-2?sortBy=POINTS',{},{}\n ) AS READ,\n 'points' AS leaderboard_type,\n SYSDATE() AS _inserted_timestamp\n)\nSELECT\n SYSDATE() :: DATE AS DATE,\n leaderboard_type,\n VALUE :rank :: INTEGER AS RANK,\n VALUE :displayName :: STRING AS NAME,\n VALUE :points :: INTEGER AS points_amount,\n VALUE :gold :: FLOAT AS gold_amount,\n VALUE :referrerDisplayName :: STRING AS invited_by,\n \n \nmd5(cast(coalesce(cast(date as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(rank as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(leaderboard_type as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS id,\n _inserted_timestamp\nFROM\n api_call,\n LATERAL FLATTEN (\n input => READ :data :users\n ) f\n\n\nWHERE\n _inserted_timestamp :: DATE > (\n SELECT\n MAX(_inserted_timestamp) :: DATE\n FROM\n EXTERNAL.bronze.blast_leaderboard\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.tokenflow_starknet__decoded_events": {"database": "EXTERNAL", "schema": "tokenflow_starknet", "name": "tokenflow_starknet__decoded_events", "resource_type": "model", "package_name": "external_models", "path": "tokenflow/starknet/tokenflow_starknet__decoded_events.sql", "original_file_path": "models/tokenflow/starknet/tokenflow_starknet__decoded_events.sql", "unique_id": "model.external_models.tokenflow_starknet__decoded_events", "fqn": ["external_models", "tokenflow", "starknet", "tokenflow_starknet__decoded_events"], "alias": "decoded_events", "checksum": {"name": "sha256", "checksum": "db4f93e56222302c4875613f923152090aaddec10e258dc8bc98748b502bba5a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["tokenflow"], "meta": {"database_tags": {"table": {"PURPOSE": "DECODED", "PROTOCOL": "TOKENFLOW, STARKNET"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["tokenflow"], "description": "Table updates ceased after February 1, 2024. This table contains decoded event level data for the Starknet blockchain, sourced from Token Flow. For more information on Starknet, please see [Starknet Resources](https://starknet.io/). For more information on Token Flow, please see [Token Flow Resources](https://docs.tokenflow.live/).", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAIN_ID": {"name": "CHAIN_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CLASS_HASH": {"name": "CLASS_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT": {"name": "CONTRACT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_ID": {"name": "EVENT_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EVENT_ORDER": {"name": "EVENT_ORDER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "KEYS": {"name": "KEYS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LOAD_ID": {"name": "LOAD_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NAME": {"name": "NAME", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PARAMETERS": {"name": "PARAMETERS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TIMESTAMP": {"name": "TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TRACE_ID": {"name": "TRACE_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PURPOSE": "DECODED", "PROTOCOL": "TOKENFLOW, STARKNET"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/tokenflow/starknet/tokenflow_starknet__decoded_events.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["tokenflow"], "meta": {"database_tags": {"table": {"PURPOSE": "DECODED", "PROTOCOL": "TOKENFLOW, STARKNET"}}}}, "created_at": 1760113502.599001, "relation_name": "EXTERNAL.tokenflow_starknet.decoded_events", "raw_code": "{{ config(\n materialized = 'view',\n tags = ['tokenflow'],\n meta={\n 'database_tags':{\n 'table': {\n 'PROTOCOL': 'TOKENFLOW, STARKNET',\n 'PURPOSE': 'DECODED'\n }\n }\n }\n) }}\n\nSELECT\n *\nFROM\n {{ source(\n 'starknet_snapshot',\n 'events'\n ) }}", "language": "sql", "refs": [], "sources": [["starknet_snapshot", "events"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.starknet_snapshot.events"]}, "compiled_path": "target/compiled/external_models/models/tokenflow/starknet/tokenflow_starknet__decoded_events.sql", "compiled": true, "compiled_code": "\n\nSELECT\n *\nFROM\n tokenflow.starknet.events", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.tokenflow_starknet__decoded_traces": {"database": "EXTERNAL", "schema": "tokenflow_starknet", "name": "tokenflow_starknet__decoded_traces", "resource_type": "model", "package_name": "external_models", "path": "tokenflow/starknet/tokenflow_starknet__decoded_traces.sql", "original_file_path": "models/tokenflow/starknet/tokenflow_starknet__decoded_traces.sql", "unique_id": "model.external_models.tokenflow_starknet__decoded_traces", "fqn": ["external_models", "tokenflow", "starknet", "tokenflow_starknet__decoded_traces"], "alias": "decoded_traces", "checksum": {"name": "sha256", "checksum": "46c12f0286684c06f7bf8c29bd6095864bb6b4036c36d3729d5acc4846605283"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["tokenflow"], "meta": {"database_tags": {"table": {"PURPOSE": "DECODED", "PROTOCOL": "TOKENFLOW, STARKNET"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["tokenflow"], "description": "Table updates ceased after February 1, 2024. This table contains decoded trace level data for the Starknet blockchain, sourced from Token Flow. For more information on Starknet, please see [Starknet Resources](https://starknet.io/). For more information on Token Flow, please see [Token Flow Resources](https://docs.tokenflow.live/).", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CALLER": {"name": "CALLER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAIN_ID": {"name": "CHAIN_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CLASS_HASH": {"name": "CLASS_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT": {"name": "CONTRACT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ENTRY_POINT_SELECTOR": {"name": "ENTRY_POINT_SELECTOR", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ENTRY_POINT_TYPE": {"name": "ENTRY_POINT_TYPE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EXECUTION_RESOURCES": {"name": "EXECUTION_RESOURCES", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FUNCTION": {"name": "FUNCTION", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INPUTS": {"name": "INPUTS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INVOCATION_TYPE": {"name": "INVOCATION_TYPE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LOAD_ID": {"name": "LOAD_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "OUTPUTS": {"name": "OUTPUTS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TIMESTAMP": {"name": "TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TRACE_ID": {"name": "TRACE_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TRACE_PATH": {"name": "TRACE_PATH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TRACE_TYPE": {"name": "TRACE_TYPE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PURPOSE": "DECODED", "PROTOCOL": "TOKENFLOW, STARKNET"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/tokenflow/starknet/tokenflow_starknet__decoded_traces.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["tokenflow"], "meta": {"database_tags": {"table": {"PURPOSE": "DECODED", "PROTOCOL": "TOKENFLOW, STARKNET"}}}}, "created_at": 1760113502.6162496, "relation_name": "EXTERNAL.tokenflow_starknet.decoded_traces", "raw_code": "{{ config(\n materialized = 'view',\n tags = ['tokenflow'],\n meta={\n 'database_tags':{\n 'table': {\n 'PROTOCOL': 'TOKENFLOW, STARKNET',\n 'PURPOSE': 'DECODED'\n }\n }\n }\n) }}\n\nSELECT\n *\nFROM\n {{ source(\n 'starknet_snapshot',\n 'traces'\n ) }}", "language": "sql", "refs": [], "sources": [["starknet_snapshot", "traces"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.starknet_snapshot.traces"]}, "compiled_path": "target/compiled/external_models/models/tokenflow/starknet/tokenflow_starknet__decoded_traces.sql", "compiled": true, "compiled_code": "\n\nSELECT\n *\nFROM\n tokenflow.starknet.traces", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.tokenflow_starknet__l1_data_blocks": {"database": "EXTERNAL", "schema": "tokenflow_starknet", "name": "tokenflow_starknet__l1_data_blocks", "resource_type": "model", "package_name": "external_models", "path": "tokenflow/starknet/tokenflow_starknet__l1_data_blocks.sql", "original_file_path": "models/tokenflow/starknet/tokenflow_starknet__l1_data_blocks.sql", "unique_id": "model.external_models.tokenflow_starknet__l1_data_blocks", "fqn": ["external_models", "tokenflow", "starknet", "tokenflow_starknet__l1_data_blocks"], "alias": "l1_data_blocks", "checksum": {"name": "sha256", "checksum": "ad730c8dd74aa86eb0723390e34ef164aea0a671439e1d67e590e7c63c1c4f1b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["tokenflow"], "meta": {"database_tags": {"table": {"PROTOCOL": "TOKENFLOW, STARKNET", "PURPOSE": "L1"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["tokenflow"], "description": "Table updates ceased after February 1, 2024. This table contains raw block level data for the Starknet blockchain, sourced from Token Flow. For more information on Starknet, please see [Starknet Resources](https://starknet.io/). For more information on Token Flow, please see [Token Flow Resources](https://docs.tokenflow.live/).", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAIN_ID": {"name": "CHAIN_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACTS_COUNT": {"name": "CONTRACTS_COUNT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DIFFS_COUNT": {"name": "DIFFS_COUNT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FACT": {"name": "FACT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "L1_TRANSACTION": {"name": "L1_TRANSACTION", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LOAD_ID": {"name": "LOAD_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "TOKENFLOW, STARKNET", "PURPOSE": "L1"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/tokenflow/starknet/tokenflow_starknet__l1_data_blocks.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["tokenflow"], "meta": {"database_tags": {"table": {"PROTOCOL": "TOKENFLOW, STARKNET", "PURPOSE": "L1"}}}}, "created_at": 1760113502.6011295, "relation_name": "EXTERNAL.tokenflow_starknet.l1_data_blocks", "raw_code": "{{ config(\n materialized = 'view',\n tags = ['tokenflow'],\n meta={\n 'database_tags':{\n 'table': {\n 'PROTOCOL': 'TOKENFLOW, STARKNET',\n 'PURPOSE': 'L1'\n }\n }\n }\n) }}\n\nSELECT\n *\nFROM\n {{ source(\n 'starknet_snapshot',\n 'l1_blocks'\n ) }}", "language": "sql", "refs": [], "sources": [["starknet_snapshot", "l1_blocks"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.starknet_snapshot.l1_blocks"]}, "compiled_path": "target/compiled/external_models/models/tokenflow/starknet/tokenflow_starknet__l1_data_blocks.sql", "compiled": true, "compiled_code": "\n\nSELECT\n *\nFROM\n tokenflow.starknet.l1_blocks", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.tokenflow_starknet__decoded_blocks": {"database": "EXTERNAL", "schema": "tokenflow_starknet", "name": "tokenflow_starknet__decoded_blocks", "resource_type": "model", "package_name": "external_models", "path": "tokenflow/starknet/tokenflow_starknet__decoded_blocks.sql", "original_file_path": "models/tokenflow/starknet/tokenflow_starknet__decoded_blocks.sql", "unique_id": "model.external_models.tokenflow_starknet__decoded_blocks", "fqn": ["external_models", "tokenflow", "starknet", "tokenflow_starknet__decoded_blocks"], "alias": "decoded_blocks", "checksum": {"name": "sha256", "checksum": "e422c1e2b3054712eff395c7a72cfe5de8360c5607f0db8c273b443367b0519c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["tokenflow"], "meta": {"database_tags": {"table": {"PROTOCOL": "TOKENFLOW, STARKNET", "PURPOSE": "DECODED"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["tokenflow"], "description": "Table updates ceased after February 1, 2024. This table contains decoded block level data for the Starknet blockchain, sourced from Token Flow. For more information on Starknet, please see [Starknet Resources](https://starknet.io/). For more information on Token Flow, please see [Token Flow Resources](https://docs.tokenflow.live/).", "columns": {"BLOCK_HASH": {"name": "BLOCK_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAIN_ID": {"name": "CHAIN_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "GAS_PRICE": {"name": "GAS_PRICE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LOAD_ID": {"name": "LOAD_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PARENT_HASH": {"name": "PARENT_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SEQUENCER": {"name": "SEQUENCER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "STATE_ROOT": {"name": "STATE_ROOT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TIMESTAMP": {"name": "TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_COUNT": {"name": "TX_COUNT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "TOKENFLOW, STARKNET", "PURPOSE": "DECODED"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/tokenflow/starknet/tokenflow_starknet__decoded_blocks.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["tokenflow"], "meta": {"database_tags": {"table": {"PROTOCOL": "TOKENFLOW, STARKNET", "PURPOSE": "DECODED"}}}}, "created_at": 1760113502.6042135, "relation_name": "EXTERNAL.tokenflow_starknet.decoded_blocks", "raw_code": "{{ config(\n materialized = 'view',\n tags = ['tokenflow'],\n meta={\n 'database_tags':{\n 'table': {\n 'PROTOCOL': 'TOKENFLOW, STARKNET',\n 'PURPOSE': 'DECODED'\n }\n }\n }\n) }}\n\nSELECT\n *\nFROM\n {{ source(\n 'starknet_snapshot',\n 'blocks'\n ) }}", "language": "sql", "refs": [], "sources": [["starknet_snapshot", "blocks"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.starknet_snapshot.blocks"]}, "compiled_path": "target/compiled/external_models/models/tokenflow/starknet/tokenflow_starknet__decoded_blocks.sql", "compiled": true, "compiled_code": "\n\nSELECT\n *\nFROM\n tokenflow.starknet.blocks", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.tokenflow_starknet__decoded_messages": {"database": "EXTERNAL", "schema": "tokenflow_starknet", "name": "tokenflow_starknet__decoded_messages", "resource_type": "model", "package_name": "external_models", "path": "tokenflow/starknet/tokenflow_starknet__decoded_messages.sql", "original_file_path": "models/tokenflow/starknet/tokenflow_starknet__decoded_messages.sql", "unique_id": "model.external_models.tokenflow_starknet__decoded_messages", "fqn": ["external_models", "tokenflow", "starknet", "tokenflow_starknet__decoded_messages"], "alias": "decoded_messages", "checksum": {"name": "sha256", "checksum": "7bcfbd470c4f5405263ffad941c48a0ba86096c267afba9fdc71a23584e0e216"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["tokenflow"], "meta": {"database_tags": {"table": {"PROTOCOL": "TOKENFLOW, STARKNET", "PURPOSE": "DECODED"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["tokenflow"], "description": "Table updates ceased after February 1, 2024. This table contains decoded message level data for the Starknet blockchain, sourced from Token Flow. For more information on Starknet, please see [Starknet Resources](https://starknet.io/). For more information on Token Flow, please see [Token Flow Resources](https://docs.tokenflow.live/).", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAIN_ID": {"name": "CHAIN_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CLASS_HASH": {"name": "CLASS_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FROM_ADDRESS": {"name": "FROM_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LOAD_ID": {"name": "LOAD_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MESSAGE_ID": {"name": "MESSAGE_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MESSAGE_ORDER": {"name": "MESSAGE_ORDER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PAYLOAD": {"name": "PAYLOAD", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TIMESTAMP": {"name": "TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TO_ADDRESS": {"name": "TO_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TRACE_ID": {"name": "TRACE_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "TOKENFLOW, STARKNET", "PURPOSE": "DECODED"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/tokenflow/starknet/tokenflow_starknet__decoded_messages.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["tokenflow"], "meta": {"database_tags": {"table": {"PROTOCOL": "TOKENFLOW, STARKNET", "PURPOSE": "DECODED"}}}}, "created_at": 1760113502.6136286, "relation_name": "EXTERNAL.tokenflow_starknet.decoded_messages", "raw_code": "{{ config(\n materialized = 'view',\n tags = ['tokenflow'],\n meta={\n 'database_tags':{\n 'table': {\n 'PROTOCOL': 'TOKENFLOW, STARKNET',\n 'PURPOSE': 'DECODED'\n }\n }\n }\n) }}\n\nSELECT\n *\nFROM\n {{ source(\n 'starknet_snapshot',\n 'messages'\n ) }}", "language": "sql", "refs": [], "sources": [["starknet_snapshot", "messages"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.starknet_snapshot.messages"]}, "compiled_path": "target/compiled/external_models/models/tokenflow/starknet/tokenflow_starknet__decoded_messages.sql", "compiled": true, "compiled_code": "\n\nSELECT\n *\nFROM\n tokenflow.starknet.messages", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.tokenflow_starknet__l1_data_contracts": {"database": "EXTERNAL", "schema": "tokenflow_starknet", "name": "tokenflow_starknet__l1_data_contracts", "resource_type": "model", "package_name": "external_models", "path": "tokenflow/starknet/tokenflow_starknet__l1_data_contracts.sql", "original_file_path": "models/tokenflow/starknet/tokenflow_starknet__l1_data_contracts.sql", "unique_id": "model.external_models.tokenflow_starknet__l1_data_contracts", "fqn": ["external_models", "tokenflow", "starknet", "tokenflow_starknet__l1_data_contracts"], "alias": "l1_data_contracts", "checksum": {"name": "sha256", "checksum": "d6ab9c025eefa53718de0445ea7648aef7867f4bce6585e69537bf21d920efe9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["tokenflow"], "meta": {"database_tags": {"table": {"PROTOCOL": "TOKENFLOW, STARKNET", "PURPOSE": "L1"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["tokenflow"], "description": "Table updates ceased after February 1, 2024. This table contains raw contract level data for the Starknet blockchain, sourced from Token Flow. For more information on Starknet, please see [Starknet Resources](https://starknet.io/). For more information on Token Flow, please see [Token Flow Resources](https://docs.tokenflow.live/).", "columns": {"ADDRESS": {"name": "ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAIN_ID": {"name": "CHAIN_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CLASS_HASH": {"name": "CLASS_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONSTRUCTOR_ARGS": {"name": "CONSTRUCTOR_ARGS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LOAD_ID": {"name": "LOAD_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "TOKENFLOW, STARKNET", "PURPOSE": "L1"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/tokenflow/starknet/tokenflow_starknet__l1_data_contracts.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["tokenflow"], "meta": {"database_tags": {"table": {"PROTOCOL": "TOKENFLOW, STARKNET", "PURPOSE": "L1"}}}}, "created_at": 1760113502.617435, "relation_name": "EXTERNAL.tokenflow_starknet.l1_data_contracts", "raw_code": "{{ config(\n materialized = 'view',\n tags = ['tokenflow'],\n meta={\n 'database_tags':{\n 'table': {\n 'PROTOCOL': 'TOKENFLOW, STARKNET',\n 'PURPOSE': 'L1'\n }\n }\n }\n) }}\n\nSELECT\n *\nFROM\n {{ source(\n 'starknet_snapshot',\n 'l1_contracts'\n ) }}", "language": "sql", "refs": [], "sources": [["starknet_snapshot", "l1_contracts"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.starknet_snapshot.l1_contracts"]}, "compiled_path": "target/compiled/external_models/models/tokenflow/starknet/tokenflow_starknet__l1_data_contracts.sql", "compiled": true, "compiled_code": "\n\nSELECT\n *\nFROM\n tokenflow.starknet.l1_contracts", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.tokenflow_starknet__l1_data_messages": {"database": "EXTERNAL", "schema": "tokenflow_starknet", "name": "tokenflow_starknet__l1_data_messages", "resource_type": "model", "package_name": "external_models", "path": "tokenflow/starknet/tokenflow_starknet__l1_data_messages.sql", "original_file_path": "models/tokenflow/starknet/tokenflow_starknet__l1_data_messages.sql", "unique_id": "model.external_models.tokenflow_starknet__l1_data_messages", "fqn": ["external_models", "tokenflow", "starknet", "tokenflow_starknet__l1_data_messages"], "alias": "l1_data_messages", "checksum": {"name": "sha256", "checksum": "e579d6d069f86960675a272c5e70f82aab69da73db82dee9bb40ab2611d00a60"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["tokenflow"], "meta": {"database_tags": {"table": {"PROTOCOL": "TOKENFLOW, STARKNET", "PURPOSE": "L1"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["tokenflow"], "description": "Table updates ceased after February 1, 2024. This table contains raw message level data for the Starknet blockchain, sourced from Token Flow. For more information on Starknet, please see [Starknet Resources](https://starknet.io/). For more information on Token Flow, please see [Token Flow Resources](https://docs.tokenflow.live/).", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAIN_ID": {"name": "CHAIN_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FEE": {"name": "FEE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "L1_ADDRESS": {"name": "L1_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "L2_ADDRESS": {"name": "L2_ADDRESS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LOAD_ID": {"name": "LOAD_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NONCE": {"name": "NONCE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PAYLOAD": {"name": "PAYLOAD", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SELECTOR": {"name": "SELECTOR", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "TOKENFLOW, STARKNET", "PURPOSE": "L1"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/tokenflow/starknet/tokenflow_starknet__l1_data_messages.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["tokenflow"], "meta": {"database_tags": {"table": {"PROTOCOL": "TOKENFLOW, STARKNET", "PURPOSE": "L1"}}}}, "created_at": 1760113502.611367, "relation_name": "EXTERNAL.tokenflow_starknet.l1_data_messages", "raw_code": "{{ config(\n materialized = 'view',\n tags = ['tokenflow'],\n meta={\n 'database_tags':{\n 'table': {\n 'PROTOCOL': 'TOKENFLOW, STARKNET',\n 'PURPOSE': 'L1'\n }\n }\n }\n) }}\n\nSELECT\n *\nFROM\n {{ source(\n 'starknet_snapshot',\n 'l1_messages'\n ) }}", "language": "sql", "refs": [], "sources": [["starknet_snapshot", "l1_messages"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.starknet_snapshot.l1_messages"]}, "compiled_path": "target/compiled/external_models/models/tokenflow/starknet/tokenflow_starknet__l1_data_messages.sql", "compiled": true, "compiled_code": "\n\nSELECT\n *\nFROM\n tokenflow.starknet.l1_messages", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.tokenflow_starknet__l1_data_storage_diffs": {"database": "EXTERNAL", "schema": "tokenflow_starknet", "name": "tokenflow_starknet__l1_data_storage_diffs", "resource_type": "model", "package_name": "external_models", "path": "tokenflow/starknet/tokenflow_starknet__l1_data_storage_diffs.sql", "original_file_path": "models/tokenflow/starknet/tokenflow_starknet__l1_data_storage_diffs.sql", "unique_id": "model.external_models.tokenflow_starknet__l1_data_storage_diffs", "fqn": ["external_models", "tokenflow", "starknet", "tokenflow_starknet__l1_data_storage_diffs"], "alias": "l1_data_storage_diffs", "checksum": {"name": "sha256", "checksum": "58fcfaf6c69a0b1490ac12d965d7d94c36f6e77b63485ed70a9bfbc0f6eb8e7b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["tokenflow"], "meta": {"database_tags": {"table": {"PROTOCOL": "TOKENFLOW, STARKNET", "PURPOSE": "L1"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["tokenflow"], "description": "Table updates ceased after February 1, 2024. This table contains raw storage level data for the Starknet blockchain, sourced from Token Flow. For more information on Starknet, please see [Starknet Resources](https://starknet.io/). For more information on Token Flow, please see [Token Flow Resources](https://docs.tokenflow.live/).", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAIN_ID": {"name": "CHAIN_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT": {"name": "CONTRACT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LOAD_ID": {"name": "LOAD_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SLOT": {"name": "SLOT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VALUE": {"name": "VALUE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "TOKENFLOW, STARKNET", "PURPOSE": "L1"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/tokenflow/starknet/tokenflow_starknet__l1_data_storage_diffs.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["tokenflow"], "meta": {"database_tags": {"table": {"PROTOCOL": "TOKENFLOW, STARKNET", "PURPOSE": "L1"}}}}, "created_at": 1760113502.6025777, "relation_name": "EXTERNAL.tokenflow_starknet.l1_data_storage_diffs", "raw_code": "{{ config(\n materialized = 'view',\n tags = ['tokenflow'],\n meta={\n 'database_tags':{\n 'table': {\n 'PROTOCOL': 'TOKENFLOW, STARKNET',\n 'PURPOSE': 'L1'\n }\n }\n }\n) }}\n\nSELECT\n *\nFROM\n {{ source(\n 'starknet_snapshot',\n 'l1_storage_diffs'\n ) }}", "language": "sql", "refs": [], "sources": [["starknet_snapshot", "l1_storage_diffs"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.starknet_snapshot.l1_storage_diffs"]}, "compiled_path": "target/compiled/external_models/models/tokenflow/starknet/tokenflow_starknet__l1_data_storage_diffs.sql", "compiled": true, "compiled_code": "\n\nSELECT\n *\nFROM\n tokenflow.starknet.l1_storage_diffs", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.tokenflow_starknet__decoded_transactions": {"database": "EXTERNAL", "schema": "tokenflow_starknet", "name": "tokenflow_starknet__decoded_transactions", "resource_type": "model", "package_name": "external_models", "path": "tokenflow/starknet/tokenflow_starknet__decoded_transactions.sql", "original_file_path": "models/tokenflow/starknet/tokenflow_starknet__decoded_transactions.sql", "unique_id": "model.external_models.tokenflow_starknet__decoded_transactions", "fqn": ["external_models", "tokenflow", "starknet", "tokenflow_starknet__decoded_transactions"], "alias": "decoded_transactions", "checksum": {"name": "sha256", "checksum": "a8feab3878d6e1afc2e383cb872519f2d7ecda2119a6e5e22a447d309a5f2070"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["tokenflow"], "meta": {"database_tags": {"table": {"PURPOSE": "DECODED", "PROTOCOL": "TOKENFLOW, STARKNET"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["tokenflow"], "description": "Table updates ceased after February 1, 2024. This table contains decoded transaction level data for the Starknet blockchain, sourced from Token Flow. For more information on Starknet, please see [Starknet Resources](https://starknet.io/). For more information on Token Flow, please see [Token Flow Resources](https://docs.tokenflow.live/).", "columns": {"ACTUAL_FEE": {"name": "ACTUAL_FEE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CHAIN_ID": {"name": "CHAIN_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CLASS_HASH": {"name": "CLASS_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT": {"name": "CONTRACT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ENTRY_POINT_SELECTOR": {"name": "ENTRY_POINT_SELECTOR", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ENTRY_POINT_TYPE": {"name": "ENTRY_POINT_TYPE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ERROR": {"name": "ERROR", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EXECUTION_RESOURCES": {"name": "EXECUTION_RESOURCES", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FUNCTION": {"name": "FUNCTION", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INPUTS": {"name": "INPUTS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "L1_MESSAGE_NONCE": {"name": "L1_MESSAGE_NONCE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LOAD_ID": {"name": "LOAD_ID", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MAX_FEE": {"name": "MAX_FEE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "OUTPUTS": {"name": "OUTPUTS", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SIGNATURE": {"name": "SIGNATURE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TIMESTAMP": {"name": "TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_HASH": {"name": "TX_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_INDEX": {"name": "TX_INDEX", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TYPE": {"name": "TYPE", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PURPOSE": "DECODED", "PROTOCOL": "TOKENFLOW, STARKNET"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/tokenflow/starknet/tokenflow_starknet__decoded_transactions.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["tokenflow"], "meta": {"database_tags": {"table": {"PURPOSE": "DECODED", "PROTOCOL": "TOKENFLOW, STARKNET"}}}}, "created_at": 1760113502.6090076, "relation_name": "EXTERNAL.tokenflow_starknet.decoded_transactions", "raw_code": "{{ config(\n materialized = 'view',\n tags = ['tokenflow'],\n meta={\n 'database_tags':{\n 'table': {\n 'PROTOCOL': 'TOKENFLOW, STARKNET',\n 'PURPOSE': 'DECODED'\n }\n }\n }\n) }}\n\nSELECT\n *\nFROM\n {{ source(\n 'starknet_snapshot',\n 'transactions'\n ) }}", "language": "sql", "refs": [], "sources": [["starknet_snapshot", "transactions"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.starknet_snapshot.transactions"]}, "compiled_path": "target/compiled/external_models/models/tokenflow/starknet/tokenflow_starknet__decoded_transactions.sql", "compiled": true, "compiled_code": "\n\nSELECT\n *\nFROM\n tokenflow.starknet.transactions", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.farcaster__fact_blocks": {"database": "EXTERNAL", "schema": "farcaster", "name": "farcaster__fact_blocks", "resource_type": "model", "package_name": "external_models", "path": "farcaster/gold/farcaster__fact_blocks.sql", "original_file_path": "models/farcaster/gold/farcaster__fact_blocks.sql", "unique_id": "model.external_models.farcaster__fact_blocks", "fqn": ["external_models", "farcaster", "gold", "farcaster__fact_blocks"], "alias": "fact_blocks", "checksum": {"name": "sha256", "checksum": "d7620df5cd87a69879763cf44007051680efc1afababa759aadefae3390f2f8e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["farcaster"], "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["farcaster"], "description": "Represents users that have blocked or been blocked. For more info see [Neynar](https://docs.neynar.com/docs/how-to-query-neynar-sql-playground-for-farcaster-data) or [schema](https://github.com/farcasterxyz/hub-monorepo/tree/51c57245df8ec1c68d616dd3ab8ae5b80edf68fd/apps/replicator)", "columns": {"BLOCKER_FID": {"name": "BLOCKER_FID", "description": "The FID of the user that blocked the other user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCKED_FID": {"name": "BLOCKED_FID", "description": "The FID of the user that has been blocked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ID": {"name": "ID", "description": "Generic identifier specific to this DB (a.k.a. surrogate key)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATED_AT": {"name": "CREATED_AT", "description": "When the row was first created in this DB (not the same as the message timestamp!)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DELETED_AT": {"name": "DELETED_AT", "description": "When the cast was considered deleted/revoked/pruned by the hub (e.g. in response to a CastRemove message, etc.)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/farcaster/gold/farcaster__fact_blocks.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["farcaster"], "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}}, "created_at": 1760113502.623896, "relation_name": "EXTERNAL.farcaster.fact_blocks", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['farcaster'],\n meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'FARCASTER' } } }\n) }}\n\nSELECT\n blocker_fid,\n blocked_fid,\n id,\n created_at,\n deleted_at\nFROM\n {{ source(\n 'external_bronze',\n 'farcaster_blocks'\n ) }}\n qualify(ROW_NUMBER() over (PARTITION BY id\nORDER BY\n created_at DESC)) = 1", "language": "sql", "refs": [], "sources": [["external_bronze", "farcaster_blocks"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.external_bronze.farcaster_blocks"]}, "compiled_path": "target/compiled/external_models/models/farcaster/gold/farcaster__fact_blocks.sql", "compiled": true, "compiled_code": "\n\nSELECT\n blocker_fid,\n blocked_fid,\n id,\n created_at,\n deleted_at\nFROM\n external.bronze.farcaster_blocks\n qualify(ROW_NUMBER() over (PARTITION BY id\nORDER BY\n created_at DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.farcaster__fact_channel_follows": {"database": "EXTERNAL", "schema": "farcaster", "name": "farcaster__fact_channel_follows", "resource_type": "model", "package_name": "external_models", "path": "farcaster/gold/farcaster__fact_channel_follows.sql", "original_file_path": "models/farcaster/gold/farcaster__fact_channel_follows.sql", "unique_id": "model.external_models.farcaster__fact_channel_follows", "fqn": ["external_models", "farcaster", "gold", "farcaster__fact_channel_follows"], "alias": "fact_channel_follows", "checksum": {"name": "sha256", "checksum": "48f0191e0b35a2c83819b5ce5f20f4b6b53a9b4919b73034777765474afbc956"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["farcaster"], "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["farcaster"], "description": "Represents follows for a Farcaster channel. For more info see [Neynar](https://docs.neynar.com/docs/how-to-query-neynar-sql-playground-for-farcaster-data) or [schema](https://github.com/farcasterxyz/hub-monorepo/tree/51c57245df8ec1c68d616dd3ab8ae5b80edf68fd/apps/replicator)", "columns": {"CHANNEL_ID": {"name": "CHANNEL_ID", "description": "Unique identifier for the channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TIMESTAMP": {"name": "TIMESTAMP", "description": "Message timestamp in UTC.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FID": {"name": "FID", "description": "FID of the user that signed the message.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ID": {"name": "ID", "description": "Generic identifier specific to this DB (a.k.a. surrogate key)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATED_AT": {"name": "CREATED_AT", "description": "When the row was first created in this DB (not the same as the message timestamp!)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "UPDATED_AT": {"name": "UPDATED_AT", "description": "When the row was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DELETED_AT": {"name": "DELETED_AT", "description": "When the cast was considered deleted/revoked/pruned by the hub (e.g. in response to a CastRemove message, etc.)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/farcaster/gold/farcaster__fact_channel_follows.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["farcaster"], "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}}, "created_at": 1760113502.6274016, "relation_name": "EXTERNAL.farcaster.fact_channel_follows", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['farcaster'],\n meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'FARCASTER' } } }\n) }}\n\nSELECT\n TIMESTAMP,\n fid,\n channel_id,\n id,\n created_at,\n updated_at,\n deleted_at\nFROM\n {{ source(\n 'external_bronze',\n 'farcaster_channel_follows'\n ) }}\n qualify(ROW_NUMBER() over (PARTITION BY id\nORDER BY\n updated_at DESC)) = 1", "language": "sql", "refs": [], "sources": [["external_bronze", "farcaster_channel_follows"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.external_bronze.farcaster_channel_follows"]}, "compiled_path": "target/compiled/external_models/models/farcaster/gold/farcaster__fact_channel_follows.sql", "compiled": true, "compiled_code": "\n\nSELECT\n TIMESTAMP,\n fid,\n channel_id,\n id,\n created_at,\n updated_at,\n deleted_at\nFROM\n external.bronze.farcaster_channel_follows\n qualify(ROW_NUMBER() over (PARTITION BY id\nORDER BY\n updated_at DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.farcaster__fact_reactions": {"database": "EXTERNAL", "schema": "farcaster", "name": "farcaster__fact_reactions", "resource_type": "model", "package_name": "external_models", "path": "farcaster/gold/farcaster__fact_reactions.sql", "original_file_path": "models/farcaster/gold/farcaster__fact_reactions.sql", "unique_id": "model.external_models.farcaster__fact_reactions", "fqn": ["external_models", "farcaster", "gold", "farcaster__fact_reactions"], "alias": "fact_reactions", "checksum": {"name": "sha256", "checksum": "933113ca14ab2670beb9c48e798520c196263e0234e55331204990ecf7aa812e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["farcaster"], "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["farcaster"], "description": "Represents a user reacting (liking or recasting) content. For more info see [Neynar](https://docs.neynar.com/docs/how-to-query-neynar-sql-playground-for-farcaster-data) or [schema](https://github.com/farcasterxyz/hub-monorepo/tree/51c57245df8ec1c68d616dd3ab8ae5b80edf68fd/apps/replicator)", "columns": {"ID": {"name": "ID", "description": "Generic identifier specific to this DB (a.k.a. surrogate key)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FID": {"name": "FID", "description": "FID of the user that signed the message.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TARGET_FID": {"name": "TARGET_FID", "description": "If target was a cast, the FID of the author of the cast. null otherwise.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TARGET_URL": {"name": "TARGET_URL", "description": "If target was a URL (e.g. NFT, a web URL, etc.), the URL. null otherwise.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "REACTION_TYPE": {"name": "REACTION_TYPE", "description": "Type of reaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "HASH": {"name": "HASH", "description": "Message hash.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TARGET_HASH": {"name": "TARGET_HASH", "description": "If target was a cast, the hash of the cast. null otherwise.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TIMESTAMP": {"name": "TIMESTAMP", "description": "Message timestamp in UTC.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATED_AT": {"name": "CREATED_AT", "description": "When the row was first created in this DB (not the same as the message timestamp!)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "UPDATED_AT": {"name": "UPDATED_AT", "description": "When the row was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DELETED_AT": {"name": "DELETED_AT", "description": "When the reaction was considered deleted by the hub (e.g. in response to a ReactionRemove message, etc.)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/farcaster/gold/farcaster__fact_reactions.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["farcaster"], "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}}, "created_at": 1760113502.642757, "relation_name": "EXTERNAL.farcaster.fact_reactions", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['farcaster'],\n meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'FARCASTER' } } }\n) }}\n\nSELECT\n id,\n fid,\n target_fid,\n target_url,\n reaction_type,\n HASH,\n target_hash,\n TIMESTAMP,\n created_at,\n updated_at,\n deleted_at\nFROM\n {{ source(\n 'external_bronze',\n 'farcaster_reactions'\n ) }}\n qualify(ROW_NUMBER() over (PARTITION BY id\nORDER BY\n updated_at DESC)) = 1", "language": "sql", "refs": [], "sources": [["external_bronze", "farcaster_reactions"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.external_bronze.farcaster_reactions"]}, "compiled_path": "target/compiled/external_models/models/farcaster/gold/farcaster__fact_reactions.sql", "compiled": true, "compiled_code": "\n\nSELECT\n id,\n fid,\n target_fid,\n target_url,\n reaction_type,\n HASH,\n target_hash,\n TIMESTAMP,\n created_at,\n updated_at,\n deleted_at\nFROM\n external.bronze.farcaster_reactions\n qualify(ROW_NUMBER() over (PARTITION BY id\nORDER BY\n updated_at DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.farcaster__fact_user_data": {"database": "EXTERNAL", "schema": "farcaster", "name": "farcaster__fact_user_data", "resource_type": "model", "package_name": "external_models", "path": "farcaster/gold/farcaster__fact_user_data.sql", "original_file_path": "models/farcaster/gold/farcaster__fact_user_data.sql", "unique_id": "model.external_models.farcaster__fact_user_data", "fqn": ["external_models", "farcaster", "gold", "farcaster__fact_user_data"], "alias": "fact_user_data", "checksum": {"name": "sha256", "checksum": "83086f206227a43bc232f8303c8c48f788b4340afc45531544b24a8f6aa72c97"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["farcaster"], "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["farcaster"], "description": "Represents data associated with a user (e.g. profile photo, bio, username, etc.) For more info see [Neynar](https://docs.neynar.com/docs/how-to-query-neynar-sql-playground-for-farcaster-data) or [schema](https://github.com/farcasterxyz/hub-monorepo/tree/51c57245df8ec1c68d616dd3ab8ae5b80edf68fd/apps/replicator)", "columns": {"ID": {"name": "ID", "description": "Generic identifier specific to this DB (a.k.a. surrogate key)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FID": {"name": "FID", "description": "FID of the user that signed the message.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TYPE": {"name": "TYPE", "description": "The type of user data (PFP, bio, username, etc.)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VALUE": {"name": "VALUE", "description": "The string value of the field.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "HASH": {"name": "HASH", "description": "Message hash.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TIMESTAMP": {"name": "TIMESTAMP", "description": "Message timestamp in UTC.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATED_AT": {"name": "CREATED_AT", "description": "When the row was first created in this DB (not the same as the message timestamp!)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "UPDATED_AT": {"name": "UPDATED_AT", "description": "When the row was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DELETED_AT": {"name": "DELETED_AT", "description": "When the data was considered deleted by the hub", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/farcaster/gold/farcaster__fact_user_data.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["farcaster"], "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}}, "created_at": 1760113502.6569865, "relation_name": "EXTERNAL.farcaster.fact_user_data", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['farcaster'],\n meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'FARCASTER' } } }\n) }}\n\nSELECT\n id,\n fid,\n TYPE,\n VALUE,\n HASH,\n TIMESTAMP,\n created_at,\n updated_at,\n deleted_at\nFROM\n {{ source(\n 'external_bronze',\n 'farcaster_user_data'\n ) }}\n qualify(ROW_NUMBER() over (PARTITION BY id\nORDER BY\n updated_at DESC)) = 1", "language": "sql", "refs": [], "sources": [["external_bronze", "farcaster_user_data"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.external_bronze.farcaster_user_data"]}, "compiled_path": "target/compiled/external_models/models/farcaster/gold/farcaster__fact_user_data.sql", "compiled": true, "compiled_code": "\n\nSELECT\n id,\n fid,\n TYPE,\n VALUE,\n HASH,\n TIMESTAMP,\n created_at,\n updated_at,\n deleted_at\nFROM\n external.bronze.farcaster_user_data\n qualify(ROW_NUMBER() over (PARTITION BY id\nORDER BY\n updated_at DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.farcaster__dim_profile_with_addresses": {"database": "EXTERNAL", "schema": "farcaster", "name": "farcaster__dim_profile_with_addresses", "resource_type": "model", "package_name": "external_models", "path": "farcaster/gold/farcaster__dim_profile_with_addresses.sql", "original_file_path": "models/farcaster/gold/farcaster__dim_profile_with_addresses.sql", "unique_id": "model.external_models.farcaster__dim_profile_with_addresses", "fqn": ["external_models", "farcaster", "gold", "farcaster__dim_profile_with_addresses"], "alias": "dim_profile_with_addresses", "checksum": {"name": "sha256", "checksum": "0f6917f6ae3dc6c4dd6a356c22ede3307edc14c641df0322239f1f47843f26ee"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["farcaster"], "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["farcaster"], "description": "This table contains farcaster users profile data and their connected addresses. For more info see [Neynar](https://docs.neynar.com/docs/how-to-query-neynar-sql-playground-for-farcaster-data) or [schema](https://github.com/farcasterxyz/hub-monorepo/tree/51c57245df8ec1c68d616dd3ab8ae5b80edf68fd/apps/replicator)", "columns": {"FID": {"name": "FID", "description": "FID the username belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FNAME": {"name": "FNAME", "description": "Username, e.g. dwr if an fname, or dwr.eth if an ENS name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DISPLAY_NAME": {"name": "DISPLAY_NAME", "description": "Display name for user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "UPDATED_AT": {"name": "UPDATED_AT", "description": "When the row was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AVATAR_URL": {"name": "AVATAR_URL", "description": "Link to profile picture.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BIO": {"name": "BIO", "description": "Profile bio.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "VERIFIED_ADDRESSES": {"name": "VERIFIED_ADDRESSES", "description": "EVM wallet addresses associated with profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/farcaster/gold/farcaster__dim_profile_with_addresses.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["farcaster"], "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}}, "created_at": 1760113502.653971, "relation_name": "EXTERNAL.farcaster.dim_profile_with_addresses", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['farcaster'],\n meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'FARCASTER' } } }\n) }}\n\nSELECT\n fid,\n fname,\n display_name,\n avatar_url,\n bio,\n verified_addresses,\n updated_at\nFROM\n {{ source(\n 'external_bronze',\n 'farcaster_profile_with_addresses'\n ) }}\n qualify(ROW_NUMBER() over (PARTITION BY fid\nORDER BY\n updated_at DESC)) = 1", "language": "sql", "refs": [], "sources": [["external_bronze", "farcaster_profile_with_addresses"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.external_bronze.farcaster_profile_with_addresses"]}, "compiled_path": "target/compiled/external_models/models/farcaster/gold/farcaster__dim_profile_with_addresses.sql", "compiled": true, "compiled_code": "\n\nSELECT\n fid,\n fname,\n display_name,\n avatar_url,\n bio,\n verified_addresses,\n updated_at\nFROM\n external.bronze.farcaster_profile_with_addresses\n qualify(ROW_NUMBER() over (PARTITION BY fid\nORDER BY\n updated_at DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.farcaster__dim_fnames": {"database": "EXTERNAL", "schema": "farcaster", "name": "farcaster__dim_fnames", "resource_type": "model", "package_name": "external_models", "path": "farcaster/gold/farcaster__dim_fnames.sql", "original_file_path": "models/farcaster/gold/farcaster__dim_fnames.sql", "unique_id": "model.external_models.farcaster__dim_fnames", "fqn": ["external_models", "farcaster", "gold", "farcaster__dim_fnames"], "alias": "dim_fnames", "checksum": {"name": "sha256", "checksum": "7967db8e742ac72bf5ae16217c94642f650049b9a9c2319454356c0ee1d86ece"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["farcaster"], "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["farcaster"], "description": "Stores all usernames that are currently registered. Note that in the case a username is deregistered, the row is soft-deleted via the `deleted_at` column until a new username is registered for the given FID. For more info see [Neynar](https://docs.neynar.com/docs/how-to-query-neynar-sql-playground-for-farcaster-data) or [schema](https://github.com/farcasterxyz/hub-monorepo/tree/51c57245df8ec1c68d616dd3ab8ae5b80edf68fd/apps/replicator)", "columns": {"FID": {"name": "FID", "description": "FID the username belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FNAME": {"name": "FNAME", "description": "Username, e.g. dwr if an fname, or dwr.eth if an ENS name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATED_AT": {"name": "CREATED_AT", "description": "When the row was first created in this DB (not the same as when the key was created on the network!)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "UPDATED_AT": {"name": "UPDATED_AT", "description": "When the row was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DELETED_AT": {"name": "DELETED_AT", "description": "When the proof was revoked or the fname was otherwise deregistered from this user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CUSTODY_ADDRESS": {"name": "CUSTODY_ADDRESS", "description": "Address that owns the FID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EXPIRES_AT": {"name": "EXPIRES_AT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/farcaster/gold/farcaster__dim_fnames.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["farcaster"], "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}}, "created_at": 1760113502.646767, "relation_name": "EXTERNAL.farcaster.dim_fnames", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['farcaster'],\n meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'FARCASTER' } } }\n) }}\n\nSELECT\n fid,\n fname,\n custody_address,\n expires_at,\n created_at,\n updated_at,\n deleted_at\nFROM\n {{ source(\n 'external_bronze',\n 'farcaster_fnames'\n ) }}\n qualify(ROW_NUMBER() over (PARTITION BY fid\nORDER BY\n updated_at DESC)) = 1", "language": "sql", "refs": [], "sources": [["external_bronze", "farcaster_fnames"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.external_bronze.farcaster_fnames"]}, "compiled_path": "target/compiled/external_models/models/farcaster/gold/farcaster__dim_fnames.sql", "compiled": true, "compiled_code": "\n\nSELECT\n fid,\n fname,\n custody_address,\n expires_at,\n created_at,\n updated_at,\n deleted_at\nFROM\n external.bronze.farcaster_fnames\n qualify(ROW_NUMBER() over (PARTITION BY fid\nORDER BY\n updated_at DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.farcaster__fact_storage": {"database": "EXTERNAL", "schema": "farcaster", "name": "farcaster__fact_storage", "resource_type": "model", "package_name": "external_models", "path": "farcaster/gold/farcaster__fact_storage.sql", "original_file_path": "models/farcaster/gold/farcaster__fact_storage.sql", "unique_id": "model.external_models.farcaster__fact_storage", "fqn": ["external_models", "farcaster", "gold", "farcaster__fact_storage"], "alias": "fact_storage", "checksum": {"name": "sha256", "checksum": "314d6411261ffd8ceb94c8c71e35079ec256d35988d4521f7e5b6a3c87deda80"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["farcaster"], "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["farcaster"], "description": "Stores how many units of storage each FID has purchased, and when it expires. For more info see [Neynar](https://docs.neynar.com/docs/how-to-query-neynar-sql-playground-for-farcaster-data) or [schema](https://github.com/farcasterxyz/hub-monorepo/tree/51c57245df8ec1c68d616dd3ab8ae5b80edf68fd/apps/replicator)", "columns": {"ID": {"name": "ID", "description": "Generic identifier specific to this DB (a.k.a. surrogate key)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FID": {"name": "FID", "description": "FID that owns the storage.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "UNITS": {"name": "UNITS", "description": "Number of storage units allocated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EXPIRY": {"name": "EXPIRY", "description": "When this storage allocation will expire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TIMESTAMP": {"name": "TIMESTAMP", "description": "Message timestamp in UTC.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATED_AT": {"name": "CREATED_AT", "description": "When the row was first created in this DB", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "UPDATED_AT": {"name": "UPDATED_AT", "description": "When the row was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DELETED_AT": {"name": "DELETED_AT", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/farcaster/gold/farcaster__fact_storage.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["farcaster"], "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}}, "created_at": 1760113502.6200416, "relation_name": "EXTERNAL.farcaster.fact_storage", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['farcaster'],\n meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'FARCASTER' } } }\n) }}\n\nSELECT\n id,\n fid,\n units,\n expiry,\n TIMESTAMP,\n created_at,\n updated_at,\n deleted_at\nFROM\n {{ source(\n 'external_bronze',\n 'farcaster_storage'\n ) }}\n qualify(ROW_NUMBER() over (PARTITION BY id\nORDER BY\n updated_at DESC)) = 1", "language": "sql", "refs": [], "sources": [["external_bronze", "farcaster_storage"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.external_bronze.farcaster_storage"]}, "compiled_path": "target/compiled/external_models/models/farcaster/gold/farcaster__fact_storage.sql", "compiled": true, "compiled_code": "\n\nSELECT\n id,\n fid,\n units,\n expiry,\n TIMESTAMP,\n created_at,\n updated_at,\n deleted_at\nFROM\n external.bronze.farcaster_storage\n qualify(ROW_NUMBER() over (PARTITION BY id\nORDER BY\n updated_at DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.farcaster__fact_casts": {"database": "EXTERNAL", "schema": "farcaster", "name": "farcaster__fact_casts", "resource_type": "model", "package_name": "external_models", "path": "farcaster/gold/farcaster__fact_casts.sql", "original_file_path": "models/farcaster/gold/farcaster__fact_casts.sql", "unique_id": "model.external_models.farcaster__fact_casts", "fqn": ["external_models", "farcaster", "gold", "farcaster__fact_casts"], "alias": "fact_casts", "checksum": {"name": "sha256", "checksum": "c36b6b4e510df7ffd1484b32700718b0a9c5d475da347f53118442030ae8ba2b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["farcaster"], "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["farcaster"], "description": "Represents a cast authored by a user. For more info see [Neynar](https://docs.neynar.com/docs/how-to-query-neynar-sql-playground-for-farcaster-data) or [schema](https://github.com/farcasterxyz/hub-monorepo/tree/51c57245df8ec1c68d616dd3ab8ae5b80edf68fd/apps/replicator)", "columns": {"TIMESTAMP": {"name": "TIMESTAMP", "description": "Message timestamp in UTC.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FID": {"name": "FID", "description": "FID of the user that signed the message.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "HASH": {"name": "HASH", "description": "Message hash.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PARENT_HASH": {"name": "PARENT_HASH", "description": "If this cast was a reply, the hash of the parent cast. null otherwise.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PARENT_FID": {"name": "PARENT_FID", "description": "If this cast was a reply, the FID of the author of the parent cast. null otherwise.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PARENT_URL": {"name": "PARENT_URL", "description": "If this cast was a reply to a URL (e.g. an NFT, a web URL, etc.), the URL. null otherwise.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TEXT": {"name": "TEXT", "description": "The raw text of the cast with mentions removed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EMBEDS": {"name": "EMBEDS", "description": "Array of URLs or cast IDs that were embedded with this cast.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MENTIONS": {"name": "MENTIONS", "description": "Array of FIDs mentioned in the cast.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MENTIONS_POSITIONS": {"name": "MENTIONS_POSITIONS", "description": "UTF8 byte offsets of the mentioned FIDs in the cast.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ROOT_PARENT_HASH": {"name": "ROOT_PARENT_HASH", "description": "If this cast was a reply, the hash of the original cast in the reply chain. null otherwise.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ROOT_PARENT_URL": {"name": "ROOT_PARENT_URL", "description": "If this cast was a reply, then the URL that the original cast in the reply chain was replying to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ID": {"name": "ID", "description": "Generic identifier specific to this DB (a.k.a. surrogate key)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATED_AT": {"name": "CREATED_AT", "description": "When the row was first created in this DB (not the same as the message timestamp!)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "UPDATED_AT": {"name": "UPDATED_AT", "description": "When the row was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DELETED_AT": {"name": "DELETED_AT", "description": "When the cast was considered deleted/revoked/pruned by the hub (e.g. in response to a CastRemove message, etc.)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/farcaster/gold/farcaster__fact_casts.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["farcaster"], "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}}, "created_at": 1760113502.6381319, "relation_name": "EXTERNAL.farcaster.fact_casts", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['farcaster'],\n meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'FARCASTER' } } }\n) }}\n\nSELECT\n TIMESTAMP,\n fid,\n HASH,\n parent_hash,\n parent_fid,\n parent_url,\n text,\n embeds,\n mentions,\n mentions_positions,\n root_parent_hash,\n root_parent_url,\n id,\n created_at,\n updated_at,\n deleted_at\nFROM\n {{ source(\n 'external_bronze',\n 'farcaster_casts'\n ) }}\n qualify(ROW_NUMBER() over (PARTITION BY id\nORDER BY\n updated_at DESC)) = 1", "language": "sql", "refs": [], "sources": [["external_bronze", "farcaster_casts"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.external_bronze.farcaster_casts"]}, "compiled_path": "target/compiled/external_models/models/farcaster/gold/farcaster__fact_casts.sql", "compiled": true, "compiled_code": "\n\nSELECT\n TIMESTAMP,\n fid,\n HASH,\n parent_hash,\n parent_fid,\n parent_url,\n text,\n embeds,\n mentions,\n mentions_positions,\n root_parent_hash,\n root_parent_url,\n id,\n created_at,\n updated_at,\n deleted_at\nFROM\n external.bronze.farcaster_casts\n qualify(ROW_NUMBER() over (PARTITION BY id\nORDER BY\n updated_at DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.farcaster__fact_links": {"database": "EXTERNAL", "schema": "farcaster", "name": "farcaster__fact_links", "resource_type": "model", "package_name": "external_models", "path": "farcaster/gold/farcaster__fact_links.sql", "original_file_path": "models/farcaster/gold/farcaster__fact_links.sql", "unique_id": "model.external_models.farcaster__fact_links", "fqn": ["external_models", "farcaster", "gold", "farcaster__fact_links"], "alias": "fact_links", "checksum": {"name": "sha256", "checksum": "0a4e3bafd34ea335077d5133d51bb6e2df21551f2821b6135a9671870200a2c9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["farcaster"], "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["farcaster"], "description": "Represents a link between two FIDs (e.g. a follow, subscription, etc.). For more info see [Neynar](https://docs.neynar.com/docs/how-to-query-neynar-sql-playground-for-farcaster-data) or [schema](https://github.com/farcasterxyz/hub-monorepo/tree/51c57245df8ec1c68d616dd3ab8ae5b80edf68fd/apps/replicator)", "columns": {"ID": {"name": "ID", "description": "Generic identifier specific to this DB (a.k.a. surrogate key)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FID": {"name": "FID", "description": "Farcaster ID (the user ID).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TARGET_FID": {"name": "TARGET_FID", "description": "Farcaster ID of the target user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "HASH": {"name": "HASH", "description": "Message hash.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TIMESTAMP": {"name": "TIMESTAMP", "description": "Message timestamp in UTC.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TYPE": {"name": "TYPE", "description": "Type of connection between users, e.g. follow.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DISPLAY_TIMESTAMP": {"name": "DISPLAY_TIMESTAMP", "description": "When the row was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATED_AT": {"name": "CREATED_AT", "description": "When the row was first created in this DB (not when the link itself was created on the network!)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "UPDATED_AT": {"name": "UPDATED_AT", "description": "When the row was last updated", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DELETED_AT": {"name": "DELETED_AT", "description": "When the link was considered deleted by the hub (e.g. in response to a LinkRemoveMessage message, etc.)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/farcaster/gold/farcaster__fact_links.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["farcaster"], "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}}, "created_at": 1760113502.6603, "relation_name": "EXTERNAL.farcaster.fact_links", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['farcaster'],\n meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'FARCASTER' } } }\n) }}\n\nSELECT\n id,\n fid,\n target_fid,\n HASH,\n TIMESTAMP,\n TYPE,\n display_timestamp,\n created_at,\n updated_at,\n deleted_at\nFROM\n {{ source(\n 'external_bronze',\n 'farcaster_links'\n ) }}\n qualify(ROW_NUMBER() over (PARTITION BY id\nORDER BY\n updated_at DESC)) = 1", "language": "sql", "refs": [], "sources": [["external_bronze", "farcaster_links"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.external_bronze.farcaster_links"]}, "compiled_path": "target/compiled/external_models/models/farcaster/gold/farcaster__fact_links.sql", "compiled": true, "compiled_code": "\n\nSELECT\n id,\n fid,\n target_fid,\n HASH,\n TIMESTAMP,\n TYPE,\n display_timestamp,\n created_at,\n updated_at,\n deleted_at\nFROM\n external.bronze.farcaster_links\n qualify(ROW_NUMBER() over (PARTITION BY id\nORDER BY\n updated_at DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.farcaster__fact_warpcast_power_users": {"database": "EXTERNAL", "schema": "farcaster", "name": "farcaster__fact_warpcast_power_users", "resource_type": "model", "package_name": "external_models", "path": "farcaster/gold/farcaster__fact_warpcast_power_users.sql", "original_file_path": "models/farcaster/gold/farcaster__fact_warpcast_power_users.sql", "unique_id": "model.external_models.farcaster__fact_warpcast_power_users", "fqn": ["external_models", "farcaster", "gold", "farcaster__fact_warpcast_power_users"], "alias": "fact_warpcast_power_users", "checksum": {"name": "sha256", "checksum": "03bfc13fd095856faf01885cd1ba00901bed3fdb123b9cba8db0acb4195288fd"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["farcaster"], "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["farcaster"], "description": "Represents data associated with power users, based on Warpcast power badges. For more info see [Neynar](https://docs.neynar.com/docs/how-to-query-neynar-sql-playground-for-farcaster-data) or [schema](https://github.com/farcasterxyz/hub-monorepo/tree/51c57245df8ec1c68d616dd3ab8ae5b80edf68fd/apps/replicator)", "columns": {"FID": {"name": "FID", "description": "FID of the user that signed the message.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATED_AT": {"name": "CREATED_AT", "description": "When the row was first created in this DB (not the same as the message timestamp!)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "UPDATED_AT": {"name": "UPDATED_AT", "description": "When the row was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DELETED_AT": {"name": "DELETED_AT", "description": "When the data was considered deleted by the hub", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/farcaster/gold/farcaster__fact_warpcast_power_users.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["farcaster"], "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}}, "created_at": 1760113502.6495373, "relation_name": "EXTERNAL.farcaster.fact_warpcast_power_users", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['farcaster'],\n meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'FARCASTER' } } }\n) }}\n\nSELECT\n fid,\n created_at,\n updated_at,\n deleted_at\nFROM\n {{ source(\n 'external_bronze',\n 'farcaster_warpcast_power_users'\n ) }}\n qualify(ROW_NUMBER() over (PARTITION BY fid\nORDER BY\n updated_at DESC)) = 1", "language": "sql", "refs": [], "sources": [["external_bronze", "farcaster_warpcast_power_users"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.external_bronze.farcaster_warpcast_power_users"]}, "compiled_path": "target/compiled/external_models/models/farcaster/gold/farcaster__fact_warpcast_power_users.sql", "compiled": true, "compiled_code": "\n\nSELECT\n fid,\n created_at,\n updated_at,\n deleted_at\nFROM\n external.bronze.farcaster_warpcast_power_users\n qualify(ROW_NUMBER() over (PARTITION BY fid\nORDER BY\n updated_at DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.farcaster__fact_signers": {"database": "EXTERNAL", "schema": "farcaster", "name": "farcaster__fact_signers", "resource_type": "model", "package_name": "external_models", "path": "farcaster/gold/farcaster__fact_signers.sql", "original_file_path": "models/farcaster/gold/farcaster__fact_signers.sql", "unique_id": "model.external_models.farcaster__fact_signers", "fqn": ["external_models", "farcaster", "gold", "farcaster__fact_signers"], "alias": "fact_signers", "checksum": {"name": "sha256", "checksum": "edfd525a72ad0a9546b79826a123c05cc9b1af1906d4f6aa663dd8d884a4b239"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["farcaster"], "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["farcaster"], "description": "Stores all registered signers. For more info see [Neynar](https://docs.neynar.com/docs/how-to-query-neynar-sql-playground-for-farcaster-data) or [schema](https://github.com/farcasterxyz/hub-monorepo/tree/51c57245df8ec1c68d616dd3ab8ae5b80edf68fd/apps/replicator)", "columns": {"ID": {"name": "ID", "description": "Generic identifier specific to this DB (a.k.a. surrogate key)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FID": {"name": "FID", "description": "FID of the user that authorized this signer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "APP_FID": {"name": "APP_FID", "description": "FID of the user/app that requested this signer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NAME": {"name": "NAME", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SIGNER": {"name": "SIGNER", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TIMESTAMP": {"name": "TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATED_AT": {"name": "CREATED_AT", "description": "When the row was first created in this DB (not the same as when the key was created on the network!)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "UPDATED_AT": {"name": "UPDATED_AT", "description": "When the row was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DELETED_AT": {"name": "DELETED_AT", "description": "Timestamp of the block where this signer was removed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/farcaster/gold/farcaster__fact_signers.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["farcaster"], "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}}, "created_at": 1760113502.63102, "relation_name": "EXTERNAL.farcaster.fact_signers", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['farcaster'],\n meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'FARCASTER' } } }\n) }}\n\nSELECT\n id,\n fid,\n app_fid,\n NAME,\n signer,\n TIMESTAMP,\n created_at,\n updated_at,\n deleted_at\nFROM\n {{ source(\n 'external_bronze',\n 'farcaster_signers'\n ) }}\n qualify(ROW_NUMBER() over (PARTITION BY id\nORDER BY\n updated_at DESC)) = 1", "language": "sql", "refs": [], "sources": [["external_bronze", "farcaster_signers"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.external_bronze.farcaster_signers"]}, "compiled_path": "target/compiled/external_models/models/farcaster/gold/farcaster__fact_signers.sql", "compiled": true, "compiled_code": "\n\nSELECT\n id,\n fid,\n app_fid,\n NAME,\n signer,\n TIMESTAMP,\n created_at,\n updated_at,\n deleted_at\nFROM\n external.bronze.farcaster_signers\n qualify(ROW_NUMBER() over (PARTITION BY id\nORDER BY\n updated_at DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.farcaster__dim_fids": {"database": "EXTERNAL", "schema": "farcaster", "name": "farcaster__dim_fids", "resource_type": "model", "package_name": "external_models", "path": "farcaster/gold/farcaster__dim_fids.sql", "original_file_path": "models/farcaster/gold/farcaster__dim_fids.sql", "unique_id": "model.external_models.farcaster__dim_fids", "fqn": ["external_models", "farcaster", "gold", "farcaster__dim_fids"], "alias": "dim_fids", "checksum": {"name": "sha256", "checksum": "cb0336e0e05c87d9146132255f21178510ac43664e0f365e5ff2e244bf0e2520"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["farcaster"], "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["farcaster"], "description": "Stores all registered FIDs on the Farcaster network. For more info see [Neynar](https://docs.neynar.com/docs/how-to-query-neynar-sql-playground-for-farcaster-data) or [schema](https://github.com/farcasterxyz/hub-monorepo/tree/51c57245df8ec1c68d616dd3ab8ae5b80edf68fd/apps/replicator)", "columns": {"FID": {"name": "FID", "description": "FID of the user (primary key)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATED_AT": {"name": "CREATED_AT", "description": "When the row was first created in this DB (not the same as registration date!)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "REGISTERED_AT": {"name": "REGISTERED_AT", "description": "Timestamp of the block in which the user was registered.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "UPDATED_AT": {"name": "UPDATED_AT", "description": "When the row was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CUSTODY_ADDRESS": {"name": "CUSTODY_ADDRESS", "description": "Address that owns the FID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/farcaster/gold/farcaster__dim_fids.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["farcaster"], "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}}, "created_at": 1760113502.663626, "relation_name": "EXTERNAL.farcaster.dim_fids", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['farcaster'],\n meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'FARCASTER' } } }\n) }}\n\nSELECT\n custody_address,\n fid,\n created_at,\n updated_at,\n registered_at\nFROM\n {{ source(\n 'external_bronze',\n 'farcaster_fids'\n ) }}\n qualify(ROW_NUMBER() over (PARTITION BY fid\nORDER BY\n updated_at DESC)) = 1", "language": "sql", "refs": [], "sources": [["external_bronze", "farcaster_fids"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.external_bronze.farcaster_fids"]}, "compiled_path": "target/compiled/external_models/models/farcaster/gold/farcaster__dim_fids.sql", "compiled": true, "compiled_code": "\n\nSELECT\n custody_address,\n fid,\n created_at,\n updated_at,\n registered_at\nFROM\n external.bronze.farcaster_fids\n qualify(ROW_NUMBER() over (PARTITION BY fid\nORDER BY\n updated_at DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.farcaster__fact_verifications": {"database": "EXTERNAL", "schema": "farcaster", "name": "farcaster__fact_verifications", "resource_type": "model", "package_name": "external_models", "path": "farcaster/gold/farcaster__fact_verifications.sql", "original_file_path": "models/farcaster/gold/farcaster__fact_verifications.sql", "unique_id": "model.external_models.farcaster__fact_verifications", "fqn": ["external_models", "farcaster", "gold", "farcaster__fact_verifications"], "alias": "fact_verifications", "checksum": {"name": "sha256", "checksum": "dd0c78aa98d3b065acf1ad89d41f8694328697f77c4d5fe125442226ca7f05e8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["farcaster"], "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["farcaster"], "description": "Represents a user verifying something on the network. Currently, the only verification is proving ownership of an Ethereum wallet address. For more info see [Neynar](https://docs.neynar.com/docs/how-to-query-neynar-sql-playground-for-farcaster-data) or [schema](https://github.com/farcasterxyz/hub-monorepo/tree/51c57245df8ec1c68d616dd3ab8ae5b80edf68fd/apps/replicator)", "columns": {"ID": {"name": "ID", "description": "Generic identifier specific to this DB (a.k.a. surrogate key)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FID": {"name": "FID", "description": "FID of the user that signed the message.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CLAIM": {"name": "CLAIM", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "HASH": {"name": "HASH", "description": "Message hash.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TIMESTAMP": {"name": "TIMESTAMP", "description": "Message timestamp in UTC.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATED_AT": {"name": "CREATED_AT", "description": "When the row was first created in this DB (not the same as the message timestamp!)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "UPDATED_AT": {"name": "UPDATED_AT", "description": "When the row was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DELETED_AT": {"name": "DELETED_AT", "description": "When the verification was considered deleted by the hub (e.g. in response to a VerificationRemove message, etc.)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/farcaster/gold/farcaster__fact_verifications.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["farcaster"], "meta": {"database_tags": {"table": {"PROTOCOL": "FARCASTER"}}}}, "created_at": 1760113502.6668775, "relation_name": "EXTERNAL.farcaster.fact_verifications", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['farcaster'],\n meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'FARCASTER' } } }\n) }}\n\nSELECT\n id,\n fid,\n claim,\n HASH,\n TIMESTAMP,\n created_at,\n updated_at,\n deleted_at\nFROM\n {{ source(\n 'external_bronze',\n 'farcaster_verifications'\n ) }}\n qualify(ROW_NUMBER() over (PARTITION BY id\nORDER BY\n updated_at DESC)) = 1", "language": "sql", "refs": [], "sources": [["external_bronze", "farcaster_verifications"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.external_bronze.farcaster_verifications"]}, "compiled_path": "target/compiled/external_models/models/farcaster/gold/farcaster__fact_verifications.sql", "compiled": true, "compiled_code": "\n\nSELECT\n id,\n fid,\n claim,\n HASH,\n TIMESTAMP,\n created_at,\n updated_at,\n deleted_at\nFROM\n external.bronze.farcaster_verifications\n qualify(ROW_NUMBER() over (PARTITION BY id\nORDER BY\n updated_at DESC)) = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.silver__layerzero_txs_snapshot": {"database": "EXTERNAL", "schema": "silver", "name": "silver__layerzero_txs_snapshot", "resource_type": "model", "package_name": "external_models", "path": "layerzero/silver/silver__layerzero_txs_snapshot.sql", "original_file_path": "models/layerzero/silver/silver__layerzero_txs_snapshot.sql", "unique_id": "model.external_models.silver__layerzero_txs_snapshot", "fqn": ["external_models", "layerzero", "silver", "silver__layerzero_txs_snapshot"], "alias": "layerzero_txs_snapshot", "checksum": {"name": "sha256", "checksum": "24d0531e9b09cba562d48c325b8e9c8ac5de8e62f42883a27bbf7132d293bb0b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["layerzero"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "layerzero_txs_snapshot_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": "source_timestamp_utc::DATE"}, "tags": ["layerzero"], "description": "", "columns": {"SOURCE_TRANSACTION_HASH": {"name": "SOURCE_TRANSACTION_HASH", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/layerzero/silver/silver__layerzero_txs_snapshot.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "table", "unique_key": "layerzero_txs_snapshot_id", "cluster_by": "source_timestamp_utc::DATE", "tags": ["layerzero"]}, "created_at": 1760113502.6705241, "relation_name": "EXTERNAL.silver.layerzero_txs_snapshot", "raw_code": "{{ config(\n materialized = \"table\",\n unique_key = \"layerzero_txs_snapshot_id\",\n cluster_by = \"source_timestamp_utc::DATE\",\n tags = ['layerzero']\n) }}\n\nWITH base AS (\n\n SELECT\n IFF(\n source_chain = '\"\"',\n NULL,\n REGEXP_REPLACE(\n source_chain,\n '^\"|\\\\s*\"$',\n ''\n )\n ) AS source_chain,\n IFF(\n source_transaction_hash = '\"\"',\n NULL,\n REGEXP_REPLACE(\n source_transaction_hash,\n '^\"|\\\\s*\"$',\n ''\n )\n ) AS source_transaction_hash,\n IFF(\n source_contract = '\"\"',\n NULL,\n REGEXP_REPLACE(\n source_contract,\n '^\"|\\\\s*\"$',\n ''\n )\n ) AS source_contract,\n IFF(\n source_chain = '\"\"',\n NULL,\n REGEXP_REPLACE(\n destination_chain,\n '^\"|\\\\s*\"$',\n ''\n )\n ) AS destination_chain,\n IFF(\n destination_transaction_hash = '\"\"',\n NULL,\n REGEXP_REPLACE(\n destination_transaction_hash,\n '^\"|\\\\s*\"$',\n ''\n )\n ) AS destination_transaction_hash,\n IFF(\n destination_contract = '\"\"',\n NULL,\n REGEXP_REPLACE(\n destination_contract,\n '^\"|\\\\s*\"$',\n ''\n )\n ) AS destination_contract,\n IFF(\n sender_wallet = '\"\"',\n NULL,\n REGEXP_REPLACE(\n sender_wallet,\n '^\"|\\\\s*\"$',\n ''\n )\n ) AS sender_wallet,\n TO_TIMESTAMP_NTZ(\n IFF(\n source_timestamp_utc = '\"\"',\n NULL,\n REGEXP_REPLACE(\n source_timestamp_utc,\n '^\"|\\\\s*\"$',\n ''\n )\n )\n ) AS source_timestamp_utc,\n IFF(\n project = '\"\"',\n NULL,\n REGEXP_REPLACE(\n project,\n '^\"|\\\\s*\"$',\n ''\n )\n ) AS project,\n IFF(\n native_drop_usd = '\"\"',\n NULL,\n REGEXP_REPLACE(\n native_drop_usd,\n '^\"|\\\\s*\"$',\n ''\n )\n ) AS native_drop_usd,\n IFF(\n stargate_swap_usd = '\"\"',\n NULL,\n REGEXP_REPLACE(\n stargate_swap_usd,\n '^\"|\\\\s*\"$',\n ''\n )\n ) AS stargate_swap_usd,\n ROW_NUMBER() over (\n PARTITION BY source_transaction_hash\n ORDER BY\n source_chain ASC\n ) AS tx_rn,\n snapshot_version,\n _inserted_timestamp\n FROM\n {{ ref('bronze__layerzero_txs_snapshot1') }}\n)\nSELECT\n source_chain,\n source_transaction_hash,\n source_contract,\n destination_chain,\n destination_transaction_hash,\n destination_contract,\n sender_wallet,\n source_timestamp_utc,\n project,\n native_drop_usd,\n stargate_swap_usd,\n tx_rn,\n snapshot_version,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['source_transaction_hash', 'tx_rn', 'snapshot_version']\n ) }} AS layerzero_txs_snapshot_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n base", "language": "sql", "refs": [{"name": "bronze__layerzero_txs_snapshot1", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.external_models.bronze__layerzero_txs_snapshot1"]}, "compiled_path": "target/compiled/external_models/models/layerzero/silver/silver__layerzero_txs_snapshot.sql", "compiled": true, "compiled_code": "\n\nWITH base AS (\n\n SELECT\n IFF(\n source_chain = '\"\"',\n NULL,\n REGEXP_REPLACE(\n source_chain,\n '^\"|\\\\s*\"$',\n ''\n )\n ) AS source_chain,\n IFF(\n source_transaction_hash = '\"\"',\n NULL,\n REGEXP_REPLACE(\n source_transaction_hash,\n '^\"|\\\\s*\"$',\n ''\n )\n ) AS source_transaction_hash,\n IFF(\n source_contract = '\"\"',\n NULL,\n REGEXP_REPLACE(\n source_contract,\n '^\"|\\\\s*\"$',\n ''\n )\n ) AS source_contract,\n IFF(\n source_chain = '\"\"',\n NULL,\n REGEXP_REPLACE(\n destination_chain,\n '^\"|\\\\s*\"$',\n ''\n )\n ) AS destination_chain,\n IFF(\n destination_transaction_hash = '\"\"',\n NULL,\n REGEXP_REPLACE(\n destination_transaction_hash,\n '^\"|\\\\s*\"$',\n ''\n )\n ) AS destination_transaction_hash,\n IFF(\n destination_contract = '\"\"',\n NULL,\n REGEXP_REPLACE(\n destination_contract,\n '^\"|\\\\s*\"$',\n ''\n )\n ) AS destination_contract,\n IFF(\n sender_wallet = '\"\"',\n NULL,\n REGEXP_REPLACE(\n sender_wallet,\n '^\"|\\\\s*\"$',\n ''\n )\n ) AS sender_wallet,\n TO_TIMESTAMP_NTZ(\n IFF(\n source_timestamp_utc = '\"\"',\n NULL,\n REGEXP_REPLACE(\n source_timestamp_utc,\n '^\"|\\\\s*\"$',\n ''\n )\n )\n ) AS source_timestamp_utc,\n IFF(\n project = '\"\"',\n NULL,\n REGEXP_REPLACE(\n project,\n '^\"|\\\\s*\"$',\n ''\n )\n ) AS project,\n IFF(\n native_drop_usd = '\"\"',\n NULL,\n REGEXP_REPLACE(\n native_drop_usd,\n '^\"|\\\\s*\"$',\n ''\n )\n ) AS native_drop_usd,\n IFF(\n stargate_swap_usd = '\"\"',\n NULL,\n REGEXP_REPLACE(\n stargate_swap_usd,\n '^\"|\\\\s*\"$',\n ''\n )\n ) AS stargate_swap_usd,\n ROW_NUMBER() over (\n PARTITION BY source_transaction_hash\n ORDER BY\n source_chain ASC\n ) AS tx_rn,\n snapshot_version,\n _inserted_timestamp\n FROM\n EXTERNAL.bronze.layerzero_txs_snapshot1\n)\nSELECT\n source_chain,\n source_transaction_hash,\n source_contract,\n destination_chain,\n destination_transaction_hash,\n destination_contract,\n sender_wallet,\n source_timestamp_utc,\n project,\n native_drop_usd,\n stargate_swap_usd,\n tx_rn,\n snapshot_version,\n _inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(source_transaction_hash as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(tx_rn as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(snapshot_version as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS layerzero_txs_snapshot_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n base", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.layerzero__fact_transactions_snapshot": {"database": "EXTERNAL", "schema": "layerzero", "name": "layerzero__fact_transactions_snapshot", "resource_type": "model", "package_name": "external_models", "path": "layerzero/gold/layerzero__fact_transactions_snapshot.sql", "original_file_path": "models/layerzero/gold/layerzero__fact_transactions_snapshot.sql", "unique_id": "model.external_models.layerzero__fact_transactions_snapshot", "fqn": ["external_models", "layerzero", "gold", "layerzero__fact_transactions_snapshot"], "alias": "fact_transactions_snapshot", "checksum": {"name": "sha256", "checksum": "995676f6858ddb26a70db8d08aefd474fd566dcbca3ef964fcca335b7de0fdcb"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["layerzero"], "meta": {"database_tags": {"table": {"PROTOCOL": "layerzero"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["layerzero"], "description": "This table records transactions data provided by LayerZero in their Sybil Reporting effort. You may refer to this github link for more information - https://github.com/LayerZero-Labs/sybil-report/?tab=readme-ov-file . Please reach out to the LayerZero team for any data discrepancies or questions.", "columns": {"SOURCE_CHAIN": {"name": "SOURCE_CHAIN", "description": "The chain where the transaction originated from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SOURCE_TRANSACTION_HASH": {"name": "SOURCE_TRANSACTION_HASH", "description": "The transaction hash from the source chain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SOURCE_CONTRACT": {"name": "SOURCE_CONTRACT", "description": "The contract address from the source transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DESTINATION_CHAIN": {"name": "DESTINATION_CHAIN", "description": "The chain where the transaction is directed to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DESTINATION_TRANSACTION_HASH": {"name": "DESTINATION_TRANSACTION_HASH", "description": "The transaction hash on the destination chain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DESTINATION_CONTRACT": {"name": "DESTINATION_CONTRACT", "description": "The contract address from the destination transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SENDER_WALLET": {"name": "SENDER_WALLET", "description": "The wallet address that initiated the source transaction hash.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SOURCE_TIMESTAMP_UTC": {"name": "SOURCE_TIMESTAMP_UTC", "description": "The timestamp of the source transaction hash in UTC.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PROJECT": {"name": "PROJECT", "description": "The name of the project.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NATIVE_DROP_USD": {"name": "NATIVE_DROP_USD", "description": "The native drop in USD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "STARGATE_SWAP_USD": {"name": "STARGATE_SWAP_USD", "description": "The stargate swap in USD.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "SNAPSHOT_VERSION": {"name": "SNAPSHOT_VERSION", "description": "The version number of the snapshot taken.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "LAYERZERO_TXS_SNAPSHOT_ID": {"name": "LAYERZERO_TXS_SNAPSHOT_ID", "description": "The unique identifier for each row in the table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INSERTED_TIMESTAMP": {"name": "INSERTED_TIMESTAMP", "description": "The utc timestamp at which the row was inserted into the table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "MODIFIED_TIMESTAMP": {"name": "MODIFIED_TIMESTAMP", "description": "The utc timestamp at which the row was last modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "layerzero"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/layerzero/gold/layerzero__fact_transactions_snapshot.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["layerzero"], "meta": {"database_tags": {"table": {"PROTOCOL": "layerzero"}}}}, "created_at": 1760113502.682094, "relation_name": "EXTERNAL.layerzero.fact_transactions_snapshot", "raw_code": "{{ config(\n materialized = 'view',\n persist_docs ={ \"relation\": true,\n \"columns\": true },\n tags = ['layerzero'],\n meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'layerzero' } } }\n) }}\n\n\nSELECT\n source_chain,\n source_transaction_hash,\n source_contract,\n destination_chain,\n destination_transaction_hash,\n destination_contract,\n sender_wallet,\n source_timestamp_utc,\n project,\n native_drop_usd,\n stargate_swap_usd,\n snapshot_version,\n layerzero_txs_snapshot_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n {{ ref('silver__layerzero_txs_snapshot') }}", "language": "sql", "refs": [{"name": "silver__layerzero_txs_snapshot", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.external_models.silver__layerzero_txs_snapshot"]}, "compiled_path": "target/compiled/external_models/models/layerzero/gold/layerzero__fact_transactions_snapshot.sql", "compiled": true, "compiled_code": "\n\n\nSELECT\n source_chain,\n source_transaction_hash,\n source_contract,\n destination_chain,\n destination_transaction_hash,\n destination_contract,\n sender_wallet,\n source_timestamp_utc,\n project,\n native_drop_usd,\n stargate_swap_usd,\n snapshot_version,\n layerzero_txs_snapshot_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n EXTERNAL.silver.layerzero_txs_snapshot", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__layerzero_txs_snapshot1": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__layerzero_txs_snapshot1", "resource_type": "model", "package_name": "external_models", "path": "layerzero/bronze/bronze__layerzero_txs_snapshot1.sql", "original_file_path": "models/layerzero/bronze/bronze__layerzero_txs_snapshot1.sql", "unique_id": "model.external_models.bronze__layerzero_txs_snapshot1", "fqn": ["external_models", "layerzero", "bronze", "bronze__layerzero_txs_snapshot1"], "alias": "layerzero_txs_snapshot1", "checksum": {"name": "sha256", "checksum": "b0667f7e0063d2fbde97cddf8505547852a9ae2f37dc715c4c0f6782649ca647"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view"}, "created_at": 1760113499.0689456, "relation_name": "EXTERNAL.bronze.layerzero_txs_snapshot1", "raw_code": "{{ config (\n materialized = 'view'\n) }}\n\nSELECT\n source_chain,\n source_transaction_hash,\n source_contract,\n destination_chain,\n destination_transaction_hash,\n destination_contract,\n sender_wallet,\n source_timestamp_utc,\n project,\n native_drop_usd,\n stargate_swap_usd,\n SYSDATE() AS _inserted_timestamp,\n 'snapshot_one' AS snapshot_version\nFROM\n {{ source(\n \"layerzero\",\n \"transactions\"\n ) }}", "language": "sql", "refs": [], "sources": [["layerzero", "transactions"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.layerzero.transactions"]}, "compiled_path": "target/compiled/external_models/models/layerzero/bronze/bronze__layerzero_txs_snapshot1.sql", "compiled": true, "compiled_code": "\n\nSELECT\n source_chain,\n source_transaction_hash,\n source_contract,\n destination_chain,\n destination_transaction_hash,\n destination_contract,\n sender_wallet,\n source_timestamp_utc,\n project,\n native_drop_usd,\n stargate_swap_usd,\n SYSDATE() AS _inserted_timestamp,\n 'snapshot_one' AS snapshot_version\nFROM\n external.layerzero.transactions", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.silver__flashbots_mev_txs": {"database": "EXTERNAL", "schema": "silver", "name": "silver__flashbots_mev_txs", "resource_type": "model", "package_name": "external_models", "path": "flashbots/silver/silver__flashbots_mev_txs.sql", "original_file_path": "models/flashbots/silver/silver__flashbots_mev_txs.sql", "unique_id": "model.external_models.silver__flashbots_mev_txs", "fqn": ["external_models", "flashbots", "silver", "silver__flashbots_mev_txs"], "alias": "flashbots_mev_txs", "checksum": {"name": "sha256", "checksum": "b74cb439cd826e9fec747bada56b0f9218a43e24755343425122880f66846211"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["flashbots"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": "round(block_number,-3)"}, "tags": ["flashbots"], "description": "", "columns": {"_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIME": {"name": "BLOCK_TIME", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/flashbots/silver/silver__flashbots_mev_txs.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": "_id", "cluster_by": "round(block_number,-3)", "tags": ["flashbots"]}, "created_at": 1760113502.6832793, "relation_name": "EXTERNAL.silver.flashbots_mev_txs", "raw_code": "-- depends_on: {{ ref('bronze__flashbots_mev_txs') }}\n{{ config(\n materialized = \"incremental\",\n unique_key = \"_id\",\n cluster_by = \"round(block_number,-3)\",\n tags = ['flashbots']\n) }}\n\nSELECT\n block_number,\n block_time,\n block_hash,\n extra_data,\n fee_recipient_address,\n bundle_id,\n user_tx_hash,\n LOWER(user_tx_from) AS user_tx_from,\n LOWER(user_tx_to) AS user_tx_to,\n backrun_tx_hash,\n LOWER(backrun_tx_from) AS backrun_tx_from,\n LOWER(backrun_tx_to) AS backrun_tx_to,\n refund_tx_hash,\n LOWER(refund_from) AS refund_from,\n LOWER(refund_to) AS refund_to,\n refund_value_eth,\n is_mevshare::boolean as is_mevshare,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['user_tx_hash', 'backrun_tx_hash', 'bundle_id']\n ) }} AS _id\nFROM\n\n{% if is_incremental() %}\n{{ ref('bronze__flashbots_mev_txs') }}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) _inserted_timestamp\n FROM\n {{ this }}\n )\n{% else %}\n {{ ref('bronze__flashbots_mev_txs_fr') }}\n{% endif %}", "language": "sql", "refs": [{"name": "bronze__flashbots_mev_txs", "package": null, "version": null}, {"name": "bronze__flashbots_mev_txs_fr", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental"], "nodes": ["model.external_models.bronze__flashbots_mev_txs", "model.external_models.bronze__flashbots_mev_txs_fr"]}, "compiled_path": "target/compiled/external_models/models/flashbots/silver/silver__flashbots_mev_txs.sql", "compiled": true, "compiled_code": "-- depends_on: EXTERNAL.bronze.flashbots_mev_txs\n\n\nSELECT\n block_number,\n block_time,\n block_hash,\n extra_data,\n fee_recipient_address,\n bundle_id,\n user_tx_hash,\n LOWER(user_tx_from) AS user_tx_from,\n LOWER(user_tx_to) AS user_tx_to,\n backrun_tx_hash,\n LOWER(backrun_tx_from) AS backrun_tx_from,\n LOWER(backrun_tx_to) AS backrun_tx_to,\n refund_tx_hash,\n LOWER(refund_from) AS refund_from,\n LOWER(refund_to) AS refund_to,\n refund_value_eth,\n is_mevshare::boolean as is_mevshare,\n _inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(user_tx_hash as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(backrun_tx_hash as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(bundle_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS _id\nFROM\n\n\nEXTERNAL.bronze.flashbots_mev_txs\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) _inserted_timestamp\n FROM\n EXTERNAL.silver.flashbots_mev_txs\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.silver__flashbots_protect_txs": {"database": "EXTERNAL", "schema": "silver", "name": "silver__flashbots_protect_txs", "resource_type": "model", "package_name": "external_models", "path": "flashbots/silver/silver__flashbots_protect_txs.sql", "original_file_path": "models/flashbots/silver/silver__flashbots_protect_txs.sql", "unique_id": "model.external_models.silver__flashbots_protect_txs", "fqn": ["external_models", "flashbots", "silver", "silver__flashbots_protect_txs"], "alias": "flashbots_protect_txs", "checksum": {"name": "sha256", "checksum": "fb1dd448d03920d90103462d75465a710a472bcb0924a26ea7d4ea58ea49a02d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["flashbots"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "cluster_by": "round(created_at_block_number,-3)"}, "tags": ["flashbots"], "description": "", "columns": {"_INSERTED_TIMESTAMP": {"name": "_INSERTED_TIMESTAMP", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/flashbots/silver/silver__flashbots_protect_txs.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": "_id", "cluster_by": "round(created_at_block_number,-3)", "tags": ["flashbots"]}, "created_at": 1760113502.692758, "relation_name": "EXTERNAL.silver.flashbots_protect_txs", "raw_code": "-- depends_on: {{ ref('bronze__flashbots_protect_txs') }}\n{{ config(\n materialized = \"incremental\",\n unique_key = \"_id\",\n cluster_by = \"round(created_at_block_number,-3)\",\n tags = ['flashbots']\n) }}\n\nSELECT\n tx_hash,\n LOWER(from_address) AS from_address,\n LOWER(to_address) AS to_address,\n created_at_block_number,\n tx_id,\n hints_selected,\n num_of_builders_shared,\n refund_percent,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(\n ['tx_hash', 'created_at_block_number', 'tx_id']\n ) }} AS _id\nFROM\n\n{% if is_incremental() %}\n{{ ref('bronze__flashbots_protect_txs') }}\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) _inserted_timestamp\n FROM\n {{ this }}\n )\n{% else %}\n {{ ref('bronze__flashbots_protect_txs_fr') }}\n{% endif %}", "language": "sql", "refs": [{"name": "bronze__flashbots_protect_txs", "package": null, "version": null}, {"name": "bronze__flashbots_protect_txs_fr", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.dbt.is_incremental"], "nodes": ["model.external_models.bronze__flashbots_protect_txs", "model.external_models.bronze__flashbots_protect_txs_fr"]}, "compiled_path": "target/compiled/external_models/models/flashbots/silver/silver__flashbots_protect_txs.sql", "compiled": true, "compiled_code": "-- depends_on: EXTERNAL.bronze.flashbots_protect_txs\n\n\nSELECT\n tx_hash,\n LOWER(from_address) AS from_address,\n LOWER(to_address) AS to_address,\n created_at_block_number,\n tx_id,\n hints_selected,\n num_of_builders_shared,\n refund_percent,\n _inserted_timestamp,\n \n \nmd5(cast(coalesce(cast(tx_hash as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(created_at_block_number as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(tx_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) AS _id\nFROM\n\n\nEXTERNAL.bronze.flashbots_protect_txs\nWHERE\n _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp) _inserted_timestamp\n FROM\n EXTERNAL.silver.flashbots_protect_txs\n )\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.flashbots__fact_protect_transactions": {"database": "EXTERNAL", "schema": "flashbots", "name": "flashbots__fact_protect_transactions", "resource_type": "model", "package_name": "external_models", "path": "flashbots/gold/flashbots__fact_protect_transactions.sql", "original_file_path": "models/flashbots/gold/flashbots__fact_protect_transactions.sql", "unique_id": "model.external_models.flashbots__fact_protect_transactions", "fqn": ["external_models", "flashbots", "gold", "flashbots__fact_protect_transactions"], "alias": "fact_protect_transactions", "checksum": {"name": "sha256", "checksum": "d69b58c51d8d9da1f2b0ada49fd208a48e627854884c059153c3050d4f586ccb"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["flashbots"], "meta": {"database_tags": {"table": {"PROTOCOL": "flashbots"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["flashbots"], "description": "This table contains all the transactions received by Flashbots Protect RPC that are seen landed onchain, including the privacy setting user or application set when sending them. Read more about Flashbots Protect from [documentation](https://docs.flashbots.net/flashbots-protect/quick-start) and [website](https://protect.flashbots.net/)!\nPlease reach out to the Flashbots team for any data discrepancies or questions.\n", "columns": {"TX_HASH": {"name": "TX_HASH", "description": "The Ethereum transaction hash of the protect transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FROM_ADDRESS": {"name": "FROM_ADDRESS", "description": "The Ethereum address of the sender initiating the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TO_ADDRESS": {"name": "TO_ADDRESS", "description": "The Ethereum address of the recipient of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "PUBLIC_MEMPOOL": {"name": "PUBLIC_MEMPOOL", "description": "A boolean indicating whether the transaction was initially visible in the public mempool. Source [mempool_dumpster](https://mempool-dumpster.flashbots.net/index.html)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CREATED_AT_BLOCK_NUMBER": {"name": "CREATED_AT_BLOCK_NUMBER", "description": "The block number at which the transaction was created (first received by Flashbots server). Note - Due to some reorg/simulation issues, there are some rows where `created_at_block_number` > `included_block_number`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "INCLUDED_BLOCK_NUMBER": {"name": "INCLUDED_BLOCK_NUMBER", "description": "The block number in which the transaction was included in the blockchain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_ID": {"name": "TX_ID", "description": "A row number partitioned by (`tx_hash`, `created_at_block_number`, `included_block_number`) to use as part of the deterministic id for transactions who were submitted multiple times at same block, with different shared configs", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "HINTS_SELECTED": {"name": "HINTS_SELECTED", "description": "The hints shared by the user for public streaming to searchers in the MEV-share orderflow auction (OFA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "NUM_OF_BUILDERS_SHARED": {"name": "NUM_OF_BUILDERS_SHARED", "description": "The number of block builders the transaction was shared with, higher number will likely help faster inclusion speed onchain.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "REFUND_PERCENT": {"name": "REFUND_PERCENT", "description": "The percentage of OFA backrun profits refunded to the sender (user). The rest can be kept by builders or bided to payout to validator. Flashbots builders keeps 0 profit and send it to validator in the end of block payment transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "flashbots"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/flashbots/gold/flashbots__fact_protect_transactions.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["flashbots"], "meta": {"database_tags": {"table": {"PROTOCOL": "flashbots"}}}}, "created_at": 1760113502.708499, "relation_name": "EXTERNAL.flashbots.fact_protect_transactions", "raw_code": "{{ config(\n materialized = \"view\",\n tags = ['flashbots'],\n meta={\n 'database_tags':{\n 'table': {\n 'PROTOCOL': 'flashbots'\n }\n }\n }\n) }}\n\nSELECT\n tx_hash,\n from_address,\n to_address,\n created_at_block_number,\n tx_id,\n hints_selected,\n num_of_builders_shared,\n refund_percent\nFROM \n {{ ref('silver__flashbots_protect_txs') }}", "language": "sql", "refs": [{"name": "silver__flashbots_protect_txs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.external_models.silver__flashbots_protect_txs"]}, "compiled_path": "target/compiled/external_models/models/flashbots/gold/flashbots__fact_protect_transactions.sql", "compiled": true, "compiled_code": "\n\nSELECT\n tx_hash,\n from_address,\n to_address,\n created_at_block_number,\n tx_id,\n hints_selected,\n num_of_builders_shared,\n refund_percent\nFROM \n EXTERNAL.silver.flashbots_protect_txs", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.flashbots__fact_mevshare_transactions": {"database": "EXTERNAL", "schema": "flashbots", "name": "flashbots__fact_mevshare_transactions", "resource_type": "model", "package_name": "external_models", "path": "flashbots/gold/flashbots__fact_mevshare_transactions.sql", "original_file_path": "models/flashbots/gold/flashbots__fact_mevshare_transactions.sql", "unique_id": "model.external_models.flashbots__fact_mevshare_transactions", "fqn": ["external_models", "flashbots", "gold", "flashbots__fact_mevshare_transactions"], "alias": "fact_mevshare_transactions", "checksum": {"name": "sha256", "checksum": "6d323b190108ba3ea518235f908a28ff10ce276bb77cb545e1363e4d42196631"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["flashbots"], "meta": {"database_tags": {"table": {"PROTOCOL": "flashbots"}}}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["flashbots"], "description": "This table records all the landed backrun transactions on MEV-share, and its original user transaction that is being backrun, as well as the refund transaction where block builder send searcher's refund back to originating user. These 3 transactions are settled in a bundle with the order of `(user_tx, backrun_tx, refund_tx)`.\nMEV-share is the Order Flow Auction (OFA) product from Flashbots, resharing MEV profits back to users, with parameterized privacy features. MEV-share inherit orderflow coming from Flashbots Protect RPC endpoint. Read more in [Flashbots docs](https://docs.flashbots.net/flashbots-protect/mev-share)!\nPlease reach out to the Flashbots team for any data discrepancies or questions.\n", "columns": {"BLOCK_NUMBER": {"name": "BLOCK_NUMBER", "description": "The number of the block in which transactions were included.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_TIME": {"name": "BLOCK_TIME", "description": "The timestamp for when the block was mined.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_HASH": {"name": "BLOCK_HASH", "description": "The hash of the block in which the MEV-share transactions landed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "EXTRA_DATA": {"name": "EXTRA_DATA", "description": "Additional data included in the block, often used for identifying the block builder.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "FEE_RECIPIENT_ADDRESS": {"name": "FEE_RECIPIENT_ADDRESS", "description": "The Ethereum address of the recipient of block rewards, which can be the block builder or validator.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BUNDLE_ID": {"name": "BUNDLE_ID", "description": "A row number partitioned by (`user_tx_hash`, `backrun_tx_hash`) to use as part of the deterministic id for refund bundles.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "USER_TX_HASH": {"name": "USER_TX_HASH", "description": "The Ethereum hash of the user's protect transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "USER_TX_FROM": {"name": "USER_TX_FROM", "description": "The Ethereum address of the sender of the protect transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "USER_TX_TO": {"name": "USER_TX_TO", "description": "The Ethereum address of the recipient of the protect transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BACKRUN_TX_HASH": {"name": "BACKRUN_TX_HASH", "description": "The Ethereum hash of the transaction that backran the user's transaction in MEV-share OFA.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BACKRUN_TX_FROM": {"name": "BACKRUN_TX_FROM", "description": "The Ethereum address of the sender of the backrunning transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BACKRUN_TX_TO": {"name": "BACKRUN_TX_TO", "description": "The Ethereum address of the recipient of the backrunning transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "REFUND_TX_HASH": {"name": "REFUND_TX_HASH", "description": "The Ethereum hash of the refund transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "REFUND_TX_FROM": {"name": "REFUND_TX_FROM", "description": "The Ethereum address from which the refund was sent, which is always the block builder address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "REFUND_TX_TO": {"name": "REFUND_TX_TO", "description": "The Ethereum address to which the refund was sent, which usually is user address but can be a different address user set when sending transaction to Flashbots Protect / MEV-share.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "REFUND_VALUE_ETH": {"name": "REFUND_VALUE_ETH", "description": "The amount of ETH refunded to the protect transaction, as a result of a successful OFA backrun, depending on user's refund percentage setting when sending the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "IS_MEVSHARE": {"name": "IS_MEVSHARE", "description": "If true, mev-share matched the transactions in the bundle. If false, it was sent pre-matched from a third party to mev-share.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {"database_tags": {"table": {"PROTOCOL": "flashbots"}}}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/flashbots/gold/flashbots__fact_mevshare_transactions.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view", "tags": ["flashbots"], "meta": {"database_tags": {"table": {"PROTOCOL": "flashbots"}}}}, "created_at": 1760113502.7052383, "relation_name": "EXTERNAL.flashbots.fact_mevshare_transactions", "raw_code": "{{ config(\n materialized = \"view\",\n tags = ['flashbots'],\n meta={\n 'database_tags':{\n 'table': {\n 'PROTOCOL': 'flashbots'\n }\n }\n }\n) }}\n\nSELECT\n block_number,\n block_time,\n block_hash,\n extra_data,\n fee_recipient_address,\n bundle_id,\n user_tx_hash,\n user_tx_from,\n user_tx_to,\n backrun_tx_hash,\n backrun_tx_from,\n backrun_tx_to,\n refund_tx_hash,\n refund_from,\n refund_to,\n refund_value_eth,\n is_mevshare\nFROM\n {{ ref('silver__flashbots_mev_txs') }}", "language": "sql", "refs": [{"name": "silver__flashbots_mev_txs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.external_models.silver__flashbots_mev_txs"]}, "compiled_path": "target/compiled/external_models/models/flashbots/gold/flashbots__fact_mevshare_transactions.sql", "compiled": true, "compiled_code": "\n\nSELECT\n block_number,\n block_time,\n block_hash,\n extra_data,\n fee_recipient_address,\n bundle_id,\n user_tx_hash,\n user_tx_from,\n user_tx_to,\n backrun_tx_hash,\n backrun_tx_from,\n backrun_tx_to,\n refund_tx_hash,\n refund_from,\n refund_to,\n refund_value_eth,\n is_mevshare\nFROM\n EXTERNAL.silver.flashbots_mev_txs", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__flashbots_mev_txs": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__flashbots_mev_txs", "resource_type": "model", "package_name": "external_models", "path": "flashbots/bronze/bronze__flashbots_mev_txs.sql", "original_file_path": "models/flashbots/bronze/bronze__flashbots_mev_txs.sql", "unique_id": "model.external_models.bronze__flashbots_mev_txs", "fqn": ["external_models", "flashbots", "bronze", "bronze__flashbots_mev_txs"], "alias": "flashbots_mev_txs", "checksum": {"name": "sha256", "checksum": "db4425f852cd3ab06b17eb216efa2c8a3bf0a922bdd0665d2c9ac2a90e01e2eb"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view"}, "created_at": 1760113499.0953104, "relation_name": "EXTERNAL.bronze.flashbots_mev_txs", "raw_code": "{{ config (\n materialized = 'view'\n) }}\n\nWITH meta AS (\n\n SELECT\n last_modified AS _inserted_timestamp,\n file_name,\n (\n NULLIF(\n CONCAT(\n SPLIT_PART(SPLIT_PART(file_name, '/', 3), '-', 1),\n SPLIT_PART(SPLIT_PART(file_name, '/', 3), '-', 2)\n ),\n 'mevshare_historical.csv'\n ) :: INTEGER\n ) AS _partition_by_month\n FROM\n TABLE(\n information_schema.external_table_file_registration_history(\n start_time => DATEADD('day', -3, CURRENT_TIMESTAMP()),\n table_name => '{{ source( \"flashbots\", \"mev\") }}')\n ) A \n )\n SELECT\n _inserted_timestamp,\n block_number,\n block_time,\n block_hash,\n extra_data,\n fee_recipient_address,\n bundle_id,\n user_tx_hash,\n user_tx_from,\n user_tx_to,\n backrun_tx_hash,\n backrun_tx_from,\n backrun_tx_to,\n refund_tx_hash,\n refund_from,\n refund_to,\n refund_value_eth,\n is_mevshare,\n s.value\n FROM\n {{ source(\n \"flashbots\",\n \"mev\"\n ) }}\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND IFNULL(\n b._partition_by_month,\n 0\n ) = IFNULL(\n s._partition_by_month,\n 0\n )\n WHERE\n IFNULL(\n b._partition_by_month,\n 0\n ) = IFNULL(\n s._partition_by_month,\n 0\n )", "language": "sql", "refs": [], "sources": [["flashbots", "mev"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.flashbots.mev"]}, "compiled_path": "target/compiled/external_models/models/flashbots/bronze/bronze__flashbots_mev_txs.sql", "compiled": true, "compiled_code": "\n\nWITH meta AS (\n\n SELECT\n last_modified AS _inserted_timestamp,\n file_name,\n (\n NULLIF(\n CONCAT(\n SPLIT_PART(SPLIT_PART(file_name, '/', 3), '-', 1),\n SPLIT_PART(SPLIT_PART(file_name, '/', 3), '-', 2)\n ),\n 'mevshare_historical.csv'\n ) :: INTEGER\n ) AS _partition_by_month\n FROM\n TABLE(\n information_schema.external_table_file_registration_history(\n start_time => DATEADD('day', -3, CURRENT_TIMESTAMP()),\n table_name => 'streamline.flashbots.mev')\n ) A \n )\n SELECT\n _inserted_timestamp,\n block_number,\n block_time,\n block_hash,\n extra_data,\n fee_recipient_address,\n bundle_id,\n user_tx_hash,\n user_tx_from,\n user_tx_to,\n backrun_tx_hash,\n backrun_tx_from,\n backrun_tx_to,\n refund_tx_hash,\n refund_from,\n refund_to,\n refund_value_eth,\n is_mevshare,\n s.value\n FROM\n streamline.flashbots.mev\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND IFNULL(\n b._partition_by_month,\n 0\n ) = IFNULL(\n s._partition_by_month,\n 0\n )\n WHERE\n IFNULL(\n b._partition_by_month,\n 0\n ) = IFNULL(\n s._partition_by_month,\n 0\n )", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__flashbots_mev_txs_fr": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__flashbots_mev_txs_fr", "resource_type": "model", "package_name": "external_models", "path": "flashbots/bronze/bronze__flashbots_mev_txs_fr.sql", "original_file_path": "models/flashbots/bronze/bronze__flashbots_mev_txs_fr.sql", "unique_id": "model.external_models.bronze__flashbots_mev_txs_fr", "fqn": ["external_models", "flashbots", "bronze", "bronze__flashbots_mev_txs_fr"], "alias": "flashbots_mev_txs_fr", "checksum": {"name": "sha256", "checksum": "ace31ad000a1a0bd8b445c7a1da4f7b06b355aaacd06b15bd70efa3cab27f8d5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view"}, "created_at": 1760113499.098172, "relation_name": "EXTERNAL.bronze.flashbots_mev_txs_fr", "raw_code": "{{ config (\n materialized = 'view'\n) }}\n\nWITH meta AS (\n\n SELECT\n registered_on AS _inserted_timestamp,\n file_name,\n (\n NULLIF(\n CONCAT(\n SPLIT_PART(SPLIT_PART(file_name, '/', 3), '-', 1),\n SPLIT_PART(SPLIT_PART(file_name, '/', 3), '-', 2)\n ),\n 'mevshare_historical.csv'\n ) :: INTEGER\n ) AS _partition_by_month\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => '{{ source( \"flashbots\", \"mev\") }}'\n )) A \n )\n SELECT\n _inserted_timestamp,\n block_number,\n block_time,\n block_hash,\n extra_data,\n fee_recipient_address,\n bundle_id,\n user_tx_hash,\n user_tx_from,\n user_tx_to,\n backrun_tx_hash,\n backrun_tx_from,\n backrun_tx_to,\n refund_tx_hash,\n refund_from,\n refund_to,\n refund_value_eth,\n is_mevshare,\n s.value\n FROM\n {{ source(\n \"flashbots\",\n \"mev\"\n ) }}\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND IFNULL(\n b._partition_by_month,\n 0\n ) = IFNULL(\n s._partition_by_month,\n 0\n )\n WHERE\n IFNULL(\n b._partition_by_month,\n 0\n ) = IFNULL(\n s._partition_by_month,\n 0\n )", "language": "sql", "refs": [], "sources": [["flashbots", "mev"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.flashbots.mev"]}, "compiled_path": "target/compiled/external_models/models/flashbots/bronze/bronze__flashbots_mev_txs_fr.sql", "compiled": true, "compiled_code": "\n\nWITH meta AS (\n\n SELECT\n registered_on AS _inserted_timestamp,\n file_name,\n (\n NULLIF(\n CONCAT(\n SPLIT_PART(SPLIT_PART(file_name, '/', 3), '-', 1),\n SPLIT_PART(SPLIT_PART(file_name, '/', 3), '-', 2)\n ),\n 'mevshare_historical.csv'\n ) :: INTEGER\n ) AS _partition_by_month\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => 'streamline.flashbots.mev'\n )) A \n )\n SELECT\n _inserted_timestamp,\n block_number,\n block_time,\n block_hash,\n extra_data,\n fee_recipient_address,\n bundle_id,\n user_tx_hash,\n user_tx_from,\n user_tx_to,\n backrun_tx_hash,\n backrun_tx_from,\n backrun_tx_to,\n refund_tx_hash,\n refund_from,\n refund_to,\n refund_value_eth,\n is_mevshare,\n s.value\n FROM\n streamline.flashbots.mev\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND IFNULL(\n b._partition_by_month,\n 0\n ) = IFNULL(\n s._partition_by_month,\n 0\n )\n WHERE\n IFNULL(\n b._partition_by_month,\n 0\n ) = IFNULL(\n s._partition_by_month,\n 0\n )", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__flashbots_protect_txs_fr": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__flashbots_protect_txs_fr", "resource_type": "model", "package_name": "external_models", "path": "flashbots/bronze/bronze__flashbots_protect_txs_fr.sql", "original_file_path": "models/flashbots/bronze/bronze__flashbots_protect_txs_fr.sql", "unique_id": "model.external_models.bronze__flashbots_protect_txs_fr", "fqn": ["external_models", "flashbots", "bronze", "bronze__flashbots_protect_txs_fr"], "alias": "flashbots_protect_txs_fr", "checksum": {"name": "sha256", "checksum": "e470d4b0b6bd4bc508eceaf2c6ccd4ad494df05328e8d67fa5b9b47cb99e1b1d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view"}, "created_at": 1760113499.100722, "relation_name": "EXTERNAL.bronze.flashbots_protect_txs_fr", "raw_code": "{{ config (\n materialized = 'view'\n) }}\n\nWITH meta AS (\n\n SELECT\n registered_on AS _inserted_timestamp,\n file_name,\n (\n NULLIF(\n CONCAT(\n SPLIT_PART(SPLIT_PART(file_name, '/', 2), '-', 1),\n SPLIT_PART(SPLIT_PART(file_name, '/', 2), '-', 2)\n ),\n 'protect_historical.csv'\n ) :: INTEGER\n ) AS _partition_by_month\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => '{{ source( \"flashbots\", \"protect\") }}'\n )) A \n )\n SELECT\n _inserted_timestamp,\n tx_hash,\n from_address,\n to_address,\n created_at_block_number,\n tx_id,\n hints_selected,\n num_of_builders_shared,\n refund_percent,\n s.value \n FROM\n {{ source(\n \"flashbots\",\n \"protect\"\n ) }}\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND IFNULL(\n b._partition_by_month,\n 0\n ) = IFNULL(\n s._partition_by_month,\n 0\n )\n WHERE\n IFNULL(\n b._partition_by_month,\n 0\n ) = IFNULL(\n s._partition_by_month,\n 0\n )", "language": "sql", "refs": [], "sources": [["flashbots", "protect"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.flashbots.protect"]}, "compiled_path": "target/compiled/external_models/models/flashbots/bronze/bronze__flashbots_protect_txs_fr.sql", "compiled": true, "compiled_code": "\n\nWITH meta AS (\n\n SELECT\n registered_on AS _inserted_timestamp,\n file_name,\n (\n NULLIF(\n CONCAT(\n SPLIT_PART(SPLIT_PART(file_name, '/', 2), '-', 1),\n SPLIT_PART(SPLIT_PART(file_name, '/', 2), '-', 2)\n ),\n 'protect_historical.csv'\n ) :: INTEGER\n ) AS _partition_by_month\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => 'streamline.flashbots.protect'\n )) A \n )\n SELECT\n _inserted_timestamp,\n tx_hash,\n from_address,\n to_address,\n created_at_block_number,\n tx_id,\n hints_selected,\n num_of_builders_shared,\n refund_percent,\n s.value \n FROM\n streamline.flashbots.protect\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND IFNULL(\n b._partition_by_month,\n 0\n ) = IFNULL(\n s._partition_by_month,\n 0\n )\n WHERE\n IFNULL(\n b._partition_by_month,\n 0\n ) = IFNULL(\n s._partition_by_month,\n 0\n )", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.external_models.bronze__flashbots_protect_txs": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__flashbots_protect_txs", "resource_type": "model", "package_name": "external_models", "path": "flashbots/bronze/bronze__flashbots_protect_txs.sql", "original_file_path": "models/flashbots/bronze/bronze__flashbots_protect_txs.sql", "unique_id": "model.external_models.bronze__flashbots_protect_txs", "fqn": ["external_models", "flashbots", "bronze", "bronze__flashbots_protect_txs"], "alias": "flashbots_protect_txs", "checksum": {"name": "sha256", "checksum": "5337457da13de045403b7a235bca0d4df9fe9e74419d0d20aadf11daaf2e7635"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "view"}, "created_at": 1760113499.1032214, "relation_name": "EXTERNAL.bronze.flashbots_protect_txs", "raw_code": "{{ config (\n materialized = 'view'\n) }}\n\nWITH meta AS (\n\n SELECT\n last_modified AS _inserted_timestamp,\n file_name,\n (\n NULLIF(\n CONCAT(\n SPLIT_PART(SPLIT_PART(file_name, '/', 2), '-', 1),\n SPLIT_PART(SPLIT_PART(file_name, '/', 2), '-', 2)\n ),\n 'protect_historical.csv'\n ) :: INTEGER\n ) AS _partition_by_month\n FROM\n TABLE(\n information_schema.external_table_file_registration_history(\n start_time => DATEADD('day', -3, CURRENT_TIMESTAMP()),\n table_name => '{{ source( \"flashbots\", \"protect\") }}')\n ) A \n )\n SELECT\n _inserted_timestamp,\n tx_hash,\n from_address,\n to_address,\n created_at_block_number,\n tx_id,\n hints_selected,\n num_of_builders_shared,\n refund_percent,\n s.value\n FROM\n {{ source(\n \"flashbots\",\n \"protect\"\n ) }}\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND IFNULL(\n b._partition_by_month,\n 0\n ) = IFNULL(\n s._partition_by_month,\n 0\n )\n WHERE\n IFNULL(\n b._partition_by_month,\n 0\n ) = IFNULL(\n s._partition_by_month,\n 0\n )", "language": "sql", "refs": [], "sources": [["flashbots", "protect"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.external_models.flashbots.protect"]}, "compiled_path": "target/compiled/external_models/models/flashbots/bronze/bronze__flashbots_protect_txs.sql", "compiled": true, "compiled_code": "\n\nWITH meta AS (\n\n SELECT\n last_modified AS _inserted_timestamp,\n file_name,\n (\n NULLIF(\n CONCAT(\n SPLIT_PART(SPLIT_PART(file_name, '/', 2), '-', 1),\n SPLIT_PART(SPLIT_PART(file_name, '/', 2), '-', 2)\n ),\n 'protect_historical.csv'\n ) :: INTEGER\n ) AS _partition_by_month\n FROM\n TABLE(\n information_schema.external_table_file_registration_history(\n start_time => DATEADD('day', -3, CURRENT_TIMESTAMP()),\n table_name => 'streamline.flashbots.protect')\n ) A \n )\n SELECT\n _inserted_timestamp,\n tx_hash,\n from_address,\n to_address,\n created_at_block_number,\n tx_id,\n hints_selected,\n num_of_builders_shared,\n refund_percent,\n s.value\n FROM\n streamline.flashbots.protect\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND IFNULL(\n b._partition_by_month,\n 0\n ) = IFNULL(\n s._partition_by_month,\n 0\n )\n WHERE\n IFNULL(\n b._partition_by_month,\n 0\n ) = IFNULL(\n s._partition_by_month,\n 0\n )", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "seed.external_models.bronze__defillama_api_pools_20230209_131432": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__defillama_api_pools_20230209_131432", "resource_type": "seed", "package_name": "external_models", "path": "bronze__defillama_api_pools_20230209_131432.csv", "original_file_path": "data/bronze__defillama_api_pools_20230209_131432.csv", "unique_id": "seed.external_models.bronze__defillama_api_pools_20230209_131432", "fqn": ["external_models", "bronze__defillama_api_pools_20230209_131432"], "alias": "defillama_api_pools_20230209_131432", "checksum": {"name": "path", "checksum": "data/bronze__defillama_api_pools_20230209_131432.csv"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1760113499.2231143, "relation_name": "EXTERNAL.bronze.defillama_api_pools_20230209_131432", "raw_code": "", "root_path": "/home/runner/work/external-models/external-models", "depends_on": {"macros": []}}, "seed.external_models.bronze__defillama_protocol_tvl_historical_response_sizes": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__defillama_protocol_tvl_historical_response_sizes", "resource_type": "seed", "package_name": "external_models", "path": "bronze__defillama_protocol_tvl_historical_response_sizes.csv", "original_file_path": "data/bronze__defillama_protocol_tvl_historical_response_sizes.csv", "unique_id": "seed.external_models.bronze__defillama_protocol_tvl_historical_response_sizes", "fqn": ["external_models", "bronze__defillama_protocol_tvl_historical_response_sizes"], "alias": "defillama_protocol_tvl_historical_response_sizes", "checksum": {"name": "sha256", "checksum": "abb93c916302bd00c7127aeb7faf412b9842028013e6dc9121ccf3826115c574"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1760113499.2255805, "relation_name": "EXTERNAL.bronze.defillama_protocol_tvl_historical_response_sizes", "raw_code": "", "root_path": "/home/runner/work/external-models/external-models", "depends_on": {"macros": []}}, "seed.external_models.bronze__defillama_usdt_usdc_chain_seed": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__defillama_usdt_usdc_chain_seed", "resource_type": "seed", "package_name": "external_models", "path": "bronze__defillama_usdt_usdc_chain_seed.csv", "original_file_path": "data/bronze__defillama_usdt_usdc_chain_seed.csv", "unique_id": "seed.external_models.bronze__defillama_usdt_usdc_chain_seed", "fqn": ["external_models", "bronze__defillama_usdt_usdc_chain_seed"], "alias": "defillama_usdt_usdc_chain_seed", "checksum": {"name": "sha256", "checksum": "10d282d2d0b50fad50a3ef5be84e3fa61d6e55ad2c7087440fbdb0bbd6ad6129"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1760113499.2277653, "relation_name": "EXTERNAL.bronze.defillama_usdt_usdc_chain_seed", "raw_code": "", "root_path": "/home/runner/work/external-models/external-models", "depends_on": {"macros": []}}, "seed.external_models.bronze__verified_tokenlist_seed": {"database": "EXTERNAL", "schema": "bronze", "name": "bronze__verified_tokenlist_seed", "resource_type": "seed", "package_name": "external_models", "path": "bronze__verified_tokenlist_seed.csv", "original_file_path": "data/bronze__verified_tokenlist_seed.csv", "unique_id": "seed.external_models.bronze__verified_tokenlist_seed", "fqn": ["external_models", "bronze__verified_tokenlist_seed"], "alias": "verified_tokenlist_seed", "checksum": {"name": "sha256", "checksum": "af5498c67be36e7e8dc4b3dcf10e51d224b3ce6357eb2ddafd215db636272e1b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1760113499.2299678, "relation_name": "EXTERNAL.bronze.verified_tokenlist_seed", "raw_code": "", "root_path": "/home/runner/work/external-models/external-models", "depends_on": {"macros": []}}, "operation.external_models.external_models-on-run-start-0": {"database": "EXTERNAL", "schema": "external_models-on-run-start-0", "name": "external_models-on-run-start-0", "resource_type": "operation", "package_name": "external_models", "path": "hooks/external_models-on-run-start-0.sql", "original_file_path": "./dbt_project.yml", "unique_id": "operation.external_models.external_models-on-run-start-0", "fqn": ["external_models", "hooks", "external_models-on-run-start-0"], "alias": "", "checksum": {"name": "sha256", "checksum": "7fdbd873bc4aa506389771bea0259b52e066f57ea1d6ccc720363092b64dbe9d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "copy_grants": true}, "tags": ["on-run-start"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113499.3335962, "relation_name": null, "raw_code": "{{ create_sps() }}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.external_models.create_sps"], "nodes": []}, "compiled_path": "target/compiled/external_models/./dbt_project.yml/hooks/external_models-on-run-start-0.sql", "compiled": true, "compiled_code": "\n \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "index": 0}, "operation.external_models.external_models-on-run-end-0": {"database": "EXTERNAL", "schema": "external_models-on-run-end-0", "name": "external_models-on-run-end-0", "resource_type": "operation", "package_name": "external_models", "path": "hooks/external_models-on-run-end-0.sql", "original_file_path": "./dbt_project.yml", "unique_id": "operation.external_models.external_models-on-run-end-0", "fqn": ["external_models", "hooks", "external_models-on-run-end-0"], "alias": "", "checksum": {"name": "sha256", "checksum": "7fdbd873bc4aa506389771bea0259b52e066f57ea1d6ccc720363092b64dbe9d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "copy_grants": true}, "tags": ["on-run-end"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113499.430054, "relation_name": null, "raw_code": "{{ apply_meta_as_tags(results) }}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.external_models.apply_meta_as_tags"], "nodes": []}, "compiled_path": "target/compiled/external_models/./dbt_project.yml/hooks/external_models-on-run-end-0.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "index": 0}, "model.livequery_models.live__allow_list": {"database": "EXTERNAL", "schema": "live", "name": "live__allow_list", "resource_type": "model", "package_name": "livequery_models", "path": "live__allow_list.sql", "original_file_path": "models/live__allow_list.sql", "unique_id": "model.livequery_models.live__allow_list", "fqn": ["livequery_models", "live__allow_list"], "alias": "allow_list", "checksum": {"name": "sha256", "checksum": "0f0f0355e5f959d9d75458d90cee37209b5632f984414c3fcf65eca0e0e5de2b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {"select": ["INTERNAL_DEV"]}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "grants": {"+select": ["INTERNAL_DEV"]}, "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113499.5099902, "relation_name": "EXTERNAL.live.allow_list", "raw_code": "-- depends_on: {{ ref('live') }}\n{{ config(\n materialized = 'view',\n grants = {'+select': fromyaml(var('ROLES'))}\n) }}\nSELECT '*.' || t.value AS allowed_domains\nFROM table(flatten(input => {{ this.database }}.live.udf_allow_list())) AS t\nORDER BY\n split_part(allowed_domains, '.', -1),\n split_part(allowed_domains, '.', -2),\n split_part(allowed_domains, '.', -3)", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/live__allow_list.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\n\nSELECT '*.' || t.value AS allowed_domains\nFROM table(flatten(input => EXTERNAL.live.udf_allow_list())) AS t\nORDER BY\n split_part(allowed_domains, '.', -1),\n split_part(allowed_domains, '.', -2),\n split_part(allowed_domains, '.', -3)", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models._eth__decoded_logs": {"database": "EXTERNAL", "schema": "_eth", "name": "_eth__decoded_logs", "resource_type": "model", "package_name": "livequery_models", "path": "mapping_tables/_eth__decoded_logs.sql", "original_file_path": "models/mapping_tables/_eth__decoded_logs.sql", "unique_id": "model.livequery_models._eth__decoded_logs", "fqn": ["livequery_models", "mapping_tables", "_eth__decoded_logs"], "alias": "decoded_logs", "checksum": {"name": "sha256", "checksum": "bdfd9ed4bf06c0100047dd80065882219275da54624c6a8c090d27caf38be29e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {"select": ["INTERNAL_DEV"]}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "grants": {"+select": ["INTERNAL_DEV"]}, "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113499.51745, "relation_name": "EXTERNAL._eth.decoded_logs", "raw_code": "{{ config(\n materialized = 'view',\n grants = {'+select': fromyaml(var('ROLES'))}\n) }}\n\nSELECT \n BLOCK_NUMBER,\n\tBLOCK_TIMESTAMP,\n\tTX_HASH,\n\tEVENT_INDEX,\n\tCONTRACT_ADDRESS,\n\tCONTRACT_NAME,\n\tEVENT_NAME,\n\tDECODED_LOG,\n\tFULL_DECODED_LOG,\n\tORIGIN_FUNCTION_SIGNATURE,\n\tORIGIN_FROM_ADDRESS,\n\tORIGIN_TO_ADDRESS,\n\tTOPICS,\n\tDATA,\n\tEVENT_REMOVED,\n\tTX_STATUS\nFROM\n {{ source(\n 'ethereum_core',\n 'ez_decoded_event_logs'\n ) }}", "language": "sql", "refs": [], "sources": [["ethereum_core", "ez_decoded_event_logs"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.livequery_models.ethereum_core.ez_decoded_event_logs"]}, "compiled_path": "target/compiled/livequery_models/models/mapping_tables/_eth__decoded_logs.sql", "compiled": true, "compiled_code": "\n\nSELECT \n BLOCK_NUMBER,\n\tBLOCK_TIMESTAMP,\n\tTX_HASH,\n\tEVENT_INDEX,\n\tCONTRACT_ADDRESS,\n\tCONTRACT_NAME,\n\tEVENT_NAME,\n\tDECODED_LOG,\n\tFULL_DECODED_LOG,\n\tORIGIN_FUNCTION_SIGNATURE,\n\tORIGIN_FROM_ADDRESS,\n\tORIGIN_TO_ADDRESS,\n\tTOPICS,\n\tDATA,\n\tEVENT_REMOVED,\n\tTX_STATUS\nFROM\n ethereum_dev.core.ez_decoded_event_logs", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models._eth__logs": {"database": "EXTERNAL", "schema": "_eth", "name": "_eth__logs", "resource_type": "model", "package_name": "livequery_models", "path": "mapping_tables/_eth__logs.sql", "original_file_path": "models/mapping_tables/_eth__logs.sql", "unique_id": "model.livequery_models._eth__logs", "fqn": ["livequery_models", "mapping_tables", "_eth__logs"], "alias": "logs", "checksum": {"name": "sha256", "checksum": "dc768eb99a909adc99566d829040132c1ce1951fe6829a4a3b00859c4cf360ca"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {"select": ["INTERNAL_DEV"]}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "grants": {"+select": ["INTERNAL_DEV"]}, "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113499.5246274, "relation_name": "EXTERNAL._eth.logs", "raw_code": "{{ config(\n materialized = 'view',\n grants = {'+select': fromyaml(var('ROLES'))}\n) }}\n\nSELECT \n BLOCK_NUMBER,\n BLOCK_TIMESTAMP,\n TX_HASH,\n ORIGIN_FUNCTION_SIGNATURE,\n ORIGIN_FROM_ADDRESS,\n ORIGIN_TO_ADDRESS,\n EVENT_INDEX,\n\tCONTRACT_ADDRESS,\n\tTOPICS,\n\tDATA,\n\tEVENT_REMOVED,\n\tTX_STATUS,\n\t_LOG_ID\nFROM\n {{ source(\n 'ethereum_core',\n 'fact_event_logs'\n ) }}", "language": "sql", "refs": [], "sources": [["ethereum_core", "fact_event_logs"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.livequery_models.ethereum_core.fact_event_logs"]}, "compiled_path": "target/compiled/livequery_models/models/mapping_tables/_eth__logs.sql", "compiled": true, "compiled_code": "\n\nSELECT \n BLOCK_NUMBER,\n BLOCK_TIMESTAMP,\n TX_HASH,\n ORIGIN_FUNCTION_SIGNATURE,\n ORIGIN_FROM_ADDRESS,\n ORIGIN_TO_ADDRESS,\n EVENT_INDEX,\n\tCONTRACT_ADDRESS,\n\tTOPICS,\n\tDATA,\n\tEVENT_REMOVED,\n\tTX_STATUS,\n\t_LOG_ID\nFROM\n ethereum_dev.core.fact_event_logs", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models._evm__abi_map": {"database": "EXTERNAL", "schema": "_evm", "name": "_evm__abi_map", "resource_type": "model", "package_name": "livequery_models", "path": "mapping_tables/_evm__abi_map.sql", "original_file_path": "models/mapping_tables/_evm__abi_map.sql", "unique_id": "model.livequery_models._evm__abi_map", "fqn": ["livequery_models", "mapping_tables", "_evm__abi_map"], "alias": "abi_map", "checksum": {"name": "sha256", "checksum": "88cdfb107baea6454e6ea0bde9b36a8a135f15abba9d6588a18de46d8095fe46"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {"select": ["INTERNAL_DEV"]}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "grants": {"+select": ["INTERNAL_DEV"]}, "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113499.5319846, "relation_name": "EXTERNAL._evm.abi_map", "raw_code": "{{ config(\n materialized = 'view',\n grants = {'+select': fromyaml(var('ROLES'))}\n) }}\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n {{ source(\n 'crosschain',\n 'dim_evm_event_abis'\n ) }}", "language": "sql", "refs": [], "sources": [["crosschain", "dim_evm_event_abis"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.livequery_models.crosschain.dim_evm_event_abis"]}, "compiled_path": "target/compiled/livequery_models/models/mapping_tables/_evm__abi_map.sql", "compiled": true, "compiled_code": "\n\nSELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi,\n start_block,\n end_block,\n CASE blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_evm_event_abis", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models._evm__contracts_map": {"database": "EXTERNAL", "schema": "_evm", "name": "_evm__contracts_map", "resource_type": "model", "package_name": "livequery_models", "path": "mapping_tables/_evm__contracts_map.sql", "original_file_path": "models/mapping_tables/_evm__contracts_map.sql", "unique_id": "model.livequery_models._evm__contracts_map", "fqn": ["livequery_models", "mapping_tables", "_evm__contracts_map"], "alias": "contracts_map", "checksum": {"name": "sha256", "checksum": "735a229e83b106abf3e7fdffae2618ac6f66f8662e74c6394f232a13d43e3bd9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {"select": ["INTERNAL_DEV"]}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "grants": {"+select": ["INTERNAL_DEV"]}, "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113499.538855, "relation_name": "EXTERNAL._evm.contracts_map", "raw_code": "{{ config(\n materialized = 'view',\n grants = {'+select': fromyaml(var('ROLES'))}\n) }}\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n {{ source(\n 'crosschain',\n 'dim_contracts'\n ) }}", "language": "sql", "refs": [], "sources": [["crosschain", "dim_contracts"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.livequery_models.crosschain.dim_contracts"]}, "compiled_path": "target/compiled/livequery_models/models/mapping_tables/_evm__contracts_map.sql", "compiled": true, "compiled_code": "\n\nSELECT\n address,\n symbol,\n decimals,\n CASE\n blockchain\n WHEN 'avalanche' THEN 'avalanche_c'\n WHEN 'arbitrum' THEN 'arbitrum_one'\n ELSE blockchain\n END AS blockchain\nFROM\n crosschain_dev.core.dim_contracts", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models._evm__native_symbol_map": {"database": "EXTERNAL", "schema": "_evm", "name": "_evm__native_symbol_map", "resource_type": "model", "package_name": "livequery_models", "path": "mapping_tables/_evm__native_symbol_map.sql", "original_file_path": "models/mapping_tables/_evm__native_symbol_map.sql", "unique_id": "model.livequery_models._evm__native_symbol_map", "fqn": ["livequery_models", "mapping_tables", "_evm__native_symbol_map"], "alias": "native_symbol_map", "checksum": {"name": "sha256", "checksum": "3ee1112fc9b568e4bfd16703969c64185eecb78266275f6572d30f9337f61b36"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {"select": ["INTERNAL_DEV"]}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "grants": {"+select": ["INTERNAL_DEV"]}, "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113499.5457494, "relation_name": "EXTERNAL._evm.native_symbol_map", "raw_code": "{{ config(\n materialized = 'view',\n grants = {'+select': fromyaml(var('ROLES'))}\n) }}\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": "target/compiled/livequery_models/models/mapping_tables/_evm__native_symbol_map.sql", "compiled": true, "compiled_code": "\n\nWITH blockchain_assets AS (\n\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'avalanche' AS blockchain,\n 'AVAX' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'binance' AS blockchain,\n 'BNB' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'ethereum' AS blockchain,\n 'ETH' AS asset_symbol,\n 'sepolia' AS network\n UNION ALL\n SELECT\n 'arbitrum_nova' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'arbitrum_one' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'base' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'fantom' AS blockchain,\n 'FTM' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'gnosis' AS blockchain,\n 'xDAI' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'harmony' AS blockchain,\n 'ONE' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'goerli' AS network\n UNION ALL\n SELECT\n 'optimism' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon' AS blockchain,\n 'MATIC' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'mainnet' AS network\n UNION ALL\n SELECT\n 'polygon_zkevm' AS blockchain,\n 'ETH' AS asset_symbol,\n 'testnet' AS network\n UNION ALL\n SELECT\n 'CELO' AS blockchain,\n 'CELO' AS asset_symbol,\n 'mainnet' AS network\n)\n\nSELECT\n blockchain,\n network,\n asset_symbol AS symbol\nFROM\n blockchain_assets", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.gnosis__mainnet": {"database": "EXTERNAL", "schema": "gnosis", "name": "gnosis__mainnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/gnosis__mainnet.sql", "original_file_path": "models/deploy/evm/gnosis__mainnet.sql", "unique_id": "model.livequery_models.gnosis__mainnet", "fqn": ["livequery_models", "deploy", "evm", "gnosis__mainnet"], "alias": "mainnet", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113499.553484, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/gnosis__mainnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: EXTERNAL._evm.contracts_map\n-- depends_on: EXTERNAL._evm.abi_map\n-- depends_on: EXTERNAL._evm.native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'gnosis' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.fantom__mainnet": {"database": "EXTERNAL", "schema": "fantom", "name": "fantom__mainnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/fantom__mainnet.sql", "original_file_path": "models/deploy/evm/fantom__mainnet.sql", "unique_id": "model.livequery_models.fantom__mainnet", "fqn": ["livequery_models", "deploy", "evm", "fantom__mainnet"], "alias": "mainnet", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113499.566573, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/fantom__mainnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: EXTERNAL._evm.contracts_map\n-- depends_on: EXTERNAL._evm.abi_map\n-- depends_on: EXTERNAL._evm.native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'fantom' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.ethereum__mainnet": {"database": "EXTERNAL", "schema": "ethereum", "name": "ethereum__mainnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/ethereum__mainnet.sql", "original_file_path": "models/deploy/evm/ethereum__mainnet.sql", "unique_id": "model.livequery_models.ethereum__mainnet", "fqn": ["livequery_models", "deploy", "evm", "ethereum__mainnet"], "alias": "mainnet", "checksum": {"name": "sha256", "checksum": "42fcff256d5cc7381b3feee8e69fc5ac0df9c6c255bc772f793908ca1d70e640"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113499.5741785, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('_eth__logs') }}\n-- depends_on: {{ ref('_eth__decoded_logs') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions,\n config_eth_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "_eth__logs", "package": null, "version": null}, {"name": "_eth__decoded_logs", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models._eth__logs", "model.livequery_models._eth__decoded_logs", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/ethereum__mainnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: EXTERNAL._evm.contracts_map\n-- depends_on: EXTERNAL._evm.abi_map\n-- depends_on: EXTERNAL._evm.native_symbol_map\n-- depends_on: EXTERNAL._eth.logs\n-- depends_on: EXTERNAL._eth.decoded_logs\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'ethereum' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.bsc__testnet": {"database": "EXTERNAL", "schema": "bsc", "name": "bsc__testnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/bsc__testnet.sql", "original_file_path": "models/deploy/evm/bsc__testnet.sql", "unique_id": "model.livequery_models.bsc__testnet", "fqn": ["livequery_models", "deploy", "evm", "bsc__testnet"], "alias": "testnet", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113499.5822418, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/bsc__testnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: EXTERNAL._evm.contracts_map\n-- depends_on: EXTERNAL._evm.abi_map\n-- depends_on: EXTERNAL._evm.native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'bsc' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.avalanche_c__testnet": {"database": "EXTERNAL", "schema": "avalanche_c", "name": "avalanche_c__testnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/avalanche_c__testnet.sql", "original_file_path": "models/deploy/evm/avalanche_c__testnet.sql", "unique_id": "model.livequery_models.avalanche_c__testnet", "fqn": ["livequery_models", "deploy", "evm", "avalanche_c__testnet"], "alias": "testnet", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113499.590649, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/avalanche_c__testnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: EXTERNAL._evm.contracts_map\n-- depends_on: EXTERNAL._evm.abi_map\n-- depends_on: EXTERNAL._evm.native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'avalanche_c' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.ethereum__sepolia": {"database": "EXTERNAL", "schema": "ethereum", "name": "ethereum__sepolia", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/ethereum__sepolia.sql", "original_file_path": "models/deploy/evm/ethereum__sepolia.sql", "unique_id": "model.livequery_models.ethereum__sepolia", "fqn": ["livequery_models", "deploy", "evm", "ethereum__sepolia"], "alias": "sepolia", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113499.5981803, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/ethereum__sepolia.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: EXTERNAL._evm.contracts_map\n-- depends_on: EXTERNAL._evm.abi_map\n-- depends_on: EXTERNAL._evm.native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'ethereum' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.harmony__mainnet": {"database": "EXTERNAL", "schema": "harmony", "name": "harmony__mainnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/harmony__mainnet.sql", "original_file_path": "models/deploy/evm/harmony__mainnet.sql", "unique_id": "model.livequery_models.harmony__mainnet", "fqn": ["livequery_models", "deploy", "evm", "harmony__mainnet"], "alias": "mainnet", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113499.6057858, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/harmony__mainnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: EXTERNAL._evm.contracts_map\n-- depends_on: EXTERNAL._evm.abi_map\n-- depends_on: EXTERNAL._evm.native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'harmony' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.avalanche_c__mainnet": {"database": "EXTERNAL", "schema": "avalanche_c", "name": "avalanche_c__mainnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/avalanche_c__mainnet.sql", "original_file_path": "models/deploy/evm/avalanche_c__mainnet.sql", "unique_id": "model.livequery_models.avalanche_c__mainnet", "fqn": ["livequery_models", "deploy", "evm", "avalanche_c__mainnet"], "alias": "mainnet", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113499.614135, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/avalanche_c__mainnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: EXTERNAL._evm.contracts_map\n-- depends_on: EXTERNAL._evm.abi_map\n-- depends_on: EXTERNAL._evm.native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'avalanche_c' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.optimism__goerli": {"database": "EXTERNAL", "schema": "optimism", "name": "optimism__goerli", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/optimism__goerli.sql", "original_file_path": "models/deploy/evm/optimism__goerli.sql", "unique_id": "model.livequery_models.optimism__goerli", "fqn": ["livequery_models", "deploy", "evm", "optimism__goerli"], "alias": "goerli", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113499.6217818, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/optimism__goerli.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: EXTERNAL._evm.contracts_map\n-- depends_on: EXTERNAL._evm.abi_map\n-- depends_on: EXTERNAL._evm.native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'optimism' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.harmony__testnet": {"database": "EXTERNAL", "schema": "harmony", "name": "harmony__testnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/harmony__testnet.sql", "original_file_path": "models/deploy/evm/harmony__testnet.sql", "unique_id": "model.livequery_models.harmony__testnet", "fqn": ["livequery_models", "deploy", "evm", "harmony__testnet"], "alias": "testnet", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113499.6294105, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/harmony__testnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: EXTERNAL._evm.contracts_map\n-- depends_on: EXTERNAL._evm.abi_map\n-- depends_on: EXTERNAL._evm.native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'harmony' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.optimism__mainnet": {"database": "EXTERNAL", "schema": "optimism", "name": "optimism__mainnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/optimism__mainnet.sql", "original_file_path": "models/deploy/evm/optimism__mainnet.sql", "unique_id": "model.livequery_models.optimism__mainnet", "fqn": ["livequery_models", "deploy", "evm", "optimism__mainnet"], "alias": "mainnet", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113499.637751, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/optimism__mainnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: EXTERNAL._evm.contracts_map\n-- depends_on: EXTERNAL._evm.abi_map\n-- depends_on: EXTERNAL._evm.native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'optimism' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.base__goerli": {"database": "EXTERNAL", "schema": "base", "name": "base__goerli", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/base__goerli.sql", "original_file_path": "models/deploy/evm/base__goerli.sql", "unique_id": "model.livequery_models.base__goerli", "fqn": ["livequery_models", "deploy", "evm", "base__goerli"], "alias": "goerli", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113499.729104, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/base__goerli.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: EXTERNAL._evm.contracts_map\n-- depends_on: EXTERNAL._evm.abi_map\n-- depends_on: EXTERNAL._evm.native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'base' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.polygon__mainnet": {"database": "EXTERNAL", "schema": "polygon", "name": "polygon__mainnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/polygon__mainnet.sql", "original_file_path": "models/deploy/evm/polygon__mainnet.sql", "unique_id": "model.livequery_models.polygon__mainnet", "fqn": ["livequery_models", "deploy", "evm", "polygon__mainnet"], "alias": "mainnet", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113499.7367454, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/polygon__mainnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: EXTERNAL._evm.contracts_map\n-- depends_on: EXTERNAL._evm.abi_map\n-- depends_on: EXTERNAL._evm.native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'polygon' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.polygon__testnet": {"database": "EXTERNAL", "schema": "polygon", "name": "polygon__testnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/polygon__testnet.sql", "original_file_path": "models/deploy/evm/polygon__testnet.sql", "unique_id": "model.livequery_models.polygon__testnet", "fqn": ["livequery_models", "deploy", "evm", "polygon__testnet"], "alias": "testnet", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113499.7444139, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/polygon__testnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: EXTERNAL._evm.contracts_map\n-- depends_on: EXTERNAL._evm.abi_map\n-- depends_on: EXTERNAL._evm.native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'polygon' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.arbitrum_nova__mainnet": {"database": "EXTERNAL", "schema": "arbitrum_nova", "name": "arbitrum_nova__mainnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/arbitrum_nova__mainnet.sql", "original_file_path": "models/deploy/evm/arbitrum_nova__mainnet.sql", "unique_id": "model.livequery_models.arbitrum_nova__mainnet", "fqn": ["livequery_models", "deploy", "evm", "arbitrum_nova__mainnet"], "alias": "mainnet", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113499.752718, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/arbitrum_nova__mainnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: EXTERNAL._evm.contracts_map\n-- depends_on: EXTERNAL._evm.abi_map\n-- depends_on: EXTERNAL._evm.native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'arbitrum_nova' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.base__mainnet": {"database": "EXTERNAL", "schema": "base", "name": "base__mainnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/base__mainnet.sql", "original_file_path": "models/deploy/evm/base__mainnet.sql", "unique_id": "model.livequery_models.base__mainnet", "fqn": ["livequery_models", "deploy", "evm", "base__mainnet"], "alias": "mainnet", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113499.760366, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/base__mainnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: EXTERNAL._evm.contracts_map\n-- depends_on: EXTERNAL._evm.abi_map\n-- depends_on: EXTERNAL._evm.native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'base' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.ethereum__goerli": {"database": "EXTERNAL", "schema": "ethereum", "name": "ethereum__goerli", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/ethereum__goerli.sql", "original_file_path": "models/deploy/evm/ethereum__goerli.sql", "unique_id": "model.livequery_models.ethereum__goerli", "fqn": ["livequery_models", "deploy", "evm", "ethereum__goerli"], "alias": "goerli", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113499.767817, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/ethereum__goerli.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: EXTERNAL._evm.contracts_map\n-- depends_on: EXTERNAL._evm.abi_map\n-- depends_on: EXTERNAL._evm.native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'ethereum' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.polygon_zkevm__mainnet": {"database": "EXTERNAL", "schema": "polygon_zkevm", "name": "polygon_zkevm__mainnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/polygon_zkevm__mainnet.sql", "original_file_path": "models/deploy/evm/polygon_zkevm__mainnet.sql", "unique_id": "model.livequery_models.polygon_zkevm__mainnet", "fqn": ["livequery_models", "deploy", "evm", "polygon_zkevm__mainnet"], "alias": "mainnet", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113499.7764652, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/polygon_zkevm__mainnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: EXTERNAL._evm.contracts_map\n-- depends_on: EXTERNAL._evm.abi_map\n-- depends_on: EXTERNAL._evm.native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'polygon_zkevm' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.celo__mainnet": {"database": "EXTERNAL", "schema": "celo", "name": "celo__mainnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/celo__mainnet.sql", "original_file_path": "models/deploy/evm/celo__mainnet.sql", "unique_id": "model.livequery_models.celo__mainnet", "fqn": ["livequery_models", "deploy", "evm", "celo__mainnet"], "alias": "mainnet", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113499.7839627, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/celo__mainnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: EXTERNAL._evm.contracts_map\n-- depends_on: EXTERNAL._evm.abi_map\n-- depends_on: EXTERNAL._evm.native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'celo' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.bsc__mainnet": {"database": "EXTERNAL", "schema": "bsc", "name": "bsc__mainnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/bsc__mainnet.sql", "original_file_path": "models/deploy/evm/bsc__mainnet.sql", "unique_id": "model.livequery_models.bsc__mainnet", "fqn": ["livequery_models", "deploy", "evm", "bsc__mainnet"], "alias": "mainnet", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113499.791651, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/bsc__mainnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: EXTERNAL._evm.contracts_map\n-- depends_on: EXTERNAL._evm.abi_map\n-- depends_on: EXTERNAL._evm.native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'bsc' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.arbitrum_one__mainnet": {"database": "EXTERNAL", "schema": "arbitrum_one", "name": "arbitrum_one__mainnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/arbitrum_one__mainnet.sql", "original_file_path": "models/deploy/evm/arbitrum_one__mainnet.sql", "unique_id": "model.livequery_models.arbitrum_one__mainnet", "fqn": ["livequery_models", "deploy", "evm", "arbitrum_one__mainnet"], "alias": "mainnet", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113499.79923, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/arbitrum_one__mainnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: EXTERNAL._evm.contracts_map\n-- depends_on: EXTERNAL._evm.abi_map\n-- depends_on: EXTERNAL._evm.native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'arbitrum_one' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.arbitrum_one__goerli": {"database": "EXTERNAL", "schema": "arbitrum_one", "name": "arbitrum_one__goerli", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/arbitrum_one__goerli.sql", "original_file_path": "models/deploy/evm/arbitrum_one__goerli.sql", "unique_id": "model.livequery_models.arbitrum_one__goerli", "fqn": ["livequery_models", "deploy", "evm", "arbitrum_one__goerli"], "alias": "goerli", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113499.8081021, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/arbitrum_one__goerli.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: EXTERNAL._evm.contracts_map\n-- depends_on: EXTERNAL._evm.abi_map\n-- depends_on: EXTERNAL._evm.native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'arbitrum_one' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.polygon_zkevm__testnet": {"database": "EXTERNAL", "schema": "polygon_zkevm", "name": "polygon_zkevm__testnet", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/evm/polygon_zkevm__testnet.sql", "original_file_path": "models/deploy/evm/polygon_zkevm__testnet.sql", "unique_id": "model.livequery_models.polygon_zkevm__testnet", "fqn": ["livequery_models", "deploy", "evm", "polygon_zkevm__testnet"], "alias": "testnet", "checksum": {"name": "sha256", "checksum": "8c725e4159886bd772fafe91353b831e1cf87646cdcc19ece903da9b030354bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["evm"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["evm"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "evm", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113499.8156254, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_evm__contracts_map') }}\n-- depends_on: {{ ref('_evm__abi_map') }}\n-- depends_on: {{ ref('_evm__native_symbol_map') }}\n-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('utils') }}\n{%- set configs = [\n config_evm_rpc_primitives,\n config_evm_high_level_abstractions\n ] -%}\n{{- ephemeral_deploy(configs) -}}", "language": "sql", "refs": [{"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "live", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy"], "nodes": ["model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/evm/polygon_zkevm__testnet.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: EXTERNAL._evm.contracts_map\n-- depends_on: EXTERNAL._evm.abi_map\n-- depends_on: EXTERNAL._evm.native_symbol_map\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__utils\n\n SELECT 'polygon_zkevm' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.transpose__": {"database": "EXTERNAL", "schema": "transpose", "name": "transpose__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/transpose/transpose__.sql", "original_file_path": "models/deploy/marketplace/transpose/transpose__.sql", "unique_id": "model.livequery_models.transpose__", "fqn": ["livequery_models", "deploy", "marketplace", "transpose", "transpose__"], "alias": "", "checksum": {"name": "sha256", "checksum": "8d2ddcca714778664a2a954d5e7fadca4ff62b56e8013fce0c48b06bb2e2298d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"get": {"name": "get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/transpose/transpose__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113502.838184, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_transpose_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/transpose/transpose__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'transpose' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.credmark_utils__": {"database": "EXTERNAL", "schema": "credmark_utils", "name": "credmark_utils__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/credmark/credmark_utils__.sql", "original_file_path": "models/deploy/marketplace/credmark/credmark_utils__.sql", "unique_id": "model.livequery_models.credmark_utils__", "fqn": ["livequery_models", "deploy", "marketplace", "credmark", "credmark_utils__"], "alias": "", "checksum": {"name": "sha256", "checksum": "c62bd748a22e1fd79d1f6a3a0d41552de14eb226395e2af34a65562d50a76f64"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"get": {"name": "get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/credmark/credmark_utils__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113502.8579004, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_credmark_utils_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/credmark/credmark_utils__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'credmark_utils' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.opensea__": {"database": "EXTERNAL", "schema": "opensea", "name": "opensea__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/opensea/opensea__.sql", "original_file_path": "models/deploy/marketplace/opensea/opensea__.sql", "unique_id": "model.livequery_models.opensea__", "fqn": ["livequery_models", "deploy", "marketplace", "opensea", "opensea__"], "alias": "", "checksum": {"name": "sha256", "checksum": "0ea7806ecada9430a35a51a202c79a3632a56ba9b06b5bbca56473003fc14bba"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"get": {"name": "get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/opensea/opensea__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113502.8650887, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_opensea_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/opensea/opensea__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'opensea' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.stakingrewards__": {"database": "EXTERNAL", "schema": "stakingrewards", "name": "stakingrewards__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/stakingrewards/stakingrewards__.sql", "original_file_path": "models/deploy/marketplace/stakingrewards/stakingrewards__.sql", "unique_id": "model.livequery_models.stakingrewards__", "fqn": ["livequery_models", "deploy", "marketplace", "stakingrewards", "stakingrewards__"], "alias": "", "checksum": {"name": "sha256", "checksum": "b106fc542269f4bca677dd36a22951b8cf79a5bfc8cf6c8fc6a63645c963a929"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"query": {"name": "query", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/stakingrewards/stakingrewards__ .yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113502.8722396, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_stakingrewards_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/stakingrewards/stakingrewards__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'stakingrewards' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.subquery__": {"database": "EXTERNAL", "schema": "subquery", "name": "subquery__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/subquery/subquery__.sql", "original_file_path": "models/deploy/marketplace/subquery/subquery__.sql", "unique_id": "model.livequery_models.subquery__", "fqn": ["livequery_models", "deploy", "marketplace", "subquery", "subquery__"], "alias": "", "checksum": {"name": "sha256", "checksum": "41725d4e8e1a831be3ff17e4ce5f2bc8f80679f436e25b362be2ee01282f5dbf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"graphql": {"name": "graphql", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/subquery/subquery__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113502.8796837, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_subquery_udfs\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/subquery/subquery__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'subquery' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.topshot__": {"database": "EXTERNAL", "schema": "topshot", "name": "topshot__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/topshot/topshot__.sql", "original_file_path": "models/deploy/marketplace/topshot/topshot__.sql", "unique_id": "model.livequery_models.topshot__", "fqn": ["livequery_models", "deploy", "marketplace", "topshot", "topshot__"], "alias": "", "checksum": {"name": "sha256", "checksum": "114366c4e0f69de805b68085852b826d594dfae80b2dc66a4f95d2dd1dd63cc2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"graphql": {"name": "graphql", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/topshot/topshot__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113502.8868685, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_topshot_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/topshot/topshot__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'topshot' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.allday__": {"database": "EXTERNAL", "schema": "allday", "name": "allday__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/allday/allday__.sql", "original_file_path": "models/deploy/marketplace/allday/allday__.sql", "unique_id": "model.livequery_models.allday__", "fqn": ["livequery_models", "deploy", "marketplace", "allday", "allday__"], "alias": "", "checksum": {"name": "sha256", "checksum": "aeba24365cef1ac3a11bd50bd89eecc3df0aee8b5f2e29a57a67ca3fb6bc9861"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"graphql": {"name": "graphql", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/allday/allday__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113502.8935952, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_allday_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/allday/allday__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'allday' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.coingecko__": {"database": "EXTERNAL", "schema": "coingecko", "name": "coingecko__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/coingecko/coingecko__.sql", "original_file_path": "models/deploy/marketplace/coingecko/coingecko__.sql", "unique_id": "model.livequery_models.coingecko__", "fqn": ["livequery_models", "deploy", "marketplace", "coingecko", "coingecko__"], "alias": "", "checksum": {"name": "sha256", "checksum": "a0daf27e44aed8a6507b087f7b1274784d628e4edf2fae68148de64ac46f2b90"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"get": {"name": "get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/coingecko/coingecko__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113502.9018457, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_coingecko_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/coingecko/coingecko__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'coingecko' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.dapplooker__": {"database": "EXTERNAL", "schema": "dapplooker", "name": "dapplooker__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/dapplooker/dapplooker__.sql", "original_file_path": "models/deploy/marketplace/dapplooker/dapplooker__.sql", "unique_id": "model.livequery_models.dapplooker__", "fqn": ["livequery_models", "deploy", "marketplace", "dapplooker", "dapplooker__"], "alias": "", "checksum": {"name": "sha256", "checksum": "06c50a1b30747bf59e1de42dd9b078f327f3dc5d5b595ec3a4838e0d8de8869e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"get_chart": {"name": "get_chart", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/dapplooker/dapplooker__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113502.9094267, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_dapplooker_udfs\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/dapplooker/dapplooker__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'dapplooker' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.claude_utils__claude_utils": {"database": "EXTERNAL", "schema": "claude_utils", "name": "claude_utils__claude_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/claude/claude_utils__claude_utils.sql", "original_file_path": "models/deploy/marketplace/claude/claude_utils__claude_utils.sql", "unique_id": "model.livequery_models.claude_utils__claude_utils", "fqn": ["livequery_models", "deploy", "marketplace", "claude", "claude_utils__claude_utils"], "alias": "claude_utils", "checksum": {"name": "sha256", "checksum": "3e5bc617d2624d81b1a35005e8a6ae350ffb42f3d5ba03cc227622d68fa0b9bf"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"post": {"name": "post", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/claude/claude_utils__claude_utils.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113502.9923756, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_claude_utils_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/claude/claude_utils__claude_utils.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'claude_utils' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.claude__": {"database": "EXTERNAL", "schema": "claude", "name": "claude__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/claude/claude__.sql", "original_file_path": "models/deploy/marketplace/claude/claude__.sql", "unique_id": "model.livequery_models.claude__", "fqn": ["livequery_models", "deploy", "marketplace", "claude", "claude__"], "alias": "", "checksum": {"name": "sha256", "checksum": "cb15d3f5b5d7729aff1364213fac0744ce29beab02da42469dece31efa00a740"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"post_messages": {"name": "post_messages", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "count_message_tokens": {"name": "count_message_tokens", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "list_models": {"name": "list_models", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_model": {"name": "get_model", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "post_messages_batch": {"name": "post_messages_batch", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "list_message_batches": {"name": "list_message_batches", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "list_message_batches_with_before": {"name": "list_message_batches_with_before", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "list_message_batches_with_after": {"name": "list_message_batches_with_after", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_message_batch": {"name": "get_message_batch", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_message_batch_results": {"name": "get_message_batch_results", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/claude/claude__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113502.9200418, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_claude_messages_udfs,\n config_claude_models_udfs,\n config_claude_messages_batch_udfs\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/claude/claude__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'claude' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.strangelove__": {"database": "EXTERNAL", "schema": "strangelove", "name": "strangelove__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/strangelove/strangelove__.sql", "original_file_path": "models/deploy/marketplace/strangelove/strangelove__.sql", "unique_id": "model.livequery_models.strangelove__", "fqn": ["livequery_models", "deploy", "marketplace", "strangelove", "strangelove__"], "alias": "", "checksum": {"name": "sha256", "checksum": "bad70832540e2461bccfa1c03d382b89b0e187b55dfbcaa2aa8bf5abe76b3ec5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"get": {"name": "get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/strangelove/strangelove__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113502.999756, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_strangelove_udfs\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/strangelove/strangelove__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'strangelove' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.fred__": {"database": "EXTERNAL", "schema": "fred", "name": "fred__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/fred/fred__.sql", "original_file_path": "models/deploy/marketplace/fred/fred__.sql", "unique_id": "model.livequery_models.fred__", "fqn": ["livequery_models", "deploy", "marketplace", "fred", "fred__"], "alias": "", "checksum": {"name": "sha256", "checksum": "44274edd9fa472dbf09b042e45ed0dec8584a34b34f49150076d23588bbb461c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"get_series": {"name": "get_series", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/fred/fred__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113503.0068128, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_fred_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/fred/fred__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'fred' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.espn__": {"database": "EXTERNAL", "schema": "espn", "name": "espn__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/espn/espn__.sql", "original_file_path": "models/deploy/marketplace/espn/espn__.sql", "unique_id": "model.livequery_models.espn__", "fqn": ["livequery_models", "deploy", "marketplace", "espn", "espn__"], "alias": "", "checksum": {"name": "sha256", "checksum": "87f5a3b7083b803d50ac3cf614a6b734aff4cd08c776829ba2c3d93706ed130c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"get": {"name": "get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/espn/espn__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113503.013709, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_espn_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/espn/espn__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'espn' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.solscan__": {"database": "EXTERNAL", "schema": "solscan", "name": "solscan__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/solscan/solscan__.sql", "original_file_path": "models/deploy/marketplace/solscan/solscan__.sql", "unique_id": "model.livequery_models.solscan__", "fqn": ["livequery_models", "deploy", "marketplace", "solscan", "solscan__"], "alias": "", "checksum": {"name": "sha256", "checksum": "c65ffbc4dae2ec4fd19fb9863658f818db84f430a371dda7baf0a28636f4c603"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"public_api_get": {"name": "public_api_get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/solscan/solscan__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113503.0209894, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_solscan_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/solscan/solscan__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'solscan' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.dappradar__": {"database": "EXTERNAL", "schema": "dappradar", "name": "dappradar__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/dappradar/dappradar__.sql", "original_file_path": "models/deploy/marketplace/dappradar/dappradar__.sql", "unique_id": "model.livequery_models.dappradar__", "fqn": ["livequery_models", "deploy", "marketplace", "dappradar", "dappradar__"], "alias": "", "checksum": {"name": "sha256", "checksum": "55abd3e81a034c665926ed47361d4d248da944b9adc4a57c1a19baa11a38af57"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"get": {"name": "get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/dappradar/dappradar__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113503.0279782, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_dappradar_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/dappradar/dappradar__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'dappradar' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.covalent__": {"database": "EXTERNAL", "schema": "covalent", "name": "covalent__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/covalent/covalent__.sql", "original_file_path": "models/deploy/marketplace/covalent/covalent__.sql", "unique_id": "model.livequery_models.covalent__", "fqn": ["livequery_models", "deploy", "marketplace", "covalent", "covalent__"], "alias": "", "checksum": {"name": "sha256", "checksum": "eb21a1d1de2f5a44abdba0379a7c265092caa8ae68a040b178b1f8a66ef0dbaa"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"get": {"name": "get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/covalent/covalent__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113503.0349572, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_covalent_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/covalent/covalent__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'covalent' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.deepnftvalue__": {"database": "EXTERNAL", "schema": "deepnftvalue", "name": "deepnftvalue__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/deepnftvalue/deepnftvalue__.sql", "original_file_path": "models/deploy/marketplace/deepnftvalue/deepnftvalue__.sql", "unique_id": "model.livequery_models.deepnftvalue__", "fqn": ["livequery_models", "deploy", "marketplace", "deepnftvalue", "deepnftvalue__"], "alias": "", "checksum": {"name": "sha256", "checksum": "a71c5173a5afd11110e3e118e2e6bd5ade443d94407151e03397de3f6789c5f3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"get": {"name": "get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/deepnftvalue/deepnftvalue__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113503.0416172, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_deepnftvalue_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/deepnftvalue/deepnftvalue__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'deepnftvalue' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.github_utils__github_utils": {"database": "EXTERNAL", "schema": "github_utils", "name": "github_utils__github_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/github/github_utils__github_utils.sql", "original_file_path": "models/deploy/marketplace/github/github_utils__github_utils.sql", "unique_id": "model.livequery_models.github_utils__github_utils", "fqn": ["livequery_models", "deploy", "marketplace", "github", "github_utils__github_utils"], "alias": "github_utils", "checksum": {"name": "sha256", "checksum": "73bfd31747254bf79ad2ca91c0d363c8c8f3ba518cf7828835b5a588cd69da6a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"octocat": {"name": "octocat", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/github/github_utils__github_utils.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113503.0488756, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_github_utils_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_utils__github_utils.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.github_actions__github_utils": {"database": "EXTERNAL", "schema": "github_actions", "name": "github_actions__github_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/github/github_actions__github_utils.sql", "original_file_path": "models/deploy/marketplace/github/github_actions__github_utils.sql", "unique_id": "model.livequery_models.github_actions__github_utils", "fqn": ["livequery_models", "deploy", "marketplace", "github", "github_actions__github_utils"], "alias": "github_utils", "checksum": {"name": "sha256", "checksum": "708556920b602f295cd781689c359542552043117fa4dfe3164137e7e72d6a1c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"workflows": {"name": "workflows", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "runs": {"name": "runs", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "workflow_runs": {"name": "workflow_runs", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/github/github_actions__github_utils.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113503.0565732, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n-- depends_on: {{ ref('github_utils__github_utils') }}\n{%- set configs = [\n config_github_actions_udfs,\n config_github_actions_udtfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}, {"name": "github_utils__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live", "model.livequery_models.github_utils__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_actions__github_utils.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n) -- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.nftscan__": {"database": "EXTERNAL", "schema": "nftscan", "name": "nftscan__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/nftscan/nftscan__.sql", "original_file_path": "models/deploy/marketplace/nftscan/nftscan__.sql", "unique_id": "model.livequery_models.nftscan__", "fqn": ["livequery_models", "deploy", "marketplace", "nftscan", "nftscan__"], "alias": "", "checksum": {"name": "sha256", "checksum": "00b1f0a5c932642d40b70efec0522b85821fb640a2928f67258fa415902bb9fa"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"get": {"name": "get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/nftscan/nftscan__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113503.0755944, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_nftscan_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/nftscan/nftscan__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'nftscan' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.chainbase_utils__": {"database": "EXTERNAL", "schema": "chainbase_utils", "name": "chainbase_utils__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/chainbase/chainbase_utils__.sql", "original_file_path": "models/deploy/marketplace/chainbase/chainbase_utils__.sql", "unique_id": "model.livequery_models.chainbase_utils__", "fqn": ["livequery_models", "deploy", "marketplace", "chainbase", "chainbase_utils__"], "alias": "", "checksum": {"name": "sha256", "checksum": "3acb77e875379304467b7de0996fdf7a1d519f6696cad8ab87754da38fe8e7fc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"get": {"name": "get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/chainbase/chainbase_utils__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113503.0825891, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_chainbase_utils_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/chainbase/chainbase_utils__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'chainbase_utils' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.snapshot__": {"database": "EXTERNAL", "schema": "snapshot", "name": "snapshot__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/snapshot/snapshot__.sql", "original_file_path": "models/deploy/marketplace/snapshot/snapshot__.sql", "unique_id": "model.livequery_models.snapshot__", "fqn": ["livequery_models", "deploy", "marketplace", "snapshot", "snapshot__"], "alias": "", "checksum": {"name": "sha256", "checksum": "cabcd83e37dfb9424dd9a69490d63d1204dca1ef383d300ecad295ffaed3f6ac"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"query": {"name": "query", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/snapshot/snapshot__ .yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113503.0895393, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_snapshot_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/snapshot/snapshot__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'snapshot' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.reservoir__": {"database": "EXTERNAL", "schema": "reservoir", "name": "reservoir__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/reservoir/reservoir__.sql", "original_file_path": "models/deploy/marketplace/reservoir/reservoir__.sql", "unique_id": "model.livequery_models.reservoir__", "fqn": ["livequery_models", "deploy", "marketplace", "reservoir", "reservoir__"], "alias": "", "checksum": {"name": "sha256", "checksum": "6ccab30c4dc7b31ce65d169622b5fe6014875eb662a2f1e229c204348df72aac"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"get": {"name": "get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/reservoir/reservoir__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113503.0964615, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_reservoir_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/reservoir/reservoir__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'reservoir' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.defillama__": {"database": "EXTERNAL", "schema": "defillama", "name": "defillama__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/defillama/defillama__.sql", "original_file_path": "models/deploy/marketplace/defillama/defillama__.sql", "unique_id": "model.livequery_models.defillama__", "fqn": ["livequery_models", "deploy", "marketplace", "defillama", "defillama__"], "alias": "", "checksum": {"name": "sha256", "checksum": "09036911befd5c87aa63e7467568c629ab1cc182664c632cf92b8fc60919f485"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"get": {"name": "get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/defillama/defillama__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113503.103938, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_defillama_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/defillama/defillama__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'defillama' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.bitquery__": {"database": "EXTERNAL", "schema": "bitquery", "name": "bitquery__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/bitquery/bitquery__.sql", "original_file_path": "models/deploy/marketplace/bitquery/bitquery__.sql", "unique_id": "model.livequery_models.bitquery__", "fqn": ["livequery_models", "deploy", "marketplace", "bitquery", "bitquery__"], "alias": "", "checksum": {"name": "sha256", "checksum": "c41507cb784eab92dd6f9e91932240038ec5d054378a41b7af05b350294e3709"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"graphql": {"name": "graphql", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/bitquery/bitquery__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113503.110592, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_bitquery_udfs\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/bitquery/bitquery__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'bitquery' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.helius_apis__helius_utils": {"database": "EXTERNAL", "schema": "helius_apis", "name": "helius_apis__helius_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/helius/helius_apis__helius_utils.sql", "original_file_path": "models/deploy/marketplace/helius/helius_apis__helius_utils.sql", "unique_id": "model.livequery_models.helius_apis__helius_utils", "fqn": ["livequery_models", "deploy", "marketplace", "helius", "helius_apis__helius_utils"], "alias": "helius_utils", "checksum": {"name": "sha256", "checksum": "c2d9fec018a695c9fdb69fc0166d07df725eadaf4c6e1b1d52f8a1161cb3e09b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"token_metadata": {"name": "token_metadata", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "balances": {"name": "balances", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parse_transactions": {"name": "parse_transactions", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/helius/helius_apis__helius_utils.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113503.1187701, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_helius_apis_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}\n-- depends_on: {{ ref('helius_utils__helius_utils') }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}, {"name": "helius_utils__helius_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live", "model.livequery_models.helius_utils__helius_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/helius/helius_apis__helius_utils.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'helius_apis' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.helius_utils__helius_utils", "sql": " __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.helius_utils__helius_utils": {"database": "EXTERNAL", "schema": "helius_utils", "name": "helius_utils__helius_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/helius/helius_utils__helius_utils.sql", "original_file_path": "models/deploy/marketplace/helius/helius_utils__helius_utils.sql", "unique_id": "model.livequery_models.helius_utils__helius_utils", "fqn": ["livequery_models", "deploy", "marketplace", "helius", "helius_utils__helius_utils"], "alias": "helius_utils", "checksum": {"name": "sha256", "checksum": "87bb2d3485bba61ea826583fa5a5773732b5cd9ca498be8b66e7d514f31f2b76"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113500.0189815, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_helius_utils_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/helius/helius_utils__helius_utils.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.helius_das__helius_utils": {"database": "EXTERNAL", "schema": "helius_das", "name": "helius_das__helius_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/helius/helius_das__helius_utils.sql", "original_file_path": "models/deploy/marketplace/helius/helius_das__helius_utils.sql", "unique_id": "model.livequery_models.helius_das__helius_utils", "fqn": ["livequery_models", "deploy", "marketplace", "helius", "helius_das__helius_utils"], "alias": "helius_utils", "checksum": {"name": "sha256", "checksum": "28fa6015380d003e7edb1366c57119215d7fcecec9f00f660eef2b6011e94e7c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"get_asset": {"name": "get_asset", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_signatures_for_asset": {"name": "get_signatures_for_asset", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "search_assets": {"name": "search_assets", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_asset_proof": {"name": "get_asset_proof", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_assets_by_owner": {"name": "get_assets_by_owner", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_assets_by_authority": {"name": "get_assets_by_authority", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_assets_by_creator": {"name": "get_assets_by_creator", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_assets_by_group": {"name": "get_assets_by_group", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/helius/helius_das__helius_utils.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113503.1413493, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_helius_das_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}\n-- depends_on: {{ ref('helius_utils__helius_utils') }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}, {"name": "helius_utils__helius_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live", "model.livequery_models.helius_utils__helius_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/helius/helius_das__helius_utils.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'helius_das' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.helius_utils__helius_utils", "sql": " __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.playgrounds__": {"database": "EXTERNAL", "schema": "playgrounds", "name": "playgrounds__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/playgrounds/playgrounds__.sql", "original_file_path": "models/deploy/marketplace/playgrounds/playgrounds__.sql", "unique_id": "model.livequery_models.playgrounds__", "fqn": ["livequery_models", "deploy", "marketplace", "playgrounds", "playgrounds__"], "alias": "", "checksum": {"name": "sha256", "checksum": "dcf2d8aba472812a413cd5630fb4e0ee4a84567370c1060b970a22c70fafda5c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"query_subgraph": {"name": "query_subgraph", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/playgrounds/playgrounds__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113503.191712, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_playgrounds_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/playgrounds/playgrounds__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'playgrounds' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.zettablock__": {"database": "EXTERNAL", "schema": "zettablock", "name": "zettablock__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/zettablock/zettablock__.sql", "original_file_path": "models/deploy/marketplace/zettablock/zettablock__.sql", "unique_id": "model.livequery_models.zettablock__", "fqn": ["livequery_models", "deploy", "marketplace", "zettablock", "zettablock__"], "alias": "", "checksum": {"name": "sha256", "checksum": "1fcd113d09cfbd2ec5691bbcd8b9f392e45080f7f92e45df76bf2c3f7ce0f5c5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113500.0417426, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_zettablock_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/zettablock/zettablock__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'zettablock' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.quicknode_polygon_tokens__quicknode_utils": {"database": "EXTERNAL", "schema": "quicknode_polygon_tokens", "name": "quicknode_polygon_tokens__quicknode_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/quicknode/quicknode_polygon_tokens__quicknode_utils.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_polygon_tokens__quicknode_utils.sql", "unique_id": "model.livequery_models.quicknode_polygon_tokens__quicknode_utils", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "quicknode_polygon_tokens__quicknode_utils"], "alias": "quicknode_utils", "checksum": {"name": "sha256", "checksum": "6eede1c8f6dd8dea7e02d996adf1f0e1d8985f42480ab38af9708ee181d5eaac"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"get_token_metadata_by_contract_address": {"name": "get_token_metadata_by_contract_address", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_token_metadata_by_symbol": {"name": "get_token_metadata_by_symbol", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_transactions_by_address": {"name": "get_transactions_by_address", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_wallet_token_balance": {"name": "get_wallet_token_balance", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_wallet_token_transactions": {"name": "get_wallet_token_transactions", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/quicknode/quicknode_polygon_tokens__quicknode_utils.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113503.2209527, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_quicknode_polygon_tokens_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}\n-- depends_on: {{ ref('quicknode_utils__quicknode_utils') }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}, {"name": "quicknode_utils__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live", "model.livequery_models.quicknode_utils__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_polygon_tokens__quicknode_utils.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.quicknode_ethereum_nfts__quicknode_utils": {"database": "EXTERNAL", "schema": "quicknode_ethereum_nfts", "name": "quicknode_ethereum_nfts__quicknode_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/quicknode/quicknode_ethereum_nfts__quicknode_utils.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_ethereum_nfts__quicknode_utils.sql", "unique_id": "model.livequery_models.quicknode_ethereum_nfts__quicknode_utils", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "quicknode_ethereum_nfts__quicknode_utils"], "alias": "quicknode_utils", "checksum": {"name": "sha256", "checksum": "01a0dba1033fe3cb3334fb37d12177d3ada4e9bafa4596bd1c2382df8ddd6aa6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"fetch_nft_collection_details": {"name": "fetch_nft_collection_details", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fetch_nfts": {"name": "fetch_nfts", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fetch_nfts_by_collection": {"name": "fetch_nfts_by_collection", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_transfers_by_nft": {"name": "get_transfers_by_nft", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "verify_nfts_owner": {"name": "verify_nfts_owner", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/quicknode/quicknode_ethereum_nfts__quicknode_utils.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113503.2542317, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_quicknode_ethereum_nfts_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}\n-- depends_on: {{ ref('quicknode_utils__quicknode_utils') }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}, {"name": "quicknode_utils__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live", "model.livequery_models.quicknode_utils__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_ethereum_nfts__quicknode_utils.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.quicknode_utils__quicknode_utils": {"database": "EXTERNAL", "schema": "quicknode_utils", "name": "quicknode_utils__quicknode_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/quicknode/quicknode_utils__quicknode_utils.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_utils__quicknode_utils.sql", "unique_id": "model.livequery_models.quicknode_utils__quicknode_utils", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "quicknode_utils__quicknode_utils"], "alias": "quicknode_utils", "checksum": {"name": "sha256", "checksum": "19648edc7f037d57db6423d1103148840109bb643b983410a69cc4ee15bf4185"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113500.0636277, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_quicknode_utils_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_utils__quicknode_utils.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.quicknode_solana_nfts__quicknode_utils": {"database": "EXTERNAL", "schema": "quicknode_solana_nfts", "name": "quicknode_solana_nfts__quicknode_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/quicknode/quicknode_solana_nfts__quicknode_utils.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_solana_nfts__quicknode_utils.sql", "unique_id": "model.livequery_models.quicknode_solana_nfts__quicknode_utils", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "quicknode_solana_nfts__quicknode_utils"], "alias": "quicknode_utils", "checksum": {"name": "sha256", "checksum": "321974e17cbe3269d6e2228a11da818de60d89f6114be913ef229dc0a5342ecc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"fetch_nfts": {"name": "fetch_nfts", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fetch_nfts_by_creator": {"name": "fetch_nfts_by_creator", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/quicknode/quicknode_solana_nfts__quicknode_utils.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113503.2054734, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_quicknode_solana_nfts_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}\n-- depends_on: {{ ref('quicknode_utils__quicknode_utils') }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}, {"name": "quicknode_utils__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live", "model.livequery_models.quicknode_utils__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_solana_nfts__quicknode_utils.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'quicknode_solana_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.quicknode_ethereum_tokens__quicknode_utils": {"database": "EXTERNAL", "schema": "quicknode_ethereum_tokens", "name": "quicknode_ethereum_tokens__quicknode_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/quicknode/quicknode_ethereum_tokens__quicknode_utils.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_ethereum_tokens__quicknode_utils.sql", "unique_id": "model.livequery_models.quicknode_ethereum_tokens__quicknode_utils", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "quicknode_ethereum_tokens__quicknode_utils"], "alias": "quicknode_utils", "checksum": {"name": "sha256", "checksum": "63a3801533cd007c9e82ad7e4a566d5708f196ae7c5262d341bfc0b7cba8678b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"get_token_metadata_by_contract_address": {"name": "get_token_metadata_by_contract_address", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_token_metadata_by_symbol": {"name": "get_token_metadata_by_symbol", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_transactions_by_address": {"name": "get_transactions_by_address", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_wallet_token_balance": {"name": "get_wallet_token_balance", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_wallet_token_transactions": {"name": "get_wallet_token_transactions", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/quicknode/quicknode_ethereum_tokens__quicknode_utils.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113503.3168166, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_quicknode_ethereum_tokens_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}\n-- depends_on: {{ ref('quicknode_utils__quicknode_utils') }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}, {"name": "quicknode_utils__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live", "model.livequery_models.quicknode_utils__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_ethereum_tokens__quicknode_utils.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.quicknode_polygon_nfts__quicknode_utils": {"database": "EXTERNAL", "schema": "quicknode_polygon_nfts", "name": "quicknode_polygon_nfts__quicknode_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/quicknode/quicknode_polygon_nfts__quicknode_utils.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_polygon_nfts__quicknode_utils.sql", "unique_id": "model.livequery_models.quicknode_polygon_nfts__quicknode_utils", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "quicknode_polygon_nfts__quicknode_utils"], "alias": "quicknode_utils", "checksum": {"name": "sha256", "checksum": "8fa2d0247ac0c24d068b4acad95177a66924ace12e33177403b37767e64273aa"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"fetch_nft_collection_details": {"name": "fetch_nft_collection_details", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fetch_nfts": {"name": "fetch_nfts", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fetch_nfts_by_collection": {"name": "fetch_nfts_by_collection", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_transfers_by_nft": {"name": "get_transfers_by_nft", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "verify_nfts_owner": {"name": "verify_nfts_owner", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/quicknode/quicknode_polygon_nfts__quicknode_utils.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113503.2861247, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_quicknode_polygon_nfts_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}\n-- depends_on: {{ ref('quicknode_utils__quicknode_utils') }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}, {"name": "quicknode_utils__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live", "model.livequery_models.quicknode_utils__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_polygon_nfts__quicknode_utils.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.footprint_utils__footprint_utils": {"database": "EXTERNAL", "schema": "footprint_utils", "name": "footprint_utils__footprint_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/footprint/footprint_utils__footprint_utils.sql", "original_file_path": "models/deploy/marketplace/footprint/footprint_utils__footprint_utils.sql", "unique_id": "model.livequery_models.footprint_utils__footprint_utils", "fqn": ["livequery_models", "deploy", "marketplace", "footprint", "footprint_utils__footprint_utils"], "alias": "footprint_utils", "checksum": {"name": "sha256", "checksum": "7b014ae6db72a2e0f20070bf29c433cb90b4d265f7342d52e2cea483ff06787f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"get": {"name": "get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/footprint/footprint_utils__footprint_utils.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113503.34614, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_footprint_utils_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/footprint/footprint_utils__footprint_utils.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'footprint_utils' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.cmc__": {"database": "EXTERNAL", "schema": "cmc", "name": "cmc__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/cmc/cmc__.sql", "original_file_path": "models/deploy/marketplace/cmc/cmc__.sql", "unique_id": "model.livequery_models.cmc__", "fqn": ["livequery_models", "deploy", "marketplace", "cmc", "cmc__"], "alias": "", "checksum": {"name": "sha256", "checksum": "c26c75aa21e109f25bcba7e695b7cef34df142384b567fce95de8b2374b33887"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"get": {"name": "get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/cmc/cmc__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113503.3531804, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_cmc_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/cmc/cmc__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'cmc' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.apilayer__": {"database": "EXTERNAL", "schema": "apilayer", "name": "apilayer__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/apilayer/apilayer__.sql", "original_file_path": "models/deploy/marketplace/apilayer/apilayer__.sql", "unique_id": "model.livequery_models.apilayer__", "fqn": ["livequery_models", "deploy", "marketplace", "apilayer", "apilayer__"], "alias": "", "checksum": {"name": "sha256", "checksum": "3bed74d4a9a1ec55eadec250ffcecb484876c79cf42be448591ceee377714c81"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"get": {"name": "get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/apilayer/apilayer__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113503.3602512, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_apilayer_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/apilayer/apilayer__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'apilayer' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.zapper__": {"database": "EXTERNAL", "schema": "zapper", "name": "zapper__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/zapper/zapper__.sql", "original_file_path": "models/deploy/marketplace/zapper/zapper__.sql", "unique_id": "model.livequery_models.zapper__", "fqn": ["livequery_models", "deploy", "marketplace", "zapper", "zapper__"], "alias": "", "checksum": {"name": "sha256", "checksum": "74bdb58da84c5f7c07f56e4c29050414c05178b2c660b73aea40525db985e7f8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113500.1136875, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_zapper_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/zapper/zapper__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'zapper' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.alchemy_tokens__alchemy_utils": {"database": "EXTERNAL", "schema": "alchemy_tokens", "name": "alchemy_tokens__alchemy_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/alchemy/alchemy_tokens__alchemy_utils.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_tokens__alchemy_utils.sql", "unique_id": "model.livequery_models.alchemy_tokens__alchemy_utils", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "alchemy_tokens__alchemy_utils"], "alias": "alchemy_utils", "checksum": {"name": "sha256", "checksum": "cab9901d2c7c28454ef9180250f6d2b1e5a70a131308dc9f914f00d9bafbc6b6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"get_token_allowance": {"name": "get_token_allowance", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_token_balances": {"name": "get_token_balances", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_token_metadata": {"name": "get_token_metadata", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/alchemy/alchemy_tokens__alchemy_utils.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113503.3684287, "relation_name": null, "raw_code": "{%- set configs = [\n config_alchemy_tokens_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}\n-- depends_on: {{ ref('alchemy_utils__alchemy_utils') }}\n-- depends_on: {{ ref('live') }}", "language": "sql", "refs": [{"name": "alchemy_utils__alchemy_utils", "package": null, "version": null}, {"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.alchemy_utils__alchemy_utils", "model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_tokens__alchemy_utils.sql", "compiled": true, "compiled_code": "\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n) SELECT 'alchemy_tokens' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.alchemy_transfers__alchemy_utils": {"database": "EXTERNAL", "schema": "alchemy_transfers", "name": "alchemy_transfers__alchemy_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/alchemy/alchemy_transfers__alchemy_utils.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_transfers__alchemy_utils.sql", "unique_id": "model.livequery_models.alchemy_transfers__alchemy_utils", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "alchemy_transfers__alchemy_utils"], "alias": "alchemy_utils", "checksum": {"name": "sha256", "checksum": "8cb330829c8dad88d151aa4a3834fd52f46021b69279a40be4090eed22644958"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"get_asset_transfers": {"name": "get_asset_transfers", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/alchemy/alchemy_transfers__alchemy_utils.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113503.5272672, "relation_name": null, "raw_code": "{%- set configs = [\n config_alchemy_transfers_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}\n-- depends_on: {{ ref('alchemy_utils__alchemy_utils') }}\n-- depends_on: {{ ref('live') }}", "language": "sql", "refs": [{"name": "alchemy_utils__alchemy_utils", "package": null, "version": null}, {"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.alchemy_utils__alchemy_utils", "model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_transfers__alchemy_utils.sql", "compiled": true, "compiled_code": "\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n) SELECT 'alchemy_transfers' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.alchemy_nfts__alchemy_utils": {"database": "EXTERNAL", "schema": "alchemy_nfts", "name": "alchemy_nfts__alchemy_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.sql", "unique_id": "model.livequery_models.alchemy_nfts__alchemy_utils", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "alchemy_nfts__alchemy_utils"], "alias": "alchemy_utils", "checksum": {"name": "sha256", "checksum": "d63ca11ed49d0af13d860d1f3189b8688027877baf40376a9583a5172882cb11"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"get_nfts": {"name": "get_nfts", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_owners_for_token": {"name": "get_owners_for_token", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_owners_for_collection": {"name": "get_owners_for_collection", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_holder_of_collection": {"name": "is_holder_of_collection", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_contracts_for_owner": {"name": "get_contracts_for_owner", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_nft_metadata": {"name": "get_nft_metadata", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_nft_metadata_batch": {"name": "get_nft_metadata_batch", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_contract_metadata": {"name": "get_contract_metadata", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_contract_metadata_batch": {"name": "get_contract_metadata_batch", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "invalidate_contract": {"name": "invalidate_contract", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reingest_contract": {"name": "reingest_contract", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "search_contract_metadata": {"name": "search_contract_metadata", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_nfts_for_collection": {"name": "get_nfts_for_collection", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_spam_contracts": {"name": "get_spam_contracts", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_spam_contract": {"name": "is_spam_contract", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_airdrop": {"name": "is_airdrop", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "report_spam": {"name": "report_spam", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_floor_price": {"name": "get_floor_price", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "get_nft_sales": {"name": "get_nft_sales", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compute_rarity": {"name": "compute_rarity", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summarize_nft_attributes": {"name": "summarize_nft_attributes", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113503.397297, "relation_name": null, "raw_code": "{%- set configs = [\n config_alchemy_nfts_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}\n-- depends_on: {{ ref('alchemy_utils__alchemy_utils') }}\n-- depends_on: {{ ref('live') }}", "language": "sql", "refs": [{"name": "alchemy_utils__alchemy_utils", "package": null, "version": null}, {"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.alchemy_utils__alchemy_utils", "model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.sql", "compiled": true, "compiled_code": "\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n) SELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.alchemy_utils__alchemy_utils": {"database": "EXTERNAL", "schema": "alchemy_utils", "name": "alchemy_utils__alchemy_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/alchemy/alchemy_utils__alchemy_utils.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_utils__alchemy_utils.sql", "unique_id": "model.livequery_models.alchemy_utils__alchemy_utils", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "alchemy_utils__alchemy_utils"], "alias": "alchemy_utils", "checksum": {"name": "sha256", "checksum": "f1262dc20957c1f57345d120d5fa804f99a3bbf73fdffb6bac4d1eb830ba841c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113500.141842, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_alchemy_utils_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_utils__alchemy_utils.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.blockpour_utils__": {"database": "EXTERNAL", "schema": "blockpour_utils", "name": "blockpour_utils__", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/marketplace/blockpour/blockpour_utils__.sql", "original_file_path": "models/deploy/marketplace/blockpour/blockpour_utils__.sql", "unique_id": "model.livequery_models.blockpour_utils__", "fqn": ["livequery_models", "deploy", "marketplace", "blockpour", "blockpour_utils__"], "alias": "", "checksum": {"name": "sha256", "checksum": "b42854ed08d11ee40b146d93bafb5961ed3474bf0bd335a0b38a6a30822f4a4b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": ["marketplace"], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["marketplace"], "description": "", "columns": {"get": {"name": "get", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "post": {"name": "post", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/marketplace/blockpour/blockpour_utils__.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "tags": "marketplace", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113503.534414, "relation_name": null, "raw_code": "-- depends_on: {{ ref('live') }}\n{%- set configs = [\n config_blockpour_utils_udfs,\n ] -%}\n{{- ephemeral_deploy_marketplace(configs) -}}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_marketplace"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/blockpour/blockpour_utils__.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte__live\nSELECT 'blockpour_utils' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.live": {"database": "EXTERNAL", "schema": "live", "name": "live", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/core/live.sql", "original_file_path": "models/deploy/core/live.sql", "unique_id": "model.livequery_models.live", "fqn": ["livequery_models", "deploy", "core", "live"], "alias": "", "checksum": {"name": "sha256", "checksum": "71b371765e23aa22b9961eeaeb7657413cc7f6d5995b811f85a5c110ae1d4d00"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {"udf_api": {"name": "udf_api", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/core/live.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113503.5478082, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_utils') }}\n-- depends_on: {{ ref('utils') }}\n-- depends_on: {{ ref('_live') }}\n{% set config = config_core_live %}\n{{ ephemeral_deploy_core(config) }}", "language": "sql", "refs": [{"name": "_utils", "package": null, "version": null}, {"name": "utils", "package": null, "version": null}, {"name": "_live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_core"], "nodes": ["model.livequery_models._utils", "model.livequery_models.utils", "model.livequery_models._live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n) -- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models._utils": {"database": "EXTERNAL", "schema": "_utils", "name": "_utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/core/_utils.sql", "original_file_path": "models/deploy/core/_utils.sql", "unique_id": "model.livequery_models._utils", "fqn": ["livequery_models", "deploy", "core", "_utils"], "alias": "", "checksum": {"name": "sha256", "checksum": "3d202cb82095728dae3b02cdca6d2c5f9521ecf50b687a50739f44b5ee828015"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {"udf_introspect": {"name": "udf_introspect", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/core/_utils.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113503.5690029, "relation_name": null, "raw_code": "{% set config = config_core__utils %}\n{{ ephemeral_deploy_core(config) }}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_core"], "nodes": []}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/_utils.sql", "compiled": true, "compiled_code": "\n\n\n SELECT '_utils' as schema_", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.secrets": {"database": "EXTERNAL", "schema": "secrets", "name": "secrets", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/core/secrets.sql", "original_file_path": "models/deploy/core/secrets.sql", "unique_id": "model.livequery_models.secrets", "fqn": ["livequery_models", "deploy", "core", "secrets"], "alias": "", "checksum": {"name": "sha256", "checksum": "ec1f117cc419f648463c64fca28b91e20fff87fa5b6f982ab8d75e74a3d1b052"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113500.1740427, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_utils') }}\n-- depends_on: {{ ref('live') }}\n{% set config = config_core_secrets %}\n{{ ephemeral_deploy_core(config) }}", "language": "sql", "refs": [{"name": "_utils", "package": null, "version": null}, {"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_core"], "nodes": ["model.livequery_models._utils", "model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/secrets.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) -- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__live\n\n\n\n SELECT 'secrets' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models._live": {"database": "EXTERNAL", "schema": "_live", "name": "_live", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/core/_live.sql", "original_file_path": "models/deploy/core/_live.sql", "unique_id": "model.livequery_models._live", "fqn": ["livequery_models", "deploy", "core", "_live"], "alias": "", "checksum": {"name": "sha256", "checksum": "c96cbb9dfef8ff10375c8e187dc394f7a38d172e8df94f343761d485338f4036"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113500.1815555, "relation_name": null, "raw_code": "{% set config = config_core__live %}\n{{ ephemeral_deploy_core(config) }}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_core"], "nodes": []}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/_live.sql", "compiled": true, "compiled_code": "\n\n\n SELECT '_live' as schema_", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.livequery_models.utils": {"database": "EXTERNAL", "schema": "utils", "name": "utils", "resource_type": "model", "package_name": "livequery_models", "path": "deploy/core/utils.sql", "original_file_path": "models/deploy/core/utils.sql", "unique_id": "model.livequery_models.utils", "fqn": ["livequery_models", "deploy", "core", "utils"], "alias": "", "checksum": {"name": "sha256", "checksum": "306321713017a3700a99c47db3a99ca2f64fdf6fe567c883a7507f13bd8095c2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": [], "description": "", "columns": {"udf_json_rpc_call": {"name": "udf_json_rpc_call", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "udf_urlencode": {"name": "udf_urlencode", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "udf_int_to_binary": {"name": "udf_int_to_binary", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "udf_binary_to_int": {"name": "udf_binary_to_int", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "udf_evm_decode_log": {"name": "udf_evm_decode_log", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "livequery_models://models/deploy/core/utils.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113503.578601, "relation_name": null, "raw_code": "-- depends_on: {{ ref('_utils') }}\n{% set config = config_core_utils %}\n{{ ephemeral_deploy_core(config) }}", "language": "sql", "refs": [{"name": "_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.ephemeral_deploy_core"], "nodes": ["model.livequery_models._utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.sql", "compiled": true, "compiled_code": "with __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n) -- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "analysis.livequery_models.test_create_or_drop_function_from_config": {"database": "EXTERNAL", "schema": "test_create_or_drop_function_from_config", "name": "test_create_or_drop_function_from_config", "resource_type": "analysis", "package_name": "livequery_models", "path": "analysis/test_create_or_drop_function_from_config.sql", "original_file_path": "analysis/test_create_or_drop_function_from_config.sql", "unique_id": "analysis.livequery_models.test_create_or_drop_function_from_config", "fqn": ["livequery_models", "analysis", "test_create_or_drop_function_from_config"], "alias": "", "checksum": {"name": "sha256", "checksum": "6da8747a0512c8c0c522b3b56816f437171257a7544716d8795b1a4cc04c8664"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113500.3766592, "relation_name": null, "raw_code": "{%- set udfs = fromyaml(config_core_live()) -%}\n{% do udfs.extend(fromyaml(config_core__live())) %}\n{% do udfs.extend(fromyaml(config_core__utils())) %}\n{% do udfs.extend(fromyaml(config_core_utils())) %}\n\n{%- for udf in udfs -%}\n{{- create_or_drop_function_from_config(udf, drop_=True) -}}\n{{- create_or_drop_function_from_config(udf, drop_=False) -}}\n{% endfor %}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.config_core_live", "macro.livequery_models.config_core__live", "macro.livequery_models.config_core__utils", "macro.livequery_models.config_core_utils", "macro.livequery_models.create_or_drop_function_from_config"], "nodes": []}, "compiled_path": "target/compiled/livequery_models/analysis/test_create_or_drop_function_from_config.sql", "compiled": true, "compiled_code": "\n\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS live.udf_api(\n STRING,\n STRING,\n OBJECT,\n VARIANT,\n STRING);\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION live.udf_api(\n method STRING,\n url STRING,\n headers OBJECT,\n data VARIANT,\n secret_name STRING\n )\n COPY GRANTS\n RETURNS VARIANT\n VOLATILE\n\n AS\n $$\n SELECT\n _live.UDF_API(\n method,\n url,\n headers,\n data,\n _utils.UDF_WHOAMI(),\n secret_name\n )\n\n $$;\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS live.udf_api(\n STRING,\n STRING,\n OBJECT,\n VARIANT);\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION live.udf_api(\n method STRING,\n url STRING,\n headers OBJECT,\n data VARIANT\n )\n COPY GRANTS\n RETURNS VARIANT\n VOLATILE\n\n AS\n $$\n SELECT\n _live.UDF_API(\n method,\n url,\n headers,\n data,\n _utils.UDF_WHOAMI(),\n ''\n )\n\n $$;\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS live.udf_api(\n STRING,\n VARIANT);\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION live.udf_api(\n url STRING,\n data VARIANT\n )\n COPY GRANTS\n RETURNS VARIANT\n VOLATILE\n\n AS\n $$\n SELECT\n _live.UDF_API(\n 'POST',\n url,\n {'Content-Type': 'application/json'},\n data,\n _utils.UDF_WHOAMI(),\n ''\n )\n\n $$;\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS live.udf_api(\n STRING,\n VARIANT,\n STRING);\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION live.udf_api(\n url STRING,\n data VARIANT,\n secret_name STRING\n )\n COPY GRANTS\n RETURNS VARIANT\n VOLATILE\n\n AS\n $$\n SELECT\n _live.UDF_API(\n 'POST',\n url,\n {'Content-Type': 'application/json'},\n data,\n _utils.UDF_WHOAMI(),\n secret_name\n )\n\n $$;\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS live.udf_api(\n STRING);\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION live.udf_api(\n url STRING\n )\n COPY GRANTS\n RETURNS VARIANT\n VOLATILE\n\n AS\n $$\n SELECT\n _live.UDF_API(\n 'GET',\n url,\n {},\n NULL,\n _utils.UDF_WHOAMI(),\n ''\n )\n\n $$;\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS live.udf_api(\n STRING,\n STRING);\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION live.udf_api(\n url STRING,\n secret_name STRING\n )\n COPY GRANTS\n RETURNS VARIANT\n VOLATILE\n\n AS\n $$\n SELECT\n _live.UDF_API(\n 'GET',\n url,\n {},\n {},\n _utils.UDF_WHOAMI(),\n secret_name\n )\n\n $$;\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS live.udf_rpc(\n STRING,\n STRING,\n STRING,\n VARIANT);\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION live.udf_rpc(\n blockchain STRING,\n network STRING,\n method STRING,\n parameters VARIANT\n )\n COPY GRANTS\n RETURNS VARIANT\n VOLATILE\nCOMMENT = $$Executes an JSON RPC call on a blockchain.$$\n\n AS\n $$\n \n\nWITH result as (\n SELECT\n live.udf_api(\n '{endpoint}'\n ,utils.udf_json_rpc_call(method, parameters)\n ,concat_ws('/', 'integration', _utils.udf_provider(), 'blockchain', 'network')\n )::VARIANT:data AS data\n)\nSELECT\n COALESCE(data:result, {'error':data:error})\nFROM result\n\n $$;\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS live.udf_allow_list();\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE EXTERNAL FUNCTION live.udf_allow_list(\n )\n COPY GRANTS\n RETURNS ARRAY\n RETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns a list of allowed domains.$$\n\n api_integration = AWS_EXTERNAL_API_PROD_V2\n AS 'https://zv7a5qfhv9.execute-api.us-east-1.amazonaws.com/prod/allowed';\n \n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS _live.udf_api(\n STRING,\n STRING,\n OBJECT,\n VARIANT,\n STRING,\n STRING);\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE EXTERNAL FUNCTION _live.udf_api(\n method STRING,\n url STRING,\n headers OBJECT,\n DATA VARIANT,\n user_id STRING,\n SECRET STRING\n )\n COPY GRANTS\n RETURNS VARIANT\n NOT NULL\n\n api_integration = AWS_EXTERNAL_API_PROD_V2\n AS 'https://zv7a5qfhv9.execute-api.us-east-1.amazonaws.com/prod/udf_api';\n \n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS _utils.udf_introspect(\n STRING);\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE SECURE EXTERNAL FUNCTION _utils.udf_introspect(\n echo STRING\n )\n COPY GRANTS\n RETURNS TEXT\n api_integration = AWS_EXTERNAL_API_PROD_V2\n AS 'https://zv7a5qfhv9.execute-api.us-east-1.amazonaws.com/prod/introspect';\n \n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS _utils.udf_user_tier();\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE SECURE FUNCTION _utils.udf_user_tier(\n )\n COPY GRANTS\n RETURNS TEXT\n NOT NULL\nRETURNS NULL ON NULL INPUT\nIMMUTABLE\nMEMOIZABLE\n\n AS\n $$\n SELECT\n COALESCE(PARSE_JSON(GETVARIABLE('LIVEQUERY_CONTEXT')):userTier::STRING, 'community')\n\n $$;\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS _utils.udf_provider();\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE SECURE FUNCTION _utils.udf_provider(\n )\n COPY GRANTS\n RETURNS TEXT\n NOT NULL\nRETURNS NULL ON NULL INPUT\nIMMUTABLE\nMEMOIZABLE\n\n AS\n $$\n SELECT\n COALESCE(PARSE_JSON(GETVARIABLE('LIVEQUERY_CONTEXT')):provider::STRING, 'quicknode')\n\n $$;\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS _utils.udf_whoami();\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE SECURE FUNCTION _utils.udf_whoami(\n )\n COPY GRANTS\n RETURNS TEXT\n NOT NULL\nRETURNS NULL ON NULL INPUT\nIMMUTABLE\nMEMOIZABLE\n\n AS\n $$\n SELECT\n COALESCE(PARSE_JSON(GETVARIABLE('LIVEQUERY_CONTEXT')):userId::STRING, CURRENT_USER())\n\n $$;\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS _utils.udf_register_secret(\n STRING,\n STRING,\n STRING);\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE SECURE EXTERNAL FUNCTION _utils.udf_register_secret(\n request_id STRING,\n user_id STRING,\n key STRING\n )\n COPY GRANTS\n RETURNS OBJECT\n NOT NULL\nRETURNS NULL ON NULL INPUT\n\n api_integration = AWS_EXTERNAL_API_PROD_V2\n AS 'https://zv7a5qfhv9.execute-api.us-east-1.amazonaws.com/prod/secret/register';\n \n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS utils.udf_register_secret(\n STRING,\n STRING);\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE SECURE FUNCTION utils.udf_register_secret(\n request_id STRING,\n key STRING\n )\n COPY GRANTS\n RETURNS OBJECT\n NOT NULL\nRETURNS NULL ON NULL INPUT\nIMMUTABLE\n\n AS\n $$\n SELECT\n _utils.UDF_REGISTER_SECRET(REQUEST_ID, _utils.UDF_WHOAMI(), KEY)\n\n $$;\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS utils.udf_hex_to_int(\n STRING);\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION utils.udf_hex_to_int(\n hex STRING\n )\n COPY GRANTS\n RETURNS TEXT\n NULL\nLANGUAGE PYTHON\nRETURNS NULL ON NULL INPUT\nIMMUTABLE\nRUNTIME_VERSION = '3.8'\nHANDLER = 'hex_to_int'\n\n AS\n $$\n \ndef hex_to_int(hex) -> str:\n \"\"\"\n Converts hex (of any size) to int (as a string). Snowflake and java script can only handle up to 64-bit (38 digits of precision)\n hex_to_int('200000000000000000000000000000211');\n >> 680564733841876926926749214863536423441\n hex_to_int('0x200000000000000000000000000000211');\n >> 680564733841876926926749214863536423441\n hex_to_int(NULL);\n >> NULL\n \"\"\"\n try:\n return str(int(hex, 16)) if hex and hex != \"0x\" else None\n except:\n return None\n\n $$;\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS utils.udf_hex_to_int(\n STRING,\n STRING);\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION utils.udf_hex_to_int(\n encoding STRING,\n hex STRING\n )\n COPY GRANTS\n RETURNS TEXT\n NULL\nLANGUAGE PYTHON\nRETURNS NULL ON NULL INPUT\nIMMUTABLE\nRUNTIME_VERSION = '3.8'\nHANDLER = 'hex_to_int'\n\n AS\n $$\n \ndef hex_to_int(encoding, hex) -> str:\n \"\"\"\n Converts hex (of any size) to int (as a string). Snowflake and java script can only handle up to 64-bit (38 digits of precision)\n hex_to_int('hex', '200000000000000000000000000000211');\n >> 680564733841876926926749214863536423441\n hex_to_int('hex', '0x200000000000000000000000000000211');\n >> 680564733841876926926749214863536423441\n hex_to_int('hex', NULL);\n >> NULL\n hex_to_int('s2c', 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffe5b83acf');\n >> -440911153\n \"\"\"\n try:\n if not hex:\n return None\n if encoding.lower() == 's2c':\n if hex[0:2].lower() != '0x':\n hex = f'0x{hex}'\n\n bits = len(hex[2:]) * 4\n value = int(hex, 0)\n if value & (1 << (bits - 1)):\n value -= 1 << bits\n return str(value)\n else:\n return str(int(hex, 16))\n except:\n return None\n\n $$;\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS utils.udf_evm_text_signature(\n VARIANT);\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION utils.udf_evm_text_signature(\n abi VARIANT\n )\n COPY GRANTS\n RETURNS TEXT\n LANGUAGE PYTHON\nRUNTIME_VERSION = '3.8'\nHANDLER = 'get_simplified_signature'\n\n AS\n $$\n \n\ndef get_simplified_signature(abi):\n def generate_signature(inputs):\n signature_parts = []\n for input_data in inputs:\n if 'components' in input_data:\n component_signature_parts = []\n components = input_data['components']\n component_signature_parts.extend(generate_signature(components))\n component_signature_parts[-1] = component_signature_parts[-1].rstrip(\",\")\n if input_data['type'].endswith('[]'):\n signature_parts.append(\"(\" + \"\".join(component_signature_parts) + \")[],\")\n else:\n signature_parts.append(\"(\" + \"\".join(component_signature_parts) + \"),\")\n else:\n signature_parts.append(input_data['type'].replace('enum ', '').replace(' payable', '') + \",\")\n return signature_parts\n\n signature_parts = [abi['name'] + \"(\"]\n signature_parts.extend(generate_signature(abi['inputs']))\n signature_parts[-1] = signature_parts[-1].rstrip(\",\") + \")\"\n return \"\".join(signature_parts)\n\n $$;\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS utils.udf_keccak256(\n VARCHAR(255));\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION utils.udf_keccak256(\n event_name VARCHAR(255)\n )\n COPY GRANTS\n RETURNS TEXT\n LANGUAGE PYTHON\nRUNTIME_VERSION = '3.8'\nPACKAGES = ('pycryptodome==3.15.0')\nHANDLER = 'udf_encode'\n\n AS\n $$\n \nfrom Crypto.Hash import keccak\n\ndef udf_encode(event_name):\n keccak_hash = keccak.new(digest_bits=256)\n keccak_hash.update(event_name.encode('utf-8'))\n return '0x' + keccak_hash.hexdigest()\n\n $$;\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS utils.udf_hex_to_string(\n STRING);\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION utils.udf_hex_to_string(\n hex STRING\n )\n COPY GRANTS\n RETURNS TEXT\n NULL\nLANGUAGE SQL\nRETURNS NULL ON NULL INPUT\nIMMUTABLE\n\n AS\n $$\n SELECT\n LTRIM(regexp_replace(\n try_hex_decode_string(hex),\n '[\\x00-\\x1F\\x7F-\\x9F\\xAD]', '', 1))\n\n $$;\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS utils.udf_int_to_hex(\n INTEGER);\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION utils.udf_int_to_hex(\n int INTEGER\n )\n COPY GRANTS\n RETURNS TEXT\n NULL\nLANGUAGE SQL\nRETURNS NULL ON NULL INPUT\nIMMUTABLE\n\n AS\n $$\n select CONCAT('0x', TRIM(TO_CHAR(int, 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')))\n\n $$;\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS utils.udf_json_rpc_call(\n STRING,\n ARRAY);\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION utils.udf_json_rpc_call(\n method STRING,\n params ARRAY\n )\n COPY GRANTS\n RETURNS OBJECT\n NULL\nLANGUAGE SQL\nRETURNS NULL ON NULL INPUT\nIMMUTABLE\n\n AS\n $$\n \nSELECT IFF(method IS NULL or params IS NULL,\n NULL,\n {\n 'jsonrpc': '2.0',\n 'method': method,\n 'params': params\n \n , 'id': hash(method, params)::string\n \n }\n )\n\n $$;\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS utils.udf_json_rpc_call(\n STRING,\n OBJECT);\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION utils.udf_json_rpc_call(\n method STRING,\n params OBJECT\n )\n COPY GRANTS\n RETURNS OBJECT\n NULL\nLANGUAGE SQL\nRETURNS NULL ON NULL INPUT\nIMMUTABLE\n\n AS\n $$\n \nSELECT IFF(method IS NULL or params IS NULL,\n NULL,\n {\n 'jsonrpc': '2.0',\n 'method': method,\n 'params': params\n \n , 'id': hash(method, params)::string\n \n }\n )\n\n $$;\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS utils.udf_json_rpc_call(\n STRING,\n OBJECT,\n STRING);\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION utils.udf_json_rpc_call(\n method STRING,\n params OBJECT,\n id STRING\n )\n COPY GRANTS\n RETURNS OBJECT\n NULL\nLANGUAGE SQL\nRETURNS NULL ON NULL INPUT\nIMMUTABLE\n\n AS\n $$\n \nSELECT IFF(method IS NULL or params IS NULL,\n NULL,\n {\n 'jsonrpc': '2.0',\n 'method': method,\n 'params': params\n \n , 'id': id\n \n }\n )\n\n $$;\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS utils.udf_json_rpc_call(\n STRING,\n ARRAY,\n STRING);\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION utils.udf_json_rpc_call(\n method STRING,\n params ARRAY,\n id STRING\n )\n COPY GRANTS\n RETURNS OBJECT\n NULL\nLANGUAGE SQL\nRETURNS NULL ON NULL INPUT\nIMMUTABLE\n\n AS\n $$\n \nSELECT IFF(method IS NULL or params IS NULL,\n NULL,\n {\n 'jsonrpc': '2.0',\n 'method': method,\n 'params': params\n \n , 'id': id\n \n }\n )\n\n $$;\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS utils.udf_urlencode(\n OBJECT,\n BOOLEAN);\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION utils.udf_urlencode(\n query OBJECT,\n doseq BOOLEAN\n )\n COPY GRANTS\n RETURNS TEXT\n NULL\nLANGUAGE PYTHON\nRETURNS NULL ON NULL INPUT\nIMMUTABLE\nRUNTIME_VERSION = '3.8'\nCOMMENT=$$Pthon (function)[https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urlencode] to convert an object to a URL query string.$$\nHANDLER = 'object_to_url_query_string'\n\n AS\n $$\n \nfrom urllib.parse import urlencode\n\ndef object_to_url_query_string(query, doseq=False):\n \n if isinstance(query, dict):\n return urlencode(query, doseq)\n return urlencode([tuple(i) for i in query], doseq)\n\n $$;\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS utils.udf_urlencode(\n ARRAY,\n BOOLEAN);\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION utils.udf_urlencode(\n query ARRAY,\n doseq BOOLEAN\n )\n COPY GRANTS\n RETURNS TEXT\n NULL\nLANGUAGE PYTHON\nRETURNS NULL ON NULL INPUT\nIMMUTABLE\nRUNTIME_VERSION = '3.8'\nCOMMENT=$$Pthon (function)[https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urlencode] to convert an array to a URL query string.$$\nHANDLER = 'object_to_url_query_string'\n\n AS\n $$\n \nfrom urllib.parse import urlencode\n\ndef object_to_url_query_string(query, doseq=False):\n \n if isinstance(query, dict):\n return urlencode(query, doseq)\n return urlencode([tuple(i) for i in query], doseq)\n\n $$;\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS utils.udf_urlencode(\n ARRAY);\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION utils.udf_urlencode(\n query ARRAY\n )\n COPY GRANTS\n RETURNS TEXT\n NULL\nLANGUAGE SQL\nRETURNS NULL ON NULL INPUT\nIMMUTABLE\n\n AS\n $$\n SELECT utils.udf_urlencode(query, FALSE)\n\n $$;\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS utils.udf_urlencode(\n OBJECT);\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION utils.udf_urlencode(\n query OBJECT\n )\n COPY GRANTS\n RETURNS TEXT\n NULL\nLANGUAGE SQL\nRETURNS NULL ON NULL INPUT\nIMMUTABLE\n\n AS\n $$\n SELECT utils.udf_urlencode(query, FALSE)\n\n $$;\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS utils.udf_object_to_url_query_string(\n OBJECT);\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION utils.udf_object_to_url_query_string(\n object OBJECT\n )\n COPY GRANTS\n RETURNS TEXT\n NOT NULL\nRETURNS NULL ON NULL INPUT\nIMMUTABLE\n\n AS\n $$\n SELECT utils.udf_urlencode(object, FALSE)\n $$;\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS utils.udf_evm_transform_log(\n VARIANT);\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION utils.udf_evm_transform_log(\n decoded VARIANT\n )\n COPY GRANTS\n RETURNS VARIANT\n NULL\nLANGUAGE PYTHON\nIMMUTABLE\nRUNTIME_VERSION = '3.8'\nHANDLER = 'transform'\n\n AS\n $$\n \nfrom copy import deepcopy\n\ndef transform_event(event: dict):\n new_event = deepcopy(event)\n if new_event.get(\"components\"):\n components = new_event.get(\"components\")\n for iy, y in enumerate(new_event[\"value\"]):\n for i, c in enumerate(components):\n y[i] = {\"value\": y[i], **c}\n new_event[\"value\"][iy] = {z[\"name\"]: z[\"value\"] for z in y}\n return new_event\n else:\n return event\n\n\ndef transform(events: list):\n try:\n results = [\n transform_event(event) if event[\"decoded\"] else event\n for event in events[\"data\"]\n ]\n events[\"data\"] = results\n return events\n except:\n return events\n\n $$;\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS utils.udf_evm_decode_log(\n ARRAY,\n OBJECT);\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE EXTERNAL FUNCTION utils.udf_evm_decode_log(\n abi ARRAY,\n data OBJECT\n )\n COPY GRANTS\n RETURNS ARRAY\n NOT NULL\nRETURNS NULL ON NULL INPUT\n\n api_integration = AWS_EXTERNAL_API_PROD_V2\n AS 'https://zv7a5qfhv9.execute-api.us-east-1.amazonaws.com/prod/evm/decode/log';\n \n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS utils.udf_evm_decode_log(\n OBJECT,\n OBJECT);\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE EXTERNAL FUNCTION utils.udf_evm_decode_log(\n abi OBJECT,\n data OBJECT\n )\n COPY GRANTS\n RETURNS ARRAY\n NOT NULL\nRETURNS NULL ON NULL INPUT\n\n api_integration = AWS_EXTERNAL_API_PROD_V2\n AS 'https://zv7a5qfhv9.execute-api.us-east-1.amazonaws.com/prod/evm/decode/log';\n \n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS utils.udf_evm_decode_trace(\n OBJECT,\n OBJECT);\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE EXTERNAL FUNCTION utils.udf_evm_decode_trace(\n abi OBJECT,\n data OBJECT\n )\n COPY GRANTS\n RETURNS ARRAY\n NOT NULL\nRETURNS NULL ON NULL INPUT\n\n api_integration = AWS_EXTERNAL_API_PROD_V2\n AS 'https://zv7a5qfhv9.execute-api.us-east-1.amazonaws.com/prod/evm/decode/trace';\n \n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS utils.udf_base58_to_hex(\n STRING);\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION utils.udf_base58_to_hex(\n base58 STRING\n )\n COPY GRANTS\n RETURNS TEXT\n LANGUAGE PYTHON\nRUNTIME_VERSION = '3.8'\nHANDLER = 'transform_base58_to_hex'\n\n AS\n $$\n \n\ndef transform_base58_to_hex(base58):\n if base58 is None:\n return 'Invalid input'\n\n ALPHABET = \"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\"\n base_count = len(ALPHABET)\n\n num = 0\n leading_zeros = 0\n\n for char in base58:\n if char == '1':\n leading_zeros += 1\n else:\n break\n\n for char in base58:\n num *= base_count\n if char in ALPHABET:\n num += ALPHABET.index(char)\n else:\n return 'Invalid character in input'\n\n hex_string = hex(num)[2:]\n\n if len(hex_string) % 2 != 0:\n hex_string = '0' + hex_string\n\n hex_leading_zeros = '00' * leading_zeros\n\n return '0x' + hex_leading_zeros + hex_string\n\n $$;\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS utils.udf_hex_to_base58(\n STRING);\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION utils.udf_hex_to_base58(\n hex STRING\n )\n COPY GRANTS\n RETURNS TEXT\n LANGUAGE PYTHON\nRUNTIME_VERSION = '3.8'\nHANDLER = 'transform_hex_to_base58'\n\n AS\n $$\n \n\ndef transform_hex_to_base58(hex):\n if hex is None or not hex.startswith('0x'):\n return 'Invalid input'\n\n hex = hex[2:]\n\n ALPHABET = \"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\"\n byte_array = bytes.fromhex(hex)\n num = int.from_bytes(byte_array, 'big')\n\n encoded = ''\n while num > 0:\n num, remainder = divmod(num, 58)\n encoded = ALPHABET[remainder] + encoded\n\n for byte in byte_array:\n if byte == 0:\n encoded = '1' + encoded\n else:\n break\n\n return encoded\n\n $$;\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS utils.udf_hex_to_bech32(\n STRING,\n STRING);\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION utils.udf_hex_to_bech32(\n hex STRING,\n hrp STRING\n )\n COPY GRANTS\n RETURNS TEXT\n LANGUAGE PYTHON\nRUNTIME_VERSION = '3.8'\nHANDLER = 'transform_hex_to_bech32'\n\n AS\n $$\n \n\ndef transform_hex_to_bech32(hex, hrp=''):\n CHARSET = \"qpzry9x8gf2tvdw0s3jn54khce6mua7l\"\n\n def bech32_polymod(values):\n generator = [0x3b6a57b2, 0x26508e6d, 0x1ea119fa, 0x3d4233dd, 0x2a1462b3]\n checksum = 1\n for value in values:\n top = checksum >> 25\n checksum = ((checksum & 0x1ffffff) << 5) ^ value\n for i in range(5):\n checksum ^= generator[i] if ((top >> i) & 1) else 0\n return checksum\n\n def bech32_hrp_expand(hrp):\n return [ord(x) >> 5 for x in hrp] + [0] + [ord(x) & 31 for x in hrp]\n\n def bech32_create_checksum(hrp, data):\n values = bech32_hrp_expand(hrp) + data\n polymod = bech32_polymod(values + [0, 0, 0, 0, 0, 0]) ^ 1\n return [(polymod >> 5 * (5 - i)) & 31 for i in range(6)]\n\n def bech32_convertbits(data, from_bits, to_bits, pad=True):\n acc = 0\n bits = 0\n ret = []\n maxv = (1 << to_bits) - 1\n max_acc = (1 << (from_bits + to_bits - 1)) - 1\n for value in data:\n acc = ((acc << from_bits) | value) & max_acc\n bits += from_bits\n while bits >= to_bits:\n bits -= to_bits\n ret.append((acc >> bits) & maxv)\n if pad and bits:\n ret.append((acc << (to_bits - bits)) & maxv)\n return ret\n\n if hex is None or not hex.startswith('0x'):\n return 'Invalid input'\n\n hex = hex[2:]\n\n data = bytes.fromhex(hex)\n data5bit = bech32_convertbits(list(data), 8, 5)\n\n if data5bit is None:\n return 'Data conversion failed'\n\n checksum = bech32_create_checksum(hrp, data5bit)\n \n return hrp + '1' + ''.join([CHARSET[d] for d in data5bit + checksum])\n\n $$;\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS utils.udf_int_to_binary(\n STRING);\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION utils.udf_int_to_binary(\n num STRING\n )\n COPY GRANTS\n RETURNS TEXT\n LANGUAGE PYTHON\nRUNTIME_VERSION = '3.8'\nHANDLER = 'int_to_binary'\n\n AS\n $$\n \n\ndef int_to_binary(num):\n num = int(num)\n is_negative = num < 0\n if is_negative:\n num = -num\n\n binary_string = bin(num)[2:]\n\n if is_negative:\n inverted_string = \"\".join(\"1\" if bit == \"0\" else \"0\" for bit in binary_string)\n\n carry = 1\n result = \"\"\n for i in range(len(inverted_string) - 1, -1, -1):\n if inverted_string[i] == \"1\" and carry == 1:\n result = \"0\" + result\n elif inverted_string[i] == \"0\" and carry == 1:\n result = \"1\" + result \n carry = 0\n else:\n result = inverted_string[i] + result\n\n binary_string = result \n\n return binary_string \n\n $$;\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS utils.udf_binary_to_int(\n STRING);\n\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION utils.udf_binary_to_int(\n binary STRING\n )\n COPY GRANTS\n RETURNS TEXT\n LANGUAGE PYTHON\nRUNTIME_VERSION = '3.8'\nHANDLER = 'binary_to_int'\n\n AS\n $$\n \n\ndef binary_to_int(binary):\n\n for char in binary:\n if char not in \"01\":\n raise ValueError(\"Input string must be a valid binary string.\")\n \n integer = 0\n\n for i, digit in enumerate(binary[::-1]):\n digit_int = int(digit)\n\n integer += digit_int * 2**i\n\n return str(integer)\n \n\n $$;\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}}, "analysis.livequery_models.test_functions": {"database": "EXTERNAL", "schema": "test_functions", "name": "test_functions", "resource_type": "analysis", "package_name": "livequery_models", "path": "analysis/test_functions.sql", "original_file_path": "analysis/test_functions.sql", "unique_id": "analysis.livequery_models.test_functions", "fqn": ["livequery_models", "analysis", "test_functions"], "alias": "", "checksum": {"name": "sha256", "checksum": "0ab84ce91d84a3416f20a65f80f6226b0dec39313dbd0f555f40cdf721121b9e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113500.480656, "relation_name": null, "raw_code": "{{ sql_udf_json_rpc_call(True) }}\n{# {{ sql_udf_json_rpc_call(False) }} #}\n{{ config_core__live() }}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.sql_udf_json_rpc_call", "macro.livequery_models.config_core__live"], "nodes": []}, "compiled_path": "target/compiled/livequery_models/analysis/test_functions.sql", "compiled": true, "compiled_code": "\n SELECT IFF(method IS NULL or params IS NULL,\n NULL,\n {\n 'jsonrpc': '2.0',\n 'method': method,\n 'params': params\n \n , 'id': hash(method, params)::string\n \n }\n )\n\n\n\n\n- name: _live.udf_api\n signature:\n - [method, STRING]\n - [url, STRING]\n - [headers, OBJECT]\n - [DATA, VARIANT]\n - [user_id, STRING]\n - [SECRET, STRING]\n return_type: VARIANT\n func_type: EXTERNAL\n api_integration: 'AWS_EXTERNAL_API_PROD_V2'\n options: |\n NOT NULL\n sql: udf_api\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}}, "analysis.livequery_models.generate_test_udf_skeleton": {"database": "EXTERNAL", "schema": "generate_test_udf_skeleton", "name": "generate_test_udf_skeleton", "resource_type": "analysis", "package_name": "livequery_models", "path": "analysis/generate_test_udf_skeleton.sql", "original_file_path": "analysis/generate_test_udf_skeleton.sql", "unique_id": "analysis.livequery_models.generate_test_udf_skeleton", "fqn": ["livequery_models", "analysis", "generate_test_udf_skeleton"], "alias": "", "checksum": {"name": "sha256", "checksum": "2931dee110117aaa477703fa3ad1dd92e9691d5c8ca46ce0d22145d0e43294ba"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113500.4897044, "relation_name": null, "raw_code": "{% set schema = \"strangelove\" %}\n{% set config = fromyaml(config_strangelove_udfs(schema_name = schema, utils_schema_name = \"quicknode_utils\")) %}\n{% set raw_test_queries %}\nstrangelove.get:\n - |\n 'https://api.strange.love/cosmoshub/mainnet/rpc/block_by_hash'\n - |\n {\n 'blockHash': '0xD70952032620CC4E2737EB8AC379806359D8E0B17B0488F627997A0B043ABDED'\n }\n\n\nstrangelove.post:\n - |\n 'https://endpoint'\n - |\n {\n 'foo': 'bar'\n }\n\n{% endset %}\n{% set test_queries = fromyaml(raw_test_queries) %}\n{{ test_queries }}\n{{ schema }}\n_____\n columns:\n{%- for item in config %}\n - name: {{ item[\"name\"] | replace(schema~\".\", \"\") }}\n tests:\n - test_marketplace_udf:\n name: test_{{ item[\"name\"].replace(\".\", \"__\") ~ \"_status_200\" }}\n args: >\n {{ test_queries[item[\"name\"]] | join(\", \") | indent(16) }}\n validations:\n - result:status_code = 200\n{%- endfor %}\n\n=====================\n\n{{ config | pprint}}\n{# {% for item in config %}\n{% if item[\"return_type\"][0] != \"VARIANT\"%}\n {{ item[\"return_type\"][0] }}\n{% endif %}\n{% endfor %} #}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.config_strangelove_udfs"], "nodes": []}, "compiled_path": "target/compiled/livequery_models/analysis/generate_test_udf_skeleton.sql", "compiled": true, "compiled_code": "\n\n\n\n{'strangelove.get': [\"'https://api.strange.love/cosmoshub/mainnet/rpc/block_by_hash'\\n\", \"{\\n 'blockHash': '0xD70952032620CC4E2737EB8AC379806359D8E0B17B0488F627997A0B043ABDED'\\n}\\n\"], 'strangelove.post': [\"'https://endpoint'\\n\", \"{\\n 'foo': 'bar'\\n}\\n\"]}\nstrangelove\n_____\n columns:\n - name: get\n tests:\n - test_marketplace_udf:\n name: test_strangelove__get_status_200\n args: >\n 'https://api.strange.love/cosmoshub/mainnet/rpc/block_by_hash'\n , {\n 'blockHash': '0xD70952032620CC4E2737EB8AC379806359D8E0B17B0488F627997A0B043ABDED'\n }\n\n validations:\n - result:status_code = 200\n - name: post\n tests:\n - test_marketplace_udf:\n name: test_strangelove__post_status_200\n args: >\n 'https://endpoint'\n , {\n 'foo': 'bar'\n }\n\n validations:\n - result:status_code = 200\n\n=====================\n\n[{'name': 'strangelove.get',\n 'options': 'COMMENT = $$Issue a GET request to a Strangelove Endpoint '\n '[Strangelove docs '\n 'here](https://voyager.strange.love/docs/cosmoshub/mainnet#/).$$\\n',\n 'return_type': ['VARIANT'],\n 'signature': [['URL', 'STRING', 'The url to issue a get request to'],\n ['QUERY_ARGS', 'OBJECT', 'The query arguments']],\n 'sql': 'SELECT\\n'\n ' live.udf_api(\\n'\n \" 'GET',\\n\"\n ' concat(\\n'\n \" URL, '?',\\n\"\n ' utils.udf_object_to_url_query_string(QUERY_ARGS)\\n'\n ' ),\\n'\n \" {'x-apikey': '{API_KEY}'},\\n\"\n ' {},\\n'\n \" '_FSC_SYS/STRANGELOVE'\\n\"\n ') as response\\n'},\n {'name': 'strangelove.post',\n 'options': 'COMMENT = $$Issue a POST request to a Strangelove Endpoint '\n '[Strangelove docs '\n 'here](https://voyager.strange.love/docs/cosmoshub/mainnet#/).$$\\n',\n 'return_type': ['VARIANT'],\n 'signature': [['URL', 'STRING', 'The url to issue a post request to'],\n ['QUERY', 'OBJECT', 'The body of the request']],\n 'sql': 'SELECT\\n'\n ' live.udf_api(\\n'\n \" 'POST',\\n\"\n ' URL,\\n'\n \" {'x-apikey': '{API_KEY}'},\\n\"\n ' QUERY,\\n'\n \" '_FSC_SYS/STRANGELOVE'\\n\"\n ') as response\\n'}]\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}}, "analysis.livequery_models.test_crud_udfs_in_schema": {"database": "EXTERNAL", "schema": "test_crud_udfs_in_schema", "name": "test_crud_udfs_in_schema", "resource_type": "analysis", "package_name": "livequery_models", "path": "analysis/test_crud_udfs_in_schema.sql", "original_file_path": "analysis/test_crud_udfs_in_schema.sql", "unique_id": "analysis.livequery_models.test_crud_udfs_in_schema", "fqn": ["livequery_models", "analysis", "test_crud_udfs_in_schema"], "alias": "", "checksum": {"name": "sha256", "checksum": "f676dabac544030f70f1652a8d6908844809f667be9bd1c8719037b3070efab0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113500.5014985, "relation_name": null, "raw_code": "{{crud_udfs_by_chain(config_evm_high_level_abstractions, 'ethereum', 'mainnet', false)}}\n{{- crud_udfs_by_chain(config_evm_rpc_primitives, \"ethereum\", None, False) -}}\n{{- crud_udfs_by_chain(config_evm_rpc_primitives, \"ethereum\", None, true) -}}", "language": "sql", "refs": [{"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__contracts_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "_evm__native_symbol_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}, {"name": "_evm__abi_map", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.crud_udfs_by_chain"], "nodes": ["model.livequery_models._evm__native_symbol_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__abi_map"]}, "compiled_path": "target/compiled/livequery_models/analysis/test_crud_udfs_in_schema.sql", "compiled": true, "compiled_code": "\n\n \n CREATE SCHEMA IF NOT EXISTS ethereum_mainnet;\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_latest_native_balance(\n wallet STRING\n )\n COPY GRANTS\n RETURNS TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, symbol STRING, raw_balance STRING, balance FLOAT)\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the native asset balance at the latest block for a given address.$$\n\n AS\n $$\n \nwith base as (select lower(wallet) AS wallet_address)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n 'ethereum' AS blockchain,\n 'mainnet' AS network,\n wallet_address,\n symbol,\n utils.udf_hex_to_int(ethereum_mainnet.udf_rpc_eth_get_balance(wallet_address,'latest')::string) AS raw_balance,\n (raw_balance / POW(10,18))::float AS balance\nFROM base\nLEFT JOIN EXTERNAL._evm.native_symbol_map\non 'ethereum' = blockchain\nand 'mainnet' = network\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_latest_native_balance(\n wallets ARRAY\n )\n COPY GRANTS\n RETURNS TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, symbol STRING, raw_balance STRING, balance FLOAT)\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the native asset balances at the latest block for given addresses.$$\n\n AS\n $$\n \nWITH address_inputs AS (\n SELECT wallets AS wallet_array\n),\nflat_addresses AS (\n SELECT lower(value::string) AS wallet_address\n FROM address_inputs a,\n LATERAL FLATTEN(input => a.wallet_array)\n),\nnode_call AS (\n SELECT wallet_address,\n ethereum_mainnet.udf_rpc_eth_get_balance(wallet_address,'latest')::string AS hex_balance\n FROM flat_addresses\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n 'ethereum' AS blockchain,\n 'mainnet' AS network,\n wallet_address,\n symbol,\n utils.udf_hex_to_int(hex_balance) AS raw_balance,\n (raw_balance / POW(10,18))::FLOAT AS balance\nFROM node_call\nLEFT JOIN EXTERNAL._evm.native_symbol_map\non 'ethereum' = blockchain\nand 'mainnet' = network\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_latest_token_balance(\n wallet STRING,\n token STRING\n )\n COPY GRANTS\n RETURNS TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, token_address STRING, symbol STRING, raw_balance STRING, balance FLOAT)\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the token balance at the latest block for a given address and token address. Supports ERC20 and ERC721 tokens.$$\n\n AS\n $$\n \nWITH inputs AS (\n SELECT\n lower(token) AS token_address,\n lower(wallet) AS wallet_address,\n '0x70a08231' AS function_sig,\n CONCAT(\n function_sig,\n LPAD(REPLACE(wallet_address, '0x', ''), 64, 0)\n ) AS DATA\n),\nnode_call AS (\n SELECT\n wallet_address,\n token_address,\n symbol,\n ethereum_mainnet.udf_rpc_eth_call(object_construct_keep_null('from', null, 'to', token_address, 'data', data),'latest')::string AS eth_call,\n utils.udf_hex_to_int(eth_call::string) AS raw_balance,\n raw_balance::INT / POW(10, ifnull(decimals,0)) AS balance\n FROM\n inputs\n LEFT JOIN EXTERNAL._evm.contracts_map\n ON token_address = address\n and blockchain = 'ethereum'\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and REGEXP_LIKE(token_address, '^0x([a-fA-F0-9]{40})$')\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n 'ethereum' AS blockchain,\n 'mainnet' AS network,\n wallet_address,\n token_address,\n symbol,\n raw_balance,\n balance\nFROM node_call\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_latest_token_balance(\n wallet STRING,\n tokens ARRAY\n )\n COPY GRANTS\n RETURNS TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, token_address STRING, symbol STRING, raw_balance STRING, balance FLOAT)\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the token balances at the latest block for a given address and multiple token addresses. Supports ERC20 and ERC721 tokens.$$\n\n AS\n $$\n \nWITH inputs AS (\n SELECT tokens, wallet\n),\nflat_rows AS (\n SELECT\n lower(value::string) AS token_address,\n lower(wallet::string) AS wallet_address,\n '0x70a08231' AS function_sig,\n CONCAT(\n function_sig,\n LPAD(REPLACE(wallet_address, '0x', ''), 64, 0)\n ) AS DATA\n FROM inputs,\n LATERAL FLATTEN(input => tokens)\n),\nfinal AS (\n SELECT\n wallet_address,\n token_address,\n symbol,\n ethereum_mainnet.udf_rpc_eth_call(object_construct_keep_null('from', null, 'to', token_address, 'data', data),'latest')::string AS eth_call,\n utils.udf_hex_to_int(eth_call::string) AS raw_balance,\n raw_balance::INT / POW(10, ifnull(decimals,0)) AS balance\n FROM\n flat_rows\n LEFT JOIN EXTERNAL._evm.contracts_map\n ON token_address = address\n and blockchain = 'ethereum'\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and REGEXP_LIKE(token_address, '^0x([a-fA-F0-9]{40})$')\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n 'ethereum' AS blockchain,\n 'mainnet' AS network,\n wallet_address,\n token_address,\n symbol,\n raw_balance,\n balance\nFROM final\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_latest_token_balance(\n wallets ARRAY,\n token STRING\n )\n COPY GRANTS\n RETURNS TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, token_address STRING, symbol STRING, raw_balance STRING, balance FLOAT)\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the token balances at the latest block for multiple addresses and a single token address. Supports ERC20 and ERC721 tokens.$$\n\n AS\n $$\n \nWITH inputs AS (\n SELECT token, wallets\n),\nflat_rows AS (\n SELECT\n lower(value::string) AS wallet_address,\n lower(token::string) AS token_address,\n '0x70a08231' AS function_sig,\n CONCAT(\n function_sig,\n LPAD(REPLACE(wallet_address, '0x', ''), 64, 0)\n ) AS DATA\n FROM inputs,\n LATERAL FLATTEN(input => wallets)\n),\nfinal AS (\n SELECT\n wallet_address,\n token_address,\n symbol,\n ethereum_mainnet.udf_rpc_eth_call(object_construct_keep_null('from', null, 'to', token_address, 'data', data),'latest')::string AS eth_call,\n utils.udf_hex_to_int(eth_call::string) AS raw_balance,\n raw_balance::INT / POW(10, ifnull(decimals,0)) AS balance\n FROM\n flat_rows\n LEFT JOIN EXTERNAL._evm.contracts_map\n ON token_address = address\n and blockchain = 'ethereum'\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and REGEXP_LIKE(token_address, '^0x([a-fA-F0-9]{40})$')\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n 'ethereum' AS blockchain,\n 'mainnet' AS network,\n wallet_address,\n token_address,\n symbol,\n raw_balance,\n balance\nFROM final\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_latest_token_balance(\n wallets ARRAY,\n tokens ARRAY\n )\n COPY GRANTS\n RETURNS TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, token_address STRING, symbol STRING, raw_balance STRING, balance FLOAT)\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the token balances at the latest block for multiple addresses and multiple token addresses. Supports ERC20 and ERC721 tokens.$$\n\n AS\n $$\n \nWITH inputs AS (\n SELECT tokens, wallets\n),\nflat_rows AS (\n SELECT\n lower(tokens.VALUE::STRING) AS token_address,\n lower(wallets.VALUE::STRING) AS wallet_address,\n '0x70a08231' AS function_sig,\n CONCAT(\n function_sig,\n LPAD(REPLACE(wallet_address, '0x', ''), 64, 0)\n ) AS DATA\n FROM\n inputs,\n LATERAL FLATTEN(input => tokens) tokens,\n LATERAL FLATTEN(input => wallets) wallets\n),\nfinal AS (\n SELECT\n wallet_address,\n token_address,\n symbol,\n ethereum_mainnet.udf_rpc_eth_call(object_construct_keep_null('from', null, 'to', token_address, 'data', data),'latest')::string AS eth_call,\n utils.udf_hex_to_int(eth_call::string) AS raw_balance,\n raw_balance::INT / POW(10, ifnull(decimals,0)) AS balance\n FROM\n flat_rows\n LEFT JOIN EXTERNAL._evm.contracts_map\n ON token_address = address\n and blockchain = 'ethereum'\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and REGEXP_LIKE(token_address, '^0x([a-fA-F0-9]{40})$')\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n 'ethereum' AS blockchain,\n 'mainnet' AS network,\n wallet_address,\n token_address,\n symbol,\n raw_balance,\n balance\nFROM final\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_historical_token_balance(\n wallet STRING,\n token STRING,\n block_number INTEGER\n )\n COPY GRANTS\n RETURNS TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, token_address STRING, symbol STRING, block_number INTEGER, raw_balance STRING, balance FLOAT)\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the token balance for a given address and token address at a specific block. Supports ERC20 and ERC721 tokens.$$\n\n AS\n $$\n \nWITH inputs AS (\n SELECT\n LOWER(token) AS token_address,\n LOWER(wallet) AS wallet_address,\n '0x70a08231' AS function_sig,\n CONCAT(\n function_sig,\n LPAD(REPLACE(wallet_address, '0x', ''), 64, 0)\n ) AS data,\n block_number\n), final AS (\n SELECT\n wallet_address,\n token_address,\n symbol,\n block_number,\n ethereum_mainnet.udf_rpc_eth_call(OBJECT_CONSTRUCT_KEEP_NULL('from', NULL, 'to', token_address, 'data', data), CONCAT('0x', TRIM(TO_CHAR(block_number, 'XXXXXXXXXX'))))::STRING AS eth_call,\n utils.udf_hex_to_int(eth_call::STRING) AS raw_balance,\n raw_balance::INT / POW(10, ifnull(decimals,0)) AS balance\n FROM\n inputs\n LEFT JOIN EXTERNAL._evm.contracts_map\n ON token_address = address\n AND blockchain = 'ethereum'\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and REGEXP_LIKE(token_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(block_number)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n 'ethereum' AS blockchain,\n 'mainnet' AS network,\n wallet_address,\n token_address,\n symbol,\n block_number,\n raw_balance,\n balance\nFROM final\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_historical_token_balance(\n wallet STRING,\n token STRING,\n block_numbers ARRAY\n )\n COPY GRANTS\n RETURNS TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, token_address STRING, symbol STRING, block_number INTEGER, raw_balance STRING, balance FLOAT)\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the token balances for a given address and token address at multiple specific blocks. Supports ERC20 and ERC721 tokens.$$\n\n AS\n $$\n \nWITH block_inputs AS (\n SELECT block_numbers\n),\nblocks AS (\n SELECT value::INTEGER AS block_number\n FROM block_inputs,\n LATERAL FLATTEN(input => block_numbers)\n),\ninputs AS (\n SELECT\n LOWER(token) AS token_address,\n LOWER(wallet) AS wallet_address,\n '0x70a08231' AS function_sig,\n CONCAT(\n function_sig,\n LPAD(REPLACE(wallet_address, '0x', ''), 64, 0)\n ) AS data\n),\nfinal AS (\n SELECT\n wallet_address,\n token_address,\n symbol,\n blocks.block_number,\n ethereum_mainnet.udf_rpc_eth_call(OBJECT_CONSTRUCT_KEEP_NULL('from', NULL, 'to', token_address, 'data', data), CONCAT('0x', TRIM(TO_CHAR(blocks.block_number, 'XXXXXXXXXX'))))::STRING AS eth_call,\n utils.udf_hex_to_int(eth_call::STRING) AS raw_balance,\n raw_balance::INT / POW(10, ifnull(decimals,0)) AS balance\n FROM\n inputs\n CROSS JOIN blocks\n LEFT JOIN EXTERNAL._evm.contracts_map\n ON token_address = address\n AND blockchain = 'ethereum'\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and REGEXP_LIKE(token_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(block_number)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n 'ethereum' AS blockchain,\n 'mainnet' AS network,\n wallet_address,\n token_address,\n symbol,\n block_number,\n raw_balance,\n balance\nFROM final\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_historical_token_balance(\n wallets ARRAY,\n token STRING,\n block_number INTEGER\n )\n COPY GRANTS\n RETURNS TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, token_address STRING, symbol STRING, block_number INTEGER, raw_balance STRING, balance FLOAT)\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the token balances for multiple addresses and a given token addresses at a specific block. Supports ERC20 and ERC721 tokens.$$\n\n AS\n $$\n \nWITH wallet_inputs AS (\n SELECT wallets\n),\nwallets AS (\n SELECT lower(value::STRING) AS wallet\n FROM wallet_inputs,\n LATERAL FLATTEN(input => wallets)\n),\ninputs AS (\n SELECT\n LOWER(token) AS token_address,\n wallet,\n '0x70a08231' AS function_sig,\n CONCAT(\n function_sig,\n LPAD(REPLACE(wallet, '0x', ''), 64, 0)\n ) AS data\n FROM wallets\n),\nfinal AS (\n SELECT\n wallet AS wallet_address,\n token_address,\n symbol,\n block_number,\n ethereum_mainnet.udf_rpc_eth_call(OBJECT_CONSTRUCT_KEEP_NULL('from', NULL, 'to', token_address, 'data', data), CONCAT('0x', TRIM(TO_CHAR(block_number, 'XXXXXXXXXX'))))::STRING AS eth_call,\n utils.udf_hex_to_int(eth_call::STRING) AS raw_balance,\n raw_balance::INT / POW(10, ifnull(decimals,0)) AS balance\n FROM\n inputs\n LEFT JOIN EXTERNAL._evm.contracts_map\n ON token_address = address\n AND blockchain = 'ethereum'\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and REGEXP_LIKE(token_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(block_number)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n 'ethereum' AS blockchain,\n 'mainnet' AS network,\n wallet_address,\n token_address,\n symbol,\n block_number,\n raw_balance,\n balance\nFROM final\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_historical_token_balance(\n wallet STRING,\n tokens ARRAY,\n block_number INTEGER\n )\n COPY GRANTS\n RETURNS TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, token_address STRING, symbol STRING, block_number INTEGER, raw_balance STRING, balance FLOAT)\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the token balances for a given address and multiple token addresses at a specific block. Supports ERC20 and ERC721 tokens.$$\n\n AS\n $$\n \nWITH token_inputs AS (\n SELECT tokens\n),\ntokens AS (\n SELECT value::STRING AS token\n FROM token_inputs,\n LATERAL FLATTEN(input => tokens)\n),\ninputs AS (\n SELECT\n LOWER(token) AS token_address,\n LOWER(wallet) AS wallet_address,\n '0x70a08231' AS function_sig,\n CONCAT(\n function_sig,\n LPAD(REPLACE(wallet_address, '0x', ''), 64, '0')\n ) AS data\n FROM\n tokens\n),\nfinal AS (\n SELECT\n wallet_address,\n token_address,\n symbol,\n block_number,\n ethereum_mainnet.udf_rpc_eth_call(OBJECT_CONSTRUCT_KEEP_NULL('from', NULL, 'to', token_address, 'data', data), CONCAT('0x', TRIM(TO_CHAR(block_number, 'XXXXXXXXXX'))))::STRING AS eth_call,\n utils.udf_hex_to_int(eth_call::STRING) AS raw_balance,\n raw_balance::INT / POW(10, ifnull(decimals,0)) AS balance\n FROM\n inputs\n LEFT JOIN EXTERNAL._evm.contracts_map\n ON token_address = address\n AND blockchain = 'ethereum'\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and REGEXP_LIKE(token_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(block_number)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n 'ethereum' AS blockchain,\n 'mainnet' AS network,\n wallet_address,\n token_address,\n symbol,\n block_number,\n raw_balance,\n balance\nFROM final\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_historical_token_balance(\n wallet STRING,\n tokens ARRAY,\n block_numbers ARRAY\n )\n COPY GRANTS\n RETURNS TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, token_address STRING, symbol STRING, block_number INTEGER, raw_balance STRING, balance FLOAT)\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the token balances for a given address and multiple token addresses at multiple specific blocks. Supports ERC20 and ERC721 tokens.$$\n\n AS\n $$\n \nWITH block_inputs AS (\n SELECT block_numbers\n),\nblocks AS (\n SELECT value::INTEGER AS block_number\n FROM block_inputs,\n LATERAL FLATTEN(input => block_numbers)\n),\ntoken_inputs AS (\n SELECT tokens\n),\ntokens AS (\n SELECT value::STRING AS token\n FROM token_inputs,\n LATERAL FLATTEN(input => tokens)\n),\ninputs AS (\n SELECT\n LOWER(token) AS token_address,\n LOWER(wallet) AS wallet_address,\n '0x70a08231' AS function_sig,\n CONCAT(\n function_sig,\n LPAD(REPLACE(wallet_address, '0x', ''), 64, '0')\n ) AS data\n FROM\n tokens\n),\nfinal AS (\n SELECT\n wallet_address,\n token_address,\n symbol,\n blocks.block_number,\n ethereum_mainnet.udf_rpc_eth_call(OBJECT_CONSTRUCT_KEEP_NULL('from', NULL, 'to', token_address, 'data', data), CONCAT('0x', TRIM(TO_CHAR(blocks.block_number, 'XXXXXXXXXX'))))::STRING AS eth_call,\n utils.udf_hex_to_int(eth_call::STRING) AS raw_balance,\n raw_balance::INT / POW(10, ifnull(decimals,0)) AS balance\n FROM\n inputs\n CROSS JOIN blocks\n LEFT JOIN EXTERNAL._evm.contracts_map\n ON token_address = address\n AND blockchain = 'ethereum'\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and REGEXP_LIKE(token_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(block_number)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n 'ethereum' AS blockchain,\n 'mainnet' AS network,\n wallet_address,\n token_address,\n symbol,\n block_number,\n raw_balance,\n balance\nFROM final\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_historical_token_balance(\n wallets ARRAY,\n tokens ARRAY,\n block_number INTEGER\n )\n COPY GRANTS\n RETURNS TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, token_address STRING, symbol STRING, block_number INTEGER, raw_balance STRING, balance FLOAT)\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the token balances for multiple addresses and multiple token addresses at a specific block. Supports ERC20 and ERC721 tokens.$$\n\n AS\n $$\n \nWITH token_inputs AS (\n SELECT tokens\n),\ntokens AS (\n SELECT value::STRING AS token\n FROM token_inputs,\n LATERAL FLATTEN(input => tokens)\n),\nwallet_inputs AS (\n SELECT wallets\n),\nwallets AS (\n SELECT lower(value::STRING) AS wallet\n FROM wallet_inputs,\n LATERAL FLATTEN(input => wallets)\n),\ninputs AS (\n SELECT\n LOWER(token) AS token_address,\n wallet AS wallet_address,\n '0x70a08231' AS function_sig,\n CONCAT(\n function_sig,\n LPAD(REPLACE(wallet_address, '0x', ''), 64, '0')\n ) AS data\n FROM\n tokens,\n wallets\n),\nfinal AS (\n SELECT\n wallet_address,\n token_address,\n symbol,\n block_number,\n ethereum_mainnet.udf_rpc_eth_call(OBJECT_CONSTRUCT_KEEP_NULL('from', NULL, 'to', token_address, 'data', data), CONCAT('0x', TRIM(TO_CHAR(block_number, 'XXXXXXXXXX'))))::STRING AS eth_call,\n utils.udf_hex_to_int(eth_call::STRING) AS raw_balance,\n raw_balance::INT / POW(10, ifnull(decimals,0)) AS balance\n FROM\n inputs\n LEFT JOIN EXTERNAL._evm.contracts_map\n ON token_address = address\n AND blockchain = 'ethereum'\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and REGEXP_LIKE(token_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(block_number)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n 'ethereum' AS blockchain,\n 'mainnet' AS network,\n wallet_address,\n token_address,\n symbol,\n block_number,\n raw_balance,\n balance\nFROM final\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_historical_token_balance(\n wallets ARRAY,\n tokens ARRAY,\n block_numbers ARRAY\n )\n COPY GRANTS\n RETURNS TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, token_address STRING, symbol STRING, block_number INTEGER, raw_balance STRING, balance FLOAT)\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the token balances for multiple addresses and multiple token addresses at multiple specific blocks. Supports ERC20 and ERC721 tokens.$$\n\n AS\n $$\n \nWITH block_inputs AS (\n SELECT block_numbers\n),\nblocks AS (\n SELECT value::INTEGER AS block_number\n FROM block_inputs,\n LATERAL FLATTEN(input => block_numbers)\n),\nwallet_inputs AS (\n SELECT wallets\n),\nwallets AS (\n SELECT lower(value::STRING) AS wallet\n FROM wallet_inputs,\n LATERAL FLATTEN(input => wallets)\n),\ntoken_inputs AS (\n SELECT tokens\n),\ntokens AS (\n SELECT value::STRING AS token\n FROM token_inputs,\n LATERAL FLATTEN(input => tokens)\n),\ninputs AS (\n SELECT\n LOWER(token) AS token_address,\n wallet AS wallet_address,\n '0x70a08231' AS function_sig,\n CONCAT(\n function_sig,\n LPAD(REPLACE(wallet_address, '0x', ''), 64, '0')\n ) AS data\n FROM\n wallets,\n tokens\n),\nfinal AS (\n SELECT\n wallet_address,\n token_address,\n symbol,\n blocks.block_number,\n ethereum_mainnet.udf_rpc_eth_call(OBJECT_CONSTRUCT_KEEP_NULL('from', NULL, 'to', token_address, 'data', data), CONCAT('0x', TRIM(TO_CHAR(blocks.block_number, 'XXXXXXXXXX'))))::STRING AS eth_call,\n utils.udf_hex_to_int(eth_call::STRING) AS raw_balance,\n raw_balance::INT / POW(10, ifnull(decimals,0)) AS balance\n FROM\n inputs\n CROSS JOIN blocks\n LEFT JOIN EXTERNAL._evm.contracts_map\n ON token_address = address\n AND blockchain = 'ethereum'\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and REGEXP_LIKE(token_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(block_number)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n 'ethereum' AS blockchain,\n 'mainnet' AS network,\n wallet_address,\n token_address,\n symbol,\n block_number,\n raw_balance,\n balance\nFROM final\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_historical_native_balance(\n wallet STRING,\n block_number INTEGER\n )\n COPY GRANTS\n RETURNS TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, symbol STRING, block_number INTEGER, raw_balance STRING, balance FLOAT)\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the native asset balance for a given address at a specific block.$$\n\n AS\n $$\n \nwith base as (select lower(wallet) AS wallet_address, CONCAT('0x', TRIM(TO_CHAR(block_number, 'XXXXXXXXXX'))) as hex_block)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(block_number)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n 'ethereum' AS blockchain,\n 'mainnet' AS network,\n wallet_address,\n symbol,\n block_number,\n utils.udf_hex_to_int(ethereum_mainnet.udf_rpc_eth_get_balance(wallet_address,hex_block)::string) AS raw_balance,\n (raw_balance / POW(10,18))::float AS balance\nFROM base\nLEFT JOIN EXTERNAL._evm.native_symbol_map\non 'ethereum' = blockchain\nand 'mainnet' = network\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_historical_native_balance(\n wallet STRING,\n block_numbers ARRAY\n )\n COPY GRANTS\n RETURNS TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, symbol STRING, block_number INTEGER, raw_balance STRING, balance FLOAT)\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the native asset balances for a given address at multiple specific blocks.$$\n\n AS\n $$\n \nWITH block_inputs AS (\n SELECT block_numbers\n),\nblocks AS (\n SELECT value::INTEGER AS block_number\n FROM block_inputs,\n LATERAL FLATTEN(input => block_numbers)\n),\ninputs AS (\n SELECT\n wallet AS wallet_address,\n block_number,\n utils.udf_hex_to_int(ethereum_mainnet.udf_rpc_eth_get_balance(wallet, CONCAT('0x', TRIM(TO_CHAR(block_number, 'XXXXXXXXXX')))))::STRING AS raw_balance\n FROM blocks\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(block_number)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n 'ethereum' AS blockchain,\n 'mainnet' AS network,\n wallet_address,\n symbol,\n block_number,\n raw_balance,\n (raw_balance::int / pow(10,18)) ::float as balance\nFROM inputs\nLEFT JOIN EXTERNAL._evm.native_symbol_map\non 'ethereum' = blockchain\nand 'mainnet' = network\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_historical_native_balance(\n wallets ARRAY,\n block_number INTEGER\n )\n COPY GRANTS\n RETURNS TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, symbol STRING, block_number INTEGER, raw_balance STRING, balance FLOAT)\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the native asset balances for multiple addresses at a specific block.$$\n\n AS\n $$\n \nWITH wallet_inputs AS (\n SELECT wallets\n),\nflat_wallets AS (\n SELECT lower(value::string) AS wallet\n FROM wallet_inputs,\n LATERAL FLATTEN(input => wallets)\n),\ninputs AS (\n SELECT\n wallet AS wallet_address,\n block_number,\n utils.udf_hex_to_int(ethereum_mainnet.udf_rpc_eth_get_balance(wallet, CONCAT('0x', TRIM(TO_CHAR(block_number, 'XXXXXXXXXX')))))::STRING AS raw_balance\n FROM flat_wallets\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(block_number)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n 'ethereum' AS blockchain,\n 'mainnet' AS network,\n wallet_address,\n symbol,\n block_number,\n raw_balance,\n (raw_balance::int / pow(10,18)) ::float as balance\nFROM inputs\nLEFT JOIN EXTERNAL._evm.native_symbol_map\non 'ethereum' = blockchain\nand 'mainnet' = network\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_historical_native_balance(\n wallets ARRAY,\n block_numbers ARRAY\n )\n COPY GRANTS\n RETURNS TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, symbol STRING, block_number INTEGER, raw_balance STRING, balance FLOAT)\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the native asset balances for multiple addresses at multiple specific blocks.$$\n\n AS\n $$\n \nWITH inputs AS (\n SELECT wallets, block_numbers\n),\nflat_wallets AS (\n SELECT lower(wallet.value::STRING) AS wallet, block.value::INTEGER AS block_number\n FROM inputs,\n LATERAL FLATTEN(input => wallets) wallet,\n LATERAL FLATTEN(input => block_numbers) block\n),\nfinal AS (\n SELECT\n wallet AS wallet_address,\n block_number,\n utils.udf_hex_to_int(ethereum_mainnet.udf_rpc_eth_get_balance(wallet, CONCAT('0x', TRIM(TO_CHAR(block_number, 'XXXXXXXXXX')))))::STRING AS raw_balance\n FROM flat_wallets\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(block_number)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n 'ethereum' AS blockchain,\n 'mainnet' AS network,\n wallet_address,\n symbol,\n block_number,\n raw_balance,\n (raw_balance::int / pow(10,18))::float as balance\nFROM final\nLEFT JOIN EXTERNAL._evm.native_symbol_map\non 'ethereum' = blockchain\nand 'mainnet' = network\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_latest_contract_events(\n address STRING\n )\n COPY GRANTS\n RETURNS TABLE(status STRING, blockchain STRING, network STRING, tx_hash STRING, block_number INTEGER, event_index INTEGER, contract_address STRING, event_topics ARRAY, event_data STRING)\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the latest events emitted by a contract in the last 100 blocks.$$\n\n AS\n $$\n \nWITH chainhead AS (\n SELECT\n ethereum_mainnet.udf_rpc('eth_blockNumber', [])::STRING AS chainhead_hex,\n CONCAT('0x', TRIM(TO_CHAR(utils.udf_hex_to_int(chainhead_hex) - 100, 'XXXXXXXXXX'))) AS from_block_hex\n),\nnode_call AS (\n SELECT\n lower(address) AS contract_address,\n ethereum_mainnet.udf_rpc_eth_get_logs(\n OBJECT_CONSTRUCT('address', address, 'fromBlock', from_block_hex, 'toBlock', chainhead_hex)\n ) AS eth_getLogs\n FROM chainhead\n),\nnode_flat AS (\n SELECT\n contract_address,\n utils.udf_hex_to_int(value:blockNumber::STRING)::INT AS block_number,\n value:transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(value:transactionIndex::STRING)::INT AS tx_index,\n utils.udf_hex_to_int(value:logIndex::STRING)::INT AS event_index,\n value:removed::BOOLEAN AS event_removed,\n value:data::STRING AS event_data,\n value:topics::ARRAY AS event_topics\n FROM node_call,\n LATERAL FLATTEN(input => eth_getLogs)\n)\nSELECT\n case\n when REGEXP_LIKE(contract_address, '^0x([a-fA-F0-9]{40})$')\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n 'ethereum' AS blockchain,\n 'mainnet' AS network,\n tx_hash,\n block_number,\n event_index,\n contract_address,\n event_topics,\n event_data\nFROM node_flat\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_latest_contract_events(\n address STRING,\n lookback INTEGER\n )\n COPY GRANTS\n RETURNS TABLE(status STRING, blockchain STRING, network STRING, tx_hash STRING, block_number INTEGER, event_index INTEGER, contract_address STRING, event_topics ARRAY, event_data STRING)\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the latest events emitted by a contract within the last `lookback` blocks. *Please note there are RPC limitations on this method.*$$\n\n AS\n $$\n \nWITH chainhead AS (\n SELECT\n ethereum_mainnet.udf_rpc('eth_blockNumber', [])::STRING AS chainhead_hex,\n CONCAT('0x', TRIM(TO_CHAR(utils.udf_hex_to_int(chainhead_hex) - lookback, 'XXXXXXXXXX'))) AS from_block_hex\n),\nnode_call AS (\n SELECT\n lower(address) AS contract_address,\n ethereum_mainnet.udf_rpc_eth_get_logs(\n OBJECT_CONSTRUCT('address', address, 'fromBlock', from_block_hex, 'toBlock', chainhead_hex)\n ) AS eth_getLogs\n FROM chainhead\n),\nnode_flat AS (\n SELECT\n contract_address,\n utils.udf_hex_to_int(value:blockNumber::STRING)::INT AS block_number,\n value:transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(value:transactionIndex::STRING)::INT AS tx_index,\n utils.udf_hex_to_int(value:logIndex::STRING)::INT AS event_index,\n value:removed::BOOLEAN AS event_removed,\n value:data::STRING AS event_data,\n value:topics::ARRAY AS event_topics\n FROM node_call,\n LATERAL FLATTEN(input => eth_getLogs)\n)\nSELECT\n case\n when REGEXP_LIKE(contract_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(lookback)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n 'ethereum' AS blockchain,\n 'mainnet' AS network,\n tx_hash,\n block_number,\n event_index,\n contract_address,\n event_topics,\n event_data\nFROM node_flat\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_latest_contract_events(\n addresses ARRAY\n )\n COPY GRANTS\n RETURNS TABLE(status STRING, blockchain STRING, network STRING, tx_hash STRING, block_number INTEGER, event_index INTEGER, contract_address STRING, event_topics ARRAY, event_data STRING)\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the latest events emitted by multiple contracts in the last 100 blocks.$$\n\n AS\n $$\n \nWITH chainhead AS (\n SELECT\n ethereum_mainnet.udf_rpc('eth_blockNumber', [])::STRING AS chainhead_hex,\n CONCAT('0x', TRIM(TO_CHAR(utils.udf_hex_to_int(chainhead_hex) - 100, 'XXXXXXXXXX'))) AS from_block_hex\n),\nnode_call AS (\n SELECT\n lower(address) AS contract_address,\n ethereum_mainnet.udf_rpc_eth_get_logs(\n OBJECT_CONSTRUCT('address', address, 'fromBlock', from_block_hex, 'toBlock', chainhead_hex)\n ) AS eth_getLogs\n FROM (\n SELECT value::STRING AS address\n FROM LATERAL FLATTEN(input => addresses)\n ) inputs, chainhead\n),\nnode_flat AS (\n SELECT\n contract_address,\n utils.udf_hex_to_int(value:blockNumber::STRING)::INT AS block_number,\n value:transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(value:transactionIndex::STRING)::INT AS tx_index,\n utils.udf_hex_to_int(value:logIndex::STRING)::INT AS event_index,\n value:removed::BOOLEAN AS event_removed,\n value:data::STRING AS event_data,\n value:topics::ARRAY AS event_topics\n FROM node_call,\n LATERAL FLATTEN(input => eth_getLogs)\n)\nSELECT\n case\n when REGEXP_LIKE(contract_address, '^0x([a-fA-F0-9]{40})$')\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n 'ethereum' AS blockchain,\n 'mainnet' AS network,\n tx_hash,\n block_number,\n event_index,\n contract_address,\n event_topics,\n event_data\nFROM node_flat\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_latest_contract_events(\n addresses ARRAY,\n lookback INTEGER\n )\n COPY GRANTS\n RETURNS TABLE(status STRING, blockchain STRING, network STRING, tx_hash STRING, block_number INTEGER, event_index INTEGER, contract_address STRING, event_topics ARRAY, event_data STRING)\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the latest events emitted by multiple contracts within the last `lookback` blocks. *Please note there are RPC limitations on this method.*$$\n\n AS\n $$\n \nWITH chainhead AS (\n SELECT\n ethereum_mainnet.udf_rpc('eth_blockNumber', [])::STRING AS chainhead_hex,\n CONCAT('0x', TRIM(TO_CHAR(utils.udf_hex_to_int(chainhead_hex) - lookback, 'XXXXXXXXXX'))) AS from_block_hex\n),\nnode_call AS (\n SELECT\n lower(address) AS contract_address,\n ethereum_mainnet.udf_rpc_eth_get_logs(\n OBJECT_CONSTRUCT('address', address, 'fromBlock', from_block_hex, 'toBlock', chainhead_hex)\n ) AS eth_getLogs\n FROM (\n SELECT value::STRING AS address\n FROM LATERAL FLATTEN(input => addresses)\n ) inputs, chainhead\n),\nnode_flat AS (\n SELECT\n contract_address,\n utils.udf_hex_to_int(value:blockNumber::STRING)::INT AS block_number,\n value:transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(value:transactionIndex::STRING)::INT AS tx_index,\n utils.udf_hex_to_int(value:logIndex::STRING)::INT AS event_index,\n value:removed::BOOLEAN AS event_removed,\n value:data::STRING AS event_data,\n value:topics::ARRAY AS event_topics\n FROM node_call,\n LATERAL FLATTEN(input => eth_getLogs)\n)\nSELECT\n case\n when REGEXP_LIKE(contract_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(lookback)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n 'ethereum' AS blockchain,\n 'mainnet' AS network,\n tx_hash,\n block_number,\n event_index,\n contract_address,\n event_topics,\n event_data\nFROM node_flat\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_latest_contract_events_decoded(\n address STRING\n )\n COPY GRANTS\n RETURNS TABLE(status STRING, blockchain STRING, network STRING, tx_hash STRING, block_number INTEGER, event_index INTEGER, event_name STRING, contract_address STRING, event_topics ARRAY, event_data STRING, decoded_data OBJECT)\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$RReturns the latest decoded events emitted by a contract in the last 100 blocks. Submit missing ABIs [here](https://science.flipsidecrypto.xyz/abi-requestor/).$$\n\n AS\n $$\n \nWITH inputs AS (\n SELECT lower(address::STRING) AS contract_address\n),\nchainhead AS (\n SELECT\n ethereum_mainnet.udf_rpc('eth_blockNumber', [])::STRING AS chainhead_hex,\n CONCAT('0x', TRIM(TO_CHAR(utils.udf_hex_to_int(chainhead_hex) - 100, 'XXXXXXXXXX'))) AS from_block_hex\n),\nabis AS (\n SELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi\n FROM inputs\n JOIN EXTERNAL._evm.abi_map\n ON lower(contract_address) = parent_contract_address\n AND blockchain = 'ethereum'\n QUALIFY ROW_NUMBER() OVER (PARTITION BY contract_address, event_name ORDER BY end_block DESC) = 1\n),\nnode_call AS (\n SELECT\n inputs.contract_address,\n ethereum_mainnet.udf_rpc_eth_get_logs(\n OBJECT_CONSTRUCT('address', inputs.contract_address, 'fromBlock', from_block_hex, 'toBlock', chainhead_hex)\n ) AS eth_getLogs\n FROM inputs\n JOIN chainhead ON 1=1\n),\nnode_flat AS (\n SELECT\n contract_address,\n utils.udf_hex_to_int(value:blockNumber::STRING)::INT AS block_number,\n value:transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(value:transactionIndex::STRING)::INT AS tx_index,\n utils.udf_hex_to_int(value:logIndex::STRING)::INT AS event_index,\n value:removed::BOOLEAN AS event_removed,\n value:data::STRING AS event_data,\n value:topics::ARRAY AS event_topics\n FROM node_call,\n LATERAL FLATTEN(input => eth_getLogs)\n),\ndecode_logs AS (\n SELECT\n contract_address,\n block_number,\n tx_hash,\n tx_index,\n event_index,\n event_removed,\n event_data,\n event_topics,\n utils.udf_evm_decode_log(\n abi,\n OBJECT_CONSTRUCT(\n 'topics',\n event_topics,\n 'data',\n event_data,\n 'address',\n contract_address\n )\n )[0] AS decoded_data,\n decoded_data:name::STRING AS event_name,\n utils.udf_evm_transform_log(decoded_data) AS transformed\n FROM node_flat\n JOIN abis\n ON contract_address = parent_contract_address\n AND event_topics[0]::STRING = event_signature\n),\nfinal AS (\n SELECT\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.event_topics,\n b.event_data,\n b.decoded_data,\n transformed,\n OBJECT_AGG(\n DISTINCT CASE\n WHEN v.value:name = '' THEN CONCAT('anonymous_', v.index)\n ELSE v.value:name\n END,\n v.value:value\n ) AS decoded_flat\n FROM decode_logs b,\n LATERAL FLATTEN(input => transformed:data) v\n GROUP BY\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.event_topics,\n b.event_data,\n b.decoded_data,\n transformed\n)\nSELECT\n case\n when REGEXP_LIKE(n.contract_address, '^0x([a-fA-F0-9]{40})$') then 'Success'\n when f.event_name is null then 'Error - Contract ABI Not Found, submit ABIs [here](https://science.flipsidecrypto.xyz/abi-requestor/)'\n else 'Error - Invalid Input'\n end as status,\n 'ethereum' AS blockchain,\n 'mainnet' AS network,\n n.tx_hash,\n n.block_number,\n n.event_index,\n f.event_name,\n n.contract_address,\n n.event_topics,\n n.event_data,\n f.decoded_flat AS decoded_data\nFROM node_flat n\nleft join final f\non n.block_number = f.block_number\nand n.tx_hash = f.tx_hash\nand n.event_index = f.event_index\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_latest_contract_events_decoded(\n addresses ARRAY\n )\n COPY GRANTS\n RETURNS TABLE(status STRING, blockchain STRING, network STRING, tx_hash STRING, block_number INTEGER, event_index INTEGER, event_name STRING, contract_address STRING, event_topics ARRAY, event_data STRING, decoded_data OBJECT)\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the latest decoded events emitted by multiple contracts in the last 100 blocks. Submit missing ABIs [here](https://science.flipsidecrypto.xyz/abi-requestor/).$$\n\n AS\n $$\n \nWITH base AS (SELECT addresses),\ninputs AS (\n SELECT lower(value::STRING) AS contract_address\n FROM base, LATERAL FLATTEN(input => addresses)\n),\nchainhead AS (\n SELECT\n ethereum_mainnet.udf_rpc('eth_blockNumber', [])::STRING AS chainhead_hex,\n CONCAT('0x', TRIM(TO_CHAR(utils.udf_hex_to_int(chainhead_hex) - 100, 'XXXXXXXXXX'))) AS from_block_hex\n),\nabis AS (\n SELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi\n FROM inputs\n JOIN EXTERNAL._evm.abi_map\n ON lower(contract_address) = parent_contract_address\n AND blockchain = 'ethereum'\n QUALIFY ROW_NUMBER() OVER (PARTITION BY contract_address, event_name ORDER BY end_block DESC) = 1\n),\nnode_call AS (\n SELECT\n inputs.contract_address,\n ethereum_mainnet.udf_rpc_eth_get_logs(\n OBJECT_CONSTRUCT('address', inputs.contract_address, 'fromBlock', from_block_hex, 'toBlock', chainhead_hex)\n ) AS eth_getLogs\n FROM inputs\n JOIN chainhead ON 1=1\n),\nnode_flat AS (\n SELECT\n contract_address,\n utils.udf_hex_to_int(value:blockNumber::STRING)::INT AS block_number,\n value:transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(value:transactionIndex::STRING)::INT AS tx_index,\n utils.udf_hex_to_int(value:logIndex::STRING)::INT AS event_index,\n value:removed::BOOLEAN AS event_removed,\n value:data::STRING AS event_data,\n value:topics::ARRAY AS event_topics\n FROM node_call,\n LATERAL FLATTEN(input => eth_getLogs)\n),\ndecode_logs AS (\n SELECT\n contract_address,\n block_number,\n tx_hash,\n tx_index,\n event_index,\n event_removed,\n event_data,\n event_topics,\n utils.udf_evm_decode_log(\n abi,\n OBJECT_CONSTRUCT(\n 'topics',\n event_topics,\n 'data',\n event_data,\n 'address',\n contract_address\n )\n )[0] AS decoded_data,\n decoded_data:name::STRING AS event_name,\n utils.udf_evm_transform_log(decoded_data) AS transformed\n FROM node_flat\n JOIN abis\n ON contract_address = parent_contract_address\n AND event_topics[0]::STRING = event_signature\n),\nfinal AS (\n SELECT\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.event_topics,\n b.event_data,\n b.decoded_data,\n transformed,\n OBJECT_AGG(\n DISTINCT CASE\n WHEN v.value:name = '' THEN CONCAT('anonymous_', v.index)\n ELSE v.value:name\n END,\n v.value:value\n ) AS decoded_flat\n FROM decode_logs b,\n LATERAL FLATTEN(input => transformed:data) v\n GROUP BY\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.event_topics,\n b.event_data,\n b.decoded_data,\n transformed\n)\nSELECT\n case\n when REGEXP_LIKE(n.contract_address, '^0x([a-fA-F0-9]{40})$') then 'Success'\n when f.event_name is null then 'Error - Contract ABI Not Found, submit ABIs [here](https://science.flipsidecrypto.xyz/abi-requestor/)'\n else 'Error - Invalid Input'\n end as status,\n 'ethereum' AS blockchain,\n 'mainnet' AS network,\n n.tx_hash,\n n.block_number,\n n.event_index,\n f.event_name,\n n.contract_address,\n n.event_topics,\n n.event_data,\n f.decoded_flat AS decoded_data\nFROM node_flat n\nleft join final f\non n.block_number = f.block_number\nand n.tx_hash = f.tx_hash\nand n.event_index = f.event_index\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_latest_contract_events_decoded(\n address STRING,\n lookback INTEGER\n )\n COPY GRANTS\n RETURNS TABLE(status STRING, blockchain STRING, network STRING, tx_hash STRING, block_number INTEGER, event_index INTEGER, event_name STRING, contract_address STRING, event_topics ARRAY, event_data STRING, decoded_data OBJECT)\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the latest decoded events emitted by a contract within the last `lookback` blocks. Submit missing ABIs [here](https://science.flipsidecrypto.xyz/abi-requestor/). *Please note there are RPC limitations on this method.*$$\n\n AS\n $$\n \nWITH inputs AS (\n SELECT lower(address::STRING) AS contract_address\n),\nchainhead AS (\n SELECT\n ethereum_mainnet.udf_rpc('eth_blockNumber', [])::STRING AS chainhead_hex,\n CONCAT('0x', TRIM(TO_CHAR(utils.udf_hex_to_int(chainhead_hex) - lookback, 'XXXXXXXXXX'))) AS from_block_hex,\n lookback\n),\nabis AS (\n SELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi\n FROM inputs\n JOIN EXTERNAL._evm.abi_map\n ON lower(contract_address) = parent_contract_address\n AND blockchain = 'ethereum'\n QUALIFY ROW_NUMBER() OVER (PARTITION BY contract_address, event_name ORDER BY end_block DESC) = 1\n),\nnode_call AS (\n SELECT\n inputs.contract_address,\n ethereum_mainnet.udf_rpc_eth_get_logs(\n OBJECT_CONSTRUCT('address', inputs.contract_address, 'fromBlock', from_block_hex, 'toBlock', chainhead_hex)\n ) AS eth_getLogs,\n lookback\n FROM inputs\n JOIN chainhead ON 1=1\n),\nnode_flat AS (\n SELECT\n contract_address,\n lookback,\n utils.udf_hex_to_int(value:blockNumber::STRING)::INT AS block_number,\n value:transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(value:transactionIndex::STRING)::INT AS tx_index,\n utils.udf_hex_to_int(value:logIndex::STRING)::INT AS event_index,\n value:removed::BOOLEAN AS event_removed,\n value:data::STRING AS event_data,\n value:topics::ARRAY AS event_topics\n FROM node_call,\n LATERAL FLATTEN(input => eth_getLogs)\n),\ndecode_logs AS (\n SELECT\n contract_address,\n block_number,\n tx_hash,\n tx_index,\n event_index,\n event_removed,\n event_data,\n event_topics,\n utils.udf_evm_decode_log(\n abi,\n OBJECT_CONSTRUCT(\n 'topics',\n event_topics,\n 'data',\n event_data,\n 'address',\n contract_address\n )\n )[0] AS decoded_data,\n decoded_data:name::STRING AS event_name,\n utils.udf_evm_transform_log(decoded_data) AS transformed\n FROM node_flat\n JOIN abis\n ON contract_address = parent_contract_address\n AND event_topics[0]::STRING = event_signature\n),\nfinal AS (\n SELECT\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.event_topics,\n b.event_data,\n b.decoded_data,\n transformed,\n OBJECT_AGG(\n DISTINCT CASE\n WHEN v.value:name = '' THEN CONCAT('anonymous_', v.index)\n ELSE v.value:name\n END,\n v.value:value\n ) AS decoded_flat\n FROM decode_logs b,\n LATERAL FLATTEN(input => transformed:data) v\n GROUP BY\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.event_topics,\n b.event_data,\n b.decoded_data,\n transformed\n)\nSELECT\n case\n when REGEXP_LIKE(n.contract_address, '^0x([a-fA-F0-9]{40})$') and is_integer(n.lookback) then 'Success'\n when f.event_name is null then 'Error - Contract ABI Not Found, submit ABIs [here](https://science.flipsidecrypto.xyz/abi-requestor/)'\n else 'Error - Invalid Input'\n end as status,\n 'ethereum' AS blockchain,\n 'mainnet' AS network,\n n.tx_hash,\n n.block_number,\n n.event_index,\n f.event_name,\n n.contract_address,\n n.event_topics,\n n.event_data,\n f.decoded_flat AS decoded_data\nFROM node_flat n\nleft join final f\non n.block_number = f.block_number\nand n.tx_hash = f.tx_hash\nand n.event_index = f.event_index\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_latest_contract_events_decoded(\n addresses ARRAY,\n lookback INTEGER\n )\n COPY GRANTS\n RETURNS TABLE(status STRING, blockchain STRING, network STRING, tx_hash STRING, block_number INTEGER, event_index INTEGER, event_name STRING, contract_address STRING, event_topics ARRAY, event_data STRING, decoded_data OBJECT)\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the latest decoded events emitted by multiple contracts within the last `lookback` blocks. Submit missing ABIs [here](https://science.flipsidecrypto.xyz/abi-requestor/). *Please note there are RPC limitations on this method.* $$\n\n AS\n $$\n \nWITH base AS (SELECT addresses),\ninputs AS (\n SELECT lower(value::STRING) AS contract_address\n FROM base, LATERAL FLATTEN(input => addresses)\n),\nchainhead AS (\n SELECT\n ethereum_mainnet.udf_rpc('eth_blockNumber', [])::STRING AS chainhead_hex,\n CONCAT('0x', TRIM(TO_CHAR(utils.udf_hex_to_int(chainhead_hex) - lookback, 'XXXXXXXXXX'))) AS from_block_hex,\n lookback\n),\nabis AS (\n SELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi\n FROM inputs\n JOIN EXTERNAL._evm.abi_map\n ON lower(contract_address) = parent_contract_address\n AND blockchain = 'ethereum'\n QUALIFY ROW_NUMBER() OVER (PARTITION BY contract_address, event_name ORDER BY end_block DESC) = 1\n),\nnode_call AS (\n SELECT\n inputs.contract_address,\n ethereum_mainnet.udf_rpc_eth_get_logs(\n OBJECT_CONSTRUCT('address', inputs.contract_address, 'fromBlock', from_block_hex, 'toBlock', chainhead_hex)\n ) AS eth_getLogs,\n lookback\n FROM inputs\n JOIN chainhead ON 1=1\n),\nnode_flat AS (\n SELECT\n contract_address,\n lookback,\n utils.udf_hex_to_int(value:blockNumber::STRING)::INT AS block_number,\n value:transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(value:transactionIndex::STRING)::INT AS tx_index,\n utils.udf_hex_to_int(value:logIndex::STRING)::INT AS event_index,\n value:removed::BOOLEAN AS event_removed,\n value:data::STRING AS event_data,\n value:topics::ARRAY AS event_topics\n FROM node_call,\n LATERAL FLATTEN(input => eth_getLogs)\n),\ndecode_logs AS (\n SELECT\n contract_address,\n block_number,\n tx_hash,\n tx_index,\n event_index,\n event_removed,\n event_data,\n event_topics,\n utils.udf_evm_decode_log(\n abi,\n OBJECT_CONSTRUCT(\n 'topics',\n event_topics,\n 'data',\n event_data,\n 'address',\n contract_address\n )\n )[0] AS decoded_data,\n decoded_data:name::STRING AS event_name,\n utils.udf_evm_transform_log(decoded_data) AS transformed\n FROM node_flat\n JOIN abis\n ON contract_address = parent_contract_address\n AND event_topics[0]::STRING = event_signature\n),\nfinal AS (\n SELECT\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.event_topics,\n b.event_data,\n b.decoded_data,\n transformed,\n OBJECT_AGG(\n DISTINCT CASE\n WHEN v.value:name = '' THEN CONCAT('anonymous_', v.index)\n ELSE v.value:name\n END,\n v.value:value\n ) AS decoded_flat\n FROM decode_logs b,\n LATERAL FLATTEN(input => transformed:data) v\n GROUP BY\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.event_topics,\n b.event_data,\n b.decoded_data,\n transformed\n)\nSELECT\n case\n when REGEXP_LIKE(n.contract_address, '^0x([a-fA-F0-9]{40})$') and is_integer(n.lookback) then 'Success'\n when f.event_name is null then 'Error - Contract ABI Not Found, submit ABIs [here](https://science.flipsidecrypto.xyz/abi-requestor/)'\n else 'Error - Invalid Input'\n end as status,\n 'ethereum' AS blockchain,\n 'mainnet' AS network,\n n.tx_hash,\n n.block_number,\n n.event_index,\n f.event_name,\n n.contract_address,\n n.event_topics,\n n.event_data,\n f.decoded_flat AS decoded_data\nFROM node_flat n\nleft join final f\non n.block_number = f.block_number\nand n.tx_hash = f.tx_hash\nand n.event_index = f.event_index\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_fact_blocks(\n block_height INTEGER,\n to_latest BOOLEAN\n )\n COPY GRANTS\n RETURNS TABLE(block_number INTEGER, block_timestamp TIMESTAMP_NTZ, network STRING, blockchain STRING, tx_count INTEGER, difficulty INTEGER, total_difficulty INTEGER, extra_data STRING, gas_limit INTEGER, gas_used INTEGER, hash STRING, parent_hash STRING, miner STRING, nonce INTEGER, receipts_root STRING, sha3_uncles STRING, size INTEGER, uncle_blocks VARIANT, block_header_json OBJECT, excess_blob_gas INTEGER, blob_gas_used INTEGER, fact_blocks_id STRING, inserted_timestamp TIMESTAMP_NTZ, modified_timestamp TIMESTAMP_NTZ, withdrawals VARIANT, withdrawals_root STRING)\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the block data for a given block height. If to_latest is true, it will continue fetching blocks until the latest block. Otherwise, it will fetch blocks until the block height is reached.$$\n\n AS\n $$\n \nWITH spine AS (\n \n WITH heights AS (\n \n SELECT\n ethereum_mainnet.udf_rpc('eth_blockNumber', []) as result,\n utils.udf_hex_to_int(result)::integer AS latest_block_height,\n COALESCE(\n block_height,\n latest_block_height\n ) AS min_height,\n iff(\n COALESCE(to_latest, false),\n latest_block_height,\n min_height\n ) AS max_height\n ),\n block_spine AS (\n SELECT\n ROW_NUMBER() OVER (\n ORDER BY\n NULL\n ) - 1 + COALESCE(block_height, latest_block_height)::integer AS block_number,\n min_height,\n IFF(\n COALESCE(to_latest, false),\n block_height,\n min_height\n ) AS max_height,\n latest_block_height\n FROM\n TABLE(generator(ROWCOUNT => 1000)),\n heights qualify block_number BETWEEN min_height\n AND max_height\n )\n\n SELECT\n CEIL(ROW_NUMBER() OVER (ORDER BY block_number) / 10) AS batch_id,\n block_number,\n latest_block_height\n FROM block_spine\n),\n raw_block_txs AS (\n \n WITH blocks_agg AS (\n SELECT\n batch_id,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'eth_getBlockByNumber',\n [utils.udf_int_to_hex(block_number), true]\n )\n ) AS params\n FROM\n spine\n GROUP BY batch_id\n ), result as (\n SELECT\n \n live.udf_api(\n '{endpoint}'\n ,params\n ,concat_ws('/', 'integration', _utils.udf_provider(), 'ethereum', 'mainnet')\n )::VARIANT:data::ARRAY AS data\n\n FROM blocks_agg\n )\n , flattened as (\n SELECT\n COALESCE(value:result, {'error':value:error}) AS result\n FROM result, LATERAL FLATTEN(input => result.data) v\n )\n\n SELECT\n utils.udf_hex_to_int(result:number::STRING)::INT AS block_number,\n result as data\n FROM flattened\n),\n silver_blocks AS (\n \n SELECT\n block_number,\n utils.udf_hex_to_int(DATA:timestamp::STRING)::TIMESTAMP AS block_timestamp,\n utils.udf_hex_to_int(DATA:baseFeePerGas::STRING)::INT AS base_fee_per_gas,\n utils.udf_hex_to_int(DATA:difficulty::STRING)::INT AS difficulty,\n DATA:extraData::STRING AS extra_data,\n utils.udf_hex_to_int(DATA:gasLimit::STRING)::INT AS gas_limit,\n utils.udf_hex_to_int(DATA:gasUsed::STRING)::INT AS gas_used,\n DATA:hash::STRING AS HASH,\n DATA:logsBloom::STRING AS logs_bloom,\n DATA:miner::STRING AS miner,\n utils.udf_hex_to_int(DATA:nonce::STRING)::INT AS nonce,\n utils.udf_hex_to_int(DATA:number::STRING)::INT AS NUMBER,\n DATA:parentHash::STRING AS parent_hash,\n DATA:receiptsRoot::STRING AS receipts_root,\n DATA:sha3Uncles::STRING AS sha3_uncles,\n utils.udf_hex_to_int(DATA:size::STRING)::INT AS SIZE,\n DATA:stateRoot::STRING AS state_root,\n utils.udf_hex_to_int(DATA:totalDifficulty::STRING)::INT AS total_difficulty,\n ARRAY_SIZE(DATA:transactions) AS tx_count,\n DATA:transactionsRoot::STRING AS transactions_root,\n DATA:uncles AS uncles,\n DATA:withdrawals AS withdrawals,\n DATA:withdrawalsRoot::STRING AS withdrawals_root,\n md5(\n CAST(\n COALESCE(\n CAST(block_number AS TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) AS TEXT\n )\n ) AS blocks_id,\n utils.udf_hex_to_int(DATA:blobGasUsed::STRING)::INT AS blob_gas_used,\n utils.udf_hex_to_int(DATA:excessBlobGas::STRING)::INT AS excess_blob_gas\n FROM\n raw_block_txs\n)\n select\n block_number,\n block_timestamp,\n 'mainnet' AS network,\n 'ethereum' AS blockchain,\n tx_count,\n difficulty,\n total_difficulty,\n extra_data,\n gas_limit,\n gas_used,\n HASH,\n parent_hash,\n miner,\n nonce,\n receipts_root,\n sha3_uncles,\n SIZE,\n uncles AS uncle_blocks,\n OBJECT_CONSTRUCT(\n 'baseFeePerGas',\n base_fee_per_gas,\n 'difficulty',\n difficulty,\n 'extraData',\n extra_data,\n 'gasLimit',\n gas_limit,\n 'gasUsed',\n gas_used,\n 'hash',\n HASH,\n 'logsBloom',\n logs_bloom,\n 'miner',\n miner,\n 'nonce',\n nonce,\n 'number',\n NUMBER,\n 'parentHash',\n parent_hash,\n 'receiptsRoot',\n receipts_root,\n 'sha3Uncles',\n sha3_uncles,\n 'size',\n SIZE,\n 'stateRoot',\n state_root,\n 'timestamp',\n block_timestamp,\n 'totalDifficulty',\n total_difficulty,\n 'transactionsRoot',\n transactions_root,\n 'uncles',\n uncles,\n 'excessBlobGas',\n excess_blob_gas,\n 'blobGasUsed',\n blob_gas_used\n ) AS block_header_json,\n excess_blob_gas,\n blob_gas_used,\n block_number::STRING AS fact_blocks_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n withdrawals,\n withdrawals_root\n from silver_blocks\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_fact_event_logs(\n block_height INTEGER,\n to_latest BOOLEAN\n )\n COPY GRANTS\n RETURNS TABLE(block_number INTEGER, block_timestamp TIMESTAMP_NTZ, tx_hash STRING, origin_function_signature STRING, origin_from_address STRING, origin_to_address STRING, event_index INTEGER, contract_address STRING, topics VARIANT, data STRING, event_removed BOOLEAN, tx_status STRING, _log_id STRING, fact_event_logs_id STRING, inserted_timestamp TIMESTAMP_NTZ, modified_timestamp TIMESTAMP_NTZ)\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the logs for a given block height. If to_latest is true, it will continue fetching logs until the latest block. Otherwise, it will fetch logs until the block height is reached.$$\n\n AS\n $$\n \nWITH spine AS (\n \n WITH heights AS (\n \n SELECT\n ethereum_mainnet.udf_rpc('eth_blockNumber', []) as result,\n utils.udf_hex_to_int(result)::integer AS latest_block_height,\n COALESCE(\n block_height,\n latest_block_height\n ) AS min_height,\n iff(\n COALESCE(to_latest, false),\n latest_block_height,\n min_height\n ) AS max_height\n ),\n block_spine AS (\n SELECT\n ROW_NUMBER() OVER (\n ORDER BY\n NULL\n ) - 1 + COALESCE(block_height, latest_block_height)::integer AS block_number,\n min_height,\n IFF(\n COALESCE(to_latest, false),\n block_height,\n min_height\n ) AS max_height,\n latest_block_height\n FROM\n TABLE(generator(ROWCOUNT => 1000)),\n heights qualify block_number BETWEEN min_height\n AND max_height\n )\n\n SELECT\n CEIL(ROW_NUMBER() OVER (ORDER BY block_number) / 5) AS batch_id,\n block_number,\n latest_block_height\n FROM block_spine\n),\nraw_block_txs AS (\n \n WITH blocks_agg AS (\n SELECT\n batch_id,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'eth_getBlockByNumber',\n [utils.udf_int_to_hex(block_number), true]\n )\n ) AS params\n FROM\n spine\n GROUP BY batch_id\n ), result as (\n SELECT\n \n live.udf_api(\n '{endpoint}'\n ,params\n ,concat_ws('/', 'integration', _utils.udf_provider(), 'ethereum', 'mainnet')\n )::VARIANT:data::ARRAY AS data\n\n FROM blocks_agg\n )\n , flattened as (\n SELECT\n COALESCE(value:result, {'error':value:error}) AS result\n FROM result, LATERAL FLATTEN(input => result.data) v\n )\n\n SELECT\n utils.udf_hex_to_int(result:number::STRING)::INT AS block_number,\n result as data\n FROM flattened\n),\nraw_receipts AS (\n \n WITH blocks_agg AS (\n SELECT\n batch_id,\n latest_block_height,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'eth_getBlockReceipts',\n [utils.udf_int_to_hex(block_number)]\n )\n ) AS params\n FROM\n spine\n GROUP BY 1,2\n ),\n\n get_batch_result AS (\n SELECT\n latest_block_height,\n \n live.udf_api(\n '{endpoint}'\n ,params\n ,concat_ws('/', 'integration', _utils.udf_provider(), 'ethereum', 'mainnet')\n )::VARIANT:data::ARRAY AS data\n\n FROM blocks_agg\n )\n\n SELECT\n latest_block_height,\n utils.udf_hex_to_int(w.value:blockNumber::STRING)::INT AS block_number,\n w.value AS DATA\n FROM\n (SELECT\n latest_block_height,\n v.value:result AS DATA\n FROM get_batch_result,\n LATERAL FLATTEN(data) v), LATERAL FLATTEN(data) w\n),\nraw_logs AS (\n \n SELECT\n r.block_number,\n v.value\n FROM\n raw_receipts AS r,\n lateral flatten(r.data:logs) v\n),\nraw_transactions AS (\n \n SELECT\n block_number,\n v.value as DATA\n FROM\n raw_block_txs AS r,\n lateral flatten(r.data:transactions) v\n),\nblocks AS (\n \n SELECT\n block_number,\n utils.udf_hex_to_int(DATA:timestamp::STRING)::TIMESTAMP AS block_timestamp,\n utils.udf_hex_to_int(DATA:baseFeePerGas::STRING)::INT AS base_fee_per_gas,\n utils.udf_hex_to_int(DATA:difficulty::STRING)::INT AS difficulty,\n DATA:extraData::STRING AS extra_data,\n utils.udf_hex_to_int(DATA:gasLimit::STRING)::INT AS gas_limit,\n utils.udf_hex_to_int(DATA:gasUsed::STRING)::INT AS gas_used,\n DATA:hash::STRING AS HASH,\n DATA:logsBloom::STRING AS logs_bloom,\n DATA:miner::STRING AS miner,\n utils.udf_hex_to_int(DATA:nonce::STRING)::INT AS nonce,\n utils.udf_hex_to_int(DATA:number::STRING)::INT AS NUMBER,\n DATA:parentHash::STRING AS parent_hash,\n DATA:receiptsRoot::STRING AS receipts_root,\n DATA:sha3Uncles::STRING AS sha3_uncles,\n utils.udf_hex_to_int(DATA:size::STRING)::INT AS SIZE,\n DATA:stateRoot::STRING AS state_root,\n utils.udf_hex_to_int(DATA:totalDifficulty::STRING)::INT AS total_difficulty,\n ARRAY_SIZE(DATA:transactions) AS tx_count,\n DATA:transactionsRoot::STRING AS transactions_root,\n DATA:uncles AS uncles,\n DATA:withdrawals AS withdrawals,\n DATA:withdrawalsRoot::STRING AS withdrawals_root,\n md5(\n CAST(\n COALESCE(\n CAST(block_number AS TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) AS TEXT\n )\n ) AS blocks_id,\n utils.udf_hex_to_int(DATA:blobGasUsed::STRING)::INT AS blob_gas_used,\n utils.udf_hex_to_int(DATA:excessBlobGas::STRING)::INT AS excess_blob_gas\n FROM\n raw_block_txs\n),\nreceipts AS (\n \n SELECT\n latest_block_height,\n block_number,\n DATA :blockHash::STRING AS block_hash,\n utils.udf_hex_to_int(DATA :blockNumber::STRING)::INT AS blockNumber,\n utils.udf_hex_to_int(DATA :cumulativeGasUsed::STRING)::INT AS cumulative_gas_used,\n utils.udf_hex_to_int(DATA :effectiveGasPrice::STRING)::INT / pow(10, 9) AS effective_gas_price,\n DATA :from::STRING AS from_address,\n utils.udf_hex_to_int(DATA :gasUsed::STRING)::INT AS gas_used,\n DATA :logs AS logs,\n DATA :logsBloom::STRING AS logs_bloom,\n utils.udf_hex_to_int(DATA :status::STRING)::INT AS status,\n CASE\n WHEN status = 1 THEN TRUE\n ELSE FALSE\n END AS tx_success,\n CASE\n WHEN status = 1 THEN 'SUCCESS'\n ELSE 'FAIL'\n END AS tx_status,\n DATA :to::STRING AS to_address1,\n CASE\n WHEN to_address1 = '' THEN NULL\n ELSE to_address1\n END AS to_address,\n DATA :transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(DATA :transactionIndex::STRING)::INT AS POSITION,\n utils.udf_hex_to_int(DATA :type::STRING)::INT AS TYPE,\n utils.udf_hex_to_int(DATA :effectiveGasPrice::STRING)::INT AS blob_gas_price,\n utils.udf_hex_to_int(DATA :gasUsed::STRING)::INT AS blob_gas_used\n FROM\n raw_receipts\n),\ntransactions AS (\n \n SELECT\n A.block_number AS block_number,\n A.data :blockHash::STRING AS block_hash,\n utils.udf_hex_to_int(A.data :blockNumber::STRING)::INT AS blockNumber,\n utils.udf_hex_to_int(A.data :chainId::STRING)::INT AS chain_id,\n A.data :from::STRING AS from_address,\n utils.udf_hex_to_int(A.data :gas::STRING)::INT AS gas,\n utils.udf_hex_to_int(A.data :gasPrice::STRING)::INT / pow(10, 9) AS gas_price,\n A.data :hash::STRING AS tx_hash,\n A.data :input::STRING AS input_data,\n SUBSTR(input_data, 1, 10) AS origin_function_signature,\n utils.udf_hex_to_int(A.data :maxFeePerGas::STRING)::INT / pow(10, 9) AS max_fee_per_gas,\n utils.udf_hex_to_int(\n A.data :maxPriorityFeePerGas::STRING\n )::INT / pow(10, 9) AS max_priority_fee_per_gas,\n utils.udf_hex_to_int(A.data :nonce::STRING)::INT AS nonce,\n A.data :r::STRING AS r,\n A.data :s::STRING AS s,\n A.data :to::STRING AS to_address1,\n utils.udf_hex_to_int(A.data :transactionIndex::STRING)::INT AS POSITION,\n A.data :type::STRING AS TYPE,\n A.data :v::STRING AS v,\n utils.udf_hex_to_int(A.data :value::STRING) AS value_precise_raw,\n value_precise_raw * power(10, -18) AS value_precise,\n value_precise::FLOAT AS VALUE,\n A.data :accessList AS access_list,\n A.data,\n A.data: blobVersionedHashes::ARRAY AS blob_versioned_hashes,\n utils.udf_hex_to_int(A.data: maxFeePerGas::STRING)::INT AS max_fee_per_blob_gas,\n block_timestamp,\n CASE\n WHEN block_timestamp IS NULL\n OR tx_status IS NULL THEN TRUE\n ELSE FALSE\n END AS is_pending,\n r.gas_used,\n tx_success,\n tx_status,\n cumulative_gas_used,\n effective_gas_price,\n utils.udf_hex_to_int(A.data :gasPrice) * power(10, -18) * r.gas_used AS tx_fee_precise,\n COALESCE(tx_fee_precise::FLOAT, 0) AS tx_fee,\n r.type as tx_type,\n r.blob_gas_used,\n r.blob_gas_price,\n FROM\n raw_transactions AS A\n LEFT JOIN blocks AS b on b.block_number = A.block_number\n LEFT JOIN receipts AS r on r.tx_hash = A.data :hash::STRING\n),\nlogs AS (\n \n SELECT\n r.block_number,\n txs.block_timestamp,\n r.tx_hash,\n txs.origin_function_signature,\n r.from_address AS origin_from_address,\n r.to_address AS origin_to_address,\n utils.udf_hex_to_int(v.VALUE :logIndex::STRING)::INT AS event_index,\n v.VALUE :address::STRING AS contract_address,\n v.VALUE :blockHash::STRING AS block_hash,\n v.VALUE :data::STRING AS DATA,\n v.VALUE :removed::BOOLEAN AS event_removed,\n v.VALUE :topics AS topics,\n r.tx_status,\n CASE\n WHEN txs.block_timestamp IS NULL\n OR txs.origin_function_signature IS NULL THEN TRUE\n ELSE FALSE\n END AS is_pending,\n FROM\n receipts AS r\n LEFT JOIN transactions AS txs on txs.tx_hash = r.tx_hash,\n lateral flatten(r.logs) v\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n contract_address,\n topics,\n DATA,\n event_removed,\n tx_status,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n md5(\n cast(\n coalesce(\n cast(tx_hash as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) || '-' || coalesce(\n cast(event_index as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) as TEXT\n )\n ) AS fact_event_logs_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM logs\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_fact_decoded_event_logs(\n block_height INTEGER,\n to_latest BOOLEAN\n )\n COPY GRANTS\n RETURNS TABLE(block_number INTEGER, block_timestamp TIMESTAMP_NTZ, tx_hash STRING, event_index INTEGER, contract_address STRING, event_name STRING, decoded_log OBJECT, full_decoded_log VARIANT, fact_decoded_event_logs_id STRING, inserted_timestamp TIMESTAMP_NTZ, modified_timestamp TIMESTAMP_NTZ)\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the decoded event logs data for a given block height. If to_latest is true, it will continue fetching blocks until the latest block. Otherwise, it will fetch blocks until the block height is reached.$$\n\n AS\n $$\n \nWITH _ez_decoded_event_logs AS (\n \n WITH _fact_event_logs AS (\n \n WITH spine AS (\n \n WITH heights AS (\n \n SELECT\n ethereum_mainnet.udf_rpc('eth_blockNumber', []) as result,\n utils.udf_hex_to_int(result)::integer AS latest_block_height,\n COALESCE(\n block_height,\n latest_block_height\n ) AS min_height,\n iff(\n COALESCE(to_latest, false),\n latest_block_height,\n min_height\n ) AS max_height\n ),\n block_spine AS (\n SELECT\n ROW_NUMBER() OVER (\n ORDER BY\n NULL\n ) - 1 + COALESCE(block_height, latest_block_height)::integer AS block_number,\n min_height,\n IFF(\n COALESCE(to_latest, false),\n block_height,\n min_height\n ) AS max_height,\n latest_block_height\n FROM\n TABLE(generator(ROWCOUNT => 1000)),\n heights qualify block_number BETWEEN min_height\n AND max_height\n )\n\n SELECT\n CEIL(ROW_NUMBER() OVER (ORDER BY block_number) / 5) AS batch_id,\n block_number,\n latest_block_height\n FROM block_spine\n ),\n raw_block_txs AS (\n \n WITH blocks_agg AS (\n SELECT\n batch_id,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'eth_getBlockByNumber',\n [utils.udf_int_to_hex(block_number), true]\n )\n ) AS params\n FROM\n spine\n GROUP BY batch_id\n ), result as (\n SELECT\n \n live.udf_api(\n '{endpoint}'\n ,params\n ,concat_ws('/', 'integration', _utils.udf_provider(), 'ethereum', 'mainnet')\n )::VARIANT:data::ARRAY AS data\n\n FROM blocks_agg\n )\n , flattened as (\n SELECT\n COALESCE(value:result, {'error':value:error}) AS result\n FROM result, LATERAL FLATTEN(input => result.data) v\n )\n\n SELECT\n utils.udf_hex_to_int(result:number::STRING)::INT AS block_number,\n result as data\n FROM flattened\n ),\n raw_receipts AS (\n \n WITH blocks_agg AS (\n SELECT\n batch_id,\n latest_block_height,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'eth_getBlockReceipts',\n [utils.udf_int_to_hex(block_number)]\n )\n ) AS params\n FROM\n spine\n GROUP BY 1,2\n ),\n\n get_batch_result AS (\n SELECT\n latest_block_height,\n \n live.udf_api(\n '{endpoint}'\n ,params\n ,concat_ws('/', 'integration', _utils.udf_provider(), 'ethereum', 'mainnet')\n )::VARIANT:data::ARRAY AS data\n\n FROM blocks_agg\n )\n\n SELECT\n latest_block_height,\n utils.udf_hex_to_int(w.value:blockNumber::STRING)::INT AS block_number,\n w.value AS DATA\n FROM\n (SELECT\n latest_block_height,\n v.value:result AS DATA\n FROM get_batch_result,\n LATERAL FLATTEN(data) v), LATERAL FLATTEN(data) w\n ),\n raw_logs AS (\n \n SELECT\n r.block_number,\n v.value\n FROM\n raw_receipts AS r,\n lateral flatten(r.data:logs) v\n ),\n raw_transactions AS (\n \n SELECT\n block_number,\n v.value as DATA\n FROM\n raw_block_txs AS r,\n lateral flatten(r.data:transactions) v\n ),\n blocks AS (\n \n SELECT\n block_number,\n utils.udf_hex_to_int(DATA:timestamp::STRING)::TIMESTAMP AS block_timestamp,\n utils.udf_hex_to_int(DATA:baseFeePerGas::STRING)::INT AS base_fee_per_gas,\n utils.udf_hex_to_int(DATA:difficulty::STRING)::INT AS difficulty,\n DATA:extraData::STRING AS extra_data,\n utils.udf_hex_to_int(DATA:gasLimit::STRING)::INT AS gas_limit,\n utils.udf_hex_to_int(DATA:gasUsed::STRING)::INT AS gas_used,\n DATA:hash::STRING AS HASH,\n DATA:logsBloom::STRING AS logs_bloom,\n DATA:miner::STRING AS miner,\n utils.udf_hex_to_int(DATA:nonce::STRING)::INT AS nonce,\n utils.udf_hex_to_int(DATA:number::STRING)::INT AS NUMBER,\n DATA:parentHash::STRING AS parent_hash,\n DATA:receiptsRoot::STRING AS receipts_root,\n DATA:sha3Uncles::STRING AS sha3_uncles,\n utils.udf_hex_to_int(DATA:size::STRING)::INT AS SIZE,\n DATA:stateRoot::STRING AS state_root,\n utils.udf_hex_to_int(DATA:totalDifficulty::STRING)::INT AS total_difficulty,\n ARRAY_SIZE(DATA:transactions) AS tx_count,\n DATA:transactionsRoot::STRING AS transactions_root,\n DATA:uncles AS uncles,\n DATA:withdrawals AS withdrawals,\n DATA:withdrawalsRoot::STRING AS withdrawals_root,\n md5(\n CAST(\n COALESCE(\n CAST(block_number AS TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) AS TEXT\n )\n ) AS blocks_id,\n utils.udf_hex_to_int(DATA:blobGasUsed::STRING)::INT AS blob_gas_used,\n utils.udf_hex_to_int(DATA:excessBlobGas::STRING)::INT AS excess_blob_gas\n FROM\n raw_block_txs\n ),\n receipts AS (\n \n SELECT\n latest_block_height,\n block_number,\n DATA :blockHash::STRING AS block_hash,\n utils.udf_hex_to_int(DATA :blockNumber::STRING)::INT AS blockNumber,\n utils.udf_hex_to_int(DATA :cumulativeGasUsed::STRING)::INT AS cumulative_gas_used,\n utils.udf_hex_to_int(DATA :effectiveGasPrice::STRING)::INT / pow(10, 9) AS effective_gas_price,\n DATA :from::STRING AS from_address,\n utils.udf_hex_to_int(DATA :gasUsed::STRING)::INT AS gas_used,\n DATA :logs AS logs,\n DATA :logsBloom::STRING AS logs_bloom,\n utils.udf_hex_to_int(DATA :status::STRING)::INT AS status,\n CASE\n WHEN status = 1 THEN TRUE\n ELSE FALSE\n END AS tx_success,\n CASE\n WHEN status = 1 THEN 'SUCCESS'\n ELSE 'FAIL'\n END AS tx_status,\n DATA :to::STRING AS to_address1,\n CASE\n WHEN to_address1 = '' THEN NULL\n ELSE to_address1\n END AS to_address,\n DATA :transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(DATA :transactionIndex::STRING)::INT AS POSITION,\n utils.udf_hex_to_int(DATA :type::STRING)::INT AS TYPE,\n utils.udf_hex_to_int(DATA :effectiveGasPrice::STRING)::INT AS blob_gas_price,\n utils.udf_hex_to_int(DATA :gasUsed::STRING)::INT AS blob_gas_used\n FROM\n raw_receipts\n ),\n transactions AS (\n \n SELECT\n A.block_number AS block_number,\n A.data :blockHash::STRING AS block_hash,\n utils.udf_hex_to_int(A.data :blockNumber::STRING)::INT AS blockNumber,\n utils.udf_hex_to_int(A.data :chainId::STRING)::INT AS chain_id,\n A.data :from::STRING AS from_address,\n utils.udf_hex_to_int(A.data :gas::STRING)::INT AS gas,\n utils.udf_hex_to_int(A.data :gasPrice::STRING)::INT / pow(10, 9) AS gas_price,\n A.data :hash::STRING AS tx_hash,\n A.data :input::STRING AS input_data,\n SUBSTR(input_data, 1, 10) AS origin_function_signature,\n utils.udf_hex_to_int(A.data :maxFeePerGas::STRING)::INT / pow(10, 9) AS max_fee_per_gas,\n utils.udf_hex_to_int(\n A.data :maxPriorityFeePerGas::STRING\n )::INT / pow(10, 9) AS max_priority_fee_per_gas,\n utils.udf_hex_to_int(A.data :nonce::STRING)::INT AS nonce,\n A.data :r::STRING AS r,\n A.data :s::STRING AS s,\n A.data :to::STRING AS to_address1,\n utils.udf_hex_to_int(A.data :transactionIndex::STRING)::INT AS POSITION,\n A.data :type::STRING AS TYPE,\n A.data :v::STRING AS v,\n utils.udf_hex_to_int(A.data :value::STRING) AS value_precise_raw,\n value_precise_raw * power(10, -18) AS value_precise,\n value_precise::FLOAT AS VALUE,\n A.data :accessList AS access_list,\n A.data,\n A.data: blobVersionedHashes::ARRAY AS blob_versioned_hashes,\n utils.udf_hex_to_int(A.data: maxFeePerGas::STRING)::INT AS max_fee_per_blob_gas,\n block_timestamp,\n CASE\n WHEN block_timestamp IS NULL\n OR tx_status IS NULL THEN TRUE\n ELSE FALSE\n END AS is_pending,\n r.gas_used,\n tx_success,\n tx_status,\n cumulative_gas_used,\n effective_gas_price,\n utils.udf_hex_to_int(A.data :gasPrice) * power(10, -18) * r.gas_used AS tx_fee_precise,\n COALESCE(tx_fee_precise::FLOAT, 0) AS tx_fee,\n r.type as tx_type,\n r.blob_gas_used,\n r.blob_gas_price,\n FROM\n raw_transactions AS A\n LEFT JOIN blocks AS b on b.block_number = A.block_number\n LEFT JOIN receipts AS r on r.tx_hash = A.data :hash::STRING\n ),\n logs AS (\n \n SELECT\n r.block_number,\n txs.block_timestamp,\n r.tx_hash,\n txs.origin_function_signature,\n r.from_address AS origin_from_address,\n r.to_address AS origin_to_address,\n utils.udf_hex_to_int(v.VALUE :logIndex::STRING)::INT AS event_index,\n v.VALUE :address::STRING AS contract_address,\n v.VALUE :blockHash::STRING AS block_hash,\n v.VALUE :data::STRING AS DATA,\n v.VALUE :removed::BOOLEAN AS event_removed,\n v.VALUE :topics AS topics,\n r.tx_status,\n CASE\n WHEN txs.block_timestamp IS NULL\n OR txs.origin_function_signature IS NULL THEN TRUE\n ELSE FALSE\n END AS is_pending,\n FROM\n receipts AS r\n LEFT JOIN transactions AS txs on txs.tx_hash = r.tx_hash,\n lateral flatten(r.logs) v\n )\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n contract_address,\n topics,\n DATA,\n event_removed,\n tx_status,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n md5(\n cast(\n coalesce(\n cast(tx_hash as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) || '-' || coalesce(\n cast(event_index as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) as TEXT\n )\n ) AS fact_event_logs_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n FROM logs\n ),\n\n _silver_decoded_logs AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n topics,\n DATA,\n contract_address,\n OBJECT_CONSTRUCT('topics', topics, 'data', data, 'address', contract_address) AS event_data,\n abi,\n utils.udf_evm_decode_log(abi, event_data)[0] AS decoded_data,\n event_removed,\n decoded_data:name::string AS event_name,\n ethereum.utils.udf_transform_logs(decoded_data) AS transformed,\n _log_id,\n inserted_timestamp,\n tx_status\n FROM\n _fact_event_logs\n JOIN\n ethereum.core.dim_contract_abis\n USING\n (contract_address)\n WHERE\n tx_status = 'SUCCESS'\n ),\n\n _flatten_logs AS (\n SELECT\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.decoded_data,\n b.transformed,\n b._log_id,\n b.inserted_timestamp,\n OBJECT_AGG(\n DISTINCT CASE\n WHEN v.value :name = '' THEN CONCAT(\n 'anonymous_',\n v.index\n )\n ELSE v.value :name\n END,\n v.value :value\n ) AS decoded_flat\n FROM\n _silver_decoded_logs b,\n LATERAL FLATTEN(\n input => b.transformed :data\n ) v\n GROUP BY\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.decoded_data,\n b.transformed,\n b._log_id,\n b.inserted_timestamp\n )\n\n SELECT\n block_number,\n C.block_timestamp,\n B.tx_hash,\n B.event_index,\n B.contract_address,\n D.name AS contract_name,\n B.event_name,\n B.decoded_flat AS decoded_log,\n B.decoded_data AS full_decoded_log,\n C.origin_function_signature,\n C.origin_from_address,\n C.origin_to_address,\n C.topics,\n C.DATA,\n C.event_removed,\n C.tx_status,\n md5(_log_id) AS fact_decoded_event_logs_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n FROM _flatten_logs AS B\n LEFT JOIN _silver_decoded_logs AS C USING (block_number, _log_id)\n LEFT JOIN ethereum.core.dim_contracts AS D\n ON B.contract_address = D.address\n)\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n contract_address,\n event_name,\n decoded_log,\n full_decoded_log,\n fact_decoded_event_logs_id,\n inserted_timestamp,\n modified_timestamp\nFROM _ez_decoded_event_logs\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_fact_decoded_traces(\n block_height INTEGER,\n to_latest BOOLEAN\n )\n COPY GRANTS\n RETURNS TABLE(block_number INTEGER, tx_hash STRING, block_timestamp TIMESTAMP_NTZ, tx_status STRING, tx_position INTEGER, trace_index INTEGER, from_address STRING, to_address STRING, VALUE FLOAT, value_precise_raw STRING, value_precise STRING, gas INTEGER, gas_used INTEGER, TYPE STRING, identifier STRING, sub_traces INTEGER, error_reason STRING, trace_status STRING, input STRING, output STRING, function_name STRING, decoded_input_data VARIANT, decoded_output_data VARIANT, fact_decoded_traces_id STRING, inserted_timestamp TIMESTAMP_NTZ, modified_timestamp TIMESTAMP_NTZ)\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the decoded traces data for a given block height. If to_latest is true,\n it will continue fetching blocks until the latest block. Otherwise,\n it will fetch blocks until the block height is reached.$$\n\n AS\n $$\n \nWITH spine AS (\n \n WITH heights AS (\n \n SELECT\n ethereum_mainnet.udf_rpc('eth_blockNumber', []) as result,\n utils.udf_hex_to_int(result)::integer AS latest_block_height,\n COALESCE(\n block_height,\n latest_block_height\n ) AS min_height,\n iff(\n COALESCE(to_latest, false),\n latest_block_height,\n min_height\n ) AS max_height\n ),\n block_spine AS (\n SELECT\n ROW_NUMBER() OVER (\n ORDER BY\n NULL\n ) - 1 + COALESCE(block_height, latest_block_height)::integer AS block_number,\n min_height,\n IFF(\n COALESCE(to_latest, false),\n block_height,\n min_height\n ) AS max_height,\n latest_block_height\n FROM\n TABLE(generator(ROWCOUNT => 1000)),\n heights qualify block_number BETWEEN min_height\n AND max_height\n )\n\n SELECT\n CEIL(ROW_NUMBER() OVER (ORDER BY block_number) / 5) AS batch_id,\n block_number,\n latest_block_height\n FROM block_spine\n),\nraw_receipts AS (\n \n WITH blocks_agg AS (\n SELECT\n batch_id,\n latest_block_height,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'eth_getBlockReceipts',\n [utils.udf_int_to_hex(block_number)]\n )\n ) AS params\n FROM\n spine\n GROUP BY 1,2\n ),\n\n get_batch_result AS (\n SELECT\n latest_block_height,\n \n live.udf_api(\n '{endpoint}'\n ,params\n ,concat_ws('/', 'integration', _utils.udf_provider(), 'ethereum', 'mainnet')\n )::VARIANT:data::ARRAY AS data\n\n FROM blocks_agg\n )\n\n SELECT\n latest_block_height,\n utils.udf_hex_to_int(w.value:blockNumber::STRING)::INT AS block_number,\n w.value AS DATA\n FROM\n (SELECT\n latest_block_height,\n v.value:result AS DATA\n FROM get_batch_result,\n LATERAL FLATTEN(data) v), LATERAL FLATTEN(data) w\n),\nraw_block_txs AS (\n \n WITH blocks_agg AS (\n SELECT\n batch_id,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'eth_getBlockByNumber',\n [utils.udf_int_to_hex(block_number), true]\n )\n ) AS params\n FROM\n spine\n GROUP BY batch_id\n ), result as (\n SELECT\n \n live.udf_api(\n '{endpoint}'\n ,params\n ,concat_ws('/', 'integration', _utils.udf_provider(), 'ethereum', 'mainnet')\n )::VARIANT:data::ARRAY AS data\n\n FROM blocks_agg\n )\n , flattened as (\n SELECT\n COALESCE(value:result, {'error':value:error}) AS result\n FROM result, LATERAL FLATTEN(input => result.data) v\n )\n\n SELECT\n utils.udf_hex_to_int(result:number::STRING)::INT AS block_number,\n result as data\n FROM flattened\n),\nraw_transactions AS (\n \n SELECT\n block_number,\n v.value as DATA\n FROM\n raw_block_txs AS r,\n lateral flatten(r.data:transactions) v\n),\nblocks AS (\n \n SELECT\n block_number,\n utils.udf_hex_to_int(DATA:timestamp::STRING)::TIMESTAMP AS block_timestamp,\n utils.udf_hex_to_int(DATA:baseFeePerGas::STRING)::INT AS base_fee_per_gas,\n utils.udf_hex_to_int(DATA:difficulty::STRING)::INT AS difficulty,\n DATA:extraData::STRING AS extra_data,\n utils.udf_hex_to_int(DATA:gasLimit::STRING)::INT AS gas_limit,\n utils.udf_hex_to_int(DATA:gasUsed::STRING)::INT AS gas_used,\n DATA:hash::STRING AS HASH,\n DATA:logsBloom::STRING AS logs_bloom,\n DATA:miner::STRING AS miner,\n utils.udf_hex_to_int(DATA:nonce::STRING)::INT AS nonce,\n utils.udf_hex_to_int(DATA:number::STRING)::INT AS NUMBER,\n DATA:parentHash::STRING AS parent_hash,\n DATA:receiptsRoot::STRING AS receipts_root,\n DATA:sha3Uncles::STRING AS sha3_uncles,\n utils.udf_hex_to_int(DATA:size::STRING)::INT AS SIZE,\n DATA:stateRoot::STRING AS state_root,\n utils.udf_hex_to_int(DATA:totalDifficulty::STRING)::INT AS total_difficulty,\n ARRAY_SIZE(DATA:transactions) AS tx_count,\n DATA:transactionsRoot::STRING AS transactions_root,\n DATA:uncles AS uncles,\n DATA:withdrawals AS withdrawals,\n DATA:withdrawalsRoot::STRING AS withdrawals_root,\n md5(\n CAST(\n COALESCE(\n CAST(block_number AS TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) AS TEXT\n )\n ) AS blocks_id,\n utils.udf_hex_to_int(DATA:blobGasUsed::STRING)::INT AS blob_gas_used,\n utils.udf_hex_to_int(DATA:excessBlobGas::STRING)::INT AS excess_blob_gas\n FROM\n raw_block_txs\n),\nreceipts AS (\n \n SELECT\n latest_block_height,\n block_number,\n DATA :blockHash::STRING AS block_hash,\n utils.udf_hex_to_int(DATA :blockNumber::STRING)::INT AS blockNumber,\n utils.udf_hex_to_int(DATA :cumulativeGasUsed::STRING)::INT AS cumulative_gas_used,\n utils.udf_hex_to_int(DATA :effectiveGasPrice::STRING)::INT / pow(10, 9) AS effective_gas_price,\n DATA :from::STRING AS from_address,\n utils.udf_hex_to_int(DATA :gasUsed::STRING)::INT AS gas_used,\n DATA :logs AS logs,\n DATA :logsBloom::STRING AS logs_bloom,\n utils.udf_hex_to_int(DATA :status::STRING)::INT AS status,\n CASE\n WHEN status = 1 THEN TRUE\n ELSE FALSE\n END AS tx_success,\n CASE\n WHEN status = 1 THEN 'SUCCESS'\n ELSE 'FAIL'\n END AS tx_status,\n DATA :to::STRING AS to_address1,\n CASE\n WHEN to_address1 = '' THEN NULL\n ELSE to_address1\n END AS to_address,\n DATA :transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(DATA :transactionIndex::STRING)::INT AS POSITION,\n utils.udf_hex_to_int(DATA :type::STRING)::INT AS TYPE,\n utils.udf_hex_to_int(DATA :effectiveGasPrice::STRING)::INT AS blob_gas_price,\n utils.udf_hex_to_int(DATA :gasUsed::STRING)::INT AS blob_gas_used\n FROM\n raw_receipts\n),\ntransactions AS (\n \n SELECT\n A.block_number AS block_number,\n A.data :blockHash::STRING AS block_hash,\n utils.udf_hex_to_int(A.data :blockNumber::STRING)::INT AS blockNumber,\n utils.udf_hex_to_int(A.data :chainId::STRING)::INT AS chain_id,\n A.data :from::STRING AS from_address,\n utils.udf_hex_to_int(A.data :gas::STRING)::INT AS gas,\n utils.udf_hex_to_int(A.data :gasPrice::STRING)::INT / pow(10, 9) AS gas_price,\n A.data :hash::STRING AS tx_hash,\n A.data :input::STRING AS input_data,\n SUBSTR(input_data, 1, 10) AS origin_function_signature,\n utils.udf_hex_to_int(A.data :maxFeePerGas::STRING)::INT / pow(10, 9) AS max_fee_per_gas,\n utils.udf_hex_to_int(\n A.data :maxPriorityFeePerGas::STRING\n )::INT / pow(10, 9) AS max_priority_fee_per_gas,\n utils.udf_hex_to_int(A.data :nonce::STRING)::INT AS nonce,\n A.data :r::STRING AS r,\n A.data :s::STRING AS s,\n A.data :to::STRING AS to_address1,\n utils.udf_hex_to_int(A.data :transactionIndex::STRING)::INT AS POSITION,\n A.data :type::STRING AS TYPE,\n A.data :v::STRING AS v,\n utils.udf_hex_to_int(A.data :value::STRING) AS value_precise_raw,\n value_precise_raw * power(10, -18) AS value_precise,\n value_precise::FLOAT AS VALUE,\n A.data :accessList AS access_list,\n A.data,\n A.data: blobVersionedHashes::ARRAY AS blob_versioned_hashes,\n utils.udf_hex_to_int(A.data: maxFeePerGas::STRING)::INT AS max_fee_per_blob_gas,\n block_timestamp,\n CASE\n WHEN block_timestamp IS NULL\n OR tx_status IS NULL THEN TRUE\n ELSE FALSE\n END AS is_pending,\n r.gas_used,\n tx_success,\n tx_status,\n cumulative_gas_used,\n effective_gas_price,\n utils.udf_hex_to_int(A.data :gasPrice) * power(10, -18) * r.gas_used AS tx_fee_precise,\n COALESCE(tx_fee_precise::FLOAT, 0) AS tx_fee,\n r.type as tx_type,\n r.blob_gas_used,\n r.blob_gas_price,\n FROM\n raw_transactions AS A\n LEFT JOIN blocks AS b on b.block_number = A.block_number\n LEFT JOIN receipts AS r on r.tx_hash = A.data :hash::STRING\n),\nraw_traces AS (\n \n WITH blocks_agg AS (\n SELECT\n batch_id,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'debug_traceBlockByNumber',\n [utils.udf_int_to_hex(s.block_number), {'tracer': 'callTracer'}],\n s.block_number -- to put block_number in the id to retrieve the block numberlater\n )\n ) AS params\n FROM\n spine s\n GROUP BY batch_id\n ), result as (\n SELECT\n \n live.udf_api(\n '{endpoint}'\n ,params\n ,concat_ws('/', 'integration', _utils.udf_provider(), 'ethereum', 'mainnet')\n )::VARIANT:data::ARRAY AS data\n\n FROM blocks_agg\n ), flattened as (\n SELECT\n value:id::INT AS block_number,\n COALESCE(value:result, {'error':value:error}) AS result\n FROM result, LATERAL FLATTEN(input => result.data) v\n )\n\n SELECT\n s.block_number,\n v.index::INT AS tx_position, -- mimic's streamline's logic to add tx_position\n v.value:result AS full_traces,\n SYSDATE() AS _inserted_timestamp\n FROM flattened s,\n LATERAL FLATTEN(input => result) v\n),\n\n\n flatten_traces AS (\n SELECT\n block_number,\n tx_position,\n IFF(\n path IN (\n 'result',\n 'result.value',\n 'result.type',\n 'result.to',\n 'result.input',\n 'result.gasUsed',\n 'result.gas',\n 'result.from',\n 'result.output',\n 'result.error',\n 'result.revertReason',\n 'gasUsed',\n 'gas',\n 'type',\n 'to',\n 'from',\n 'value',\n 'input',\n 'error',\n 'output',\n 'revertReason'\n ),\n 'ORIGIN',\n REGEXP_REPLACE(REGEXP_REPLACE(path, '[^0-9]+', '_'), '^_|_$', '')\n ) AS trace_address,\n _inserted_timestamp,\n OBJECT_AGG(\n key,\n VALUE\n ) AS trace_json,\n CASE\n WHEN trace_address = 'ORIGIN' THEN NULL\n WHEN POSITION(\n '_' IN trace_address\n ) = 0 THEN 'ORIGIN'\n ELSE REGEXP_REPLACE(\n trace_address,\n '_[0-9]+$',\n '',\n 1,\n 1\n )\n END AS parent_trace_address,\n SPLIT(\n trace_address,\n '_'\n ) AS str_array\n FROM\n raw_traces,\n TABLE(\n FLATTEN(\n input => PARSE_JSON(full_traces),\n recursive => TRUE\n )\n ) f\n WHERE\n f.index IS NULL\n AND f.key != 'calls'\n AND f.path != 'result'\n GROUP BY\n block_number,\n tx_position,\n trace_address,\n _inserted_timestamp\n ),\n sub_traces AS (\n SELECT\n block_number,\n tx_position,\n parent_trace_address,\n COUNT(*) AS sub_traces\n FROM\n flatten_traces\n GROUP BY\n block_number,\n tx_position,\n parent_trace_address\n ),\n num_array AS (\n SELECT\n block_number,\n tx_position,\n trace_address,\n ARRAY_AGG(flat_value) AS num_array\n FROM\n (\n SELECT\n block_number,\n tx_position,\n trace_address,\n IFF(\n VALUE :: STRING = 'ORIGIN',\n -1,\n VALUE :: INT\n ) AS flat_value\n FROM\n flatten_traces,\n LATERAL FLATTEN (\n input => str_array\n )\n )\n GROUP BY\n block_number,\n tx_position,\n trace_address\n ),\n cleaned_traces AS (\n SELECT\n b.block_number,\n b.tx_position,\n b.trace_address,\n IFNULL(\n sub_traces,\n 0\n ) AS sub_traces,\n num_array,\n ROW_NUMBER() over (\n PARTITION BY b.block_number,\n b.tx_position\n ORDER BY\n num_array ASC\n ) - 1 AS trace_index,\n trace_json,\n b._inserted_timestamp\n FROM\n flatten_traces b\n LEFT JOIN sub_traces s\n ON b.block_number = s.block_number\n AND b.tx_position = s.tx_position\n AND b.trace_address = s.parent_trace_address\n JOIN num_array n\n ON b.block_number = n.block_number\n AND b.tx_position = n.tx_position\n AND b.trace_address = n.trace_address\n ),\n final_traces AS (\n SELECT\n tx_position,\n trace_index,\n block_number,\n trace_address,\n trace_json :error :: STRING AS error_reason,\n trace_json :from :: STRING AS from_address,\n trace_json :to :: STRING AS to_address,\n IFNULL(\n utils.udf_hex_to_int(\n trace_json :value :: STRING\n ),\n '0'\n ) AS eth_value_precise_raw,\n ethereum.utils.udf_decimal_adjust(\n eth_value_precise_raw,\n 18\n ) AS eth_value_precise,\n eth_value_precise :: FLOAT AS eth_value,\n utils.udf_hex_to_int(\n trace_json :gas :: STRING\n ) :: INT AS gas,\n utils.udf_hex_to_int(\n trace_json :gasUsed :: STRING\n ) :: INT AS gas_used,\n trace_json :input :: STRING AS input,\n trace_json :output :: STRING AS output,\n trace_json :type :: STRING AS TYPE,\n concat_ws(\n '_',\n TYPE,\n trace_address\n ) AS identifier,\n concat_ws(\n '-',\n block_number,\n tx_position,\n identifier\n ) AS _call_id,\n _inserted_timestamp,\n trace_json AS DATA,\n sub_traces\n FROM\n cleaned_traces\n ),\n new_records AS (\n SELECT\n f.block_number,\n t.tx_hash,\n t.block_timestamp,\n t.tx_status,\n f.tx_position,\n f.trace_index,\n f.from_address,\n f.to_address,\n f.eth_value_precise_raw,\n f.eth_value_precise,\n f.eth_value,\n f.gas,\n f.gas_used,\n f.input,\n f.output,\n f.type,\n f.identifier,\n f.sub_traces,\n f.error_reason,\n IFF(\n f.error_reason IS NULL,\n 'SUCCESS',\n 'FAIL'\n ) AS trace_status,\n f.data,\n IFF(\n t.tx_hash IS NULL\n OR t.block_timestamp IS NULL\n OR t.tx_status IS NULL,\n TRUE,\n FALSE\n ) AS is_pending,\n f._call_id,\n f._inserted_timestamp\n FROM\n final_traces f\n LEFT OUTER JOIN transactions t\n ON f.tx_position = t.position\n AND f.block_number = t.block_number\n ),\n traces_final AS (\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n tx_status,\n tx_position,\n trace_index,\n from_address,\n to_address,\n eth_value_precise_raw,\n eth_value_precise,\n eth_value,\n gas,\n gas_used,\n input,\n output,\n TYPE,\n identifier,\n sub_traces,\n error_reason,\n trace_status,\n DATA,\n is_pending,\n _call_id,\n _inserted_timestamp\n FROM\n new_records\n )\n,\n\ndecoded_traces AS (\n SELECT\n t.block_number,\n t.tx_hash,\n t.block_timestamp,\n t.tx_status,\n t.tx_position,\n t.trace_index,\n t.from_address,\n t.to_address,\n t.eth_value AS VALUE,\n t.eth_value_precise_raw AS value_precise_raw,\n t.eth_value_precise AS value_precise,\n t.gas,\n t.gas_used,\n t.TYPE AS TYPE,\n t.identifier,\n t.sub_traces,\n t.error_reason,\n t.trace_status,\n A.abi AS abi,\n A.function_name AS function_name,\n CASE\n WHEN TYPE = 'DELEGATECALL' THEN from_address\n ELSE to_address\n END AS abi_address,\n t.input AS input,\n COALESCE(\n t.output,\n '0x'\n ) AS output,\n OBJECT_CONSTRUCT('input', input, 'output', output, 'function_name', function_name) AS function_data,\n utils.udf_evm_decode_trace(abi, function_data)[0] AS decoded_data\n FROM traces_final t\n INNER JOIN ethereum.SILVER.COMPLETE_FUNCTION_ABIS A\n ON A.parent_contract_address = abi_address\n AND LEFT(\n t.input,\n 10\n ) = LEFT(\n A.function_signature,\n 10\n )\n AND t.block_number BETWEEN A.start_block\n AND A.end_block\n AND t.block_number IS NOT NULL\n\n)\n\nSELECT\n block_number,\n tx_hash,\n block_timestamp,\n tx_status,\n tx_position,\n trace_index,\n from_address,\n to_address,\n VALUE,\n value_precise_raw,\n value_precise,\n gas,\n gas_used,\n TYPE,\n identifier,\n sub_traces,\n error_reason,\n trace_status,\n input,\n output,\n decoded_data :function_name :: STRING AS function_name,\n decoded_data :decoded_input_data AS decoded_input_data,\n decoded_data :decoded_output_data AS decoded_output_data,\n md5(\n cast(\n coalesce(\n cast(tx_hash as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) || '-' || coalesce(\n cast(trace_index as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) as TEXT\n )\n ) AS fact_decoded_traces_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM decoded_traces\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_fact_traces(\n block_height INTEGER,\n to_latest BOOLEAN\n )\n COPY GRANTS\n RETURNS TABLE(tx_hash STRING, block_number NUMBER, block_timestamp TIMESTAMP_NTZ(9), from_address STRING, to_address STRING, value FLOAT, value_precise_raw STRING, value_precise STRING, gas NUMBER, gas_used NUMBER, input STRING, output STRING, TYPE STRING, identifier STRING, DATA OBJECT, tx_status STRING, sub_traces NUMBER, trace_status STRING, error_reason STRING, trace_index NUMBER, fact_traces_id STRING, inserted_timestamp TIMESTAMP_NTZ(9), modified_timestamp TIMESTAMP_NTZ(9))\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the traces for a given block height. If to_latest is true, it will continue fetching traces until the latest block. Otherwise, it will fetch traces until the block height is reached.$$\n\n AS\n $$\n \nWITH spine AS (\n \n WITH heights AS (\n \n SELECT\n ethereum_mainnet.udf_rpc('eth_blockNumber', []) as result,\n utils.udf_hex_to_int(result)::integer AS latest_block_height,\n COALESCE(\n block_height,\n latest_block_height\n ) AS min_height,\n iff(\n COALESCE(to_latest, false),\n latest_block_height,\n min_height\n ) AS max_height\n ),\n block_spine AS (\n SELECT\n ROW_NUMBER() OVER (\n ORDER BY\n NULL\n ) - 1 + COALESCE(block_height, latest_block_height)::integer AS block_number,\n min_height,\n IFF(\n COALESCE(to_latest, false),\n block_height,\n min_height\n ) AS max_height,\n latest_block_height\n FROM\n TABLE(generator(ROWCOUNT => 1000)),\n heights qualify block_number BETWEEN min_height\n AND max_height\n )\n\n SELECT\n CEIL(ROW_NUMBER() OVER (ORDER BY block_number) / 10) AS batch_id,\n block_number,\n latest_block_height\n FROM block_spine\n),\nraw_receipts AS (\n \n WITH blocks_agg AS (\n SELECT\n batch_id,\n latest_block_height,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'eth_getBlockReceipts',\n [utils.udf_int_to_hex(block_number)]\n )\n ) AS params\n FROM\n spine\n GROUP BY 1,2\n ),\n\n get_batch_result AS (\n SELECT\n latest_block_height,\n \n live.udf_api(\n '{endpoint}'\n ,params\n ,concat_ws('/', 'integration', _utils.udf_provider(), 'ethereum', 'mainnet')\n )::VARIANT:data::ARRAY AS data\n\n FROM blocks_agg\n )\n\n SELECT\n latest_block_height,\n utils.udf_hex_to_int(w.value:blockNumber::STRING)::INT AS block_number,\n w.value AS DATA\n FROM\n (SELECT\n latest_block_height,\n v.value:result AS DATA\n FROM get_batch_result,\n LATERAL FLATTEN(data) v), LATERAL FLATTEN(data) w\n),\nraw_block_txs AS (\n \n WITH blocks_agg AS (\n SELECT\n batch_id,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'eth_getBlockByNumber',\n [utils.udf_int_to_hex(block_number), true]\n )\n ) AS params\n FROM\n spine\n GROUP BY batch_id\n ), result as (\n SELECT\n \n live.udf_api(\n '{endpoint}'\n ,params\n ,concat_ws('/', 'integration', _utils.udf_provider(), 'ethereum', 'mainnet')\n )::VARIANT:data::ARRAY AS data\n\n FROM blocks_agg\n )\n , flattened as (\n SELECT\n COALESCE(value:result, {'error':value:error}) AS result\n FROM result, LATERAL FLATTEN(input => result.data) v\n )\n\n SELECT\n utils.udf_hex_to_int(result:number::STRING)::INT AS block_number,\n result as data\n FROM flattened\n),\nraw_transactions AS (\n \n SELECT\n block_number,\n v.value as DATA\n FROM\n raw_block_txs AS r,\n lateral flatten(r.data:transactions) v\n),\nblocks AS (\n \n SELECT\n block_number,\n utils.udf_hex_to_int(DATA:timestamp::STRING)::TIMESTAMP AS block_timestamp,\n utils.udf_hex_to_int(DATA:baseFeePerGas::STRING)::INT AS base_fee_per_gas,\n utils.udf_hex_to_int(DATA:difficulty::STRING)::INT AS difficulty,\n DATA:extraData::STRING AS extra_data,\n utils.udf_hex_to_int(DATA:gasLimit::STRING)::INT AS gas_limit,\n utils.udf_hex_to_int(DATA:gasUsed::STRING)::INT AS gas_used,\n DATA:hash::STRING AS HASH,\n DATA:logsBloom::STRING AS logs_bloom,\n DATA:miner::STRING AS miner,\n utils.udf_hex_to_int(DATA:nonce::STRING)::INT AS nonce,\n utils.udf_hex_to_int(DATA:number::STRING)::INT AS NUMBER,\n DATA:parentHash::STRING AS parent_hash,\n DATA:receiptsRoot::STRING AS receipts_root,\n DATA:sha3Uncles::STRING AS sha3_uncles,\n utils.udf_hex_to_int(DATA:size::STRING)::INT AS SIZE,\n DATA:stateRoot::STRING AS state_root,\n utils.udf_hex_to_int(DATA:totalDifficulty::STRING)::INT AS total_difficulty,\n ARRAY_SIZE(DATA:transactions) AS tx_count,\n DATA:transactionsRoot::STRING AS transactions_root,\n DATA:uncles AS uncles,\n DATA:withdrawals AS withdrawals,\n DATA:withdrawalsRoot::STRING AS withdrawals_root,\n md5(\n CAST(\n COALESCE(\n CAST(block_number AS TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) AS TEXT\n )\n ) AS blocks_id,\n utils.udf_hex_to_int(DATA:blobGasUsed::STRING)::INT AS blob_gas_used,\n utils.udf_hex_to_int(DATA:excessBlobGas::STRING)::INT AS excess_blob_gas\n FROM\n raw_block_txs\n),\nreceipts AS (\n \n SELECT\n latest_block_height,\n block_number,\n DATA :blockHash::STRING AS block_hash,\n utils.udf_hex_to_int(DATA :blockNumber::STRING)::INT AS blockNumber,\n utils.udf_hex_to_int(DATA :cumulativeGasUsed::STRING)::INT AS cumulative_gas_used,\n utils.udf_hex_to_int(DATA :effectiveGasPrice::STRING)::INT / pow(10, 9) AS effective_gas_price,\n DATA :from::STRING AS from_address,\n utils.udf_hex_to_int(DATA :gasUsed::STRING)::INT AS gas_used,\n DATA :logs AS logs,\n DATA :logsBloom::STRING AS logs_bloom,\n utils.udf_hex_to_int(DATA :status::STRING)::INT AS status,\n CASE\n WHEN status = 1 THEN TRUE\n ELSE FALSE\n END AS tx_success,\n CASE\n WHEN status = 1 THEN 'SUCCESS'\n ELSE 'FAIL'\n END AS tx_status,\n DATA :to::STRING AS to_address1,\n CASE\n WHEN to_address1 = '' THEN NULL\n ELSE to_address1\n END AS to_address,\n DATA :transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(DATA :transactionIndex::STRING)::INT AS POSITION,\n utils.udf_hex_to_int(DATA :type::STRING)::INT AS TYPE,\n utils.udf_hex_to_int(DATA :effectiveGasPrice::STRING)::INT AS blob_gas_price,\n utils.udf_hex_to_int(DATA :gasUsed::STRING)::INT AS blob_gas_used\n FROM\n raw_receipts\n),\ntransactions AS (\n \n SELECT\n A.block_number AS block_number,\n A.data :blockHash::STRING AS block_hash,\n utils.udf_hex_to_int(A.data :blockNumber::STRING)::INT AS blockNumber,\n utils.udf_hex_to_int(A.data :chainId::STRING)::INT AS chain_id,\n A.data :from::STRING AS from_address,\n utils.udf_hex_to_int(A.data :gas::STRING)::INT AS gas,\n utils.udf_hex_to_int(A.data :gasPrice::STRING)::INT / pow(10, 9) AS gas_price,\n A.data :hash::STRING AS tx_hash,\n A.data :input::STRING AS input_data,\n SUBSTR(input_data, 1, 10) AS origin_function_signature,\n utils.udf_hex_to_int(A.data :maxFeePerGas::STRING)::INT / pow(10, 9) AS max_fee_per_gas,\n utils.udf_hex_to_int(\n A.data :maxPriorityFeePerGas::STRING\n )::INT / pow(10, 9) AS max_priority_fee_per_gas,\n utils.udf_hex_to_int(A.data :nonce::STRING)::INT AS nonce,\n A.data :r::STRING AS r,\n A.data :s::STRING AS s,\n A.data :to::STRING AS to_address1,\n utils.udf_hex_to_int(A.data :transactionIndex::STRING)::INT AS POSITION,\n A.data :type::STRING AS TYPE,\n A.data :v::STRING AS v,\n utils.udf_hex_to_int(A.data :value::STRING) AS value_precise_raw,\n value_precise_raw * power(10, -18) AS value_precise,\n value_precise::FLOAT AS VALUE,\n A.data :accessList AS access_list,\n A.data,\n A.data: blobVersionedHashes::ARRAY AS blob_versioned_hashes,\n utils.udf_hex_to_int(A.data: maxFeePerGas::STRING)::INT AS max_fee_per_blob_gas,\n block_timestamp,\n CASE\n WHEN block_timestamp IS NULL\n OR tx_status IS NULL THEN TRUE\n ELSE FALSE\n END AS is_pending,\n r.gas_used,\n tx_success,\n tx_status,\n cumulative_gas_used,\n effective_gas_price,\n utils.udf_hex_to_int(A.data :gasPrice) * power(10, -18) * r.gas_used AS tx_fee_precise,\n COALESCE(tx_fee_precise::FLOAT, 0) AS tx_fee,\n r.type as tx_type,\n r.blob_gas_used,\n r.blob_gas_price,\n FROM\n raw_transactions AS A\n LEFT JOIN blocks AS b on b.block_number = A.block_number\n LEFT JOIN receipts AS r on r.tx_hash = A.data :hash::STRING\n),\nraw_traces AS (\n \n WITH blocks_agg AS (\n SELECT\n batch_id,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'debug_traceBlockByNumber',\n [utils.udf_int_to_hex(s.block_number), {'tracer': 'callTracer'}],\n s.block_number -- to put block_number in the id to retrieve the block numberlater\n )\n ) AS params\n FROM\n spine s\n GROUP BY batch_id\n ), result as (\n SELECT\n \n live.udf_api(\n '{endpoint}'\n ,params\n ,concat_ws('/', 'integration', _utils.udf_provider(), 'ethereum', 'mainnet')\n )::VARIANT:data::ARRAY AS data\n\n FROM blocks_agg\n ), flattened as (\n SELECT\n value:id::INT AS block_number,\n COALESCE(value:result, {'error':value:error}) AS result\n FROM result, LATERAL FLATTEN(input => result.data) v\n )\n\n SELECT\n s.block_number,\n v.index::INT AS tx_position, -- mimic's streamline's logic to add tx_position\n v.value:result AS full_traces,\n SYSDATE() AS _inserted_timestamp\n FROM flattened s,\n LATERAL FLATTEN(input => result) v\n),\n\n\n flatten_traces AS (\n SELECT\n block_number,\n tx_position,\n IFF(\n path IN (\n 'result',\n 'result.value',\n 'result.type',\n 'result.to',\n 'result.input',\n 'result.gasUsed',\n 'result.gas',\n 'result.from',\n 'result.output',\n 'result.error',\n 'result.revertReason',\n 'gasUsed',\n 'gas',\n 'type',\n 'to',\n 'from',\n 'value',\n 'input',\n 'error',\n 'output',\n 'revertReason'\n ),\n 'ORIGIN',\n REGEXP_REPLACE(REGEXP_REPLACE(path, '[^0-9]+', '_'), '^_|_$', '')\n ) AS trace_address,\n _inserted_timestamp,\n OBJECT_AGG(\n key,\n VALUE\n ) AS trace_json,\n CASE\n WHEN trace_address = 'ORIGIN' THEN NULL\n WHEN POSITION(\n '_' IN trace_address\n ) = 0 THEN 'ORIGIN'\n ELSE REGEXP_REPLACE(\n trace_address,\n '_[0-9]+$',\n '',\n 1,\n 1\n )\n END AS parent_trace_address,\n SPLIT(\n trace_address,\n '_'\n ) AS str_array\n FROM\n raw_traces,\n TABLE(\n FLATTEN(\n input => PARSE_JSON(full_traces),\n recursive => TRUE\n )\n ) f\n WHERE\n f.index IS NULL\n AND f.key != 'calls'\n AND f.path != 'result'\n GROUP BY\n block_number,\n tx_position,\n trace_address,\n _inserted_timestamp\n ),\n sub_traces AS (\n SELECT\n block_number,\n tx_position,\n parent_trace_address,\n COUNT(*) AS sub_traces\n FROM\n flatten_traces\n GROUP BY\n block_number,\n tx_position,\n parent_trace_address\n ),\n num_array AS (\n SELECT\n block_number,\n tx_position,\n trace_address,\n ARRAY_AGG(flat_value) AS num_array\n FROM\n (\n SELECT\n block_number,\n tx_position,\n trace_address,\n IFF(\n VALUE :: STRING = 'ORIGIN',\n -1,\n VALUE :: INT\n ) AS flat_value\n FROM\n flatten_traces,\n LATERAL FLATTEN (\n input => str_array\n )\n )\n GROUP BY\n block_number,\n tx_position,\n trace_address\n ),\n cleaned_traces AS (\n SELECT\n b.block_number,\n b.tx_position,\n b.trace_address,\n IFNULL(\n sub_traces,\n 0\n ) AS sub_traces,\n num_array,\n ROW_NUMBER() over (\n PARTITION BY b.block_number,\n b.tx_position\n ORDER BY\n num_array ASC\n ) - 1 AS trace_index,\n trace_json,\n b._inserted_timestamp\n FROM\n flatten_traces b\n LEFT JOIN sub_traces s\n ON b.block_number = s.block_number\n AND b.tx_position = s.tx_position\n AND b.trace_address = s.parent_trace_address\n JOIN num_array n\n ON b.block_number = n.block_number\n AND b.tx_position = n.tx_position\n AND b.trace_address = n.trace_address\n ),\n final_traces AS (\n SELECT\n tx_position,\n trace_index,\n block_number,\n trace_address,\n trace_json :error :: STRING AS error_reason,\n trace_json :from :: STRING AS from_address,\n trace_json :to :: STRING AS to_address,\n IFNULL(\n utils.udf_hex_to_int(\n trace_json :value :: STRING\n ),\n '0'\n ) AS eth_value_precise_raw,\n ethereum.utils.udf_decimal_adjust(\n eth_value_precise_raw,\n 18\n ) AS eth_value_precise,\n eth_value_precise :: FLOAT AS eth_value,\n utils.udf_hex_to_int(\n trace_json :gas :: STRING\n ) :: INT AS gas,\n utils.udf_hex_to_int(\n trace_json :gasUsed :: STRING\n ) :: INT AS gas_used,\n trace_json :input :: STRING AS input,\n trace_json :output :: STRING AS output,\n trace_json :type :: STRING AS TYPE,\n concat_ws(\n '_',\n TYPE,\n trace_address\n ) AS identifier,\n concat_ws(\n '-',\n block_number,\n tx_position,\n identifier\n ) AS _call_id,\n _inserted_timestamp,\n trace_json AS DATA,\n sub_traces\n FROM\n cleaned_traces\n ),\n new_records AS (\n SELECT\n f.block_number,\n t.tx_hash,\n t.block_timestamp,\n t.tx_status,\n f.tx_position,\n f.trace_index,\n f.from_address,\n f.to_address,\n f.eth_value_precise_raw,\n f.eth_value_precise,\n f.eth_value,\n f.gas,\n f.gas_used,\n f.input,\n f.output,\n f.type,\n f.identifier,\n f.sub_traces,\n f.error_reason,\n IFF(\n f.error_reason IS NULL,\n 'SUCCESS',\n 'FAIL'\n ) AS trace_status,\n f.data,\n IFF(\n t.tx_hash IS NULL\n OR t.block_timestamp IS NULL\n OR t.tx_status IS NULL,\n TRUE,\n FALSE\n ) AS is_pending,\n f._call_id,\n f._inserted_timestamp\n FROM\n final_traces f\n LEFT OUTER JOIN transactions t\n ON f.tx_position = t.position\n AND f.block_number = t.block_number\n ),\n traces_final AS (\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n tx_status,\n tx_position,\n trace_index,\n from_address,\n to_address,\n eth_value_precise_raw,\n eth_value_precise,\n eth_value,\n gas,\n gas_used,\n input,\n output,\n TYPE,\n identifier,\n sub_traces,\n error_reason,\n trace_status,\n DATA,\n is_pending,\n _call_id,\n _inserted_timestamp\n FROM\n new_records\n )\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n from_address,\n to_address,\n eth_value AS VALUE,\n eth_value_precise_raw AS value_precise_raw,\n eth_value_precise AS value_precise,\n gas,\n gas_used,\n input,\n output,\n TYPE,\n identifier,\n DATA,\n tx_status,\n sub_traces,\n trace_status,\n error_reason,\n trace_index,\n md5(\n cast(\n coalesce(\n cast(tx_hash as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) || '-' || coalesce(\n cast(trace_index as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) as TEXT\n )\n ) as fact_traces_id,\n COALESCE(\n _inserted_timestamp,\n '2000-01-01'\n ) AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM traces_final\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_fact_transactions(\n block_height INTEGER,\n to_latest BOOLEAN\n )\n COPY GRANTS\n RETURNS TABLE(block_number NUMBER, block_timestamp TIMESTAMP_NTZ, block_hash STRING, tx_hash STRING, nonce NUMBER, POSITION NUMBER, origin_function_signature STRING, from_address STRING, to_address STRING, VALUE FLOAT, value_precise_raw STRING, value_precise STRING, tx_fee FLOAT, tx_fee_precise STRING, gas_price FLOAT, gas_limit NUMBER, gas_used NUMBER, cumulative_gas_used NUMBER, input_data STRING, status STRING, effective_gas_price FLOAT, max_fee_per_gas FLOAT, max_priority_fee_per_gas FLOAT, r STRING, s STRING, v STRING, tx_type NUMBER, chain_id NUMBER, blob_versioned_hashes ARRAY, max_fee_per_blob_gas NUMBER, blob_gas_used NUMBER, blob_gas_price NUMBER, fact_transactions_id STRING, inserted_timestamp TIMESTAMP_NTZ, modified_timestamp TIMESTAMP_NTZ)\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the transactions for a given block height. If to_latest is true, it will continue fetching transactions until the latest block. Otherwise, it will fetch transactions until the block height is reached.$$\n\n AS\n $$\n \n\nWITH spine AS (\n \n WITH heights AS (\n \n SELECT\n ethereum_mainnet.udf_rpc('eth_blockNumber', []) as result,\n utils.udf_hex_to_int(result)::integer AS latest_block_height,\n COALESCE(\n block_height,\n latest_block_height\n ) AS min_height,\n iff(\n COALESCE(to_latest, false),\n latest_block_height,\n min_height\n ) AS max_height\n ),\n block_spine AS (\n SELECT\n ROW_NUMBER() OVER (\n ORDER BY\n NULL\n ) - 1 + COALESCE(block_height, latest_block_height)::integer AS block_number,\n min_height,\n IFF(\n COALESCE(to_latest, false),\n block_height,\n min_height\n ) AS max_height,\n latest_block_height\n FROM\n TABLE(generator(ROWCOUNT => 1000)),\n heights qualify block_number BETWEEN min_height\n AND max_height\n )\n\n SELECT\n CEIL(ROW_NUMBER() OVER (ORDER BY block_number) / 5) AS batch_id,\n block_number,\n latest_block_height\n FROM block_spine\n),\nraw_receipts AS (\n \n WITH blocks_agg AS (\n SELECT\n batch_id,\n latest_block_height,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'eth_getBlockReceipts',\n [utils.udf_int_to_hex(block_number)]\n )\n ) AS params\n FROM\n spine\n GROUP BY 1,2\n ),\n\n get_batch_result AS (\n SELECT\n latest_block_height,\n \n live.udf_api(\n '{endpoint}'\n ,params\n ,concat_ws('/', 'integration', _utils.udf_provider(), 'ethereum', 'mainnet')\n )::VARIANT:data::ARRAY AS data\n\n FROM blocks_agg\n )\n\n SELECT\n latest_block_height,\n utils.udf_hex_to_int(w.value:blockNumber::STRING)::INT AS block_number,\n w.value AS DATA\n FROM\n (SELECT\n latest_block_height,\n v.value:result AS DATA\n FROM get_batch_result,\n LATERAL FLATTEN(data) v), LATERAL FLATTEN(data) w\n),\nraw_block_txs AS (\n \n WITH blocks_agg AS (\n SELECT\n batch_id,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'eth_getBlockByNumber',\n [utils.udf_int_to_hex(block_number), true]\n )\n ) AS params\n FROM\n spine\n GROUP BY batch_id\n ), result as (\n SELECT\n \n live.udf_api(\n '{endpoint}'\n ,params\n ,concat_ws('/', 'integration', _utils.udf_provider(), 'ethereum', 'mainnet')\n )::VARIANT:data::ARRAY AS data\n\n FROM blocks_agg\n )\n , flattened as (\n SELECT\n COALESCE(value:result, {'error':value:error}) AS result\n FROM result, LATERAL FLATTEN(input => result.data) v\n )\n\n SELECT\n utils.udf_hex_to_int(result:number::STRING)::INT AS block_number,\n result as data\n FROM flattened\n),\nraw_transactions AS (\n \n SELECT\n block_number,\n v.value as DATA\n FROM\n raw_block_txs AS r,\n lateral flatten(r.data:transactions) v\n),\nblocks AS (\n \n SELECT\n block_number,\n utils.udf_hex_to_int(DATA:timestamp::STRING)::TIMESTAMP AS block_timestamp,\n utils.udf_hex_to_int(DATA:baseFeePerGas::STRING)::INT AS base_fee_per_gas,\n utils.udf_hex_to_int(DATA:difficulty::STRING)::INT AS difficulty,\n DATA:extraData::STRING AS extra_data,\n utils.udf_hex_to_int(DATA:gasLimit::STRING)::INT AS gas_limit,\n utils.udf_hex_to_int(DATA:gasUsed::STRING)::INT AS gas_used,\n DATA:hash::STRING AS HASH,\n DATA:logsBloom::STRING AS logs_bloom,\n DATA:miner::STRING AS miner,\n utils.udf_hex_to_int(DATA:nonce::STRING)::INT AS nonce,\n utils.udf_hex_to_int(DATA:number::STRING)::INT AS NUMBER,\n DATA:parentHash::STRING AS parent_hash,\n DATA:receiptsRoot::STRING AS receipts_root,\n DATA:sha3Uncles::STRING AS sha3_uncles,\n utils.udf_hex_to_int(DATA:size::STRING)::INT AS SIZE,\n DATA:stateRoot::STRING AS state_root,\n utils.udf_hex_to_int(DATA:totalDifficulty::STRING)::INT AS total_difficulty,\n ARRAY_SIZE(DATA:transactions) AS tx_count,\n DATA:transactionsRoot::STRING AS transactions_root,\n DATA:uncles AS uncles,\n DATA:withdrawals AS withdrawals,\n DATA:withdrawalsRoot::STRING AS withdrawals_root,\n md5(\n CAST(\n COALESCE(\n CAST(block_number AS TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) AS TEXT\n )\n ) AS blocks_id,\n utils.udf_hex_to_int(DATA:blobGasUsed::STRING)::INT AS blob_gas_used,\n utils.udf_hex_to_int(DATA:excessBlobGas::STRING)::INT AS excess_blob_gas\n FROM\n raw_block_txs\n),\nreceipts AS (\n \n SELECT\n latest_block_height,\n block_number,\n DATA :blockHash::STRING AS block_hash,\n utils.udf_hex_to_int(DATA :blockNumber::STRING)::INT AS blockNumber,\n utils.udf_hex_to_int(DATA :cumulativeGasUsed::STRING)::INT AS cumulative_gas_used,\n utils.udf_hex_to_int(DATA :effectiveGasPrice::STRING)::INT / pow(10, 9) AS effective_gas_price,\n DATA :from::STRING AS from_address,\n utils.udf_hex_to_int(DATA :gasUsed::STRING)::INT AS gas_used,\n DATA :logs AS logs,\n DATA :logsBloom::STRING AS logs_bloom,\n utils.udf_hex_to_int(DATA :status::STRING)::INT AS status,\n CASE\n WHEN status = 1 THEN TRUE\n ELSE FALSE\n END AS tx_success,\n CASE\n WHEN status = 1 THEN 'SUCCESS'\n ELSE 'FAIL'\n END AS tx_status,\n DATA :to::STRING AS to_address1,\n CASE\n WHEN to_address1 = '' THEN NULL\n ELSE to_address1\n END AS to_address,\n DATA :transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(DATA :transactionIndex::STRING)::INT AS POSITION,\n utils.udf_hex_to_int(DATA :type::STRING)::INT AS TYPE,\n utils.udf_hex_to_int(DATA :effectiveGasPrice::STRING)::INT AS blob_gas_price,\n utils.udf_hex_to_int(DATA :gasUsed::STRING)::INT AS blob_gas_used\n FROM\n raw_receipts\n),\ntransactions AS (\n \n SELECT\n A.block_number AS block_number,\n A.data :blockHash::STRING AS block_hash,\n utils.udf_hex_to_int(A.data :blockNumber::STRING)::INT AS blockNumber,\n utils.udf_hex_to_int(A.data :chainId::STRING)::INT AS chain_id,\n A.data :from::STRING AS from_address,\n utils.udf_hex_to_int(A.data :gas::STRING)::INT AS gas,\n utils.udf_hex_to_int(A.data :gasPrice::STRING)::INT / pow(10, 9) AS gas_price,\n A.data :hash::STRING AS tx_hash,\n A.data :input::STRING AS input_data,\n SUBSTR(input_data, 1, 10) AS origin_function_signature,\n utils.udf_hex_to_int(A.data :maxFeePerGas::STRING)::INT / pow(10, 9) AS max_fee_per_gas,\n utils.udf_hex_to_int(\n A.data :maxPriorityFeePerGas::STRING\n )::INT / pow(10, 9) AS max_priority_fee_per_gas,\n utils.udf_hex_to_int(A.data :nonce::STRING)::INT AS nonce,\n A.data :r::STRING AS r,\n A.data :s::STRING AS s,\n A.data :to::STRING AS to_address1,\n utils.udf_hex_to_int(A.data :transactionIndex::STRING)::INT AS POSITION,\n A.data :type::STRING AS TYPE,\n A.data :v::STRING AS v,\n utils.udf_hex_to_int(A.data :value::STRING) AS value_precise_raw,\n value_precise_raw * power(10, -18) AS value_precise,\n value_precise::FLOAT AS VALUE,\n A.data :accessList AS access_list,\n A.data,\n A.data: blobVersionedHashes::ARRAY AS blob_versioned_hashes,\n utils.udf_hex_to_int(A.data: maxFeePerGas::STRING)::INT AS max_fee_per_blob_gas,\n block_timestamp,\n CASE\n WHEN block_timestamp IS NULL\n OR tx_status IS NULL THEN TRUE\n ELSE FALSE\n END AS is_pending,\n r.gas_used,\n tx_success,\n tx_status,\n cumulative_gas_used,\n effective_gas_price,\n utils.udf_hex_to_int(A.data :gasPrice) * power(10, -18) * r.gas_used AS tx_fee_precise,\n COALESCE(tx_fee_precise::FLOAT, 0) AS tx_fee,\n r.type as tx_type,\n r.blob_gas_used,\n r.blob_gas_price,\n FROM\n raw_transactions AS A\n LEFT JOIN blocks AS b on b.block_number = A.block_number\n LEFT JOIN receipts AS r on r.tx_hash = A.data :hash::STRING\n)\nSELECT\n block_number,\n block_timestamp,\n block_hash,\n tx_hash,\n nonce,\n POSITION,\n origin_function_signature,\n from_address,\n to_address1 as to_address,\n VALUE,\n value_precise_raw,\n value_precise::STRING as value_precise,\n tx_fee,\n tx_fee_precise::STRING as tx_fee_precise,\n gas_price,\n gas AS gas_limit,\n gas_used,\n cumulative_gas_used,\n input_data,\n tx_status AS status,\n effective_gas_price,\n max_fee_per_gas,\n max_priority_fee_per_gas,\n r,\n s,\n v,\n tx_type,\n chain_id,\n blob_versioned_hashes,\n max_fee_per_blob_gas,\n blob_gas_used,\n blob_gas_price,\n md5(\n cast(\n coalesce(\n cast(tx_hash as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) as TEXT\n )\n ) AS fact_transactions_id,\n SYSDATE() inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n transactions\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_fact_token_balances(\n block_height INTEGER,\n to_latest BOOLEAN\n )\n COPY GRANTS\n RETURNS TABLE(block_number NUMBER, block_timestamp TIMESTAMP_NTZ, address STRING, contract_address STRING, balance NUMBER(38,0), fact_token_balances_id STRING, inserted_timestamp TIMESTAMP_NTZ, modified_timestamp TIMESTAMP_NTZ)\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the token balances for a given block height. If to_latest is true, it will continue fetching transactions until the latest block. Otherwise, it will fetch transactions until the block height is reached.$$\n\n AS\n $$\n \nWITH silver_token_balances AS (\n \n WITH silver_logs AS (\n SELECT\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 42)) AS address1,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 42)) AS address2,\n l.contract_address,\n l.block_timestamp,\n l.block_number\n FROM\n (\n \n WITH spine AS (\n \n WITH heights AS (\n \n SELECT\n ethereum_mainnet.udf_rpc('eth_blockNumber', []) as result,\n utils.udf_hex_to_int(result)::integer AS latest_block_height,\n COALESCE(\n block_height,\n latest_block_height\n ) AS min_height,\n iff(\n COALESCE(to_latest, false),\n latest_block_height,\n min_height\n ) AS max_height\n ),\n block_spine AS (\n SELECT\n ROW_NUMBER() OVER (\n ORDER BY\n NULL\n ) - 1 + COALESCE(block_height, latest_block_height)::integer AS block_number,\n min_height,\n IFF(\n COALESCE(to_latest, false),\n block_height,\n min_height\n ) AS max_height,\n latest_block_height\n FROM\n TABLE(generator(ROWCOUNT => 1000)),\n heights qualify block_number BETWEEN min_height\n AND max_height\n )\n\n SELECT\n CEIL(ROW_NUMBER() OVER (ORDER BY block_number) / 5) AS batch_id,\n block_number,\n latest_block_height\n FROM block_spine\n ),\n raw_block_txs AS (\n \n WITH blocks_agg AS (\n SELECT\n batch_id,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'eth_getBlockByNumber',\n [utils.udf_int_to_hex(block_number), true]\n )\n ) AS params\n FROM\n spine\n GROUP BY batch_id\n ), result as (\n SELECT\n \n live.udf_api(\n '{endpoint}'\n ,params\n ,concat_ws('/', 'integration', _utils.udf_provider(), 'ethereum', 'mainnet')\n )::VARIANT:data::ARRAY AS data\n\n FROM blocks_agg\n )\n , flattened as (\n SELECT\n COALESCE(value:result, {'error':value:error}) AS result\n FROM result, LATERAL FLATTEN(input => result.data) v\n )\n\n SELECT\n utils.udf_hex_to_int(result:number::STRING)::INT AS block_number,\n result as data\n FROM flattened\n ),\n raw_receipts AS (\n \n WITH blocks_agg AS (\n SELECT\n batch_id,\n latest_block_height,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'eth_getBlockReceipts',\n [utils.udf_int_to_hex(block_number)]\n )\n ) AS params\n FROM\n spine\n GROUP BY 1,2\n ),\n\n get_batch_result AS (\n SELECT\n latest_block_height,\n \n live.udf_api(\n '{endpoint}'\n ,params\n ,concat_ws('/', 'integration', _utils.udf_provider(), 'ethereum', 'mainnet')\n )::VARIANT:data::ARRAY AS data\n\n FROM blocks_agg\n )\n\n SELECT\n latest_block_height,\n utils.udf_hex_to_int(w.value:blockNumber::STRING)::INT AS block_number,\n w.value AS DATA\n FROM\n (SELECT\n latest_block_height,\n v.value:result AS DATA\n FROM get_batch_result,\n LATERAL FLATTEN(data) v), LATERAL FLATTEN(data) w\n ),\n raw_logs AS (\n \n SELECT\n r.block_number,\n v.value\n FROM\n raw_receipts AS r,\n lateral flatten(r.data:logs) v\n ),\n raw_transactions AS (\n \n SELECT\n block_number,\n v.value as DATA\n FROM\n raw_block_txs AS r,\n lateral flatten(r.data:transactions) v\n ),\n blocks AS (\n \n SELECT\n block_number,\n utils.udf_hex_to_int(DATA:timestamp::STRING)::TIMESTAMP AS block_timestamp,\n utils.udf_hex_to_int(DATA:baseFeePerGas::STRING)::INT AS base_fee_per_gas,\n utils.udf_hex_to_int(DATA:difficulty::STRING)::INT AS difficulty,\n DATA:extraData::STRING AS extra_data,\n utils.udf_hex_to_int(DATA:gasLimit::STRING)::INT AS gas_limit,\n utils.udf_hex_to_int(DATA:gasUsed::STRING)::INT AS gas_used,\n DATA:hash::STRING AS HASH,\n DATA:logsBloom::STRING AS logs_bloom,\n DATA:miner::STRING AS miner,\n utils.udf_hex_to_int(DATA:nonce::STRING)::INT AS nonce,\n utils.udf_hex_to_int(DATA:number::STRING)::INT AS NUMBER,\n DATA:parentHash::STRING AS parent_hash,\n DATA:receiptsRoot::STRING AS receipts_root,\n DATA:sha3Uncles::STRING AS sha3_uncles,\n utils.udf_hex_to_int(DATA:size::STRING)::INT AS SIZE,\n DATA:stateRoot::STRING AS state_root,\n utils.udf_hex_to_int(DATA:totalDifficulty::STRING)::INT AS total_difficulty,\n ARRAY_SIZE(DATA:transactions) AS tx_count,\n DATA:transactionsRoot::STRING AS transactions_root,\n DATA:uncles AS uncles,\n DATA:withdrawals AS withdrawals,\n DATA:withdrawalsRoot::STRING AS withdrawals_root,\n md5(\n CAST(\n COALESCE(\n CAST(block_number AS TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) AS TEXT\n )\n ) AS blocks_id,\n utils.udf_hex_to_int(DATA:blobGasUsed::STRING)::INT AS blob_gas_used,\n utils.udf_hex_to_int(DATA:excessBlobGas::STRING)::INT AS excess_blob_gas\n FROM\n raw_block_txs\n ),\n receipts AS (\n \n SELECT\n latest_block_height,\n block_number,\n DATA :blockHash::STRING AS block_hash,\n utils.udf_hex_to_int(DATA :blockNumber::STRING)::INT AS blockNumber,\n utils.udf_hex_to_int(DATA :cumulativeGasUsed::STRING)::INT AS cumulative_gas_used,\n utils.udf_hex_to_int(DATA :effectiveGasPrice::STRING)::INT / pow(10, 9) AS effective_gas_price,\n DATA :from::STRING AS from_address,\n utils.udf_hex_to_int(DATA :gasUsed::STRING)::INT AS gas_used,\n DATA :logs AS logs,\n DATA :logsBloom::STRING AS logs_bloom,\n utils.udf_hex_to_int(DATA :status::STRING)::INT AS status,\n CASE\n WHEN status = 1 THEN TRUE\n ELSE FALSE\n END AS tx_success,\n CASE\n WHEN status = 1 THEN 'SUCCESS'\n ELSE 'FAIL'\n END AS tx_status,\n DATA :to::STRING AS to_address1,\n CASE\n WHEN to_address1 = '' THEN NULL\n ELSE to_address1\n END AS to_address,\n DATA :transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(DATA :transactionIndex::STRING)::INT AS POSITION,\n utils.udf_hex_to_int(DATA :type::STRING)::INT AS TYPE,\n utils.udf_hex_to_int(DATA :effectiveGasPrice::STRING)::INT AS blob_gas_price,\n utils.udf_hex_to_int(DATA :gasUsed::STRING)::INT AS blob_gas_used\n FROM\n raw_receipts\n ),\n transactions AS (\n \n SELECT\n A.block_number AS block_number,\n A.data :blockHash::STRING AS block_hash,\n utils.udf_hex_to_int(A.data :blockNumber::STRING)::INT AS blockNumber,\n utils.udf_hex_to_int(A.data :chainId::STRING)::INT AS chain_id,\n A.data :from::STRING AS from_address,\n utils.udf_hex_to_int(A.data :gas::STRING)::INT AS gas,\n utils.udf_hex_to_int(A.data :gasPrice::STRING)::INT / pow(10, 9) AS gas_price,\n A.data :hash::STRING AS tx_hash,\n A.data :input::STRING AS input_data,\n SUBSTR(input_data, 1, 10) AS origin_function_signature,\n utils.udf_hex_to_int(A.data :maxFeePerGas::STRING)::INT / pow(10, 9) AS max_fee_per_gas,\n utils.udf_hex_to_int(\n A.data :maxPriorityFeePerGas::STRING\n )::INT / pow(10, 9) AS max_priority_fee_per_gas,\n utils.udf_hex_to_int(A.data :nonce::STRING)::INT AS nonce,\n A.data :r::STRING AS r,\n A.data :s::STRING AS s,\n A.data :to::STRING AS to_address1,\n utils.udf_hex_to_int(A.data :transactionIndex::STRING)::INT AS POSITION,\n A.data :type::STRING AS TYPE,\n A.data :v::STRING AS v,\n utils.udf_hex_to_int(A.data :value::STRING) AS value_precise_raw,\n value_precise_raw * power(10, -18) AS value_precise,\n value_precise::FLOAT AS VALUE,\n A.data :accessList AS access_list,\n A.data,\n A.data: blobVersionedHashes::ARRAY AS blob_versioned_hashes,\n utils.udf_hex_to_int(A.data: maxFeePerGas::STRING)::INT AS max_fee_per_blob_gas,\n block_timestamp,\n CASE\n WHEN block_timestamp IS NULL\n OR tx_status IS NULL THEN TRUE\n ELSE FALSE\n END AS is_pending,\n r.gas_used,\n tx_success,\n tx_status,\n cumulative_gas_used,\n effective_gas_price,\n utils.udf_hex_to_int(A.data :gasPrice) * power(10, -18) * r.gas_used AS tx_fee_precise,\n COALESCE(tx_fee_precise::FLOAT, 0) AS tx_fee,\n r.type as tx_type,\n r.blob_gas_used,\n r.blob_gas_price,\n FROM\n raw_transactions AS A\n LEFT JOIN blocks AS b on b.block_number = A.block_number\n LEFT JOIN receipts AS r on r.tx_hash = A.data :hash::STRING\n ),\n logs AS (\n \n SELECT\n r.block_number,\n txs.block_timestamp,\n r.tx_hash,\n txs.origin_function_signature,\n r.from_address AS origin_from_address,\n r.to_address AS origin_to_address,\n utils.udf_hex_to_int(v.VALUE :logIndex::STRING)::INT AS event_index,\n v.VALUE :address::STRING AS contract_address,\n v.VALUE :blockHash::STRING AS block_hash,\n v.VALUE :data::STRING AS DATA,\n v.VALUE :removed::BOOLEAN AS event_removed,\n v.VALUE :topics AS topics,\n r.tx_status,\n CASE\n WHEN txs.block_timestamp IS NULL\n OR txs.origin_function_signature IS NULL THEN TRUE\n ELSE FALSE\n END AS is_pending,\n FROM\n receipts AS r\n LEFT JOIN transactions AS txs on txs.tx_hash = r.tx_hash,\n lateral flatten(r.logs) v\n )\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n contract_address,\n topics,\n DATA,\n event_removed,\n tx_status,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n md5(\n cast(\n coalesce(\n cast(tx_hash as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) || '-' || coalesce(\n cast(event_index as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) as TEXT\n )\n ) AS fact_event_logs_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n FROM logs\n ) l\n WHERE\n (\n l.topics [0] :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n OR (\n l.topics [0] :: STRING = '0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65'\n AND l.contract_address = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\n )\n OR (\n l.topics [0] :: STRING = '0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c'\n AND l.contract_address = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\n )\n )\n ),\n\n transfers AS (\n SELECT\n DISTINCT block_number,\n block_timestamp,\n contract_address,\n address1 AS address\n FROM\n silver_logs\n WHERE\n address1 IS NOT NULL\n AND address1 <> '0x0000000000000000000000000000000000000000'\n UNION\n SELECT\n DISTINCT block_number,\n block_timestamp,\n contract_address,\n address2 AS address\n FROM\n silver_logs\n WHERE\n address2 IS NOT NULL\n AND address2 <> '0x0000000000000000000000000000000000000000'\n ),\n\n balances AS (\n \n WITH block_spine AS (\n SELECT\n CEIL(ROW_NUMBER() OVER (ORDER BY block_number, address, contract_address) / 10) AS batch_id,\n block_number,\n address,\n contract_address\n FROM\n transfers\n ),\n blocks_agg AS (\n SELECT\n batch_id,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'eth_call',\n ARRAY_CONSTRUCT(\n OBJECT_CONSTRUCT(\n 'to',\n contract_address,\n 'data',\n CONCAT(\n '0x70a08231000000000000000000000000',\n SUBSTR(\n address,\n 3\n )\n )\n ),\n utils.udf_int_to_hex(block_number)\n ),\n CONCAT(\n block_number,\n '-',\n address,\n '-',\n contract_address\n )\n )\n ) AS params\n FROM\n block_spine\n GROUP BY batch_id\n ), result as (\n SELECT\n \n live.udf_api(\n '{endpoint}'\n ,params\n ,concat_ws('/', 'integration', _utils.udf_provider(), 'ethereum', 'mainnet')\n )::VARIANT:data::ARRAY AS data\n\n FROM blocks_agg\n )\n\n SELECT\n SPLIT(value:id::STRING, '-')[0]::INT AS block_number,\n SPLIT(value:id::STRING, '-')[1]::STRING AS address,\n SPLIT(value:id::STRING, '-')[2]::STRING AS contract_address,\n COALESCE(value:result, {'error':value:error}) AS DATA\n FROM result, LATERAL FLATTEN(input => result.data) v\n )\n\n SELECT\n b.block_number,\n block_timestamp,\n address,\n contract_address,\n IFF(DATA :: STRING = '{}', NULL, DATA :: STRING) AS casted_data,\n CASE\n WHEN\n LENGTH(\n casted_data\n ) <= 4300\n AND casted_data IS NOT NULL THEN LEFT(casted_data, 66)\n ELSE NULL\n END\n AS hex_balance,\n TRY_TO_NUMBER(\n CASE\n WHEN LENGTH(\n hex_balance\n ) <= 4300\n AND hex_balance IS NOT NULL THEN utils.udf_hex_to_int(hex_balance)\n ELSE NULL\n END\n ) AS balance,\n SYSDATE() AS _inserted_timestamp,\n cast(\n coalesce(\n cast(block_number as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) || '-' ||\n coalesce(\n cast(address as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) || '-' ||\n coalesce(\n cast(contract_address as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) as TEXT\n ) AS id,\n id AS token_balances_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n FROM balances b\n LEFT JOIN (\n SELECT DISTINCT block_number, block_timestamp FROM transfers\n ) USING (block_number)\n)\n\nSELECT\n block_number,\n block_timestamp,\n address AS user_address,\n contract_address,\n balance,\n token_balances_id AS fact_token_balances_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n silver_token_balances\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_fact_eth_balances(\n block_height INTEGER,\n to_latest BOOLEAN\n )\n COPY GRANTS\n RETURNS TABLE(block_number NUMBER, block_timestamp TIMESTAMP_NTZ, address STRING, balance NUMBER(38,0), fact_eth_balances_id STRING, inserted_timestamp TIMESTAMP_NTZ, modified_timestamp TIMESTAMP_NTZ)\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the eth balances for a given block height. If to_latest is true, it will continue fetching transactions until the latest block. Otherwise, it will fetch transactions until the block height is reached.$$\n\n AS\n $$\n \nWITH silver_eth_balances AS (\n \n WITH silver_traces AS (\n SELECT\n block_timestamp,\n block_number,\n from_address,\n to_address\n FROM\n (\n \n WITH spine AS (\n \n WITH heights AS (\n \n SELECT\n ethereum_mainnet.udf_rpc('eth_blockNumber', []) as result,\n utils.udf_hex_to_int(result)::integer AS latest_block_height,\n COALESCE(\n block_height,\n latest_block_height\n ) AS min_height,\n iff(\n COALESCE(to_latest, false),\n latest_block_height,\n min_height\n ) AS max_height\n ),\n block_spine AS (\n SELECT\n ROW_NUMBER() OVER (\n ORDER BY\n NULL\n ) - 1 + COALESCE(block_height, latest_block_height)::integer AS block_number,\n min_height,\n IFF(\n COALESCE(to_latest, false),\n block_height,\n min_height\n ) AS max_height,\n latest_block_height\n FROM\n TABLE(generator(ROWCOUNT => 1000)),\n heights qualify block_number BETWEEN min_height\n AND max_height\n )\n\n SELECT\n CEIL(ROW_NUMBER() OVER (ORDER BY block_number) / 10) AS batch_id,\n block_number,\n latest_block_height\n FROM block_spine\n ),\n raw_receipts AS (\n \n WITH blocks_agg AS (\n SELECT\n batch_id,\n latest_block_height,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'eth_getBlockReceipts',\n [utils.udf_int_to_hex(block_number)]\n )\n ) AS params\n FROM\n spine\n GROUP BY 1,2\n ),\n\n get_batch_result AS (\n SELECT\n latest_block_height,\n \n live.udf_api(\n '{endpoint}'\n ,params\n ,concat_ws('/', 'integration', _utils.udf_provider(), 'ethereum', 'mainnet')\n )::VARIANT:data::ARRAY AS data\n\n FROM blocks_agg\n )\n\n SELECT\n latest_block_height,\n utils.udf_hex_to_int(w.value:blockNumber::STRING)::INT AS block_number,\n w.value AS DATA\n FROM\n (SELECT\n latest_block_height,\n v.value:result AS DATA\n FROM get_batch_result,\n LATERAL FLATTEN(data) v), LATERAL FLATTEN(data) w\n ),\n raw_block_txs AS (\n \n WITH blocks_agg AS (\n SELECT\n batch_id,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'eth_getBlockByNumber',\n [utils.udf_int_to_hex(block_number), true]\n )\n ) AS params\n FROM\n spine\n GROUP BY batch_id\n ), result as (\n SELECT\n \n live.udf_api(\n '{endpoint}'\n ,params\n ,concat_ws('/', 'integration', _utils.udf_provider(), 'ethereum', 'mainnet')\n )::VARIANT:data::ARRAY AS data\n\n FROM blocks_agg\n )\n , flattened as (\n SELECT\n COALESCE(value:result, {'error':value:error}) AS result\n FROM result, LATERAL FLATTEN(input => result.data) v\n )\n\n SELECT\n utils.udf_hex_to_int(result:number::STRING)::INT AS block_number,\n result as data\n FROM flattened\n ),\n raw_transactions AS (\n \n SELECT\n block_number,\n v.value as DATA\n FROM\n raw_block_txs AS r,\n lateral flatten(r.data:transactions) v\n ),\n blocks AS (\n \n SELECT\n block_number,\n utils.udf_hex_to_int(DATA:timestamp::STRING)::TIMESTAMP AS block_timestamp,\n utils.udf_hex_to_int(DATA:baseFeePerGas::STRING)::INT AS base_fee_per_gas,\n utils.udf_hex_to_int(DATA:difficulty::STRING)::INT AS difficulty,\n DATA:extraData::STRING AS extra_data,\n utils.udf_hex_to_int(DATA:gasLimit::STRING)::INT AS gas_limit,\n utils.udf_hex_to_int(DATA:gasUsed::STRING)::INT AS gas_used,\n DATA:hash::STRING AS HASH,\n DATA:logsBloom::STRING AS logs_bloom,\n DATA:miner::STRING AS miner,\n utils.udf_hex_to_int(DATA:nonce::STRING)::INT AS nonce,\n utils.udf_hex_to_int(DATA:number::STRING)::INT AS NUMBER,\n DATA:parentHash::STRING AS parent_hash,\n DATA:receiptsRoot::STRING AS receipts_root,\n DATA:sha3Uncles::STRING AS sha3_uncles,\n utils.udf_hex_to_int(DATA:size::STRING)::INT AS SIZE,\n DATA:stateRoot::STRING AS state_root,\n utils.udf_hex_to_int(DATA:totalDifficulty::STRING)::INT AS total_difficulty,\n ARRAY_SIZE(DATA:transactions) AS tx_count,\n DATA:transactionsRoot::STRING AS transactions_root,\n DATA:uncles AS uncles,\n DATA:withdrawals AS withdrawals,\n DATA:withdrawalsRoot::STRING AS withdrawals_root,\n md5(\n CAST(\n COALESCE(\n CAST(block_number AS TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) AS TEXT\n )\n ) AS blocks_id,\n utils.udf_hex_to_int(DATA:blobGasUsed::STRING)::INT AS blob_gas_used,\n utils.udf_hex_to_int(DATA:excessBlobGas::STRING)::INT AS excess_blob_gas\n FROM\n raw_block_txs\n ),\n receipts AS (\n \n SELECT\n latest_block_height,\n block_number,\n DATA :blockHash::STRING AS block_hash,\n utils.udf_hex_to_int(DATA :blockNumber::STRING)::INT AS blockNumber,\n utils.udf_hex_to_int(DATA :cumulativeGasUsed::STRING)::INT AS cumulative_gas_used,\n utils.udf_hex_to_int(DATA :effectiveGasPrice::STRING)::INT / pow(10, 9) AS effective_gas_price,\n DATA :from::STRING AS from_address,\n utils.udf_hex_to_int(DATA :gasUsed::STRING)::INT AS gas_used,\n DATA :logs AS logs,\n DATA :logsBloom::STRING AS logs_bloom,\n utils.udf_hex_to_int(DATA :status::STRING)::INT AS status,\n CASE\n WHEN status = 1 THEN TRUE\n ELSE FALSE\n END AS tx_success,\n CASE\n WHEN status = 1 THEN 'SUCCESS'\n ELSE 'FAIL'\n END AS tx_status,\n DATA :to::STRING AS to_address1,\n CASE\n WHEN to_address1 = '' THEN NULL\n ELSE to_address1\n END AS to_address,\n DATA :transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(DATA :transactionIndex::STRING)::INT AS POSITION,\n utils.udf_hex_to_int(DATA :type::STRING)::INT AS TYPE,\n utils.udf_hex_to_int(DATA :effectiveGasPrice::STRING)::INT AS blob_gas_price,\n utils.udf_hex_to_int(DATA :gasUsed::STRING)::INT AS blob_gas_used\n FROM\n raw_receipts\n ),\n transactions AS (\n \n SELECT\n A.block_number AS block_number,\n A.data :blockHash::STRING AS block_hash,\n utils.udf_hex_to_int(A.data :blockNumber::STRING)::INT AS blockNumber,\n utils.udf_hex_to_int(A.data :chainId::STRING)::INT AS chain_id,\n A.data :from::STRING AS from_address,\n utils.udf_hex_to_int(A.data :gas::STRING)::INT AS gas,\n utils.udf_hex_to_int(A.data :gasPrice::STRING)::INT / pow(10, 9) AS gas_price,\n A.data :hash::STRING AS tx_hash,\n A.data :input::STRING AS input_data,\n SUBSTR(input_data, 1, 10) AS origin_function_signature,\n utils.udf_hex_to_int(A.data :maxFeePerGas::STRING)::INT / pow(10, 9) AS max_fee_per_gas,\n utils.udf_hex_to_int(\n A.data :maxPriorityFeePerGas::STRING\n )::INT / pow(10, 9) AS max_priority_fee_per_gas,\n utils.udf_hex_to_int(A.data :nonce::STRING)::INT AS nonce,\n A.data :r::STRING AS r,\n A.data :s::STRING AS s,\n A.data :to::STRING AS to_address1,\n utils.udf_hex_to_int(A.data :transactionIndex::STRING)::INT AS POSITION,\n A.data :type::STRING AS TYPE,\n A.data :v::STRING AS v,\n utils.udf_hex_to_int(A.data :value::STRING) AS value_precise_raw,\n value_precise_raw * power(10, -18) AS value_precise,\n value_precise::FLOAT AS VALUE,\n A.data :accessList AS access_list,\n A.data,\n A.data: blobVersionedHashes::ARRAY AS blob_versioned_hashes,\n utils.udf_hex_to_int(A.data: maxFeePerGas::STRING)::INT AS max_fee_per_blob_gas,\n block_timestamp,\n CASE\n WHEN block_timestamp IS NULL\n OR tx_status IS NULL THEN TRUE\n ELSE FALSE\n END AS is_pending,\n r.gas_used,\n tx_success,\n tx_status,\n cumulative_gas_used,\n effective_gas_price,\n utils.udf_hex_to_int(A.data :gasPrice) * power(10, -18) * r.gas_used AS tx_fee_precise,\n COALESCE(tx_fee_precise::FLOAT, 0) AS tx_fee,\n r.type as tx_type,\n r.blob_gas_used,\n r.blob_gas_price,\n FROM\n raw_transactions AS A\n LEFT JOIN blocks AS b on b.block_number = A.block_number\n LEFT JOIN receipts AS r on r.tx_hash = A.data :hash::STRING\n ),\n raw_traces AS (\n \n WITH blocks_agg AS (\n SELECT\n batch_id,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'debug_traceBlockByNumber',\n [utils.udf_int_to_hex(s.block_number), {'tracer': 'callTracer'}],\n s.block_number -- to put block_number in the id to retrieve the block numberlater\n )\n ) AS params\n FROM\n spine s\n GROUP BY batch_id\n ), result as (\n SELECT\n \n live.udf_api(\n '{endpoint}'\n ,params\n ,concat_ws('/', 'integration', _utils.udf_provider(), 'ethereum', 'mainnet')\n )::VARIANT:data::ARRAY AS data\n\n FROM blocks_agg\n ), flattened as (\n SELECT\n value:id::INT AS block_number,\n COALESCE(value:result, {'error':value:error}) AS result\n FROM result, LATERAL FLATTEN(input => result.data) v\n )\n\n SELECT\n s.block_number,\n v.index::INT AS tx_position, -- mimic's streamline's logic to add tx_position\n v.value:result AS full_traces,\n SYSDATE() AS _inserted_timestamp\n FROM flattened s,\n LATERAL FLATTEN(input => result) v\n ),\n\n\n flatten_traces AS (\n SELECT\n block_number,\n tx_position,\n IFF(\n path IN (\n 'result',\n 'result.value',\n 'result.type',\n 'result.to',\n 'result.input',\n 'result.gasUsed',\n 'result.gas',\n 'result.from',\n 'result.output',\n 'result.error',\n 'result.revertReason',\n 'gasUsed',\n 'gas',\n 'type',\n 'to',\n 'from',\n 'value',\n 'input',\n 'error',\n 'output',\n 'revertReason'\n ),\n 'ORIGIN',\n REGEXP_REPLACE(REGEXP_REPLACE(path, '[^0-9]+', '_'), '^_|_$', '')\n ) AS trace_address,\n _inserted_timestamp,\n OBJECT_AGG(\n key,\n VALUE\n ) AS trace_json,\n CASE\n WHEN trace_address = 'ORIGIN' THEN NULL\n WHEN POSITION(\n '_' IN trace_address\n ) = 0 THEN 'ORIGIN'\n ELSE REGEXP_REPLACE(\n trace_address,\n '_[0-9]+$',\n '',\n 1,\n 1\n )\n END AS parent_trace_address,\n SPLIT(\n trace_address,\n '_'\n ) AS str_array\n FROM\n raw_traces,\n TABLE(\n FLATTEN(\n input => PARSE_JSON(full_traces),\n recursive => TRUE\n )\n ) f\n WHERE\n f.index IS NULL\n AND f.key != 'calls'\n AND f.path != 'result'\n GROUP BY\n block_number,\n tx_position,\n trace_address,\n _inserted_timestamp\n ),\n sub_traces AS (\n SELECT\n block_number,\n tx_position,\n parent_trace_address,\n COUNT(*) AS sub_traces\n FROM\n flatten_traces\n GROUP BY\n block_number,\n tx_position,\n parent_trace_address\n ),\n num_array AS (\n SELECT\n block_number,\n tx_position,\n trace_address,\n ARRAY_AGG(flat_value) AS num_array\n FROM\n (\n SELECT\n block_number,\n tx_position,\n trace_address,\n IFF(\n VALUE :: STRING = 'ORIGIN',\n -1,\n VALUE :: INT\n ) AS flat_value\n FROM\n flatten_traces,\n LATERAL FLATTEN (\n input => str_array\n )\n )\n GROUP BY\n block_number,\n tx_position,\n trace_address\n ),\n cleaned_traces AS (\n SELECT\n b.block_number,\n b.tx_position,\n b.trace_address,\n IFNULL(\n sub_traces,\n 0\n ) AS sub_traces,\n num_array,\n ROW_NUMBER() over (\n PARTITION BY b.block_number,\n b.tx_position\n ORDER BY\n num_array ASC\n ) - 1 AS trace_index,\n trace_json,\n b._inserted_timestamp\n FROM\n flatten_traces b\n LEFT JOIN sub_traces s\n ON b.block_number = s.block_number\n AND b.tx_position = s.tx_position\n AND b.trace_address = s.parent_trace_address\n JOIN num_array n\n ON b.block_number = n.block_number\n AND b.tx_position = n.tx_position\n AND b.trace_address = n.trace_address\n ),\n final_traces AS (\n SELECT\n tx_position,\n trace_index,\n block_number,\n trace_address,\n trace_json :error :: STRING AS error_reason,\n trace_json :from :: STRING AS from_address,\n trace_json :to :: STRING AS to_address,\n IFNULL(\n utils.udf_hex_to_int(\n trace_json :value :: STRING\n ),\n '0'\n ) AS eth_value_precise_raw,\n ethereum.utils.udf_decimal_adjust(\n eth_value_precise_raw,\n 18\n ) AS eth_value_precise,\n eth_value_precise :: FLOAT AS eth_value,\n utils.udf_hex_to_int(\n trace_json :gas :: STRING\n ) :: INT AS gas,\n utils.udf_hex_to_int(\n trace_json :gasUsed :: STRING\n ) :: INT AS gas_used,\n trace_json :input :: STRING AS input,\n trace_json :output :: STRING AS output,\n trace_json :type :: STRING AS TYPE,\n concat_ws(\n '_',\n TYPE,\n trace_address\n ) AS identifier,\n concat_ws(\n '-',\n block_number,\n tx_position,\n identifier\n ) AS _call_id,\n _inserted_timestamp,\n trace_json AS DATA,\n sub_traces\n FROM\n cleaned_traces\n ),\n new_records AS (\n SELECT\n f.block_number,\n t.tx_hash,\n t.block_timestamp,\n t.tx_status,\n f.tx_position,\n f.trace_index,\n f.from_address,\n f.to_address,\n f.eth_value_precise_raw,\n f.eth_value_precise,\n f.eth_value,\n f.gas,\n f.gas_used,\n f.input,\n f.output,\n f.type,\n f.identifier,\n f.sub_traces,\n f.error_reason,\n IFF(\n f.error_reason IS NULL,\n 'SUCCESS',\n 'FAIL'\n ) AS trace_status,\n f.data,\n IFF(\n t.tx_hash IS NULL\n OR t.block_timestamp IS NULL\n OR t.tx_status IS NULL,\n TRUE,\n FALSE\n ) AS is_pending,\n f._call_id,\n f._inserted_timestamp\n FROM\n final_traces f\n LEFT OUTER JOIN transactions t\n ON f.tx_position = t.position\n AND f.block_number = t.block_number\n ),\n traces_final AS (\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n tx_status,\n tx_position,\n trace_index,\n from_address,\n to_address,\n eth_value_precise_raw,\n eth_value_precise,\n eth_value,\n gas,\n gas_used,\n input,\n output,\n TYPE,\n identifier,\n sub_traces,\n error_reason,\n trace_status,\n DATA,\n is_pending,\n _call_id,\n _inserted_timestamp\n FROM\n new_records\n )\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n from_address,\n to_address,\n eth_value AS VALUE,\n eth_value_precise_raw AS value_precise_raw,\n eth_value_precise AS value_precise,\n gas,\n gas_used,\n input,\n output,\n TYPE,\n identifier,\n DATA,\n tx_status,\n sub_traces,\n trace_status,\n error_reason,\n trace_index,\n md5(\n cast(\n coalesce(\n cast(tx_hash as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) || '-' || coalesce(\n cast(trace_index as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) as TEXT\n )\n ) as fact_traces_id,\n COALESCE(\n _inserted_timestamp,\n '2000-01-01'\n ) AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n FROM traces_final\n ) l\n WHERE\n VALUE > 0 -- VALUE is the amount of ETH transferred\n AND trace_status = 'SUCCESS'\n AND tx_status = 'SUCCESS'\n ),\n\n stacked AS (\n SELECT\n DISTINCT block_number,\n block_timestamp,\n from_address AS address\n FROM\n silver_traces\n WHERE\n from_address IS NOT NULL\n AND from_address <> '0x0000000000000000000000000000000000000000'\n UNION\n SELECT\n DISTINCT block_number,\n block_timestamp,\n to_address AS address\n FROM\n silver_traces\n WHERE\n to_address IS NOT NULL\n AND to_address <> '0x0000000000000000000000000000000000000000'\n ),\n\n eth_balances AS (\n \n WITH block_spine AS (\n SELECT\n CEIL(ROW_NUMBER() OVER (ORDER BY block_number, address) / 10) AS batch_id,\n block_number,\n address\n FROM\n stacked\n ),\n blocks_agg AS (\n SELECT\n batch_id,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'eth_getBalance',\n ARRAY_CONSTRUCT(address, utils.udf_int_to_hex(block_number)),\n CONCAT(\n block_number,\n '-',\n address\n )\n )\n ) AS params\n FROM\n block_spine\n GROUP BY batch_id\n ), result as (\n SELECT\n \n live.udf_api(\n '{endpoint}'\n ,params\n ,concat_ws('/', 'integration', _utils.udf_provider(), 'ethereum', 'mainnet')\n )::VARIANT:data::ARRAY AS data\n\n FROM blocks_agg\n )\n\n SELECT\n SPLIT(value:id::STRING, '-')[0]::INT AS block_number,\n SPLIT(value:id::STRING, '-')[1]::STRING AS address,\n COALESCE(value:result, {'error':value:error}) AS DATA\n FROM result, LATERAL FLATTEN(input => result.data) v\n )\n\n SELECT\n block_number,\n block_timestamp,\n address,\n IFF(DATA :: STRING = '{}', NULL, DATA :: STRING) AS casted_data,\n CASE\n WHEN casted_data IS NOT NULL THEN casted_data\n ELSE NULL\n END\n AS hex_balance,\n TRY_TO_NUMBER(\n CASE\n WHEN hex_balance IS NOT NULL THEN utils.udf_hex_to_int(hex_balance)\n ELSE NULL\n END\n ) AS balance,\n SYSDATE() AS _inserted_timestamp,\n cast(\n coalesce(\n cast(block_number as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) || '-' ||\n coalesce(\n cast(address as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) as TEXT\n ) AS id,\n id AS eth_balances_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n FROM eth_balances\n LEFT JOIN (\n SELECT DISTINCT block_number, block_timestamp FROM stacked\n ) USING (block_number)\n)\n\nSELECT\n block_number,\n block_timestamp,\n address AS user_address,\n balance,\n eth_balances_id AS fact_eth_balances_id,\n inserted_timestamp,\n modified_timestamp\nFROM silver_eth_balances\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_ez_decoded_event_logs(\n block_height INTEGER,\n to_latest BOOLEAN\n )\n COPY GRANTS\n RETURNS TABLE(block_number INTEGER, block_timestamp TIMESTAMP_NTZ, tx_hash STRING, event_index INTEGER, contract_address STRING, contract_name STRING, event_name STRING, decoded_log OBJECT, full_decoded_log VARIANT, origin_function_signature STRING, origin_from_address STRING, origin_to_address STRING, topics VARIANT, data STRING, event_removed BOOLEAN, tx_status STRING, ez_decoded_event_logs_id STRING, inserted_timestamp TIMESTAMP_NTZ, modified_timestamp TIMESTAMP_NTZ)\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the ez decoded event logs data for a given block height. If to_latest is true, it will continue fetching blocks until the latest block. Otherwise, it will fetch blocks until the block height is reached.$$\n\n AS\n $$\n \nWITH _fact_event_logs AS (\n \n WITH spine AS (\n \n WITH heights AS (\n \n SELECT\n ethereum_mainnet.udf_rpc('eth_blockNumber', []) as result,\n utils.udf_hex_to_int(result)::integer AS latest_block_height,\n COALESCE(\n block_height,\n latest_block_height\n ) AS min_height,\n iff(\n COALESCE(to_latest, false),\n latest_block_height,\n min_height\n ) AS max_height\n ),\n block_spine AS (\n SELECT\n ROW_NUMBER() OVER (\n ORDER BY\n NULL\n ) - 1 + COALESCE(block_height, latest_block_height)::integer AS block_number,\n min_height,\n IFF(\n COALESCE(to_latest, false),\n block_height,\n min_height\n ) AS max_height,\n latest_block_height\n FROM\n TABLE(generator(ROWCOUNT => 1000)),\n heights qualify block_number BETWEEN min_height\n AND max_height\n )\n\n SELECT\n CEIL(ROW_NUMBER() OVER (ORDER BY block_number) / 5) AS batch_id,\n block_number,\n latest_block_height\n FROM block_spine\n ),\n raw_block_txs AS (\n \n WITH blocks_agg AS (\n SELECT\n batch_id,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'eth_getBlockByNumber',\n [utils.udf_int_to_hex(block_number), true]\n )\n ) AS params\n FROM\n spine\n GROUP BY batch_id\n ), result as (\n SELECT\n \n live.udf_api(\n '{endpoint}'\n ,params\n ,concat_ws('/', 'integration', _utils.udf_provider(), 'ethereum', 'mainnet')\n )::VARIANT:data::ARRAY AS data\n\n FROM blocks_agg\n )\n , flattened as (\n SELECT\n COALESCE(value:result, {'error':value:error}) AS result\n FROM result, LATERAL FLATTEN(input => result.data) v\n )\n\n SELECT\n utils.udf_hex_to_int(result:number::STRING)::INT AS block_number,\n result as data\n FROM flattened\n ),\n raw_receipts AS (\n \n WITH blocks_agg AS (\n SELECT\n batch_id,\n latest_block_height,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'eth_getBlockReceipts',\n [utils.udf_int_to_hex(block_number)]\n )\n ) AS params\n FROM\n spine\n GROUP BY 1,2\n ),\n\n get_batch_result AS (\n SELECT\n latest_block_height,\n \n live.udf_api(\n '{endpoint}'\n ,params\n ,concat_ws('/', 'integration', _utils.udf_provider(), 'ethereum', 'mainnet')\n )::VARIANT:data::ARRAY AS data\n\n FROM blocks_agg\n )\n\n SELECT\n latest_block_height,\n utils.udf_hex_to_int(w.value:blockNumber::STRING)::INT AS block_number,\n w.value AS DATA\n FROM\n (SELECT\n latest_block_height,\n v.value:result AS DATA\n FROM get_batch_result,\n LATERAL FLATTEN(data) v), LATERAL FLATTEN(data) w\n ),\n raw_logs AS (\n \n SELECT\n r.block_number,\n v.value\n FROM\n raw_receipts AS r,\n lateral flatten(r.data:logs) v\n ),\n raw_transactions AS (\n \n SELECT\n block_number,\n v.value as DATA\n FROM\n raw_block_txs AS r,\n lateral flatten(r.data:transactions) v\n ),\n blocks AS (\n \n SELECT\n block_number,\n utils.udf_hex_to_int(DATA:timestamp::STRING)::TIMESTAMP AS block_timestamp,\n utils.udf_hex_to_int(DATA:baseFeePerGas::STRING)::INT AS base_fee_per_gas,\n utils.udf_hex_to_int(DATA:difficulty::STRING)::INT AS difficulty,\n DATA:extraData::STRING AS extra_data,\n utils.udf_hex_to_int(DATA:gasLimit::STRING)::INT AS gas_limit,\n utils.udf_hex_to_int(DATA:gasUsed::STRING)::INT AS gas_used,\n DATA:hash::STRING AS HASH,\n DATA:logsBloom::STRING AS logs_bloom,\n DATA:miner::STRING AS miner,\n utils.udf_hex_to_int(DATA:nonce::STRING)::INT AS nonce,\n utils.udf_hex_to_int(DATA:number::STRING)::INT AS NUMBER,\n DATA:parentHash::STRING AS parent_hash,\n DATA:receiptsRoot::STRING AS receipts_root,\n DATA:sha3Uncles::STRING AS sha3_uncles,\n utils.udf_hex_to_int(DATA:size::STRING)::INT AS SIZE,\n DATA:stateRoot::STRING AS state_root,\n utils.udf_hex_to_int(DATA:totalDifficulty::STRING)::INT AS total_difficulty,\n ARRAY_SIZE(DATA:transactions) AS tx_count,\n DATA:transactionsRoot::STRING AS transactions_root,\n DATA:uncles AS uncles,\n DATA:withdrawals AS withdrawals,\n DATA:withdrawalsRoot::STRING AS withdrawals_root,\n md5(\n CAST(\n COALESCE(\n CAST(block_number AS TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) AS TEXT\n )\n ) AS blocks_id,\n utils.udf_hex_to_int(DATA:blobGasUsed::STRING)::INT AS blob_gas_used,\n utils.udf_hex_to_int(DATA:excessBlobGas::STRING)::INT AS excess_blob_gas\n FROM\n raw_block_txs\n ),\n receipts AS (\n \n SELECT\n latest_block_height,\n block_number,\n DATA :blockHash::STRING AS block_hash,\n utils.udf_hex_to_int(DATA :blockNumber::STRING)::INT AS blockNumber,\n utils.udf_hex_to_int(DATA :cumulativeGasUsed::STRING)::INT AS cumulative_gas_used,\n utils.udf_hex_to_int(DATA :effectiveGasPrice::STRING)::INT / pow(10, 9) AS effective_gas_price,\n DATA :from::STRING AS from_address,\n utils.udf_hex_to_int(DATA :gasUsed::STRING)::INT AS gas_used,\n DATA :logs AS logs,\n DATA :logsBloom::STRING AS logs_bloom,\n utils.udf_hex_to_int(DATA :status::STRING)::INT AS status,\n CASE\n WHEN status = 1 THEN TRUE\n ELSE FALSE\n END AS tx_success,\n CASE\n WHEN status = 1 THEN 'SUCCESS'\n ELSE 'FAIL'\n END AS tx_status,\n DATA :to::STRING AS to_address1,\n CASE\n WHEN to_address1 = '' THEN NULL\n ELSE to_address1\n END AS to_address,\n DATA :transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(DATA :transactionIndex::STRING)::INT AS POSITION,\n utils.udf_hex_to_int(DATA :type::STRING)::INT AS TYPE,\n utils.udf_hex_to_int(DATA :effectiveGasPrice::STRING)::INT AS blob_gas_price,\n utils.udf_hex_to_int(DATA :gasUsed::STRING)::INT AS blob_gas_used\n FROM\n raw_receipts\n ),\n transactions AS (\n \n SELECT\n A.block_number AS block_number,\n A.data :blockHash::STRING AS block_hash,\n utils.udf_hex_to_int(A.data :blockNumber::STRING)::INT AS blockNumber,\n utils.udf_hex_to_int(A.data :chainId::STRING)::INT AS chain_id,\n A.data :from::STRING AS from_address,\n utils.udf_hex_to_int(A.data :gas::STRING)::INT AS gas,\n utils.udf_hex_to_int(A.data :gasPrice::STRING)::INT / pow(10, 9) AS gas_price,\n A.data :hash::STRING AS tx_hash,\n A.data :input::STRING AS input_data,\n SUBSTR(input_data, 1, 10) AS origin_function_signature,\n utils.udf_hex_to_int(A.data :maxFeePerGas::STRING)::INT / pow(10, 9) AS max_fee_per_gas,\n utils.udf_hex_to_int(\n A.data :maxPriorityFeePerGas::STRING\n )::INT / pow(10, 9) AS max_priority_fee_per_gas,\n utils.udf_hex_to_int(A.data :nonce::STRING)::INT AS nonce,\n A.data :r::STRING AS r,\n A.data :s::STRING AS s,\n A.data :to::STRING AS to_address1,\n utils.udf_hex_to_int(A.data :transactionIndex::STRING)::INT AS POSITION,\n A.data :type::STRING AS TYPE,\n A.data :v::STRING AS v,\n utils.udf_hex_to_int(A.data :value::STRING) AS value_precise_raw,\n value_precise_raw * power(10, -18) AS value_precise,\n value_precise::FLOAT AS VALUE,\n A.data :accessList AS access_list,\n A.data,\n A.data: blobVersionedHashes::ARRAY AS blob_versioned_hashes,\n utils.udf_hex_to_int(A.data: maxFeePerGas::STRING)::INT AS max_fee_per_blob_gas,\n block_timestamp,\n CASE\n WHEN block_timestamp IS NULL\n OR tx_status IS NULL THEN TRUE\n ELSE FALSE\n END AS is_pending,\n r.gas_used,\n tx_success,\n tx_status,\n cumulative_gas_used,\n effective_gas_price,\n utils.udf_hex_to_int(A.data :gasPrice) * power(10, -18) * r.gas_used AS tx_fee_precise,\n COALESCE(tx_fee_precise::FLOAT, 0) AS tx_fee,\n r.type as tx_type,\n r.blob_gas_used,\n r.blob_gas_price,\n FROM\n raw_transactions AS A\n LEFT JOIN blocks AS b on b.block_number = A.block_number\n LEFT JOIN receipts AS r on r.tx_hash = A.data :hash::STRING\n ),\n logs AS (\n \n SELECT\n r.block_number,\n txs.block_timestamp,\n r.tx_hash,\n txs.origin_function_signature,\n r.from_address AS origin_from_address,\n r.to_address AS origin_to_address,\n utils.udf_hex_to_int(v.VALUE :logIndex::STRING)::INT AS event_index,\n v.VALUE :address::STRING AS contract_address,\n v.VALUE :blockHash::STRING AS block_hash,\n v.VALUE :data::STRING AS DATA,\n v.VALUE :removed::BOOLEAN AS event_removed,\n v.VALUE :topics AS topics,\n r.tx_status,\n CASE\n WHEN txs.block_timestamp IS NULL\n OR txs.origin_function_signature IS NULL THEN TRUE\n ELSE FALSE\n END AS is_pending,\n FROM\n receipts AS r\n LEFT JOIN transactions AS txs on txs.tx_hash = r.tx_hash,\n lateral flatten(r.logs) v\n )\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n contract_address,\n topics,\n DATA,\n event_removed,\n tx_status,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n md5(\n cast(\n coalesce(\n cast(tx_hash as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) || '-' || coalesce(\n cast(event_index as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) as TEXT\n )\n ) AS fact_event_logs_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n FROM logs\n),\n\n_silver_decoded_logs AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n topics,\n DATA,\n contract_address,\n OBJECT_CONSTRUCT('topics', topics, 'data', data, 'address', contract_address) AS event_data,\n abi,\n utils.udf_evm_decode_log(abi, event_data)[0] AS decoded_data,\n event_removed,\n decoded_data:name::string AS event_name,\n ethereum.utils.udf_transform_logs(decoded_data) AS transformed,\n _log_id,\n inserted_timestamp,\n tx_status\n FROM\n _fact_event_logs\n JOIN\n ethereum.core.dim_contract_abis\n USING\n (contract_address)\n WHERE\n tx_status = 'SUCCESS'\n),\n\n_flatten_logs AS (\n SELECT\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.decoded_data,\n b.transformed,\n b._log_id,\n b.inserted_timestamp,\n OBJECT_AGG(\n DISTINCT CASE\n WHEN v.value :name = '' THEN CONCAT(\n 'anonymous_',\n v.index\n )\n ELSE v.value :name\n END,\n v.value :value\n ) AS decoded_flat\n FROM\n _silver_decoded_logs b,\n LATERAL FLATTEN(\n input => b.transformed :data\n ) v\n GROUP BY\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.decoded_data,\n b.transformed,\n b._log_id,\n b.inserted_timestamp\n)\n\nSELECT\n block_number,\n C.block_timestamp,\n B.tx_hash,\n B.event_index,\n B.contract_address,\n D.name AS contract_name,\n B.event_name,\n B.decoded_flat AS decoded_log,\n B.decoded_data AS full_decoded_log,\n C.origin_function_signature,\n C.origin_from_address,\n C.origin_to_address,\n C.topics,\n C.DATA,\n C.event_removed,\n C.tx_status,\n md5(_log_id) AS fact_decoded_event_logs_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM _flatten_logs AS B\nLEFT JOIN _silver_decoded_logs AS C USING (block_number, _log_id)\nLEFT JOIN ethereum.core.dim_contracts AS D\n ON B.contract_address = D.address\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_ez_native_transfers(\n block_height INTEGER,\n to_latest BOOLEAN\n )\n COPY GRANTS\n RETURNS TABLE(tx_hash STRING, block_number NUMBER(38,0), block_timestamp TIMESTAMP_NTZ(9), tx_position NUMBER(38,0), trace_index NUMBER(19,0), identifier STRING, origin_from_address STRING, origin_to_address STRING, origin_function_signature STRING, from_address STRING, to_address STRING, amount FLOAT, amount_precise_raw STRING, amount_precise STRING, amount_usd FLOAT, ez_native_transfers_id STRING, inserted_timestamp TIMESTAMP_NTZ(9), modified_timestamp TIMESTAMP_NTZ(9))\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the native transfers for a given block height. If to_latest is true, it will continue fetching transfers until the latest block. Otherwise, it will fetch transfers until the block height is reached.$$\n\n AS\n $$\n \nWITH spine AS (\n \n WITH heights AS (\n \n SELECT\n ethereum_mainnet.udf_rpc('eth_blockNumber', []) as result,\n utils.udf_hex_to_int(result)::integer AS latest_block_height,\n COALESCE(\n block_height,\n latest_block_height\n ) AS min_height,\n iff(\n COALESCE(to_latest, false),\n latest_block_height,\n min_height\n ) AS max_height\n ),\n block_spine AS (\n SELECT\n ROW_NUMBER() OVER (\n ORDER BY\n NULL\n ) - 1 + COALESCE(block_height, latest_block_height)::integer AS block_number,\n min_height,\n IFF(\n COALESCE(to_latest, false),\n block_height,\n min_height\n ) AS max_height,\n latest_block_height\n FROM\n TABLE(generator(ROWCOUNT => 1000)),\n heights qualify block_number BETWEEN min_height\n AND max_height\n )\n\n SELECT\n CEIL(ROW_NUMBER() OVER (ORDER BY block_number) / 10) AS batch_id,\n block_number,\n latest_block_height\n FROM block_spine\n),\nraw_receipts AS (\n \n WITH blocks_agg AS (\n SELECT\n batch_id,\n latest_block_height,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'eth_getBlockReceipts',\n [utils.udf_int_to_hex(block_number)]\n )\n ) AS params\n FROM\n spine\n GROUP BY 1,2\n ),\n\n get_batch_result AS (\n SELECT\n latest_block_height,\n \n live.udf_api(\n '{endpoint}'\n ,params\n ,concat_ws('/', 'integration', _utils.udf_provider(), 'ethereum', 'mainnet')\n )::VARIANT:data::ARRAY AS data\n\n FROM blocks_agg\n )\n\n SELECT\n latest_block_height,\n utils.udf_hex_to_int(w.value:blockNumber::STRING)::INT AS block_number,\n w.value AS DATA\n FROM\n (SELECT\n latest_block_height,\n v.value:result AS DATA\n FROM get_batch_result,\n LATERAL FLATTEN(data) v), LATERAL FLATTEN(data) w\n),\nraw_block_txs AS (\n \n WITH blocks_agg AS (\n SELECT\n batch_id,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'eth_getBlockByNumber',\n [utils.udf_int_to_hex(block_number), true]\n )\n ) AS params\n FROM\n spine\n GROUP BY batch_id\n ), result as (\n SELECT\n \n live.udf_api(\n '{endpoint}'\n ,params\n ,concat_ws('/', 'integration', _utils.udf_provider(), 'ethereum', 'mainnet')\n )::VARIANT:data::ARRAY AS data\n\n FROM blocks_agg\n )\n , flattened as (\n SELECT\n COALESCE(value:result, {'error':value:error}) AS result\n FROM result, LATERAL FLATTEN(input => result.data) v\n )\n\n SELECT\n utils.udf_hex_to_int(result:number::STRING)::INT AS block_number,\n result as data\n FROM flattened\n),\nraw_transactions AS (\n \n SELECT\n block_number,\n v.value as DATA\n FROM\n raw_block_txs AS r,\n lateral flatten(r.data:transactions) v\n),\nblocks AS (\n \n SELECT\n block_number,\n utils.udf_hex_to_int(DATA:timestamp::STRING)::TIMESTAMP AS block_timestamp,\n utils.udf_hex_to_int(DATA:baseFeePerGas::STRING)::INT AS base_fee_per_gas,\n utils.udf_hex_to_int(DATA:difficulty::STRING)::INT AS difficulty,\n DATA:extraData::STRING AS extra_data,\n utils.udf_hex_to_int(DATA:gasLimit::STRING)::INT AS gas_limit,\n utils.udf_hex_to_int(DATA:gasUsed::STRING)::INT AS gas_used,\n DATA:hash::STRING AS HASH,\n DATA:logsBloom::STRING AS logs_bloom,\n DATA:miner::STRING AS miner,\n utils.udf_hex_to_int(DATA:nonce::STRING)::INT AS nonce,\n utils.udf_hex_to_int(DATA:number::STRING)::INT AS NUMBER,\n DATA:parentHash::STRING AS parent_hash,\n DATA:receiptsRoot::STRING AS receipts_root,\n DATA:sha3Uncles::STRING AS sha3_uncles,\n utils.udf_hex_to_int(DATA:size::STRING)::INT AS SIZE,\n DATA:stateRoot::STRING AS state_root,\n utils.udf_hex_to_int(DATA:totalDifficulty::STRING)::INT AS total_difficulty,\n ARRAY_SIZE(DATA:transactions) AS tx_count,\n DATA:transactionsRoot::STRING AS transactions_root,\n DATA:uncles AS uncles,\n DATA:withdrawals AS withdrawals,\n DATA:withdrawalsRoot::STRING AS withdrawals_root,\n md5(\n CAST(\n COALESCE(\n CAST(block_number AS TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) AS TEXT\n )\n ) AS blocks_id,\n utils.udf_hex_to_int(DATA:blobGasUsed::STRING)::INT AS blob_gas_used,\n utils.udf_hex_to_int(DATA:excessBlobGas::STRING)::INT AS excess_blob_gas\n FROM\n raw_block_txs\n),\nreceipts AS (\n \n SELECT\n latest_block_height,\n block_number,\n DATA :blockHash::STRING AS block_hash,\n utils.udf_hex_to_int(DATA :blockNumber::STRING)::INT AS blockNumber,\n utils.udf_hex_to_int(DATA :cumulativeGasUsed::STRING)::INT AS cumulative_gas_used,\n utils.udf_hex_to_int(DATA :effectiveGasPrice::STRING)::INT / pow(10, 9) AS effective_gas_price,\n DATA :from::STRING AS from_address,\n utils.udf_hex_to_int(DATA :gasUsed::STRING)::INT AS gas_used,\n DATA :logs AS logs,\n DATA :logsBloom::STRING AS logs_bloom,\n utils.udf_hex_to_int(DATA :status::STRING)::INT AS status,\n CASE\n WHEN status = 1 THEN TRUE\n ELSE FALSE\n END AS tx_success,\n CASE\n WHEN status = 1 THEN 'SUCCESS'\n ELSE 'FAIL'\n END AS tx_status,\n DATA :to::STRING AS to_address1,\n CASE\n WHEN to_address1 = '' THEN NULL\n ELSE to_address1\n END AS to_address,\n DATA :transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(DATA :transactionIndex::STRING)::INT AS POSITION,\n utils.udf_hex_to_int(DATA :type::STRING)::INT AS TYPE,\n utils.udf_hex_to_int(DATA :effectiveGasPrice::STRING)::INT AS blob_gas_price,\n utils.udf_hex_to_int(DATA :gasUsed::STRING)::INT AS blob_gas_used\n FROM\n raw_receipts\n),\ntransactions AS (\n \n SELECT\n A.block_number AS block_number,\n A.data :blockHash::STRING AS block_hash,\n utils.udf_hex_to_int(A.data :blockNumber::STRING)::INT AS blockNumber,\n utils.udf_hex_to_int(A.data :chainId::STRING)::INT AS chain_id,\n A.data :from::STRING AS from_address,\n utils.udf_hex_to_int(A.data :gas::STRING)::INT AS gas,\n utils.udf_hex_to_int(A.data :gasPrice::STRING)::INT / pow(10, 9) AS gas_price,\n A.data :hash::STRING AS tx_hash,\n A.data :input::STRING AS input_data,\n SUBSTR(input_data, 1, 10) AS origin_function_signature,\n utils.udf_hex_to_int(A.data :maxFeePerGas::STRING)::INT / pow(10, 9) AS max_fee_per_gas,\n utils.udf_hex_to_int(\n A.data :maxPriorityFeePerGas::STRING\n )::INT / pow(10, 9) AS max_priority_fee_per_gas,\n utils.udf_hex_to_int(A.data :nonce::STRING)::INT AS nonce,\n A.data :r::STRING AS r,\n A.data :s::STRING AS s,\n A.data :to::STRING AS to_address1,\n utils.udf_hex_to_int(A.data :transactionIndex::STRING)::INT AS POSITION,\n A.data :type::STRING AS TYPE,\n A.data :v::STRING AS v,\n utils.udf_hex_to_int(A.data :value::STRING) AS value_precise_raw,\n value_precise_raw * power(10, -18) AS value_precise,\n value_precise::FLOAT AS VALUE,\n A.data :accessList AS access_list,\n A.data,\n A.data: blobVersionedHashes::ARRAY AS blob_versioned_hashes,\n utils.udf_hex_to_int(A.data: maxFeePerGas::STRING)::INT AS max_fee_per_blob_gas,\n block_timestamp,\n CASE\n WHEN block_timestamp IS NULL\n OR tx_status IS NULL THEN TRUE\n ELSE FALSE\n END AS is_pending,\n r.gas_used,\n tx_success,\n tx_status,\n cumulative_gas_used,\n effective_gas_price,\n utils.udf_hex_to_int(A.data :gasPrice) * power(10, -18) * r.gas_used AS tx_fee_precise,\n COALESCE(tx_fee_precise::FLOAT, 0) AS tx_fee,\n r.type as tx_type,\n r.blob_gas_used,\n r.blob_gas_price,\n FROM\n raw_transactions AS A\n LEFT JOIN blocks AS b on b.block_number = A.block_number\n LEFT JOIN receipts AS r on r.tx_hash = A.data :hash::STRING\n),\nraw_traces AS (\n \n WITH blocks_agg AS (\n SELECT\n batch_id,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'debug_traceBlockByNumber',\n [utils.udf_int_to_hex(s.block_number), {'tracer': 'callTracer'}],\n s.block_number -- to put block_number in the id to retrieve the block numberlater\n )\n ) AS params\n FROM\n spine s\n GROUP BY batch_id\n ), result as (\n SELECT\n \n live.udf_api(\n '{endpoint}'\n ,params\n ,concat_ws('/', 'integration', _utils.udf_provider(), 'ethereum', 'mainnet')\n )::VARIANT:data::ARRAY AS data\n\n FROM blocks_agg\n ), flattened as (\n SELECT\n value:id::INT AS block_number,\n COALESCE(value:result, {'error':value:error}) AS result\n FROM result, LATERAL FLATTEN(input => result.data) v\n )\n\n SELECT\n s.block_number,\n v.index::INT AS tx_position, -- mimic's streamline's logic to add tx_position\n v.value:result AS full_traces,\n SYSDATE() AS _inserted_timestamp\n FROM flattened s,\n LATERAL FLATTEN(input => result) v\n),\n\n flatten_traces AS (\n SELECT\n block_number,\n tx_position,\n IFF(\n path IN (\n 'result',\n 'result.value',\n 'result.type',\n 'result.to',\n 'result.input',\n 'result.gasUsed',\n 'result.gas',\n 'result.from',\n 'result.output',\n 'result.error',\n 'result.revertReason',\n 'gasUsed',\n 'gas',\n 'type',\n 'to',\n 'from',\n 'value',\n 'input',\n 'error',\n 'output',\n 'revertReason'\n ),\n 'ORIGIN',\n REGEXP_REPLACE(REGEXP_REPLACE(path, '[^0-9]+', '_'), '^_|_$', '')\n ) AS trace_address,\n _inserted_timestamp,\n OBJECT_AGG(\n key,\n VALUE\n ) AS trace_json,\n CASE\n WHEN trace_address = 'ORIGIN' THEN NULL\n WHEN POSITION(\n '_' IN trace_address\n ) = 0 THEN 'ORIGIN'\n ELSE REGEXP_REPLACE(\n trace_address,\n '_[0-9]+$',\n '',\n 1,\n 1\n )\n END AS parent_trace_address,\n SPLIT(\n trace_address,\n '_'\n ) AS str_array\n FROM\n raw_traces,\n TABLE(\n FLATTEN(\n input => PARSE_JSON(full_traces),\n recursive => TRUE\n )\n ) f\n WHERE\n f.index IS NULL\n AND f.key != 'calls'\n AND f.path != 'result'\n GROUP BY\n block_number,\n tx_position,\n trace_address,\n _inserted_timestamp\n ),\n sub_traces AS (\n SELECT\n block_number,\n tx_position,\n parent_trace_address,\n COUNT(*) AS sub_traces\n FROM\n flatten_traces\n GROUP BY\n block_number,\n tx_position,\n parent_trace_address\n ),\n num_array AS (\n SELECT\n block_number,\n tx_position,\n trace_address,\n ARRAY_AGG(flat_value) AS num_array\n FROM\n (\n SELECT\n block_number,\n tx_position,\n trace_address,\n IFF(\n VALUE :: STRING = 'ORIGIN',\n -1,\n VALUE :: INT\n ) AS flat_value\n FROM\n flatten_traces,\n LATERAL FLATTEN (\n input => str_array\n )\n )\n GROUP BY\n block_number,\n tx_position,\n trace_address\n ),\n cleaned_traces AS (\n SELECT\n b.block_number,\n b.tx_position,\n b.trace_address,\n IFNULL(\n sub_traces,\n 0\n ) AS sub_traces,\n num_array,\n ROW_NUMBER() over (\n PARTITION BY b.block_number,\n b.tx_position\n ORDER BY\n num_array ASC\n ) - 1 AS trace_index,\n trace_json,\n b._inserted_timestamp\n FROM\n flatten_traces b\n LEFT JOIN sub_traces s\n ON b.block_number = s.block_number\n AND b.tx_position = s.tx_position\n AND b.trace_address = s.parent_trace_address\n JOIN num_array n\n ON b.block_number = n.block_number\n AND b.tx_position = n.tx_position\n AND b.trace_address = n.trace_address\n ),\n final_traces AS (\n SELECT\n tx_position,\n trace_index,\n block_number,\n trace_address,\n trace_json :error :: STRING AS error_reason,\n trace_json :from :: STRING AS from_address,\n trace_json :to :: STRING AS to_address,\n IFNULL(\n utils.udf_hex_to_int(\n trace_json :value :: STRING\n ),\n '0'\n ) AS eth_value_precise_raw,\n ethereum.utils.udf_decimal_adjust(\n eth_value_precise_raw,\n 18\n ) AS eth_value_precise,\n eth_value_precise :: FLOAT AS eth_value,\n utils.udf_hex_to_int(\n trace_json :gas :: STRING\n ) :: INT AS gas,\n utils.udf_hex_to_int(\n trace_json :gasUsed :: STRING\n ) :: INT AS gas_used,\n trace_json :input :: STRING AS input,\n trace_json :output :: STRING AS output,\n trace_json :type :: STRING AS TYPE,\n concat_ws(\n '_',\n TYPE,\n trace_address\n ) AS identifier,\n concat_ws(\n '-',\n block_number,\n tx_position,\n identifier\n ) AS _call_id,\n _inserted_timestamp,\n trace_json AS DATA,\n sub_traces\n FROM\n cleaned_traces\n ),\n new_records AS (\n SELECT\n f.block_number,\n t.tx_hash,\n t.block_timestamp,\n t.tx_status,\n f.tx_position,\n f.trace_index,\n f.from_address,\n f.to_address,\n f.eth_value_precise_raw,\n f.eth_value_precise,\n f.eth_value,\n f.gas,\n f.gas_used,\n f.input,\n f.output,\n f.type,\n f.identifier,\n f.sub_traces,\n f.error_reason,\n IFF(\n f.error_reason IS NULL,\n 'SUCCESS',\n 'FAIL'\n ) AS trace_status,\n f.data,\n IFF(\n t.tx_hash IS NULL\n OR t.block_timestamp IS NULL\n OR t.tx_status IS NULL,\n TRUE,\n FALSE\n ) AS is_pending,\n f._call_id,\n f._inserted_timestamp\n FROM\n final_traces f\n LEFT OUTER JOIN transactions t\n ON f.tx_position = t.position\n AND f.block_number = t.block_number\n ),\n traces_final AS (\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n tx_status,\n tx_position,\n trace_index,\n from_address,\n to_address,\n eth_value_precise_raw,\n eth_value_precise,\n eth_value,\n gas,\n gas_used,\n input,\n output,\n TYPE,\n identifier,\n sub_traces,\n error_reason,\n trace_status,\n DATA,\n is_pending,\n _call_id,\n _inserted_timestamp\n FROM\n new_records\n )\n,\neth_base AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n identifier,\n from_address,\n to_address,\n eth_value AS amount,\n _call_id,\n _inserted_timestamp,\n eth_value_precise_raw AS amount_precise_raw,\n eth_value_precise AS amount_precise,\n tx_position,\n trace_index\n FROM\n traces_final\n WHERE\n eth_value > 0\n AND tx_status = 'SUCCESS'\n AND trace_status = 'SUCCESS'\n AND TYPE NOT IN (\n 'DELEGATECALL',\n 'STATICCALL'\n )\n),\ntx_table AS (\n SELECT\n block_number,\n tx_hash,\n from_address AS origin_from_address,\n to_address1 AS origin_to_address,\n origin_function_signature\n FROM\n transactions\n WHERE\n tx_hash IN (\n SELECT\n DISTINCT tx_hash\n FROM\n eth_base\n )\n),\nnative_transfers AS (\n SELECT\n e.tx_hash,\n e.block_number,\n e.block_timestamp,\n e.identifier,\n t.origin_from_address,\n t.origin_to_address,\n t.origin_function_signature,\n e.from_address,\n e.to_address,\n e.amount,\n e.amount_precise_raw,\n e.amount_precise,\n ROUND(\n e.amount * p.price,\n 2\n ) AS amount_usd,\n e._call_id,\n e._inserted_timestamp,\n e.tx_position,\n e.trace_index,\n md5(\n cast(\n coalesce(cast(e.tx_hash as TEXT), '_dbt_utils_surrogate_key_null_')\n || '-' || coalesce(cast(e.trace_index as TEXT), '_dbt_utils_surrogate_key_null_')\n as TEXT\n )\n ) as native_transfers_id,\n SYSDATE() as inserted_timestamp,\n SYSDATE() as modified_timestamp\n FROM\n eth_base e\n JOIN tx_table t ON e.tx_hash = t.tx_hash AND e.block_number = t.block_number\n LEFT JOIN ethereum.PRICE.EZ_PRICES_HOURLY p\n ON DATE_TRUNC('hour', e.block_timestamp) = p.HOUR\n AND p.token_address = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' -- WETH address\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n tx_position,\n trace_index,\n identifier AS trace_type,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n from_address AS trace_from_address,\n to_address AS trace_to_address,\n amount,\n amount_precise_raw,\n amount_precise,\n amount_usd,\n COALESCE(\n native_transfers_id,\n md5(\n cast(\n coalesce(cast(tx_hash as TEXT), '_dbt_utils_surrogate_key_null_')\n || '-' || coalesce(cast(trace_index as TEXT), '_dbt_utils_surrogate_key_null_')\n as TEXT\n )\n )\n ) AS ez_native_transfers_id,\n COALESCE(\n inserted_timestamp,\n '2000-01-01'\n ) AS inserted_timestamp,\n COALESCE(\n modified_timestamp,\n '2000-01-01'\n ) AS modified_timestamp\nFROM\n native_transfers\nQUALIFY (ROW_NUMBER() OVER (\n PARTITION BY block_number, tx_position, trace_index\n ORDER BY _inserted_timestamp DESC\n)) = 1\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_mainnet.tf_ez_token_transfers(\n block_height INTEGER,\n to_latest BOOLEAN\n )\n COPY GRANTS\n RETURNS TABLE(block_number INTEGER, block_timestamp TIMESTAMP_NTZ, tx_hash STRING, event_index INTEGER, origin_function_signature STRING, origin_from_address STRING, origin_to_address STRING, contract_address STRING, from_address STRING, to_address STRING, raw_amount_precise STRING, raw_amount FLOAT, amount_precise FLOAT, amount FLOAT, amount_usd FLOAT, decimals INTEGER, symbol STRING, token_price FLOAT, has_decimal STRING, has_price STRING, _log_id STRING, ez_token_transfers_id STRING, _inserted_timestamp TIMESTAMP_NTZ, inserted_timestamp TIMESTAMP_NTZ, modified_timestamp TIMESTAMP_NTZ)\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the token transfers for a given block height. If to_latest is true, it will continue fetching transfers until the latest block. Otherwise, it will fetch transfers until the block height is reached.$$\n\n AS\n $$\n \nWITH fact_logs AS (\n \n WITH spine AS (\n \n WITH heights AS (\n \n SELECT\n ethereum_mainnet.udf_rpc('eth_blockNumber', []) as result,\n utils.udf_hex_to_int(result)::integer AS latest_block_height,\n COALESCE(\n block_height,\n latest_block_height\n ) AS min_height,\n iff(\n COALESCE(to_latest, false),\n latest_block_height,\n min_height\n ) AS max_height\n ),\n block_spine AS (\n SELECT\n ROW_NUMBER() OVER (\n ORDER BY\n NULL\n ) - 1 + COALESCE(block_height, latest_block_height)::integer AS block_number,\n min_height,\n IFF(\n COALESCE(to_latest, false),\n block_height,\n min_height\n ) AS max_height,\n latest_block_height\n FROM\n TABLE(generator(ROWCOUNT => 1000)),\n heights qualify block_number BETWEEN min_height\n AND max_height\n )\n\n SELECT\n CEIL(ROW_NUMBER() OVER (ORDER BY block_number) / 5) AS batch_id,\n block_number,\n latest_block_height\n FROM block_spine\n ),\n raw_block_txs AS (\n \n WITH blocks_agg AS (\n SELECT\n batch_id,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'eth_getBlockByNumber',\n [utils.udf_int_to_hex(block_number), true]\n )\n ) AS params\n FROM\n spine\n GROUP BY batch_id\n ), result as (\n SELECT\n \n live.udf_api(\n '{endpoint}'\n ,params\n ,concat_ws('/', 'integration', _utils.udf_provider(), 'ethereum', 'mainnet')\n )::VARIANT:data::ARRAY AS data\n\n FROM blocks_agg\n )\n , flattened as (\n SELECT\n COALESCE(value:result, {'error':value:error}) AS result\n FROM result, LATERAL FLATTEN(input => result.data) v\n )\n\n SELECT\n utils.udf_hex_to_int(result:number::STRING)::INT AS block_number,\n result as data\n FROM flattened\n ),\n raw_receipts AS (\n \n WITH blocks_agg AS (\n SELECT\n batch_id,\n latest_block_height,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'eth_getBlockReceipts',\n [utils.udf_int_to_hex(block_number)]\n )\n ) AS params\n FROM\n spine\n GROUP BY 1,2\n ),\n\n get_batch_result AS (\n SELECT\n latest_block_height,\n \n live.udf_api(\n '{endpoint}'\n ,params\n ,concat_ws('/', 'integration', _utils.udf_provider(), 'ethereum', 'mainnet')\n )::VARIANT:data::ARRAY AS data\n\n FROM blocks_agg\n )\n\n SELECT\n latest_block_height,\n utils.udf_hex_to_int(w.value:blockNumber::STRING)::INT AS block_number,\n w.value AS DATA\n FROM\n (SELECT\n latest_block_height,\n v.value:result AS DATA\n FROM get_batch_result,\n LATERAL FLATTEN(data) v), LATERAL FLATTEN(data) w\n ),\n raw_logs AS (\n \n SELECT\n r.block_number,\n v.value\n FROM\n raw_receipts AS r,\n lateral flatten(r.data:logs) v\n ),\n raw_transactions AS (\n \n SELECT\n block_number,\n v.value as DATA\n FROM\n raw_block_txs AS r,\n lateral flatten(r.data:transactions) v\n ),\n blocks AS (\n \n SELECT\n block_number,\n utils.udf_hex_to_int(DATA:timestamp::STRING)::TIMESTAMP AS block_timestamp,\n utils.udf_hex_to_int(DATA:baseFeePerGas::STRING)::INT AS base_fee_per_gas,\n utils.udf_hex_to_int(DATA:difficulty::STRING)::INT AS difficulty,\n DATA:extraData::STRING AS extra_data,\n utils.udf_hex_to_int(DATA:gasLimit::STRING)::INT AS gas_limit,\n utils.udf_hex_to_int(DATA:gasUsed::STRING)::INT AS gas_used,\n DATA:hash::STRING AS HASH,\n DATA:logsBloom::STRING AS logs_bloom,\n DATA:miner::STRING AS miner,\n utils.udf_hex_to_int(DATA:nonce::STRING)::INT AS nonce,\n utils.udf_hex_to_int(DATA:number::STRING)::INT AS NUMBER,\n DATA:parentHash::STRING AS parent_hash,\n DATA:receiptsRoot::STRING AS receipts_root,\n DATA:sha3Uncles::STRING AS sha3_uncles,\n utils.udf_hex_to_int(DATA:size::STRING)::INT AS SIZE,\n DATA:stateRoot::STRING AS state_root,\n utils.udf_hex_to_int(DATA:totalDifficulty::STRING)::INT AS total_difficulty,\n ARRAY_SIZE(DATA:transactions) AS tx_count,\n DATA:transactionsRoot::STRING AS transactions_root,\n DATA:uncles AS uncles,\n DATA:withdrawals AS withdrawals,\n DATA:withdrawalsRoot::STRING AS withdrawals_root,\n md5(\n CAST(\n COALESCE(\n CAST(block_number AS TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) AS TEXT\n )\n ) AS blocks_id,\n utils.udf_hex_to_int(DATA:blobGasUsed::STRING)::INT AS blob_gas_used,\n utils.udf_hex_to_int(DATA:excessBlobGas::STRING)::INT AS excess_blob_gas\n FROM\n raw_block_txs\n ),\n receipts AS (\n \n SELECT\n latest_block_height,\n block_number,\n DATA :blockHash::STRING AS block_hash,\n utils.udf_hex_to_int(DATA :blockNumber::STRING)::INT AS blockNumber,\n utils.udf_hex_to_int(DATA :cumulativeGasUsed::STRING)::INT AS cumulative_gas_used,\n utils.udf_hex_to_int(DATA :effectiveGasPrice::STRING)::INT / pow(10, 9) AS effective_gas_price,\n DATA :from::STRING AS from_address,\n utils.udf_hex_to_int(DATA :gasUsed::STRING)::INT AS gas_used,\n DATA :logs AS logs,\n DATA :logsBloom::STRING AS logs_bloom,\n utils.udf_hex_to_int(DATA :status::STRING)::INT AS status,\n CASE\n WHEN status = 1 THEN TRUE\n ELSE FALSE\n END AS tx_success,\n CASE\n WHEN status = 1 THEN 'SUCCESS'\n ELSE 'FAIL'\n END AS tx_status,\n DATA :to::STRING AS to_address1,\n CASE\n WHEN to_address1 = '' THEN NULL\n ELSE to_address1\n END AS to_address,\n DATA :transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(DATA :transactionIndex::STRING)::INT AS POSITION,\n utils.udf_hex_to_int(DATA :type::STRING)::INT AS TYPE,\n utils.udf_hex_to_int(DATA :effectiveGasPrice::STRING)::INT AS blob_gas_price,\n utils.udf_hex_to_int(DATA :gasUsed::STRING)::INT AS blob_gas_used\n FROM\n raw_receipts\n ),\n transactions AS (\n \n SELECT\n A.block_number AS block_number,\n A.data :blockHash::STRING AS block_hash,\n utils.udf_hex_to_int(A.data :blockNumber::STRING)::INT AS blockNumber,\n utils.udf_hex_to_int(A.data :chainId::STRING)::INT AS chain_id,\n A.data :from::STRING AS from_address,\n utils.udf_hex_to_int(A.data :gas::STRING)::INT AS gas,\n utils.udf_hex_to_int(A.data :gasPrice::STRING)::INT / pow(10, 9) AS gas_price,\n A.data :hash::STRING AS tx_hash,\n A.data :input::STRING AS input_data,\n SUBSTR(input_data, 1, 10) AS origin_function_signature,\n utils.udf_hex_to_int(A.data :maxFeePerGas::STRING)::INT / pow(10, 9) AS max_fee_per_gas,\n utils.udf_hex_to_int(\n A.data :maxPriorityFeePerGas::STRING\n )::INT / pow(10, 9) AS max_priority_fee_per_gas,\n utils.udf_hex_to_int(A.data :nonce::STRING)::INT AS nonce,\n A.data :r::STRING AS r,\n A.data :s::STRING AS s,\n A.data :to::STRING AS to_address1,\n utils.udf_hex_to_int(A.data :transactionIndex::STRING)::INT AS POSITION,\n A.data :type::STRING AS TYPE,\n A.data :v::STRING AS v,\n utils.udf_hex_to_int(A.data :value::STRING) AS value_precise_raw,\n value_precise_raw * power(10, -18) AS value_precise,\n value_precise::FLOAT AS VALUE,\n A.data :accessList AS access_list,\n A.data,\n A.data: blobVersionedHashes::ARRAY AS blob_versioned_hashes,\n utils.udf_hex_to_int(A.data: maxFeePerGas::STRING)::INT AS max_fee_per_blob_gas,\n block_timestamp,\n CASE\n WHEN block_timestamp IS NULL\n OR tx_status IS NULL THEN TRUE\n ELSE FALSE\n END AS is_pending,\n r.gas_used,\n tx_success,\n tx_status,\n cumulative_gas_used,\n effective_gas_price,\n utils.udf_hex_to_int(A.data :gasPrice) * power(10, -18) * r.gas_used AS tx_fee_precise,\n COALESCE(tx_fee_precise::FLOAT, 0) AS tx_fee,\n r.type as tx_type,\n r.blob_gas_used,\n r.blob_gas_price,\n FROM\n raw_transactions AS A\n LEFT JOIN blocks AS b on b.block_number = A.block_number\n LEFT JOIN receipts AS r on r.tx_hash = A.data :hash::STRING\n ),\n logs AS (\n \n SELECT\n r.block_number,\n txs.block_timestamp,\n r.tx_hash,\n txs.origin_function_signature,\n r.from_address AS origin_from_address,\n r.to_address AS origin_to_address,\n utils.udf_hex_to_int(v.VALUE :logIndex::STRING)::INT AS event_index,\n v.VALUE :address::STRING AS contract_address,\n v.VALUE :blockHash::STRING AS block_hash,\n v.VALUE :data::STRING AS DATA,\n v.VALUE :removed::BOOLEAN AS event_removed,\n v.VALUE :topics AS topics,\n r.tx_status,\n CASE\n WHEN txs.block_timestamp IS NULL\n OR txs.origin_function_signature IS NULL THEN TRUE\n ELSE FALSE\n END AS is_pending,\n FROM\n receipts AS r\n LEFT JOIN transactions AS txs on txs.tx_hash = r.tx_hash,\n lateral flatten(r.logs) v\n )\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n contract_address,\n topics,\n DATA,\n event_removed,\n tx_status,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n md5(\n cast(\n coalesce(\n cast(tx_hash as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) || '-' || coalesce(\n cast(event_index as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) as TEXT\n )\n ) AS fact_event_logs_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\n FROM logs\n)\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address::STRING AS contract_address,\n CONCAT('0x', SUBSTR(topics [1], 27, 40))::STRING AS from_address,\n CONCAT('0x', SUBSTR(topics [2], 27, 40))::STRING AS to_address,\n utils.udf_hex_to_int(SUBSTR(DATA, 3, 64)) AS raw_amount_precise,\n raw_amount_precise::FLOAT AS raw_amount,\n IFF(\n C.decimals IS NOT NULL,\n raw_amount_precise * power(10, C.decimals * -1),\n NULL\n ) AS amount_precise,\n amount_precise::FLOAT AS amount,\n IFF(\n C.decimals IS NOT NULL\n AND price IS NOT NULL,\n amount * price,\n NULL\n ) AS amount_usd,\n C.decimals AS decimals,\n C.symbol AS symbol,\n price AS token_price,\n CASE\n WHEN C.decimals IS NULL THEN 'false'\n ELSE 'true'\n END AS has_decimal,\n CASE\n WHEN price IS NULL THEN 'false'\n ELSE 'true'\n END AS has_price,\n _log_id,\n md5(\n cast(\n coalesce(\n cast(tx_hash as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) || '-' || coalesce(\n cast(event_index as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) as TEXT\n )\n ) as ez_token_transfers_id,\n SYSDATE() AS _inserted_timestamp,\n sysdate() as inserted_timestamp,\n sysdate() as modified_timestamp\nFROM\n fact_logs l\n LEFT JOIN ethereum.price.EZ_PRICES_HOURLY p ON l.contract_address = p.token_address\n AND DATE_TRUNC('hour', l.block_timestamp) = HOUR\n LEFT JOIN ethereum.core.DIM_CONTRACTS C ON l.contract_address = C.address\nWHERE\n topics [0]::STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n AND tx_status = 'SUCCESS'\n and raw_amount IS NOT NULL\n AND to_address IS NOT NULL\nAND from_address IS NOT NULL\n\n $$;\n\n\n \n CREATE SCHEMA IF NOT EXISTS ethereum;\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_ethereum.udf_rpc(\n method STRING,\n parameters VARIANT\n )\n COPY GRANTS\n RETURNS VARIANT\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Executes an RPC call on the ethereum blockchain.$$\n\n AS\n $$\n SELECT live.udf_rpc('ethereum', 'ethereum', method, parameters)\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_ethereum.udf_rpc_eth_call(\n transaction OBJECT,\n block_or_tag STRING\n )\n COPY GRANTS\n RETURNS VARIANT\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Executes a new message call immediately without creating a transaction on the block chain.$$\n\n AS\n $$\n SELECT ethereum_ethereum.udf_rpc('eth_call', [transaction, block_or_tag])\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_ethereum.udf_rpc_eth_get_logs(\n filter OBJECT\n )\n COPY GRANTS\n RETURNS VARIANT\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns an array of all logs matching filter with given address.$$\n\n AS\n $$\n SELECT ethereum_ethereum.udf_rpc('eth_getLogs', [filter])\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_ethereum.udf_rpc_eth_get_balance(\n address STRING,\n block_or_tag STRING\n )\n COPY GRANTS\n RETURNS VARIANT\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the balance of the account of given address.$$\n\n AS\n $$\n SELECT ethereum_ethereum.udf_rpc('eth_getBalance', [address, block_or_tag])\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_ethereum.udf_get_token_balance(\n wallet_address STRING,\n token_address STRING\n )\n COPY GRANTS\n RETURNS STRING\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the balance of the wallet of given token address at the latest block.$$\n\n AS\n $$\n SELECT utils.udf_hex_to_int(ethereum_ethereum.udf_rpc_eth_call(object_construct_keep_null('from', null, 'to', token_address, 'data', concat('0x70a08231',LPAD(REPLACE(wallet_address, '0x', ''), 64, 0))),'latest')::string)\n\n $$;\n\n \n \n \n \n \n \n\n \n CREATE OR REPLACE FUNCTION ethereum_ethereum.udf_get_token_balance(\n wallet_address STRING,\n token_address STRING,\n block_number INTEGER\n )\n COPY GRANTS\n RETURNS STRING\n NOT NULL\nRETURNS NULL ON NULL INPUT\nVOLATILE\nCOMMENT = $$Returns the balance of the wallet of given token address at the given block.$$\n\n AS\n $$\n SELECT utils.udf_hex_to_int(ethereum_ethereum.udf_rpc_eth_call(OBJECT_CONSTRUCT_KEEP_NULL('from', NULL, 'to', token_address, 'data', concat('0x70a08231',LPAD(REPLACE(wallet_address, '0x', ''), 64, 0))), CONCAT('0x', TRIM(TO_CHAR(block_number, 'XXXXXXXXXX'))))::STRING)\n $$;\n\n\n \n CREATE SCHEMA IF NOT EXISTS ethereum;\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS ethereum_ethereum.udf_rpc(\n STRING,\n VARIANT);\n\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS ethereum_ethereum.udf_rpc_eth_call(\n OBJECT,\n STRING);\n\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS ethereum_ethereum.udf_rpc_eth_get_logs(\n OBJECT);\n\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS ethereum_ethereum.udf_rpc_eth_get_balance(\n STRING,\n STRING);\n\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS ethereum_ethereum.udf_get_token_balance(\n STRING,\n STRING);\n\n\n \n \n \n \n \n \n\n \n DROP FUNCTION IF EXISTS ethereum_ethereum.udf_get_token_balance(\n STRING,\n STRING,\n INTEGER);\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}}, "analysis.livequery_models.test_functions_py": {"database": "EXTERNAL", "schema": "test_functions_py", "name": "test_functions_py", "resource_type": "analysis", "package_name": "livequery_models", "path": "analysis/test_functions_py.sql", "original_file_path": "analysis/test_functions_py.sql", "unique_id": "analysis.livequery_models.test_functions_py", "fqn": ["livequery_models", "analysis", "test_functions_py"], "alias": "", "checksum": {"name": "sha256", "checksum": "3e379c91a7abf83ca2438fdd68efa21b5f98a91a7c1beb62091f7b4d13d33745"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "copy_grants": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113500.6680312, "relation_name": null, "raw_code": "{{ python_hex_to_int() }}\n{{ python_udf_hex_to_int_with_encoding() }}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.python_hex_to_int", "macro.livequery_models.python_udf_hex_to_int_with_encoding"], "nodes": []}, "compiled_path": "target/compiled/livequery_models/analysis/test_functions_py.sql", "compiled": true, "compiled_code": "\ndef hex_to_int(hex) -> str:\n \"\"\"\n Converts hex (of any size) to int (as a string). Snowflake and java script can only handle up to 64-bit (38 digits of precision)\n hex_to_int('200000000000000000000000000000211');\n >> 680564733841876926926749214863536423441\n hex_to_int('0x200000000000000000000000000000211');\n >> 680564733841876926926749214863536423441\n hex_to_int(NULL);\n >> NULL\n \"\"\"\n try:\n return str(int(hex, 16)) if hex and hex != \"0x\" else None\n except:\n return None\n\n\ndef hex_to_int(encoding, hex) -> str:\n \"\"\"\n Converts hex (of any size) to int (as a string). Snowflake and java script can only handle up to 64-bit (38 digits of precision)\n hex_to_int('hex', '200000000000000000000000000000211');\n >> 680564733841876926926749214863536423441\n hex_to_int('hex', '0x200000000000000000000000000000211');\n >> 680564733841876926926749214863536423441\n hex_to_int('hex', NULL);\n >> NULL\n hex_to_int('s2c', 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffe5b83acf');\n >> -440911153\n \"\"\"\n try:\n if not hex:\n return None\n if encoding.lower() == 's2c':\n if hex[0:2].lower() != '0x':\n hex = f'0x{hex}'\n\n bits = len(hex[2:]) * 4\n value = int(hex, 0)\n if value & (1 << (bits - 1)):\n value -= 1 << bits\n return str(value)\n else:\n return str(int(hex, 16))\n except:\n return None\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}}, "seed.livequery_models.live__verified_api_endpoints": {"database": "EXTERNAL", "schema": "live", "name": "live__verified_api_endpoints", "resource_type": "seed", "package_name": "livequery_models", "path": "live__verified_api_endpoints.csv", "original_file_path": "data/live__verified_api_endpoints.csv", "unique_id": "seed.livequery_models.live__verified_api_endpoints", "fqn": ["livequery_models", "live__verified_api_endpoints"], "alias": "verified_api_endpoints", "checksum": {"name": "sha256", "checksum": "f801025b0fb9a370678db2b5b63ead57dc1371caffa0688266d9be12605a8afa"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1760113500.6947582, "relation_name": "EXTERNAL.live.verified_api_endpoints", "raw_code": "", "root_path": "/home/runner/work/external-models/external-models/dbt_packages/livequery_models", "depends_on": {"macros": []}}, "operation.livequery_models.livequery_models-on-run-start-0": {"database": "EXTERNAL", "schema": "livequery_models-on-run-start-0", "name": "livequery_models-on-run-start-0", "resource_type": "operation", "package_name": "livequery_models", "path": "hooks/livequery_models-on-run-start-0.sql", "original_file_path": "./dbt_project.yml", "unique_id": "operation.livequery_models.livequery_models-on-run-start-0", "fqn": ["livequery_models", "hooks", "livequery_models-on-run-start-0"], "alias": "", "checksum": {"name": "sha256", "checksum": "52a2dfd737c23fe991a6a61075b3d0c7d8770d158617f7b075033da54e231edc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "copy_grants": true}, "tags": ["on-run-start"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113500.717771, "relation_name": null, "raw_code": "{{ create_sps() }}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.create_sps"], "nodes": []}, "compiled_path": "target/compiled/livequery_models/./dbt_project.yml/hooks/livequery_models-on-run-start-0.sql", "compiled": true, "compiled_code": "\n \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "index": 0}, "operation.livequery_models.livequery_models-on-run-end-0": {"database": "EXTERNAL", "schema": "livequery_models-on-run-end-0", "name": "livequery_models-on-run-end-0", "resource_type": "operation", "package_name": "livequery_models", "path": "hooks/livequery_models-on-run-end-0.sql", "original_file_path": "./dbt_project.yml", "unique_id": "operation.livequery_models.livequery_models-on-run-end-0", "fqn": ["livequery_models", "hooks", "livequery_models-on-run-end-0"], "alias": "", "checksum": {"name": "sha256", "checksum": "52a2dfd737c23fe991a6a61075b3d0c7d8770d158617f7b075033da54e231edc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "copy_grants": true}, "tags": ["on-run-end"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113500.7252226, "relation_name": null, "raw_code": "{{ apply_meta_as_tags(results) }}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.apply_meta_as_tags"], "nodes": []}, "compiled_path": "target/compiled/livequery_models/./dbt_project.yml/hooks/livequery_models-on-run-end-0.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "index": 0}, "model.fsc_utils._datashare___create_udfs": {"database": "EXTERNAL", "schema": "_datashare", "name": "_datashare___create_udfs", "resource_type": "model", "package_name": "fsc_utils", "path": "datashare/_datashare___create_udfs.sql", "original_file_path": "models/datashare/_datashare___create_udfs.sql", "unique_id": "model.fsc_utils._datashare___create_udfs", "fqn": ["fsc_utils", "datashare", "_datashare___create_udfs"], "alias": "_create_udfs", "checksum": {"name": "sha256", "checksum": "fc39e053d81b2ed8b8106cf5c917ea005b96942a61f37ee4850a838c6c8f7ce6"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "merge", "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "ddl_hash", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "merge_update_columns": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "incremental", "incremental_strategy": "merge", "unique_key": "ddl_hash", "merge_update_columns": [], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113500.7518082, "relation_name": "EXTERNAL._datashare._create_udfs", "raw_code": "{{\n config(\n materialized = 'incremental',\n incremental_strategy = 'merge',\n unique_key = 'ddl_hash',\n merge_update_columns = [],\n )\n}}\n{% if execute %}\nSELECT\nCONCAT_WS('\\n',{{- fsc_utils.generate_datashare_udf_ddl().strip() -}}) AS ddl,\nmd5(ddl) AS ddl_hash,\nsysdate() as ddl_created_at\n{% else %}\nSELECT\nnull as ddl,\nnull as ddl_hash,\nnull as ddl_created_at\nfrom dual limit 0\n{% endif %}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_utils.generate_datashare_udf_ddl"], "nodes": []}, "compiled_path": "target/compiled/fsc_utils/models/datashare/_datashare___create_udfs.sql", "compiled": true, "compiled_code": "\n\nSELECT\nCONCAT_WS('\\n','BEGIN','CREATE DATABASE IF NOT EXISTS __NEW__;','USE DATABASE __NEW__;','CREATE SCHEMA IF NOT EXISTS UTILS;','\n CREATE OR REPLACE FUNCTION UTILS.udf_hex_to_int(\n hex STRING\n )\n COPY GRANTS\n RETURNS TEXT\n NULL\nLANGUAGE PYTHON\nSTRICT IMMUTABLE\nRUNTIME_VERSION = \\'3.8\\'\nHANDLER = \\'hex_to_int\\'\n\n AS\n $$\n \ndef hex_to_int(hex) -> str:\n \"\"\"\n Converts hex (of any size) to int (as a string). Snowflake and java script can only handle up to 64-bit (38 digits of precision)\n hex_to_int(\\'200000000000000000000000000000211\\');\n >> 680564733841876926926749214863536423441\n hex_to_int(\\'0x200000000000000000000000000000211\\');\n >> 680564733841876926926749214863536423441\n hex_to_int(NULL);\n >> NULL\n \"\"\"\n return (str(int(hex, 16)) if hex and hex != \"0x\" else None)\n\n $$;','\n CREATE OR REPLACE FUNCTION UTILS.udf_hex_to_int(\n encoding STRING,\n hex STRING\n )\n COPY GRANTS\n RETURNS TEXT\n NULL\nLANGUAGE PYTHON\nSTRICT IMMUTABLE\nRUNTIME_VERSION = \\'3.8\\'\nHANDLER = \\'hex_to_int\\'\n\n AS\n $$\n \ndef hex_to_int(encoding, hex) -> str:\n \"\"\"\n Converts hex (of any size) to int (as a string). Snowflake and java script can only handle up to 64-bit (38 digits of precision)\n hex_to_int(\\'hex\\', \\'200000000000000000000000000000211\\');\n >> 680564733841876926926749214863536423441\n hex_to_int(\\'hex\\', \\'0x200000000000000000000000000000211\\');\n >> 680564733841876926926749214863536423441\n hex_to_int(\\'hex\\', NULL);\n >> NULL\n hex_to_int(\\'s2c\\', \\'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffe5b83acf\\');\n >> -440911153\n \"\"\"\n if not hex:\n return None\n if encoding.lower() == \\'s2c\\':\n if hex[0:2].lower() != \\'0x\\':\n hex = f\\'0x{hex}\\'\n\n bits = len(hex[2:])*4\n value = int(hex, 0)\n if value & (1 << (bits-1)):\n value -= 1 << bits\n return str(value)\n else:\n return str(int(hex, 16))\n\n $$;','\n CREATE OR REPLACE FUNCTION UTILS.udf_hex_to_string(\n hex STRING\n )\n COPY GRANTS\n RETURNS TEXT\n NULL\nLANGUAGE SQL\nSTRICT IMMUTABLE\n\n AS\n $$\n SELECT\n LTRIM(regexp_replace(\n try_hex_decode_string(hex),\n \\'[\\\\x00-\\\\x1F\\\\x7F-\\\\x9F\\\\xAD]\\', \\'\\', 1))\n\n $$;','\n CREATE OR REPLACE FUNCTION UTILS.udf_evm_text_signature(\n abi VARIANT\n )\n COPY GRANTS\n RETURNS TEXT\n LANGUAGE PYTHON\nRUNTIME_VERSION = \\'3.8\\'\nHANDLER = \\'get_simplified_signature\\'\n\n AS\n $$\n \n\ndef get_simplified_signature(abi):\n def generate_signature(inputs):\n signature_parts = []\n for input_data in inputs:\n if \\'components\\' in input_data:\n component_signature_parts = []\n components = input_data[\\'components\\']\n component_signature_parts.extend(generate_signature(components))\n component_signature_parts[-1] = component_signature_parts[-1].rstrip(\",\")\n if input_data[\\'type\\'].endswith(\\'[]\\'):\n signature_parts.append(\"(\" + \"\".join(component_signature_parts) + \")[],\")\n else:\n signature_parts.append(\"(\" + \"\".join(component_signature_parts) + \"),\")\n else:\n signature_parts.append(input_data[\\'type\\'].replace(\\'enum \\', \\'\\').replace(\\' payable\\', \\'\\') + \",\")\n return signature_parts\n\n signature_parts = [abi[\\'name\\'] + \"(\"]\n signature_parts.extend(generate_signature(abi[\\'inputs\\']))\n signature_parts[-1] = signature_parts[-1].rstrip(\",\") + \")\"\n return \"\".join(signature_parts)\n\n $$;','\n CREATE OR REPLACE FUNCTION UTILS.udf_keccak256(\n event_name VARCHAR(255)\n )\n COPY GRANTS\n RETURNS TEXT\n LANGUAGE PYTHON\nRUNTIME_VERSION = \\'3.8\\'\nPACKAGES = (\\'pycryptodome==3.15.0\\')\nHANDLER = \\'udf_encode\\'\n\n AS\n $$\n \nfrom Crypto.Hash import keccak\n\ndef udf_encode(event_name):\n keccak_hash = keccak.new(digest_bits=256)\n keccak_hash.update(event_name.encode(\\'utf-8\\'))\n return \\'0x\\' + keccak_hash.hexdigest()\n\n $$;','\n CREATE OR REPLACE FUNCTION UTILS.udf_decimal_adjust(\n input string,\n adjustment int\n )\n COPY GRANTS\n RETURNS VARCHAR\n LANGUAGE PYTHON\nRUNTIME_VERSION = \\'3.8\\'\nHANDLER = \\'custom_divide\\'\n\n AS\n $$\n \n\nfrom decimal import Decimal, ROUND_DOWN\n\ndef custom_divide(input, adjustment):\n try:\n if adjustment is None or input is None:\n return None\n\n # Perform the division using Decimal type\n result = Decimal(input) / pow(10, Decimal(adjustment))\n\n # Determine the number of decimal places in the result\n decimal_places = max(0, -result.as_tuple().exponent)\n\n # Convert the result to a string representation without scientific notation and with dynamic decimal precision\n result_str = \"{:.{prec}f}\".format(result, prec=decimal_places)\n\n return result_str\n except Exception as e:\n return None\n\n $$;','\n CREATE OR REPLACE FUNCTION UTILS.udf_cron_to_prior_timestamps(\n workflow_name STRING,\n workflow_schedule STRING\n )\n COPY GRANTS\n RETURNS TABLE(workflow_name STRING, workflow_schedule STRING, timestamp TIMESTAMP_NTZ)\n LANGUAGE PYTHON\nRUNTIME_VERSION = \\'3.8\\'\nPACKAGES = (\\'croniter\\')\nHANDLER = \\'TimestampGenerator\\'\n\n AS\n $$\n \nimport croniter\nimport datetime\n\nclass TimestampGenerator:\n\n def __init__(self):\n pass\n\n def process(self, workflow_name, workflow_schedule):\n for timestamp in self.generate_timestamps(workflow_name, workflow_schedule):\n yield (workflow_name, workflow_schedule, timestamp)\n\n def generate_timestamps(self, workflow_name, workflow_schedule):\n # Create a cron iterator object\n cron = croniter.croniter(workflow_schedule)\n\n # Generate timestamps for the prev 10 runs\n timestamps = []\n for i in range(10):\n prev_run = cron.get_prev(datetime.datetime)\n timestamps.append(prev_run)\n\n return timestamps\n\n $$;','\n CREATE OR REPLACE FUNCTION UTILS.udf_transform_logs(\n decoded VARIANT\n )\n COPY GRANTS\n RETURNS VARIANT\n LANGUAGE PYTHON\nRUNTIME_VERSION = \\'3.8\\'\nHANDLER = \\'transform\\'\n\n AS\n $$\n \n\nfrom copy import deepcopy\n\ndef transform_tuple(components: list, values: list):\n transformed_values = []\n for i, component in enumerate(components):\n if i < len(values):\n if component[\"type\"] == \"tuple\":\n transformed_values.append({\"value\": transform_tuple(component[\"components\"], values[i]), **component})\n elif component[\"type\"] == \"tuple[]\":\n if not values[i]:\n transformed_values.append({\"value\": [], **component})\n continue\n sub_values = [transform_tuple(component[\"components\"], v) for v in values[i]]\n transformed_values.append({\"value\": sub_values, **component})\n else:\n transformed_values.append({\"value\": values[i], **component})\n return {item[\"name\"]: item[\"value\"] for item in transformed_values}\n\ndef transform_event(event: dict):\n new_event = deepcopy(event)\n if new_event.get(\"components\"):\n components = new_event.get(\"components\")\n\n if not new_event[\"value\"]:\n return new_event\n\n if isinstance(new_event[\"value\"][0], list):\n result_list = []\n for value_set in new_event[\"value\"]:\n result_list.append(transform_tuple(components, value_set))\n new_event[\"value\"] = result_list\n\n else:\n new_event[\"value\"] = transform_tuple(components, new_event[\"value\"])\n\n return new_event\n\n else:\n return event\n\ndef transform(events: dict):\n try:\n results = [\n transform_event(event) if event.get(\"decoded\") else event\n for event in events[\"data\"]\n ]\n events[\"data\"] = results\n return events\n except:\n return events\n\n $$;','\n CREATE OR REPLACE FUNCTION UTILS.udf_base58_to_hex(\n base58 STRING\n )\n COPY GRANTS\n RETURNS TEXT\n LANGUAGE PYTHON\nRUNTIME_VERSION = \\'3.8\\'\nHANDLER = \\'transform_base58_to_hex\\'\n\n AS\n $$\n \n\ndef transform_base58_to_hex(base58):\n if base58 is None:\n return \\'Invalid input\\'\n\n ALPHABET = \"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\"\n base_count = len(ALPHABET)\n\n num = 0\n leading_zeros = 0\n\n for char in base58:\n if char == \\'1\\':\n leading_zeros += 1\n else:\n break\n\n for char in base58:\n num *= base_count\n if char in ALPHABET:\n num += ALPHABET.index(char)\n else:\n return \\'Invalid character in input\\'\n\n hex_string = hex(num)[2:]\n\n if len(hex_string) % 2 != 0:\n hex_string = \\'0\\' + hex_string\n\n hex_leading_zeros = \\'00\\' * leading_zeros\n\n return \\'0x\\' + hex_leading_zeros + hex_string\n\n $$;','\n CREATE OR REPLACE FUNCTION UTILS.udf_hex_to_base58(\n input STRING\n )\n COPY GRANTS\n RETURNS TEXT\n LANGUAGE PYTHON\nRUNTIME_VERSION = \\'3.8\\'\nHANDLER = \\'transform_hex_to_base58\\'\n\n AS\n $$\n \n\ndef transform_hex_to_base58(input):\n if input is None or not input.startswith(\\'0x\\'):\n return \\'Invalid input\\'\n\n input = input[2:]\n\n ALPHABET = \"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\"\n byte_array = bytes.fromhex(input)\n num = int.from_bytes(byte_array, \\'big\\')\n\n encoded = \\'\\'\n while num > 0:\n num, remainder = divmod(num, 58)\n encoded = ALPHABET[remainder] + encoded\n\n for byte in byte_array:\n if byte == 0:\n encoded = \\'1\\' + encoded\n else:\n break\n\n return encoded\n\n $$;','\n CREATE OR REPLACE FUNCTION UTILS.udf_hex_to_bech32(\n input STRING,\n hrp STRING\n )\n COPY GRANTS\n RETURNS TEXT\n LANGUAGE PYTHON\nRUNTIME_VERSION = \\'3.8\\'\nHANDLER = \\'transform_hex_to_bech32\\'\n\n AS\n $$\n \n\ndef transform_hex_to_bech32(input, hrp=\\'\\'):\n CHARSET = \"qpzry9x8gf2tvdw0s3jn54khce6mua7l\"\n\n def bech32_polymod(values):\n generator = [0x3b6a57b2, 0x26508e6d, 0x1ea119fa, 0x3d4233dd, 0x2a1462b3]\n checksum = 1\n for value in values:\n top = checksum >> 25\n checksum = ((checksum & 0x1ffffff) << 5) ^ value\n for i in range(5):\n checksum ^= generator[i] if ((top >> i) & 1) else 0\n return checksum\n\n def bech32_hrp_expand(hrp):\n return [ord(x) >> 5 for x in hrp] + [0] + [ord(x) & 31 for x in hrp]\n\n def bech32_create_checksum(hrp, data):\n values = bech32_hrp_expand(hrp) + data\n polymod = bech32_polymod(values + [0, 0, 0, 0, 0, 0]) ^ 1\n return [(polymod >> 5 * (5 - i)) & 31 for i in range(6)]\n\n def bech32_convertbits(data, from_bits, to_bits, pad=True):\n acc = 0\n bits = 0\n ret = []\n maxv = (1 << to_bits) - 1\n max_acc = (1 << (from_bits + to_bits - 1)) - 1\n for value in data:\n acc = ((acc << from_bits) | value) & max_acc\n bits += from_bits\n while bits >= to_bits:\n bits -= to_bits\n ret.append((acc >> bits) & maxv)\n if pad and bits:\n ret.append((acc << (to_bits - bits)) & maxv)\n return ret\n\n if input is None or not input.startswith(\\'0x\\'):\n return \\'Invalid input\\'\n\n input = input[2:]\n\n data = bytes.fromhex(input)\n data5bit = bech32_convertbits(list(data), 8, 5)\n\n if data5bit is None:\n return \\'Data conversion failed\\'\n\n checksum = bech32_create_checksum(hrp, data5bit)\n\n return hrp + \\'1\\' + \\'\\'.join([CHARSET[d] for d in data5bit + checksum])\n\n $$;','\n CREATE OR REPLACE FUNCTION UTILS.udf_hex_to_algorand(\n input STRING\n )\n COPY GRANTS\n RETURNS TEXT\n LANGUAGE PYTHON\nRUNTIME_VERSION = \\'3.8\\'\nHANDLER = \\'transform_hex_to_algorand\\'\n\n AS\n $$\n \n\nimport hashlib\nimport base64\n\ndef transform_hex_to_algorand(input):\n if input is None or not input.startswith(\\'0x\\'):\n return \\'Invalid input\\'\n\n input = input[2:]\n public_key_bytes = bytearray.fromhex(input)\n\n sha512_256_hash = hashlib.new(\\'sha512_256\\', public_key_bytes).digest()\n\n checksum = sha512_256_hash[-4:]\n\n algorand_address = base64.b32encode(public_key_bytes + checksum).decode(\\'utf-8\\').rstrip(\\'=\\')\n\n return algorand_address\n\n $$;','\n CREATE OR REPLACE FUNCTION UTILS.udf_hex_to_tezos(\n input STRING,\n prefix STRING\n )\n COPY GRANTS\n RETURNS TEXT\n LANGUAGE PYTHON\nRUNTIME_VERSION = \\'3.8\\'\nHANDLER = \\'transform_hex_to_tezos\\'\n\n AS\n $$\n \n\nimport hashlib\n\ndef transform_hex_to_tezos(input, prefix):\n if input is None or not input.startswith(\\'0x\\'):\n return \\'Invalid input\\'\n\n input = input[2:]\n\n if len(input) != 40:\n return \\'Invalid length\\'\n\n hash_bytes = bytes.fromhex(input)\n\n prefixes = {\n \\'tz1\\': \\'06a19f\\', # Ed25519\n \\'tz2\\': \\'06a1a1\\', # Secp256k1\n \\'tz3\\': \\'06a1a4\\' # P-256\n }\n\n if prefix not in prefixes:\n return \\'Invalid prefix: Must be tz1, tz2, or tz3\\'\n\n prefix_bytes = bytes.fromhex(prefixes[prefix])\n\n prefixed_hash = prefix_bytes + hash_bytes\n\n checksum = hashlib.sha256(hashlib.sha256(prefixed_hash).digest()).digest()[:4]\n\n full_hash = prefixed_hash + checksum\n\n tezos_address = transform_hex_to_base58(full_hash.hex())\n\n return tezos_address\n\ndef transform_hex_to_base58(input):\n if input is None:\n return None\n\n ALPHABET = \"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\"\n byte_array = bytes.fromhex(input)\n num = int.from_bytes(byte_array, \\'big\\')\n\n encoded = \\'\\'\n while num > 0:\n num, remainder = divmod(num, 58)\n encoded = ALPHABET[remainder] + encoded\n\n for byte in byte_array:\n if byte == 0:\n encoded = \\'1\\' + encoded\n else:\n break\n\n return encoded\n\n $$;','\n CREATE OR REPLACE FUNCTION UTILS.udf_detect_overflowed_responses(\n file_url STRING,\n index_cols ARRAY\n )\n COPY GRANTS\n RETURNS ARRAY\n LANGUAGE PYTHON\nRUNTIME_VERSION = \\'3.11\\'\nCOMMENT = \\'Detect overflowed responses larger than 16MB\\'\nPACKAGES = (\\'snowflake-snowpark-python\\', \\'pandas\\')\nHANDLER = \\'main\\'\n\n AS\n $$\n \n\nimport pandas as pd\nfrom snowflake.snowpark.files import SnowflakeFile\n\nVARCHAR_MAX = 16_777_216\ndef main(file_url, index_cols):\n with SnowflakeFile.open(file_url, \\'rb\\') as f:\n df = pd.read_json(f, lines=True, compression=\\'gzip\\')\n data_length = df[\"data\"].astype(str).apply(len)\n return df[data_length > VARCHAR_MAX][index_cols].values.tolist()\n\n $$;','\n CREATE OR REPLACE FUNCTION UTILS.udtf_flatten_overflowed_responses(\n file_url STRING,\n index_cols ARRAY,\n index_vals ARRAY\n )\n COPY GRANTS\n RETURNS table(\n index_vals ARRAY,\n block_number NUMBER,\n metadata OBJECT,\n seq NUMBER,\n key STRING,\n path STRING,\n index NUMBER,\n value_ VARIANT\n )\n\n LANGUAGE PYTHON\nRUNTIME_VERSION = \\'3.11\\'\nCOMMENT = \\'Flatten rows from a JSON file with overflowed responses larger than 16MB\\'\nPACKAGES = (\\'snowflake-snowpark-python\\', \\'pandas\\', \\'simplejson\\', \\'numpy\\')\nHANDLER = \\'FlattenRows\\'\n\n AS\n $$\n \n\nimport logging\nimport simplejson as json\n\nimport numpy as np\nimport pandas as pd\nfrom snowflake.snowpark.files import SnowflakeFile\n\nVARCHAR_MAX = 16_777_216\n\nlogger = logging.getLogger(\"udtf_flatten_overflowed_responses\")\n\nclass Flatten:\n \"\"\"\n Recursive function to flatten a nested JSON file\n \"\"\"\n\n def __init__(self, mode: str, exploded_key: list) -> None:\n self.mode = mode\n self.exploded_key = exploded_key\n\n def _flatten_response(\n self,\n response_key: str,\n responses: str,\n block_number: int,\n metadata: dict,\n seq_index: int = 0,\n path: str = \"\",\n ):\n \"\"\"\n Example:\n\n input: {\"a\":1, \"b\":[77,88], \"c\": {\"d\":\"X\"}}\n\n output:\n - SEQ: A unique sequence number associated with the input record; the sequence is not guaranteed to be gap-free or ordered in any particular way.\n - KEY: For maps or objects, this column contains the key to the exploded value.\n - PATH: The path to the element within a data structure which needs to be flattened.\n - INDEX: The index of the element, if it is an array; otherwise NULL.\n - VALUE_: The value of the element of the flattened array/object.\n\n \"\"\"\n exploded_data = []\n if self.mode == \"array\":\n check_mode = isinstance(responses, list)\n elif self.mode == \"dict\":\n check_mode = isinstance(responses, dict)\n elif self.mode == \"both\":\n check_mode = isinstance(responses, list) or isinstance(responses, dict)\n\n if check_mode:\n if isinstance(responses, dict):\n looped_keys = responses.keys()\n for key in looped_keys:\n next_path = f\"{path}.{key}\" if path else key\n index = None\n exploded_data.append(\n {\n \"block_number\": block_number,\n \"metadata\": metadata,\n \"seq\": seq_index,\n \"key\": key,\n \"path\": next_path,\n \"index\": index,\n \"value_\": responses[key],\n }\n )\n exploded_data.extend(\n self._flatten_response(\n key,\n responses[key],\n block_number,\n metadata,\n seq_index,\n next_path,\n )\n )\n\n elif isinstance(responses, list):\n looped_keys = range(len(responses))\n if response_key in self.exploded_key or len(self.exploded_key) == 0:\n for item_i, item in enumerate(responses):\n if response_key == \"result\":\n seq_index += 1\n index = item_i\n exploded_data.append(\n {\n \"block_number\": block_number,\n \"metadata\": metadata,\n \"seq\": seq_index,\n \"key\": None,\n \"path\": f\"{path}[{item_i}]\",\n \"index\": index,\n \"value_\": item,\n }\n )\n exploded_data.extend(\n self._flatten_response(\n item_i,\n item,\n block_number,\n metadata,\n seq_index,\n f\"{path}[{item_i}]\",\n )\n )\n\n return exploded_data\n\nclass FlattenRows:\n \"\"\"\n Recursive function to flatten a given JSON file from Snowflake stage\n \"\"\"\n def process(self, file_url: str, index_cols: list, index_vals: list):\n with SnowflakeFile.open(file_url, \\'rb\\') as f:\n df = pd.read_json(f, lines=True, compression=\\'gzip\\')\n\n df.set_index(index_cols, inplace=True, drop=False)\n df = df.loc[index_vals]\n\n flattener = Flatten(mode=\"both\", exploded_key=[])\n\n df[\"value_\"] = df.apply(\n lambda x: flattener._flatten_response(\n block_number=x[\"block_number\"], metadata=x[\"metadata\"], responses=x[\"data\"], response_key=None\n ),\n axis=\"columns\",\n )\n df[\"value_\"] = df[\"value_\"].apply(pd.DataFrame.from_records)\n df[\"index_cols\"] = df.index\n df = df[[\"index_cols\", \"value_\"]]\n flattened = pd.concat(\n df[\"value_\"].values.tolist(), keys=df[\"index_cols\"].values.tolist()\n ).droplevel(-1)\n\n cleansed = flattened.replace({np.nan: None})\n\n overflow = cleansed[\"value_\"].astype(str).apply(len) > VARCHAR_MAX\n\n cleansed.loc[overflow, [\"value_\"]] = None\n temp_index_cols = list(range(len(index_cols)))\n cleansed = cleansed.reset_index(names=temp_index_cols, drop=False)\n cleansed[\"index_cols\"] = cleansed[temp_index_cols].apply(list, axis=1)\n cleansed.drop(columns=temp_index_cols, inplace=True, errors=\"ignore\")\n return list(cleansed[np.roll(cleansed.columns.values, 1).tolist()].itertuples(index=False, name=None))\n\n $$;','END') AS ddl,\nmd5(ddl) AS ddl_hash,\nsysdate() as ddl_created_at\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.fsc_utils._datashare___create_gold": {"database": "EXTERNAL", "schema": "_datashare", "name": "_datashare___create_gold", "resource_type": "model", "package_name": "fsc_utils", "path": "datashare/_datashare___create_gold.sql", "original_file_path": "models/datashare/_datashare___create_gold.sql", "unique_id": "model.fsc_utils._datashare___create_gold", "fqn": ["fsc_utils", "datashare", "_datashare___create_gold"], "alias": "_create_gold", "checksum": {"name": "sha256", "checksum": "e05db71a87f76f4cff0b9c4d1b83b975ef424d147379e2442907b1004f709887"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": "merge", "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "ddl_hash", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true, "merge_update_columns": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "incremental", "incremental_strategy": "merge", "unique_key": "ddl_hash", "merge_update_columns": [], "copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns"}, "created_at": 1760113500.759118, "relation_name": "EXTERNAL._datashare._create_gold", "raw_code": "{{\n config(\n materialized = 'incremental',\n incremental_strategy = 'merge',\n unique_key = 'ddl_hash',\n merge_update_columns = [],\n )\n}}\n{% if execute %}\nSELECT\n$${{- fsc_utils.generate_datashare_ddl() -}}$$ AS ddl,\nmd5(ddl) AS ddl_hash,\nsysdate() as ddl_created_at\n{% else %}\nSELECT\nnull as ddl,\nnull as ddl_hash,\nnull as ddl_created_at\nfrom dual limit 0\n{% endif %}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fsc_utils.generate_datashare_ddl"], "nodes": []}, "compiled_path": "target/compiled/fsc_utils/models/datashare/_datashare___create_gold.sql", "compiled": true, "compiled_code": "\n\nSELECT\n$$\nBEGIN\nCREATE DATABASE IF NOT EXISTS __NEW__;\nCREATE SCHEMA IF NOT EXISTS __NEW__.tokenlists;\nCREATE SCHEMA IF NOT EXISTS __NEW__.silver;\nCREATE SCHEMA IF NOT EXISTS __NEW__.defillama;\nCREATE SCHEMA IF NOT EXISTS __NEW__.polymarket;\nCREATE SCHEMA IF NOT EXISTS __NEW__.deepnftvalue;\nCREATE SCHEMA IF NOT EXISTS __NEW__.snapshot;\nCREATE SCHEMA IF NOT EXISTS __NEW__.layerzero;\nCREATE SCHEMA IF NOT EXISTS __NEW__.flashbots;\n\n\n \n \n create or replace view __NEW__.DEFILLAMA.DIM_CHAINS\n \n \n \n(\n \n \"CHAIN\" COMMENT \\$\\$Name of the blockchain.\\$\\$, \n \n \"CHAIN_SYMBOL\" COMMENT \\$\\$The official abbreviation or symbol representing the blockchain.\\$\\$, \n \n \"TOKEN_NAME\" COMMENT \\$\\$The full name of the native token used on the blockchain.\\$\\$, \n \n \"TOKEN_DECIMALS\" COMMENT \\$\\$The number of decimals used by the native token, dictating its smallest divisible unit.\\$\\$, \n \n \"TOKEN_SYMBOL\" COMMENT \\$\\$Symbol for the native token of the chain.\\$\\$, \n \n \"CHAIN_ID\" COMMENT \\$\\$Unique identifier of the chain.\\$\\$, \n \n \"NETWORK_ID\" COMMENT \\$\\$Identifier that distinguishes between multiple networks within a single blockchain (e.g., Mainnet vs Testnet).\\$\\$, \n \n \"RPC\" COMMENT \\$\\$URL of the primary RPC endpoint used to interact with the blockchain.\\$\\$, \n \n \"FAUCETS\" COMMENT \\$\\$List or URLs of faucets available for obtaining test tokens on the chain's testnets.\\$\\$, \n \n \"INFO_URL\" COMMENT \\$\\$URL to an official or authoritative information source about the blockchain.\\$\\$, \n \n \"SHORT_NAME\" COMMENT \\$\\$A shorter or abbreviated version of the blockchain's name, used in contexts with limited space.\\$\\$, \n \n \"EXPLORERS\" COMMENT \\$\\$List of URLs or platforms where transactions, blocks, and other chain activities can be explored and verified.\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n chain,\n chain_symbol,\n token_name,\n token_decimals,\n token_symbol,\n chain_id,\n network_id,\n rpc,\n faucets,\n info_url,\n short_name,\n explorers\nFROM \n __SOURCE__.bronze.defillama_chainlist\n );\n\n\n \n \n create or replace view __NEW__.TOKENLISTS.EZ_VERIFIED_TOKENS\n \n \n \n(\n \n \"TOKEN_ADDRESS\" COMMENT \\$\\$The address of the token.\\$\\$, \n \n \"NAME\" COMMENT \\$\\$The name of the token.\\$\\$, \n \n \"SYMBOL\" COMMENT \\$\\$The symbol of the token.\\$\\$, \n \n \"DECIMALS\" COMMENT \\$\\$The number of decimals of the token.\\$\\$, \n \n \"CHAIN_ID\" COMMENT \\$\\$The unique identifier of the chain where the token is deployed.\\$\\$, \n \n \"CHAIN_NAME\" COMMENT \\$\\$The name of the chain where the token is deployed. This is derived from `defillama.dim_chains`.\\$\\$, \n \n \"CHAIN_SYMBOL\" COMMENT \\$\\$The official abbreviation or symbol representing the blockchain. This is derived from `defillama.dim_chains`.\\$\\$, \n \n \"TOKEN_EXTENSIONS\" COMMENT \\$\\$Extended token information, including mappings of the tokens on other chains.\\$\\$, \n \n \"PROVIDER\" COMMENT \\$\\$The provider of the token list.\\$\\$, \n \n \"LIST_METADATA\" COMMENT \\$\\$The metadata of the token list.\\$\\$, \n \n \"EZ_VERIFIED_TOKENS_ID\" COMMENT \\$\\$The unique identifier for each row in the table.\\$\\$, \n \n \"INSERTED_TIMESTAMP\" COMMENT \\$\\$The utc timestamp at which the row was inserted into the table.\\$\\$, \n \n \"MODIFIED_TIMESTAMP\" COMMENT \\$\\$The utc timestamp at which the row was last modified.\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n LOWER(address) AS token_address,\n NAME,\n symbol,\n decimals,\n t.chain_id,\n chain AS chain_name,\n chain_symbol,\n extensions AS token_extensions,\n provider,\n list_metadata,\n tokenlists_verified_tokens_id AS ez_verified_tokens_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n __SOURCE__.silver.tokenlists_verified_tokens t \nLEFT JOIN __NEW__.DEFILLAMA.DIM_CHAINS d \n ON t.chain_id = d.chain_id\n );\n\n\n \n \n create or replace view __NEW__.POLYMARKET.DIM_MARKETS\n \n \n \n(\n \n \"CONDITION_ID\" COMMENT \\$\\$ID of the specific market.\\$\\$, \n \n \"QUESTION\" COMMENT \\$\\$The actual question the market is based on.\\$\\$, \n \n \"DESCRIPTION\" COMMENT \\$\\$A detailed description of the market.\\$\\$, \n \n \"TOKEN_1_TOKEN_ID\" COMMENT \\$\\$Token ID for the first token, available on-chain to make the on-chain data human-readable.\\$\\$, \n \n \"TOKEN_1_OUTCOME\" COMMENT \\$\\$Outcome for the first token, typically \"yes\" or \"no.\"\\$\\$, \n \n \"TOKEN_1_WINNER\" COMMENT \\$\\$Winner status for the first token.\\$\\$, \n \n \"TOKEN_2_TOKEN_ID\" COMMENT \\$\\$Token ID for the second token, available on-chain to make the on-chain data human-readable.\\$\\$, \n \n \"TOKEN_2_OUTCOME\" COMMENT \\$\\$Outcome for the second token, typically \"yes\" or \"no.\"\\$\\$, \n \n \"TOKEN_2_WINNER\" COMMENT \\$\\$Winner status for the second token.\\$\\$, \n \n \"ENABLE_ORDER_BOOK\" COMMENT \\$\\$Indicates if the order book is enabled.\\$\\$, \n \n \"ACTIVE\" COMMENT \\$\\$Indicates if the market is currently live.\\$\\$, \n \n \"CLOSED\" COMMENT \\$\\$Indicates if the market is not currently live.\\$\\$, \n \n \"ARCHIVED\" COMMENT \\$\\$Indicates if the market is archived.\\$\\$, \n \n \"ACCEPTING_ORDERS\" COMMENT \\$\\$Indicates if the market is accepting orders.\\$\\$, \n \n \"ACCEPTING_ORDER_TIMESTAMP\" COMMENT \\$\\$Timestamp when the market started accepting orders.\\$\\$, \n \n \"MINIMUM_ORDER_SIZE\" COMMENT \\$\\$Minimum size of an order in the market.\\$\\$, \n \n \"MINIMUM_TICK_SIZE\" COMMENT \\$\\$Minimum tick size for the market.\\$\\$, \n \n \"QUESTION_ID\" COMMENT \\$\\$ID of the question associated with the market.\\$\\$, \n \n \"MARKET_SLUG\" COMMENT \\$\\$\\$\\$, \n \n \"END_DATE_ISO\" COMMENT \\$\\$End date of the market in ISO format.\\$\\$, \n \n \"GAME_START_TIME\" COMMENT \\$\\$Start time of the game/event associated with the market, used to trigger delay.\\$\\$, \n \n \"SECONDS_DELAY\" COMMENT \\$\\$Seconds of match delay for in-game trading.\\$\\$, \n \n \"FPMM\" COMMENT \\$\\$Fixed Product Market Maker (FPMM) Polygon address.\\$\\$, \n \n \"MAKER_BASE_FEE\" COMMENT \\$\\$Base fee for makers in the market.\\$\\$, \n \n \"TAKER_BASE_FEE\" COMMENT \\$\\$Base fee for takers in the market.\\$\\$, \n \n \"NEG_RISK\" COMMENT \\$\\$Indicates if negative risk is present in the market.\\$\\$, \n \n \"NEG_RISK_MARKET_ID\" COMMENT \\$\\$Market ID for negative risk.\\$\\$, \n \n \"NEG_RISK_REQUEST_ID\" COMMENT \\$\\$Request ID for negative risk.\\$\\$, \n \n \"REWARDS\" COMMENT \\$\\$Rewards associated with the market.\\$\\$, \n \n \"TAGS\" COMMENT \\$\\$All the associated tags in the market, contained in an object.\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n condition_id,\n question,\n description,\n token_1_token_id,\n token_1_outcome,\n token_1_winner,\n token_2_token_id,\n token_2_outcome,\n token_2_winner,\n enable_order_book,\n active,\n closed,\n archived,\n accepting_orders,\n accepting_order_timestamp,\n minimum_order_size,\n minimum_tick_size,\n question_id,\n market_slug,\n end_date_iso,\n game_start_time,\n seconds_delay,\n fpmm,\n maker_base_fee,\n taker_base_fee,\n neg_risk,\n neg_risk_market_id,\n neg_risk_request_id,\n rewards,\n tags\nFROM\n __SOURCE__.silver.polymarket_markets\n );\n\n\n \n \n create or replace view __NEW__.DEEPNFTVALUE.FACT_TOKENS\n \n \n \n(\n \n \"COLLECTION_NAME\" COMMENT \\$\\$Name of NFT collection, e.g. Azuki or CryptoPunks.\\$\\$, \n \n \"COLLECTION_ADDRESS\" COMMENT \\$\\$Contract address of NFT collection.\\$\\$, \n \n \"TOKEN_ID\" COMMENT \\$\\$Token ID of NFT.\\$\\$, \n \n \"ACTIVE_OFFER\" COMMENT \\$\\$Includes information about the active offer for the token, if any.\\$\\$, \n \n \"ATTRIBUTES\" COMMENT \\$\\$Attributes of NFT collection.\\$\\$, \n \n \"ATTRIBUTES_SYNTHETIC\" COMMENT \\$\\$\\$\\$, \n \n \"IMAGE\" COMMENT \\$\\$Image URL of NFT.\\$\\$, \n \n \"IS_FLAGGED\" COMMENT \\$\\$Indicates whether the token is flagged.\\$\\$, \n \n \"LAST_SALE\" COMMENT \\$\\$\\$\\$, \n \n \"OWNER\" COMMENT \\$\\$Address of token owner and ENS name, if available.\\$\\$, \n \n \"RARITY\" COMMENT \\$\\$Rarity of NFT.\\$\\$, \n \n \"RARITY_RANK\" COMMENT \\$\\$Rarity rank of NFT.\\$\\$, \n \n \"TOP_BID\" COMMENT \\$\\$Includes information about the top bid for the token, if any.\\$\\$, \n \n \"VALUATION\" COMMENT \\$\\$Valuation of NFT, as of updated_timestamp.\\$\\$, \n \n \"UPDATED_TIMESTAMP\" COMMENT \\$\\$Timestamp of the last update for the token.\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n collection_name,\n LOWER(contract_address) AS collection_address,\n token_id :: INTEGER AS token_id,\n active_offer AS active_offer,\n attributes,\n attributes_synthetic,\n image,\n CASE\n WHEN is_flagged :: STRING = 'true' THEN TRUE\n ELSE FALSE\n END is_flagged,\n last_sale :: OBJECT AS last_sale,\n owner :: OBJECT AS owner,\n rarity :: FLOAT AS rarity,\n rarity_rank :: INTEGER AS rarity_rank,\n top_bid :: OBJECT AS top_bid,\n valuation :: OBJECT AS valuation,\n _inserted_timestamp AS updated_timestamp\nFROM\n __SOURCE__.silver.dnv_tokens\n );\n\n\n \n \n create or replace view __NEW__.DEEPNFTVALUE.FACT_COLLECTIONS\n \n \n \n(\n \n \"COLLECTION_NAME\" COMMENT \\$\\$Name of NFT collection, e.g. Azuki or CryptoPunks.\\$\\$, \n \n \"COLLECTION_ADDRESS\" COMMENT \\$\\$Contract address of NFT collection.\\$\\$, \n \n \"FLOOR_PRICE\" COMMENT \\$\\$Floor price of NFT collection.\\$\\$, \n \n \"VALUATION_MAX\" COMMENT \\$\\$Maximum valuation of NFT collection.\\$\\$, \n \n \"VALUATION_MIN\" COMMENT \\$\\$Minimum valuation of NFT collection.\\$\\$, \n \n \"ATTRIBUTES\" COMMENT \\$\\$Attributes of NFT collection.\\$\\$, \n \n \"VALUATION_TIMESTAMP\" COMMENT \\$\\$Timestamp of valuation.\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n collection_name,\n LOWER(collection_address) AS collection_address,\n floor_price,\n valuation_max,\n valuation_min,\n attributes,\n _inserted_timestamp AS valuation_timestamp\nFROM\n __SOURCE__.silver.dnv_collections\n );\n\n\n \n \n create or replace view __NEW__.DEEPNFTVALUE.FACT_VALUATIONS\n \n \n \n(\n \n \"VALUATION_DATE\" COMMENT \\$\\$Date of valuation.\\$\\$, \n \n \"COLLECTION_NAME\" COMMENT \\$\\$Name of NFT collection, e.g. Azuki or CryptoPunks.\\$\\$, \n \n \"COLLECTION_ADDRESS\" COMMENT \\$\\$Contract address of NFT collection.\\$\\$, \n \n \"TOKEN_ID\" COMMENT \\$\\$Token ID of NFT.\\$\\$, \n \n \"CURRENCY\" COMMENT \\$\\$Valuation currency.\\$\\$, \n \n \"PRICE\" COMMENT \\$\\$Valuation price.\\$\\$, \n \n \"UPDATED_TIMESTAMP\" COMMENT \\$\\$Timestamp of the last update for the token.\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n valuation_date,\n collection_name,\n collection_address,\n token_id,\n currency,\n price,\n _inserted_timestamp AS updated_timestamp\nFROM\n __SOURCE__.silver.dnv_valuations\n );\n\n\n \n \n create or replace view __NEW__.SNAPSHOT.FACT_VOTES\n \n \n \n(\n \n \"VOTE_TIMESTAMP\" COMMENT \\$\\$The time at which the vote was cast.\\$\\$, \n \n \"VOTER\" COMMENT \\$\\$The wallet address of the user that voted on a proposal.\\$\\$, \n \n \"PROPOSAL_ID\" COMMENT \\$\\$A unique identifier for the proposal being voted on.\\$\\$, \n \n \"VOTE_OPTION\" COMMENT \\$\\$How the user voted on the proposal. Corresponds to the choices array.\\$\\$, \n \n \"VOTING_POWER\" COMMENT \\$\\$The amount of voting power one holds is proportional to the amount of the token they hold.\\$\\$, \n \n \"IPFS\" COMMENT \\$\\$The corresponding IPFS hash.\\$\\$, \n \n \"VOTE_ID\" COMMENT \\$\\$A unique identifier assigned to a vote.\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n vote_timestamp,\n voter,\n proposal_id,\n vote_option,\n voting_power,\n ipfs,\n vote_id\nFROM\n __SOURCE__.silver.snapshot_votes\n );\n\n\n \n \n create or replace view __NEW__.SNAPSHOT.DIM_USERS\n \n \n \n(\n \n \"ADDRESS\" COMMENT \\$\\$The address of the user.\\$\\$, \n \n \"NAME\" COMMENT \\$\\$The name of the user.\\$\\$, \n \n \"ABOUT\" COMMENT \\$\\$The description of the user.\\$\\$, \n \n \"AVATAR\" COMMENT \\$\\$The link for the avatar or profile picture of the user.\\$\\$, \n \n \"IPFS\" COMMENT \\$\\$The corresponding IPFS hash.\\$\\$, \n \n \"CREATED_AT\" COMMENT \\$\\$The time at which the user was created.\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n address,\n NAME,\n about,\n avatar,\n ipfs,\n created_at\nFROM\n __SOURCE__.silver.snapshot_users\n );\n\n\n \n \n create or replace view __NEW__.SNAPSHOT.EZ_SNAPSHOT\n \n \n \n(\n \n \"ID\" COMMENT \\$\\$A unique identifier assigned to a vote.\\$\\$, \n \n \"PROPOSAL_ID\" COMMENT \\$\\$A unique identifier for the proposal being voted on.\\$\\$, \n \n \"VOTER\" COMMENT \\$\\$The wallet address of the user that voted on a proposal.\\$\\$, \n \n \"VOTE_OPTION\" COMMENT \\$\\$How the user voted on the proposal. Corresponds to the choices array.\\$\\$, \n \n \"VOTING_POWER\" COMMENT \\$\\$The amount of voting power one holds is proportional to the amount of the token they hold.\\$\\$, \n \n \"VOTE_TIMESTAMP\" COMMENT \\$\\$The time at which the vote was cast.\\$\\$, \n \n \"CHOICES\" COMMENT \\$\\$An array containing the voting options on the proposal.\\$\\$, \n \n \"PROPOSAL_AUTHOR\" COMMENT \\$\\$The address of the wallet that wrote the proposal.\\$\\$, \n \n \"PROPOSAL_TITLE\" COMMENT \\$\\$The title or name of the proposal.\\$\\$, \n \n \"PROPOSAL_TEXT\" COMMENT \\$\\$The body of the proposal.\\$\\$, \n \n \"SPACE_ID\" COMMENT \\$\\$A way to identify which group, or space, on Snapshot a proposal belongs to.\\$\\$, \n \n \"NETWORK\" COMMENT \\$\\$The default network or blockchain used for the space.\\$\\$, \n \n \"DELAY\" COMMENT \\$\\$The default number of hours of voting delay for the space. The voting delay is the time between proposal submission and the opening of voting.\\$\\$, \n \n \"QUORUM\" COMMENT \\$\\$The minimum amount of voting power for a proposal to pass.\\$\\$, \n \n \"VOTING_PERIOD\" COMMENT \\$\\$The default time in hours within a space for a proposal to be open for voting.\\$\\$, \n \n \"VOTING_TYPE\" COMMENT \\$\\$The type of voting system used for this space. If this column is not null, the same voting system will be used for all proposals in this space.\\$\\$, \n \n \"PROPOSAL_START_TIME\" COMMENT \\$\\$The time at which voting on the proposal begins.\\$\\$, \n \n \"PROPOSAL_END_TIME\" COMMENT \\$\\$The time at which voting on the proposal ends.\\$\\$\n \n)\n\n copy grants as (\n \n\nWITH votes AS (\n SELECT\n vote_id,\n ipfs,\n proposal_id,\n voter,\n voting_power,\n vote_timestamp,\n vote_option,\n _inserted_timestamp\n FROM\n __SOURCE__.silver.snapshot_votes\n),\nproposals AS (\n\n SELECT\n proposal_id,\n ipfs,\n choices,\n proposal_author,\n proposal_title,\n proposal_text,\n delay,\n quorum,\n voting_period,\n voting_type,\n space_id,\n network,\n network_id,\n proposal_start_time,\n proposal_end_time,\n _inserted_timestamp\n FROM\n __SOURCE__.silver.snapshot_proposals\n)\nSELECT\n vote_id AS id, \n v.proposal_id, \n voter, \n vote_option, \n voting_power, \n vote_timestamp, \n choices, \n proposal_author, \n proposal_title, \n proposal_text, \n space_id,\n network, \n delay, \n quorum, \n voting_period, \n voting_type, \n proposal_start_time, \n proposal_end_time\nFROM\n votes v\n INNER JOIN proposals p\n ON v.proposal_id = p.proposal_id\n );\n\n\n \n \n create or replace view __NEW__.SNAPSHOT.FACT_PROPOSALS\n \n \n \n(\n \n \"CREATED_AT\" COMMENT \\$\\$The time at which the proposal was generated.\\$\\$, \n \n \"PROPOSAL_TITLE\" COMMENT \\$\\$The title or name of the proposal.\\$\\$, \n \n \"PROPOSAL_AUTHOR\" COMMENT \\$\\$The address of the wallet that wrote the proposal.\\$\\$, \n \n \"PROPOSAL_TEXT\" COMMENT \\$\\$The body of the proposal.\\$\\$, \n \n \"CHOICES\" COMMENT \\$\\$An array containing the voting options on the proposal.\\$\\$, \n \n \"DELAY\" COMMENT \\$\\$The default number of hours of voting delay for the space. The voting delay is the time between proposal submission and the opening of voting.\\$\\$, \n \n \"QUORUM\" COMMENT \\$\\$The minimum amount of voting power for a proposal to pass.\\$\\$, \n \n \"VOTING_PERIOD\" COMMENT \\$\\$The default time in hours within a space for a proposal to be open for voting.\\$\\$, \n \n \"VOTING_TYPE\" COMMENT \\$\\$The type of voting system used for this space. If this column is not null, the same voting system will be used for all proposals in this space.\\$\\$, \n \n \"IPFS\" COMMENT \\$\\$The corresponding IPFS hash.\\$\\$, \n \n \"PROPOSAL_START_TIME\" COMMENT \\$\\$The time at which voting on the proposal begins.\\$\\$, \n \n \"PROPOSAL_END_TIME\" COMMENT \\$\\$The time at which voting on the proposal ends.\\$\\$, \n \n \"SPACE_ID\" COMMENT \\$\\$A way to identify which group, or space, on Snapshot a proposal belongs to.\\$\\$, \n \n \"NETWORK\" COMMENT \\$\\$The default network or blockchain used for the space.\\$\\$, \n \n \"NETWORK_ID\" COMMENT \\$\\$The default network or blockchain unique identifier used for the space.\\$\\$, \n \n \"PROPOSAL_ID\" COMMENT \\$\\$A unique identifier for the proposal being voted on.\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n created_at,\n proposal_title,\n proposal_author,\n proposal_text,\n choices,\n delay,\n quorum,\n voting_period,\n voting_type,\n ipfs,\n proposal_start_time,\n proposal_end_time,\n space_id,\n network,\n network_id,\n proposal_id\nFROM\n __SOURCE__.silver.snapshot_proposals\n );\n\n\n \n \n create or replace view __NEW__.SNAPSHOT.DIM_SPACES\n \n \n \n(\n \n \"SPACE_ID\" COMMENT \\$\\$A way to identify which group, or space, on Snapshot a proposal belongs to.\\$\\$, \n \n \"SPACE\" COMMENT \\$\\$The name of the space.\\$\\$, \n \n \"ABOUT\" COMMENT \\$\\$The description of the space.\\$\\$, \n \n \"SYMBOL\" COMMENT \\$\\$The symbol of the space.\\$\\$, \n \n \"NETWORK\" COMMENT \\$\\$The default network or blockchain used for the space.\\$\\$, \n \n \"CATEGORIES\" COMMENT \\$\\$The category of the space.\\$\\$, \n \n \"DOMAIN\" COMMENT \\$\\$The domain name of the space.\\$\\$, \n \n \"IS_PRIVATE\" COMMENT \\$\\$Boolean column to signal whether the space is private or not.\\$\\$, \n \n \"IS_VERIFIED\" COMMENT \\$\\$Boolean column to signal whether the space is verified or not.\\$\\$, \n \n \"ADMINS\" COMMENT \\$\\$An array of the admin addresses of the space.\\$\\$, \n \n \"MEMBERS\" COMMENT \\$\\$An array of the member addresses of the space.\\$\\$, \n \n \"TREASURIES\" COMMENT \\$\\$An object showcasing treasury details for the space.\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n space_id,\n SPACE,\n about,\n symbol,\n network,\n categories,\n domain,\n is_private,\n is_verified,\n admins,\n members,\n treasuries\nFROM\n __SOURCE__.silver.snapshot_spaces\n );\n\n\n \n \n create or replace view __NEW__.DEFILLAMA.FACT_POOL_YIELDS\n \n \n \n(\n \n \"DATE\" COMMENT \\$\\$Date associated with the reported records.\\$\\$, \n \n \"POOL_ID\" COMMENT \\$\\$The Defillama ID of the pool.\\$\\$, \n \n \"PROJECTS\" COMMENT \\$\\$Projects the pool belongs to.\\$\\$, \n \n \"CHAIN\" COMMENT \\$\\$The name of the blockchain.\\$\\$, \n \n \"SYMBOL\" COMMENT \\$\\$The symbol of the tokens associated with the pool.\\$\\$, \n \n \"APY\" COMMENT \\$\\$Base APY + Reward APY.\\$\\$, \n \n \"APY_BASE\" COMMENT \\$\\$Annualized percentage yield from trading fees/supplying. For DEXes, we use the 24-hour fees and scale those to a year.\\$\\$, \n \n \"BASE_7D\" COMMENT \\$\\$Annualized percentage yield from trading fees from the last 7 days.\\$\\$, \n \n \"APY_BASE_INCEPTION\" COMMENT \\$\\$Annualized percentage yield since inception.\\$\\$, \n \n \"APY_MEAN_30D\" COMMENT \\$\\$Average APY in the last 30 days.\\$\\$, \n \n \"APY_PCT_1D\" COMMENT \\$\\$Percent change of APY in the last 24 hours.\\$\\$, \n \n \"APY_PCT_7D\" COMMENT \\$\\$Percent change of APY in the last 7 days.\\$\\$, \n \n \"APY_PCT_30D\" COMMENT \\$\\$Percent change of APY in the last 30 days.\\$\\$, \n \n \"APY_REWARDS\" COMMENT \\$\\$Annualized percentage yield from incentives.\\$\\$, \n \n \"IL_7D\" COMMENT \\$\\$The percentage of impermanent loss between LPing for the last 7 days versus holding the underlying assets instead.\\$\\$, \n \n \"IL_RISK\" COMMENT \\$\\$Yes or No if the pool has impermanent loss risk.\\$\\$, \n \n \"REWARD_TOKENS\" COMMENT \\$\\$Addresses of the incentive tokens.\\$\\$, \n \n \"MU\" COMMENT \\$\\$Expected return based on the mean of potential returns of the pool.\\$\\$, \n \n \"SIGMA\" COMMENT \\$\\$The representation of pool volatility/risk. A higher sigma indicates a higher risk.\\$\\$, \n \n \"STABLECOIN\" COMMENT \\$\\$Boolean indicating if the pool is a stablecoin-to-stablecoin pool.\\$\\$, \n \n \"TVL_USD\" COMMENT \\$\\$The total value locked in the pool.\\$\\$, \n \n \"UNDERLYING_TOKENS\" COMMENT \\$\\$The addresses of the tokens associated with the pool.\\$\\$, \n \n \"VOLUME_USD_1D\" COMMENT \\$\\$Total volume of the pool in the last 24 hours.\\$\\$, \n \n \"VOLUME_USD_7D\" COMMENT \\$\\$Total volume of the pool in the last 7 days.\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n TIMESTAMP :: DATE AS DATE,\n pool_id,\n projects,\n chain,\n symbol,\n apy,\n apy_base,\n base_7d,\n apy_base_inception,\n apy_mean_30d,\n apy_pct_1d,\n apy_pct_7d,\n apy_pct_30d,\n apy_rewards,\n il_7d,\n il_risk,\n reward_tokens,\n mu,\n sigma,\n stablecoin,\n tvl_usd,\n underlying_tokens,\n volume_usd_1d,\n volume_usd_7d\nFROM\n __SOURCE__.silver.defillama_pool_yields f\n );\n\n\n \n \n create or replace view __NEW__.DEFILLAMA.FACT_PROTOCOL_FEES_REVENUE\n \n \n \n(\n \n \"DATE\" COMMENT \\$\\$Date associated with the reported records.\\$\\$, \n \n \"CHAIN\" COMMENT \\$\\$The name of the blockchain.\\$\\$, \n \n \"PROTOCOL\" COMMENT \\$\\$The name of the protocol.\\$\\$, \n \n \"FEES\" COMMENT \\$\\$The total amount of fees earned by the protocol on a daily basis, denominated in USD.\\$\\$, \n \n \"REVENUE\" COMMENT \\$\\$The total amount of revenue earned by the protocol on a daily basis, denominated in USD.\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n f.TIMESTAMP :: DATE AS DATE,\n f.chain,\n f.protocol,\n COALESCE(daily_fees,0) AS fees,\n COALESCE(daily_rev,0) AS revenue\nFROM\n __SOURCE__.silver.defillama_protocol_fees f\nLEFT JOIN\n __SOURCE__.silver.defillama_protocol_revenue r\n ON f.TIMESTAMP = r.TIMESTAMP AND f.chain = r.chain AND f.protocol = r.protocol\n );\n\n\n \n \n create or replace view __NEW__.DEFILLAMA.DIM_STABLECOINS\n \n \n \n(\n \n \"STABLECOIN_ID\" COMMENT \\$\\$Unique identifier of the stablecoin.\\$\\$, \n \n \"STABLECOIN\" COMMENT \\$\\$Name of the stablecoin.\\$\\$, \n \n \"SYMBOL\" COMMENT \\$\\$Symbol of the stablecoin.\\$\\$, \n \n \"PEG_TYPE\" COMMENT \\$\\$Type of asset that the stablecoin is pegged to.\\$\\$, \n \n \"PEG_MECHANISM\" COMMENT \\$\\$The method used for the stablecoin peg (e.g. algorithmic, crypto-backed etc.).\\$\\$, \n \n \"PRICE_SOURCE\" COMMENT \\$\\$The source of the prices listed on Defillama.\\$\\$, \n \n \"CHAINS\" COMMENT \\$\\$Array of the various chains or networks that the stablecoin is deployed on.\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n stablecoin_id,\n stablecoin,\n symbol,\n peg_type,\n peg_mechanism,\n price_source,\n chains\nFROM \n __SOURCE__.bronze.defillama_stablecoins\n );\n\n\n \n \n create or replace view __NEW__.DEFILLAMA.EZ_INVESTORS\n \n \n \n(\n \n \"INVESTOR\" COMMENT \\$\\$Name of the investor or investment firm.\\$\\$, \n \n \"DEALS\" COMMENT \\$\\$Total number of funding deals the investor has participated in.\\$\\$, \n \n \"TOTAL_AMOUNT\" COMMENT \\$\\$Total amount invested across all deals (in USD).\\$\\$, \n \n \"MEDIAN_AMOUNT\" COMMENT \\$\\$Median investment amount per deal (in USD).\\$\\$, \n \n \"CHAINS\" COMMENT \\$\\$Array of blockchain networks the investor has invested in.\\$\\$, \n \n \"TOP_PROJECT_CATEGORY\" COMMENT \\$\\$Category of the project representing the investor's largest investment.\\$\\$, \n \n \"TOP_ROUND_TYPE\" COMMENT \\$\\$Type of funding round for the investor's largest investment.\\$\\$, \n \n \"PROJECTS\" COMMENT \\$\\$Array of project names the investor has invested in.\\$\\$, \n \n \"DEFILLAMA_INVESTORS_ID\" COMMENT \\$\\$Generated surrogate key for the table.\\$\\$, \n \n \"INSERTED_TIMESTAMP\" COMMENT \\$\\$Timestamp when the record was first inserted.\\$\\$, \n \n \"MODIFIED_TIMESTAMP\" COMMENT \\$\\$Timestamp when the record was last modified.\\$\\$, \n \n \"_INSERTED_TIMESTAMP\" COMMENT \\$\\$Internal timestamp for data pipeline tracking.\\$\\$, \n \n \"_INVOCATION_ID\" COMMENT \\$\\$DBT invocation identifier for lineage tracking.\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n investor,\n deals,\n total_amount,\n median_amount,\n chains,\n top_project_category,\n top_round_type,\n projects,\n defillama_investors_id,\n inserted_timestamp,\n modified_timestamp,\n _inserted_timestamp,\n _invocation_id\nFROM __SOURCE__.silver.defillama_investors\n );\n\n\n \n \n create or replace view __NEW__.DEFILLAMA.DIM_PERPS\n \n \n \n(\n \n \"PROTOCOL_ID\" COMMENT \\$\\$Unique identifier of the protocol from Defillama.\\$\\$, \n \n \"PROTOCOL_SLUG\" COMMENT \\$\\$URL-friendly slug identifier for the protocol.\\$\\$, \n \n \"PROTOCOL\" COMMENT \\$\\$Name of the protocol.\\$\\$, \n \n \"CATEGORY\" COMMENT \\$\\$The category of protocol (e.g. Dexes, Options, Yield, Derivatives etc.).\\$\\$, \n \n \"CHAINS\" COMMENT \\$\\$Array of the various chains or networks that the protocol is deployed on.\\$\\$, \n \n \"PARENT_PROTOCOL\" COMMENT \\$\\$Parent protocol identifier if this is a sub-protocol.\\$\\$, \n \n \"LINKED_PROTOCOLS\" COMMENT \\$\\$Array of related or linked protocols.\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n protocol_id,\n protocol_slug,\n NAME as protocol,\n category,\n chains,\n parent_protocol,\n linked_protocols\nFROM\n __SOURCE__.bronze.defillama_perps\n );\n\n\n \n \n create or replace view __NEW__.DEFILLAMA.FACT_RAISES\n \n \n \n(\n \n \"FUNDING_DATE\" COMMENT \\$\\$Date when the funding round occurred.\\$\\$, \n \n \"PROJECT_NAME\" COMMENT \\$\\$Name of the project that received funding.\\$\\$, \n \n \"FUNDING_ROUND\" COMMENT \\$\\$Type of funding round (e.g., Series A, Seed, Private, etc.).\\$\\$, \n \n \"AMOUNT_RAISED\" COMMENT \\$\\$Amount of money raised in the funding round (in USD).\\$\\$, \n \n \"CHAINS\" COMMENT \\$\\$Array of blockchain networks that the project operates on.\\$\\$, \n \n \"SECTOR\" COMMENT \\$\\$Industry sector classification of the project.\\$\\$, \n \n \"CATEGORY\" COMMENT \\$\\$Specific category classification of the project.\\$\\$, \n \n \"CATEGORY_GROUP\" COMMENT \\$\\$Higher-level category grouping for the project.\\$\\$, \n \n \"SOURCE\" COMMENT \\$\\$Source of the funding information.\\$\\$, \n \n \"LEAD_INVESTORS\" COMMENT \\$\\$Array of lead investors in the funding round.\\$\\$, \n \n \"OTHER_INVESTORS\" COMMENT \\$\\$Array of other participating investors in the funding round.\\$\\$, \n \n \"VALUATION\" COMMENT \\$\\$Company valuation at the time of the funding round (in USD).\\$\\$, \n \n \"DEFILLAMA_ID\" COMMENT \\$\\$DeFiLlama's unique identifier for the project.\\$\\$, \n \n \"RAISE_ID\" COMMENT \\$\\$Unique identifier for the specific funding round.\\$\\$, \n \n \"DEFILLAMA_RAISES_ID\" COMMENT \\$\\$Generated surrogate key for the table.\\$\\$, \n \n \"INSERTED_TIMESTAMP\" COMMENT \\$\\$Timestamp when the record was first inserted.\\$\\$, \n \n \"MODIFIED_TIMESTAMP\" COMMENT \\$\\$Timestamp when the record was last modified.\\$\\$, \n \n \"_INSERTED_TIMESTAMP\" COMMENT \\$\\$Internal timestamp for data pipeline tracking.\\$\\$, \n \n \"_INVOCATION_ID\" COMMENT \\$\\$DBT invocation identifier for lineage tracking.\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n funding_date,\n project_name,\n funding_round,\n amount_raised,\n chains,\n sector,\n category,\n category_group,\n source,\n lead_investors,\n other_investors,\n valuation,\n defillama_id,\n raise_id,\n defillama_raises_id,\n inserted_timestamp,\n modified_timestamp,\n _inserted_timestamp,\n _invocation_id\nFROM __SOURCE__.silver.defillama_raises\n );\n\n\n \n \n create or replace view __NEW__.DEFILLAMA.FACT_DEX_VOLUME\n \n \n \n(\n \n \"DATE\" COMMENT \\$\\$Date associated with the reported records.\\$\\$, \n \n \"CHAIN\" COMMENT \\$\\$The name of the blockchain.\\$\\$, \n \n \"PROTOCOL\" COMMENT \\$\\$The name of the protocol.\\$\\$, \n \n \"VOLUME\" COMMENT \\$\\$The total volume driven by the protocol on a daily basis, denominated in USD.\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n TIMESTAMP :: DATE AS DATE,\n chain,\n protocol,\n daily_volume AS volume\nFROM\n __SOURCE__.silver.defillama_dex_volume f\n );\n\n\n \n \n create or replace view __NEW__.DEFILLAMA.FACT_CHAIN_TVL\n \n \n \n(\n \n \"DATE\" COMMENT \\$\\$Date associated with the reported TVL.\\$\\$, \n \n \"CHAIN_ID\" COMMENT \\$\\$Unique identifier of the blockchain.\\$\\$, \n \n \"CHAIN\" COMMENT \\$\\$Name of the blockchain.\\$\\$, \n \n \"TVL_USD\" COMMENT \\$\\$Total Value Locked on the blockchain denominated in USD.\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n TIMESTAMP :: DATE AS DATE,\n chain_id,\n chain,\n tvl_usd \nFROM\n __SOURCE__.silver.defillama_chains_tvl\n );\n\n\n \n \n create or replace view __NEW__.DEFILLAMA.FACT_PROTOCOL_TVL\n \n \n \n(\n \n \"DATE\" COMMENT \\$\\$Date associated with the reported records.\\$\\$, \n \n \"CHAIN\" COMMENT \\$\\$The name of the blockchain.\\$\\$, \n \n \"PROTOCOL_ID\" COMMENT \\$\\$The Defillama ID of the protocol.\\$\\$, \n \n \"CATEGORY\" COMMENT \\$\\$The category the protocol belongs to.\\$\\$, \n \n \"PROTOCOL\" COMMENT \\$\\$\\$\\$, \n \n \"MARKET_CAP\" COMMENT \\$\\$The total market cap of the protocol. This is not available for all dates as the historical API does not provide this information.\\$\\$, \n \n \"SYMBOL\" COMMENT \\$\\$The symbol of the token associated with the protocol.\\$\\$, \n \n \"CHAIN_TVL\" COMMENT \\$\\$The total value locked on the chain for that protocol.\\$\\$, \n \n \"CHAIN_TVL_PREV_DAY\" COMMENT \\$\\$The total value locked on the chain for that protocol, for the previous day.\\$\\$, \n \n \"CHAIN_TVL_PREV_WEEK\" COMMENT \\$\\$The total value locked on the chain for that protocol, for the previous week.\\$\\$, \n \n \"CHAIN_TVL_PREV_MONTH\" COMMENT \\$\\$The total value locked on the chain for that protocol, for the previous month.\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n TIMESTAMP :: DATE AS DATE,\n chain,\n protocol_id,\n category,\n protocol,\n market_cap,\n symbol,\n chain_tvl, \n chain_tvl_prev_day,\n chain_tvl_prev_week,\n chain_tvl_prev_month\nFROM\n __SOURCE__.silver.defillama_protocol_tvl f\n );\n\n\n \n \n create or replace view __NEW__.DEFILLAMA.FACT_STABLECOIN_SUPPLY\n \n \n \n(\n \n \"DATE\" COMMENT \\$\\$Date associated with the reported records.\\$\\$, \n \n \"STABLECOIN_ID\" COMMENT \\$\\$The Defillama ID of the stablecoin.\\$\\$, \n \n \"STABLECOIN\" COMMENT \\$\\$The name of the stablecoin.\\$\\$, \n \n \"SYMBOL\" COMMENT \\$\\$The symbol of the stablecoin.\\$\\$, \n \n \"CHAINS\" COMMENT \\$\\$The name of the blockchain.\\$\\$, \n \n \"CIRCULATING\" COMMENT \\$\\$The total circulating supply of the stablecoin for that date.\\$\\$, \n \n \"UNRELEASED\" COMMENT \\$\\$The total unreleased supply of the stablecoin for that date.\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n TIMESTAMP :: DATE AS DATE,\n stablecoin_id,\n stablecoin,\n symbol,\n chains,\n circulating,\n unreleased\nFROM\n __SOURCE__.silver.defillama_stablecoin_supply f\n );\n\n\n \n \n create or replace view __NEW__.DEFILLAMA.DIM_BRIDGES\n \n \n \n(\n \n \"BRIDGE_ID\" COMMENT \\$\\$Unique identifier of the bridge.\\$\\$, \n \n \"BRIDGE\" COMMENT \\$\\$The name of the listed bridge.\\$\\$, \n \n \"BRIDGE_NAME\" COMMENT \\$\\$The more descriptive, official display name of the bridge.\\$\\$, \n \n \"CHAINS\" COMMENT \\$\\$Array of the various chains or networks that the bridge interacts with.\\$\\$, \n \n \"DESTINATION_CHAIN\" COMMENT \\$\\$The chain that serves as the primary destination for the bridge.\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n bridge_id,\n bridge,\n bridge_name,\n chains,\n destination_chain\nFROM __SOURCE__.bronze.defillama_bridges\n );\n\n\n \n \n create or replace view __NEW__.DEFILLAMA.DIM_DEXES\n \n \n \n(\n \n \"DEX_ID\" COMMENT \\$\\$Unique identifier of the dex.\\$\\$, \n \n \"DEX\" COMMENT \\$\\$Name of the dex.\\$\\$, \n \n \"CATEGORY\" COMMENT \\$\\$The category of protocol the decentralized exhange belongs to (e.g. Dexes, Options, Yield, Derivatives etc.).\\$\\$, \n \n \"CHAINS\" COMMENT \\$\\$Array of the various chains or networks that the dex is deployed on.\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n dex_id,\n dex,\n category,\n chains \nFROM __SOURCE__.bronze.defillama_dexes\n );\n\n\n \n \n create or replace view __NEW__.DEFILLAMA.FACT_BRIDGE_VOLUME\n \n \n \n(\n \n \"DATE\" COMMENT \\$\\$Date associated with the reported records.\\$\\$, \n \n \"BRIDGE_ID\" COMMENT \\$\\$Unique identifier of the bridge.\\$\\$, \n \n \"BRIDGE\" COMMENT \\$\\$Name of the bridge.\\$\\$, \n \n \"BRIDGE_NAME\" COMMENT \\$\\$The more descriptive, official display name of the bridge.\\$\\$, \n \n \"DEPOSIT_TXS\" COMMENT \\$\\$Total number of deposit transactions to the bridge.\\$\\$, \n \n \"DEPOSIT_USD\" COMMENT \\$\\$Total value of deposits to the bridge, denominated in USD.\\$\\$, \n \n \"WITHDRAW_TXS\" COMMENT \\$\\$Total number of withdrawal transactions to the bridge.\\$\\$, \n \n \"WITHDRAW_USD\" COMMENT \\$\\$Total value of withdrawals to the bridge, denominated in USD.\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n TIMESTAMP :: DATE AS DATE,\n bridge_id,\n bridge,\n bridge_name,\n deposit_txs,\n deposit_usd,\n withdraw_txs,\n withdraw_usd\nFROM\n __SOURCE__.silver.defillama_bridge_volume\n );\n\n\n \n \n create or replace view __NEW__.DEFILLAMA.DIM_POOLS\n \n \n \n(\n \n \"POOL_ID\" COMMENT \\$\\$The unique identifier for each pool.\\$\\$, \n \n \"PROTOCOL\" COMMENT \\$\\$The protocol the pool is part of.\\$\\$, \n \n \"SYMBOL\" COMMENT \\$\\$The symbol of the pool.\\$\\$, \n \n \"CHAIN\" COMMENT \\$\\$The chain the pool is located on.\\$\\$, \n \n \"REWARD_TOKENS\" COMMENT \\$\\$The addresses of the tokens rewarded by the pool.\\$\\$, \n \n \"UNDERLYING_TOKENS\" COMMENT \\$\\$The underlying tokens that make up the pool.\\$\\$, \n \n \"IS_STABLECOIN\" COMMENT \\$\\$Boolean column displaying whether the pool contains a stablecoin or not.\\$\\$, \n \n \"ILRISK\" COMMENT \\$\\$Boolean column displaying whether the pool has explicit illiquidity risk.\\$\\$, \n \n \"EXPOSURE_TYPE\" COMMENT \\$\\$The type of exposure of the pool.\\$\\$, \n \n \"POOL_METADATA\" COMMENT \\$\\$Metadata of the pool.\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n pool AS pool_id,\n project AS protocol,\n symbol,\n chain,\n CASE\n WHEN rewardtokens ILIKE 'none' THEN NULL\n ELSE LOWER(rewardtokens)\n END AS reward_tokens,\n CASE\n WHEN underlyingtokens ILIKE 'none' THEN NULL\n ELSE LOWER(underlyingtokens)\n END AS underlying_tokens,\n stablecoin AS is_stablecoin,\n ilrisk,\n exposure AS exposure_type,\n poolmeta AS pool_metadata\nFROM\n __SOURCE__.bronze.defillama_api_pools_20230209_131432\n );\n\n\n \n \n create or replace view __NEW__.DEFILLAMA.FACT_USDT_USDC_SUPPLY\n \n \n \n(\n \n \"DATE\" COMMENT \\$\\$Date of the supply data point\\$\\$, \n \n \"STABLECOIN_ID\" COMMENT \\$\\$Unique identifier for the stablecoin from Defillama\\$\\$, \n \n \"STABLECOIN\" COMMENT \\$\\$Name of the stablecoin\\$\\$, \n \n \"SYMBOL\" COMMENT \\$\\$Token symbol (USDC or USDT)\\$\\$, \n \n \"CHAIN\" COMMENT \\$\\$Blockchain network where the stablecoin is deployed\\$\\$, \n \n \"TOTAL_BRIDGED_USD\" COMMENT \\$\\$Total value of bridged stablecoins in USD\\$\\$, \n \n \"TOTAL_CIRCULATING\" COMMENT \\$\\$Total circulating supply of the stablecoin\\$\\$, \n \n \"TOTAL_CIRCULATING_USD\" COMMENT \\$\\$Total circulating supply in USD value\\$\\$, \n \n \"DEFILLAMA_FACT_USDT_USDC_SUPPLY_ID\" COMMENT \\$\\$Unique identifier for this record\\$\\$, \n \n \"INSERTED_TIMESTAMP\" COMMENT \\$\\$Timestamp when the record was inserted\\$\\$, \n \n \"MODIFIED_TIMESTAMP\" COMMENT \\$\\$Timestamp when the record was last modified\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n date,\n stablecoin_id,\n stablecoin,\n symbol,\n chain,\n total_bridged_usd,\n total_circulating,\n total_circulating_usd,\n defillama_usdc_usdt_supply_id as defillama_fact_usdt_usdc_supply_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n __SOURCE__.silver.defillama_usdt_usdc_supply f\n );\n\n\n \n \n create or replace view __NEW__.DEFILLAMA.FACT_OPTIONS_VOLUME\n \n \n \n(\n \n \"DATE\" COMMENT \\$\\$Date associated with the reported records.\\$\\$, \n \n \"CHAIN\" COMMENT \\$\\$The name of the blockchain.\\$\\$, \n \n \"PROTOCOL\" COMMENT \\$\\$The name of the protocol.\\$\\$, \n \n \"VOLUME_PREMIUM\" COMMENT \\$\\$The total premium volume driven by the protocol on a daily basis, denominated in USD.\\$\\$, \n \n \"VOLUME_NOTIONAL\" COMMENT \\$\\$The total notional volume driven by the protocol on a daily basis, denominated in USD.\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n p.TIMESTAMP :: DATE AS DATE,\n p.chain,\n p.protocol,\n COALESCE(daily_volume_premium,0) AS volume_premium,\n COALESCE(daily_volume_notional,0) AS volume_notional\nFROM\n __SOURCE__.silver.defillama_options_premium p\nLEFT JOIN\n __SOURCE__.silver.defillama_options_notional n\n ON p.TIMESTAMP = n.TIMESTAMP AND p.chain = n.chain AND p.protocol = n.protocol\n );\n\n\n \n \n create or replace view __NEW__.DEFILLAMA.FACT_PERP_VOLUME\n \n \n \n(\n \n \"DATE\" COMMENT \\$\\$Date associated with the reported volume records.\\$\\$, \n \n \"CHAIN\" COMMENT \\$\\$The name of the blockchain where the volume occurred.\\$\\$, \n \n \"PROTOCOL_ID\" COMMENT \\$\\$Unique identifier of the protocol from Defillama.\\$\\$, \n \n \"PROTOCOL_SLUG\" COMMENT \\$\\$URL-friendly slug identifier for the protocol.\\$\\$, \n \n \"PROTOCOL\" COMMENT \\$\\$The name of the protocol.\\$\\$, \n \n \"VOLUME\" COMMENT \\$\\$The total volume driven by the protocol on a daily basis, denominated in USD.\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n DATE,\n chain,\n protocol_id,\n protocol_slug,\n protocol,\n volume\nFROM\n __SOURCE__.silver.defillama_perp_daily_volume f\n );\n\n\n \n \n create or replace view __NEW__.DEFILLAMA.FACT_BRIDGE_VOLUME_BY_CHAIN\n \n \n \n(\n \n \"DATE\" COMMENT \\$\\$Date associated with the reported records.\\$\\$, \n \n \"CHAIN\" COMMENT \\$\\$Chain associated with the reported records.\\$\\$, \n \n \"BRIDGE_ID\" COMMENT \\$\\$Unique identifier of the bridge.\\$\\$, \n \n \"BRIDGE\" COMMENT \\$\\$Name of the bridge.\\$\\$, \n \n \"BRIDGE_NAME\" COMMENT \\$\\$The more descriptive, official display name of the bridge.\\$\\$, \n \n \"DEPOSIT_TXS\" COMMENT \\$\\$Total number of deposit transactions to the bridge.\\$\\$, \n \n \"DEPOSIT_USD\" COMMENT \\$\\$Total value of deposits to the bridge, denominated in USD.\\$\\$, \n \n \"WITHDRAW_TXS\" COMMENT \\$\\$Total number of withdrawal transactions to the bridge.\\$\\$, \n \n \"WITHDRAW_USD\" COMMENT \\$\\$Total value of withdrawals to the bridge, denominated in USD.\\$\\$, \n \n \"DEFILLAMA_FACT_BRIDGE_VOLUME_BY_CHAIN_ID\" COMMENT \\$\\$Unique identifier for this record\\$\\$, \n \n \"INSERTED_TIMESTAMP\" COMMENT \\$\\$Timestamp when the record was inserted\\$\\$, \n \n \"MODIFIED_TIMESTAMP\" COMMENT \\$\\$Timestamp when the record was last modified\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n DATE,\n chain, \n bridge_id,\n bridge,\n bridge_name,\n deposit_txs,\n deposit_usd,\n withdraw_txs,\n withdraw_usd,\n defillama_bridge_vol_by_chain_id as defillama_fact_bridge_volume_by_chain_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n __SOURCE__.silver.defillama_bridge_volume_by_chain\n );\n\n\n \n \n create or replace view __NEW__.LAYERZERO.FACT_TRANSACTIONS_SNAPSHOT\n \n \n \n(\n \n \"SOURCE_CHAIN\" COMMENT \\$\\$The chain where the transaction originated from.\\$\\$, \n \n \"SOURCE_TRANSACTION_HASH\" COMMENT \\$\\$The transaction hash from the source chain.\\$\\$, \n \n \"SOURCE_CONTRACT\" COMMENT \\$\\$The contract address from the source transaction.\\$\\$, \n \n \"DESTINATION_CHAIN\" COMMENT \\$\\$The chain where the transaction is directed to.\\$\\$, \n \n \"DESTINATION_TRANSACTION_HASH\" COMMENT \\$\\$The transaction hash on the destination chain.\\$\\$, \n \n \"DESTINATION_CONTRACT\" COMMENT \\$\\$The contract address from the destination transaction.\\$\\$, \n \n \"SENDER_WALLET\" COMMENT \\$\\$The wallet address that initiated the source transaction hash.\\$\\$, \n \n \"SOURCE_TIMESTAMP_UTC\" COMMENT \\$\\$The timestamp of the source transaction hash in UTC.\\$\\$, \n \n \"PROJECT\" COMMENT \\$\\$The name of the project.\\$\\$, \n \n \"NATIVE_DROP_USD\" COMMENT \\$\\$The native drop in USD.\\$\\$, \n \n \"STARGATE_SWAP_USD\" COMMENT \\$\\$The stargate swap in USD.\\$\\$, \n \n \"SNAPSHOT_VERSION\" COMMENT \\$\\$The version number of the snapshot taken.\\$\\$, \n \n \"LAYERZERO_TXS_SNAPSHOT_ID\" COMMENT \\$\\$The unique identifier for each row in the table.\\$\\$, \n \n \"INSERTED_TIMESTAMP\" COMMENT \\$\\$The utc timestamp at which the row was inserted into the table.\\$\\$, \n \n \"MODIFIED_TIMESTAMP\" COMMENT \\$\\$The utc timestamp at which the row was last modified.\\$\\$\n \n)\n\n copy grants as (\n \n\n\nSELECT\n source_chain,\n source_transaction_hash,\n source_contract,\n destination_chain,\n destination_transaction_hash,\n destination_contract,\n sender_wallet,\n source_timestamp_utc,\n project,\n native_drop_usd,\n stargate_swap_usd,\n snapshot_version,\n layerzero_txs_snapshot_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n __SOURCE__.silver.layerzero_txs_snapshot\n );\n\n\n \n \n create or replace view __NEW__.FLASHBOTS.FACT_PROTECT_TRANSACTIONS\n \n \n \n(\n \n \"TX_HASH\" COMMENT \\$\\$The Ethereum transaction hash of the protect transaction.\\$\\$, \n \n \"FROM_ADDRESS\" COMMENT \\$\\$The Ethereum address of the sender initiating the transaction.\\$\\$, \n \n \"TO_ADDRESS\" COMMENT \\$\\$The Ethereum address of the recipient of the transaction.\\$\\$, \n \n \"CREATED_AT_BLOCK_NUMBER\" COMMENT \\$\\$The block number at which the transaction was created (first received by Flashbots server). Note - Due to some reorg/simulation issues, there are some rows where `created_at_block_number` > `included_block_number`\\$\\$, \n \n \"TX_ID\" COMMENT \\$\\$A row number partitioned by (`tx_hash`, `created_at_block_number`, `included_block_number`) to use as part of the deterministic id for transactions who were submitted multiple times at same block, with different shared configs\\$\\$, \n \n \"HINTS_SELECTED\" COMMENT \\$\\$The hints shared by the user for public streaming to searchers in the MEV-share orderflow auction (OFA).\\$\\$, \n \n \"NUM_OF_BUILDERS_SHARED\" COMMENT \\$\\$The number of block builders the transaction was shared with, higher number will likely help faster inclusion speed onchain.\\$\\$, \n \n \"REFUND_PERCENT\" COMMENT \\$\\$The percentage of OFA backrun profits refunded to the sender (user). The rest can be kept by builders or bided to payout to validator. Flashbots builders keeps 0 profit and send it to validator in the end of block payment transaction.\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n tx_hash,\n from_address,\n to_address,\n created_at_block_number,\n tx_id,\n hints_selected,\n num_of_builders_shared,\n refund_percent\nFROM \n __SOURCE__.silver.flashbots_protect_txs\n );\n\n\n \n \n create or replace view __NEW__.FLASHBOTS.FACT_MEVSHARE_TRANSACTIONS\n \n \n \n(\n \n \"BLOCK_NUMBER\" COMMENT \\$\\$The number of the block in which transactions were included.\\$\\$, \n \n \"BLOCK_TIME\" COMMENT \\$\\$The timestamp for when the block was mined.\\$\\$, \n \n \"BLOCK_HASH\" COMMENT \\$\\$The hash of the block in which the MEV-share transactions landed.\\$\\$, \n \n \"EXTRA_DATA\" COMMENT \\$\\$Additional data included in the block, often used for identifying the block builder.\\$\\$, \n \n \"FEE_RECIPIENT_ADDRESS\" COMMENT \\$\\$The Ethereum address of the recipient of block rewards, which can be the block builder or validator.\\$\\$, \n \n \"BUNDLE_ID\" COMMENT \\$\\$A row number partitioned by (`user_tx_hash`, `backrun_tx_hash`) to use as part of the deterministic id for refund bundles.\\$\\$, \n \n \"USER_TX_HASH\" COMMENT \\$\\$The Ethereum hash of the user's protect transaction.\\$\\$, \n \n \"USER_TX_FROM\" COMMENT \\$\\$The Ethereum address of the sender of the protect transaction.\\$\\$, \n \n \"USER_TX_TO\" COMMENT \\$\\$The Ethereum address of the recipient of the protect transaction.\\$\\$, \n \n \"BACKRUN_TX_HASH\" COMMENT \\$\\$The Ethereum hash of the transaction that backran the user's transaction in MEV-share OFA.\\$\\$, \n \n \"BACKRUN_TX_FROM\" COMMENT \\$\\$The Ethereum address of the sender of the backrunning transaction.\\$\\$, \n \n \"BACKRUN_TX_TO\" COMMENT \\$\\$The Ethereum address of the recipient of the backrunning transaction.\\$\\$, \n \n \"REFUND_TX_HASH\" COMMENT \\$\\$The Ethereum hash of the refund transaction.\\$\\$, \n \n \"REFUND_FROM\" COMMENT \\$\\$\\$\\$, \n \n \"REFUND_TO\" COMMENT \\$\\$\\$\\$, \n \n \"REFUND_VALUE_ETH\" COMMENT \\$\\$The amount of ETH refunded to the protect transaction, as a result of a successful OFA backrun, depending on user's refund percentage setting when sending the transaction.\\$\\$, \n \n \"IS_MEVSHARE\" COMMENT \\$\\$If true, mev-share matched the transactions in the bundle. If false, it was sent pre-matched from a third party to mev-share.\\$\\$\n \n)\n\n copy grants as (\n \n\nSELECT\n block_number,\n block_time,\n block_hash,\n extra_data,\n fee_recipient_address,\n bundle_id,\n user_tx_hash,\n user_tx_from,\n user_tx_to,\n backrun_tx_hash,\n backrun_tx_from,\n backrun_tx_to,\n refund_tx_hash,\n refund_from,\n refund_to,\n refund_value_eth,\n is_mevshare\nFROM\n __SOURCE__.silver.flashbots_mev_txs\n );\nCREATE SCHEMA IF NOT EXISTS __NEW__.defillama;\nCREATE SCHEMA IF NOT EXISTS __NEW__.silver;\nCREATE SCHEMA IF NOT EXISTS __NEW__.bitquery;\nCREATE SCHEMA IF NOT EXISTS __NEW__.artemis;\nCREATE OR REPLACE VIEW __NEW__.DEFILLAMA.EZ_STABLECOIN_METRICS copy grants AS SELECT * FROM __SOURCE__.DEFILLAMA.EZ_STABLECOIN_METRICS;\nCREATE OR REPLACE VIEW __NEW__.DEFILLAMA.DIM_PROTOCOLS copy grants AS SELECT * FROM __SOURCE__.DEFILLAMA.DIM_PROTOCOLS;\nCREATE OR REPLACE VIEW __NEW__.BITQUERY.ACTIVE_USERS copy grants AS SELECT * FROM __SOURCE__.BITQUERY.ACTIVE_USERS;\nCREATE OR REPLACE VIEW __NEW__.BITQUERY.TX_COUNT copy grants AS SELECT * FROM __SOURCE__.BITQUERY.TX_COUNT;\nCREATE OR REPLACE VIEW __NEW__.ARTEMIS.TX_COUNT copy grants AS SELECT * FROM __SOURCE__.ARTEMIS.TX_COUNT;\nCREATE OR REPLACE VIEW __NEW__.ARTEMIS.ACTIVE_USERS copy grants AS SELECT * FROM __SOURCE__.ARTEMIS.ACTIVE_USERS;\nEND$$ AS ddl,\nmd5(ddl) AS ddl_hash,\nsysdate() as ddl_created_at\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "test.external_models.not_null_silver__tokenlists_verified_tokens_API_URL.4d6117cb50": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "API_URL", "model": "{{ get_where_subquery(ref('silver__tokenlists_verified_tokens')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__tokenlists_verified_tokens_API_URL", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__tokenlists_verified_tokens_API_URL.sql", "original_file_path": "models/tokenlists/silver/silver__tokenlists_verified_tokens.yml", "unique_id": "test.external_models.not_null_silver__tokenlists_verified_tokens_API_URL.4d6117cb50", "fqn": ["external_models", "tokenlists", "silver", "not_null_silver__tokenlists_verified_tokens_API_URL"], "alias": "tokenlists_verified_tokens_API_URL", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.33476, "relation_name": "EXTERNAL.not_null_silver.tokenlists_verified_tokens_API_URL", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__tokenlists_verified_tokens", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__tokenlists_verified_tokens"]}, "compiled_path": "target/compiled/external_models/models/tokenlists/silver/silver__tokenlists_verified_tokens.yml/not_null_silver__tokenlists_verified_tokens_API_URL.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.tokenlists_verified_tokens\nwhere API_URL is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "API_URL", "file_key_name": "models.silver__tokenlists_verified_tokens", "attached_node": "model.external_models.silver__tokenlists_verified_tokens"}, "test.external_models.not_null_silver__tokenlists_verified_tokens_ADDRESS.d10abba80e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('silver__tokenlists_verified_tokens')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__tokenlists_verified_tokens_ADDRESS", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__tokenlists_verified_tokens_ADDRESS.sql", "original_file_path": "models/tokenlists/silver/silver__tokenlists_verified_tokens.yml", "unique_id": "test.external_models.not_null_silver__tokenlists_verified_tokens_ADDRESS.d10abba80e", "fqn": ["external_models", "tokenlists", "silver", "not_null_silver__tokenlists_verified_tokens_ADDRESS"], "alias": "tokenlists_verified_tokens_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.3368347, "relation_name": "EXTERNAL.not_null_silver.tokenlists_verified_tokens_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__tokenlists_verified_tokens", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__tokenlists_verified_tokens"]}, "compiled_path": "target/compiled/external_models/models/tokenlists/silver/silver__tokenlists_verified_tokens.yml/not_null_silver__tokenlists_verified_tokens_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.tokenlists_verified_tokens\nwhere ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ADDRESS", "file_key_name": "models.silver__tokenlists_verified_tokens", "attached_node": "model.external_models.silver__tokenlists_verified_tokens"}, "test.external_models.not_null_silver__tokenlists_verified_tokens_CHAIN_ID.8fdd7cfe55": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CHAIN_ID", "model": "{{ get_where_subquery(ref('silver__tokenlists_verified_tokens')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__tokenlists_verified_tokens_CHAIN_ID", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__tokenlists_verified_tokens_CHAIN_ID.sql", "original_file_path": "models/tokenlists/silver/silver__tokenlists_verified_tokens.yml", "unique_id": "test.external_models.not_null_silver__tokenlists_verified_tokens_CHAIN_ID.8fdd7cfe55", "fqn": ["external_models", "tokenlists", "silver", "not_null_silver__tokenlists_verified_tokens_CHAIN_ID"], "alias": "tokenlists_verified_tokens_CHAIN_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.3386703, "relation_name": "EXTERNAL.not_null_silver.tokenlists_verified_tokens_CHAIN_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__tokenlists_verified_tokens", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__tokenlists_verified_tokens"]}, "compiled_path": "target/compiled/external_models/models/tokenlists/silver/silver__tokenlists_verified_tokens.yml/not_null_silver__tokenlists_verified_tokens_CHAIN_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.tokenlists_verified_tokens\nwhere CHAIN_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CHAIN_ID", "file_key_name": "models.silver__tokenlists_verified_tokens", "attached_node": "model.external_models.silver__tokenlists_verified_tokens"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__tokenlists_verified_tokens_API_URL__LOWER_ADDRESS___CHAIN_ID.ce00ef40ce": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["API_URL", "LOWER(ADDRESS)", "CHAIN_ID"], "model": "{{ get_where_subquery(ref('silver__tokenlists_verified_tokens')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__tokenlists_verified_tokens_API_URL__LOWER_ADDRESS___CHAIN_ID", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_ece9af2e5c19627f9a32d454a2afbdbf.sql", "original_file_path": "models/tokenlists/silver/silver__tokenlists_verified_tokens.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__tokenlists_verified_tokens_API_URL__LOWER_ADDRESS___CHAIN_ID.ce00ef40ce", "fqn": ["external_models", "tokenlists", "silver", "dbt_utils_unique_combination_of_columns_silver__tokenlists_verified_tokens_API_URL__LOWER_ADDRESS___CHAIN_ID"], "alias": "tokenlists_verified_tokens_API_URL", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ece9af2e5c19627f9a32d454a2afbdbf", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_ece9af2e5c19627f9a32d454a2afbdbf"}, "created_at": 1760113501.3405015, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_silver.tokenlists_verified_tokens_API_URL", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ece9af2e5c19627f9a32d454a2afbdbf\") }}", "language": "sql", "refs": [{"name": "silver__tokenlists_verified_tokens", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__tokenlists_verified_tokens"]}, "compiled_path": "target/compiled/external_models/models/tokenlists/silver/silver__tokenlists_verified_tokens.yml/dbt_utils_unique_combination_o_ece9af2e5c19627f9a32d454a2afbdbf.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n API_URL, LOWER(ADDRESS), CHAIN_ID\n from EXTERNAL.silver.tokenlists_verified_tokens\n group by API_URL, LOWER(ADDRESS), CHAIN_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__tokenlists_verified_tokens", "attached_node": "model.external_models.silver__tokenlists_verified_tokens"}, "test.external_models.not_null_bronze__all_tokenlists_API_URL.4f84b31250": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "API_URL", "model": "{{ get_where_subquery(ref('bronze__all_tokenlists')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__all_tokenlists_API_URL", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__all_tokenlists_API_URL.sql", "original_file_path": "models/tokenlists/bronze/bronze__all_tokenlists.yml", "unique_id": "test.external_models.not_null_bronze__all_tokenlists_API_URL.4f84b31250", "fqn": ["external_models", "tokenlists", "bronze", "not_null_bronze__all_tokenlists_API_URL"], "alias": "all_tokenlists_API_URL", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.361231, "relation_name": "EXTERNAL.not_null_bronze.all_tokenlists_API_URL", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__all_tokenlists", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__all_tokenlists"]}, "compiled_path": "target/compiled/external_models/models/tokenlists/bronze/bronze__all_tokenlists.yml/not_null_bronze__all_tokenlists_API_URL.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.all_tokenlists\nwhere API_URL is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "API_URL", "file_key_name": "models.bronze__all_tokenlists", "attached_node": "model.external_models.bronze__all_tokenlists"}, "test.external_models.not_null_bronze__all_tokenlists_REQUEST.1e7047c6c4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "REQUEST", "model": "{{ get_where_subquery(ref('bronze__all_tokenlists')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__all_tokenlists_REQUEST", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__all_tokenlists_REQUEST.sql", "original_file_path": "models/tokenlists/bronze/bronze__all_tokenlists.yml", "unique_id": "test.external_models.not_null_bronze__all_tokenlists_REQUEST.1e7047c6c4", "fqn": ["external_models", "tokenlists", "bronze", "not_null_bronze__all_tokenlists_REQUEST"], "alias": "all_tokenlists_REQUEST", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.363084, "relation_name": "EXTERNAL.not_null_bronze.all_tokenlists_REQUEST", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__all_tokenlists", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__all_tokenlists"]}, "compiled_path": "target/compiled/external_models/models/tokenlists/bronze/bronze__all_tokenlists.yml/not_null_bronze__all_tokenlists_REQUEST.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.all_tokenlists\nwhere REQUEST is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "REQUEST", "file_key_name": "models.bronze__all_tokenlists", "attached_node": "model.external_models.bronze__all_tokenlists"}, "test.external_models.dbt_utils_unique_combination_of_columns_bronze__all_tokenlists_API_URL__REQUEST.3ed201dea9": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["API_URL", "REQUEST"], "model": "{{ get_where_subquery(ref('bronze__all_tokenlists')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_bronze", "name": "dbt_utils_unique_combination_of_columns_bronze__all_tokenlists_API_URL__REQUEST", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_a6d7ad9913a9497f4f29511f409b8e33.sql", "original_file_path": "models/tokenlists/bronze/bronze__all_tokenlists.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bronze__all_tokenlists_API_URL__REQUEST.3ed201dea9", "fqn": ["external_models", "tokenlists", "bronze", "dbt_utils_unique_combination_of_columns_bronze__all_tokenlists_API_URL__REQUEST"], "alias": "all_tokenlists_API_URL", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a6d7ad9913a9497f4f29511f409b8e33", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_a6d7ad9913a9497f4f29511f409b8e33"}, "created_at": 1760113501.364901, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_bronze.all_tokenlists_API_URL", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a6d7ad9913a9497f4f29511f409b8e33\") }}", "language": "sql", "refs": [{"name": "bronze__all_tokenlists", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__all_tokenlists"]}, "compiled_path": "target/compiled/external_models/models/tokenlists/bronze/bronze__all_tokenlists.yml/dbt_utils_unique_combination_o_a6d7ad9913a9497f4f29511f409b8e33.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n API_URL, REQUEST\n from EXTERNAL.bronze.all_tokenlists\n group by API_URL, REQUEST\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.bronze__all_tokenlists", "attached_node": "model.external_models.bronze__all_tokenlists"}, "test.external_models.not_null_silver__polymarket_markets_CONDITION_ID.d534ff72dc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONDITION_ID", "model": "{{ get_where_subquery(ref('silver__polymarket_markets')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__polymarket_markets_CONDITION_ID", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__polymarket_markets_CONDITION_ID.sql", "original_file_path": "models/polymarket/silver/silver__polymarket_markets.yml", "unique_id": "test.external_models.not_null_silver__polymarket_markets_CONDITION_ID.d534ff72dc", "fqn": ["external_models", "polymarket", "silver", "not_null_silver__polymarket_markets_CONDITION_ID"], "alias": "polymarket_markets_CONDITION_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.4118502, "relation_name": "EXTERNAL.not_null_silver.polymarket_markets_CONDITION_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__polymarket_markets", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__polymarket_markets"]}, "compiled_path": "target/compiled/external_models/models/polymarket/silver/silver__polymarket_markets.yml/not_null_silver__polymarket_markets_CONDITION_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.polymarket_markets\nwhere CONDITION_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONDITION_ID", "file_key_name": "models.silver__polymarket_markets", "attached_node": "model.external_models.silver__polymarket_markets"}, "test.external_models.not_null_silver__polymarket_markets__INSERTED_TIMESTAMP.3927deb926": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__polymarket_markets')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__polymarket_markets__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__polymarket_markets__INSERTED_TIMESTAMP.sql", "original_file_path": "models/polymarket/silver/silver__polymarket_markets.yml", "unique_id": "test.external_models.not_null_silver__polymarket_markets__INSERTED_TIMESTAMP.3927deb926", "fqn": ["external_models", "polymarket", "silver", "not_null_silver__polymarket_markets__INSERTED_TIMESTAMP"], "alias": "polymarket_markets", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.4137154, "relation_name": "EXTERNAL.not_null_silver.polymarket_markets", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__polymarket_markets", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__polymarket_markets"]}, "compiled_path": "target/compiled/external_models/models/polymarket/silver/silver__polymarket_markets.yml/not_null_silver__polymarket_markets__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.polymarket_markets\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__polymarket_markets", "attached_node": "model.external_models.silver__polymarket_markets"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_markets__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.eb4c915e91": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__polymarket_markets')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_markets__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_01f7e472af430702e3dc4de963bd88e5.sql", "original_file_path": "models/polymarket/silver/silver__polymarket_markets.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_markets__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.eb4c915e91", "fqn": ["external_models", "polymarket", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_markets__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "polymarket_markets", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_01f7e472af430702e3dc4de963bd88e5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_01f7e472af430702e3dc4de963bd88e5"}, "created_at": 1760113501.4157493, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_silver.polymarket_markets", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_01f7e472af430702e3dc4de963bd88e5\") }}", "language": "sql", "refs": [{"name": "silver__polymarket_markets", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__polymarket_markets"]}, "compiled_path": "target/compiled/external_models/models/polymarket/silver/silver__polymarket_markets.yml/dbt_expectations_expect_column_01f7e472af430702e3dc4de963bd88e5.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('CONDITION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('QUESTION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DESCRIPTION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_1_TOKEN_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_1_OUTCOME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_1_WINNER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_2_TOKEN_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_2_OUTCOME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_2_WINNER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ENABLE_ORDER_BOOK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACTIVE' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('CLOSED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('ARCHIVED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCEPTING_ORDERS' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCEPTING_ORDER_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINIMUM_ORDER_SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINIMUM_TICK_SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('QUESTION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MARKET_SLUG' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('END_DATE_ISO' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAME_START_TIME' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('SECONDS_DELAY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('FPMM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MAKER_BASE_FEE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TAKER_BASE_FEE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NOTIFICATIONS_ENABLED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('NEG_RISK' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('NEG_RISK_MARKET_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NEG_RISK_REQUEST_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('REWARDS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TAGS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('DIM_MARKETS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__polymarket_markets", "attached_node": "model.external_models.silver__polymarket_markets"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__polymarket_markets_CONDITION_ID.079735fed9": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["CONDITION_ID"], "model": "{{ get_where_subquery(ref('silver__polymarket_markets')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__polymarket_markets_CONDITION_ID", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_c61317ab98d4ff803a27e0c32f10398a.sql", "original_file_path": "models/polymarket/silver/silver__polymarket_markets.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__polymarket_markets_CONDITION_ID.079735fed9", "fqn": ["external_models", "polymarket", "silver", "dbt_utils_unique_combination_of_columns_silver__polymarket_markets_CONDITION_ID"], "alias": "polymarket_markets_CONDITION_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c61317ab98d4ff803a27e0c32f10398a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_c61317ab98d4ff803a27e0c32f10398a"}, "created_at": 1760113501.4256945, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_silver.polymarket_markets_CONDITION_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c61317ab98d4ff803a27e0c32f10398a\") }}", "language": "sql", "refs": [{"name": "silver__polymarket_markets", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__polymarket_markets"]}, "compiled_path": "target/compiled/external_models/models/polymarket/silver/silver__polymarket_markets.yml/dbt_utils_unique_combination_o_c61317ab98d4ff803a27e0c32f10398a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n CONDITION_ID\n from EXTERNAL.silver.polymarket_markets\n group by CONDITION_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__polymarket_markets", "attached_node": "model.external_models.silver__polymarket_markets"}, "test.external_models.not_null_bronze__polymarket_markets_CONDITION_ID.e746168184": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONDITION_ID", "model": "{{ get_where_subquery(ref('bronze__polymarket_markets')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__polymarket_markets_CONDITION_ID", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__polymarket_markets_CONDITION_ID.sql", "original_file_path": "models/polymarket/bronze/bronze__polymarket_markets.yml", "unique_id": "test.external_models.not_null_bronze__polymarket_markets_CONDITION_ID.e746168184", "fqn": ["external_models", "polymarket", "bronze", "not_null_bronze__polymarket_markets_CONDITION_ID"], "alias": "polymarket_markets_CONDITION_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.4423664, "relation_name": "EXTERNAL.not_null_bronze.polymarket_markets_CONDITION_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__polymarket_markets", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__polymarket_markets"]}, "compiled_path": "target/compiled/external_models/models/polymarket/bronze/bronze__polymarket_markets.yml/not_null_bronze__polymarket_markets_CONDITION_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.polymarket_markets\nwhere CONDITION_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONDITION_ID", "file_key_name": "models.bronze__polymarket_markets", "attached_node": "model.external_models.bronze__polymarket_markets"}, "test.external_models.not_null_bronze__polymarket_markets__INSERTED_TIMESTAMP.b2e066aada": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze__polymarket_markets')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__polymarket_markets__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__polymarket_markets__INSERTED_TIMESTAMP.sql", "original_file_path": "models/polymarket/bronze/bronze__polymarket_markets.yml", "unique_id": "test.external_models.not_null_bronze__polymarket_markets__INSERTED_TIMESTAMP.b2e066aada", "fqn": ["external_models", "polymarket", "bronze", "not_null_bronze__polymarket_markets__INSERTED_TIMESTAMP"], "alias": "polymarket_markets", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.4442003, "relation_name": "EXTERNAL.not_null_bronze.polymarket_markets", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__polymarket_markets", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__polymarket_markets"]}, "compiled_path": "target/compiled/external_models/models/polymarket/bronze/bronze__polymarket_markets.yml/not_null_bronze__polymarket_markets__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.polymarket_markets\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze__polymarket_markets", "attached_node": "model.external_models.bronze__polymarket_markets"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__polymarket_markets__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.de6501ee0b": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze__polymarket_markets')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze__polymarket_markets__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_472f30a7efd74449f0bbe4ed8def2bd7.sql", "original_file_path": "models/polymarket/bronze/bronze__polymarket_markets.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__polymarket_markets__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.de6501ee0b", "fqn": ["external_models", "polymarket", "bronze", "dbt_expectations_expect_column_values_to_be_in_type_list_bronze__polymarket_markets__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "polymarket_markets", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_472f30a7efd74449f0bbe4ed8def2bd7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_472f30a7efd74449f0bbe4ed8def2bd7"}, "created_at": 1760113501.4459813, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_bronze.polymarket_markets", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_472f30a7efd74449f0bbe4ed8def2bd7\") }}", "language": "sql", "refs": [{"name": "bronze__polymarket_markets", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__polymarket_markets"]}, "compiled_path": "target/compiled/external_models/models/polymarket/bronze/bronze__polymarket_markets.yml/dbt_expectations_expect_column_472f30a7efd74449f0bbe4ed8def2bd7.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('CONDITION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('QUESTION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DESCRIPTION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKENS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_1_TOKEN_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_1_OUTCOME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_1_WINNER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_2_TOKEN_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_2_OUTCOME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_2_WINNER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ENABLE_ORDER_BOOK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACTIVE' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('CLOSED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('ARCHIVED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCEPTING_ORDERS' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('ACCEPTING_ORDER_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINIMUM_ORDER_SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINIMUM_TICK_SIZE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('QUESTION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MARKET_SLUG' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('END_DATE_ISO' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('GAME_START_TIME' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('SECONDS_DELAY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('FPMM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MAKER_BASE_FEE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TAKER_BASE_FEE' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NOTIFICATIONS_ENABLED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('NEG_RISK' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('NEG_RISK_MARKET_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NEG_RISK_REQUEST_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('REWARDS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TAGS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('PAGE_NUMBER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('COUNT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CURSOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('POLYMARKET_MARKET_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze__polymarket_markets", "attached_node": "model.external_models.bronze__polymarket_markets"}, "test.external_models.not_null_silver_aptos__lync_metric.3d12e974b6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "metric", "model": "{{ get_where_subquery(ref('silver_aptos__lync')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver_aptos", "name": "not_null_silver_aptos__lync_metric", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver_aptos__lync_metric.sql", "original_file_path": "models/aptos_gas/lync/silver_aptos__lync.yml", "unique_id": "test.external_models.not_null_silver_aptos__lync_metric.3d12e974b6", "fqn": ["external_models", "aptos_gas", "lync", "not_null_silver_aptos__lync_metric"], "alias": "lync_metric", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.453161, "relation_name": "EXTERNAL.not_null_silver_aptos.lync_metric", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_aptos__lync", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver_aptos__lync"]}, "compiled_path": "target/compiled/external_models/models/aptos_gas/lync/silver_aptos__lync.yml/not_null_silver_aptos__lync_metric.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver_aptos.lync\nwhere metric is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metric", "file_key_name": "models.silver_aptos__lync", "attached_node": "model.external_models.silver_aptos__lync"}, "test.external_models.not_null_silver_aptos__lync_metric_count.902d0116f3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "metric_count", "model": "{{ get_where_subquery(ref('silver_aptos__lync')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver_aptos", "name": "not_null_silver_aptos__lync_metric_count", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver_aptos__lync_metric_count.sql", "original_file_path": "models/aptos_gas/lync/silver_aptos__lync.yml", "unique_id": "test.external_models.not_null_silver_aptos__lync_metric_count.902d0116f3", "fqn": ["external_models", "aptos_gas", "lync", "not_null_silver_aptos__lync_metric_count"], "alias": "lync_metric_count", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "metric <> 'Total Gas Consumed'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "where": "metric <> 'Total Gas Consumed'"}, "created_at": 1760113501.4554095, "relation_name": "EXTERNAL.not_null_silver_aptos.lync_metric_count", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"metric <> 'Total Gas Consumed'\") }}", "language": "sql", "refs": [{"name": "silver_aptos__lync", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver_aptos__lync"]}, "compiled_path": "target/compiled/external_models/models/aptos_gas/lync/silver_aptos__lync.yml/not_null_silver_aptos__lync_metric_count.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from EXTERNAL.silver_aptos.lync where metric <> 'Total Gas Consumed') dbt_subquery\nwhere metric_count is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metric_count", "file_key_name": "models.silver_aptos__lync", "attached_node": "model.external_models.silver_aptos__lync"}, "test.external_models.not_null_silver_aptos__lync_metric_amount.26188f96dc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "metric_amount", "model": "{{ get_where_subquery(ref('silver_aptos__lync')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver_aptos", "name": "not_null_silver_aptos__lync_metric_amount", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver_aptos__lync_metric_amount.sql", "original_file_path": "models/aptos_gas/lync/silver_aptos__lync.yml", "unique_id": "test.external_models.not_null_silver_aptos__lync_metric_amount.26188f96dc", "fqn": ["external_models", "aptos_gas", "lync", "not_null_silver_aptos__lync_metric_amount"], "alias": "lync_metric_amount", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "metric = 'Total Gas Consumed'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "where": "metric = 'Total Gas Consumed'"}, "created_at": 1760113501.4578457, "relation_name": "EXTERNAL.not_null_silver_aptos.lync_metric_amount", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"metric = 'Total Gas Consumed'\") }}", "language": "sql", "refs": [{"name": "silver_aptos__lync", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver_aptos__lync"]}, "compiled_path": "target/compiled/external_models/models/aptos_gas/lync/silver_aptos__lync.yml/not_null_silver_aptos__lync_metric_amount.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from EXTERNAL.silver_aptos.lync where metric = 'Total Gas Consumed') dbt_subquery\nwhere metric_amount is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metric_amount", "file_key_name": "models.silver_aptos__lync", "attached_node": "model.external_models.silver_aptos__lync"}, "test.external_models.not_null_silver_aptos__lync_metric_amount_in_usd.c567ac53f1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "metric_amount_in_usd", "model": "{{ get_where_subquery(ref('silver_aptos__lync')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver_aptos", "name": "not_null_silver_aptos__lync_metric_amount_in_usd", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver_aptos__lync_metric_amount_in_usd.sql", "original_file_path": "models/aptos_gas/lync/silver_aptos__lync.yml", "unique_id": "test.external_models.not_null_silver_aptos__lync_metric_amount_in_usd.c567ac53f1", "fqn": ["external_models", "aptos_gas", "lync", "not_null_silver_aptos__lync_metric_amount_in_usd"], "alias": "lync_metric_amount_in_usd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": "metric = 'Total Gas Consumed'", "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "where": "metric = 'Total Gas Consumed'"}, "created_at": 1760113501.459661, "relation_name": "EXTERNAL.not_null_silver_aptos.lync_metric_amount_in_usd", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(where=\"metric = 'Total Gas Consumed'\") }}", "language": "sql", "refs": [{"name": "silver_aptos__lync", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver_aptos__lync"]}, "compiled_path": "target/compiled/external_models/models/aptos_gas/lync/silver_aptos__lync.yml/not_null_silver_aptos__lync_metric_amount_in_usd.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom (select * from EXTERNAL.silver_aptos.lync where metric = 'Total Gas Consumed') dbt_subquery\nwhere metric_amount_in_usd is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metric_amount_in_usd", "file_key_name": "models.silver_aptos__lync", "attached_node": "model.external_models.silver_aptos__lync"}, "test.external_models.not_null_silver_aptos__shinam_metric_date.e87ed95074": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "metric_date", "model": "{{ get_where_subquery(ref('silver_aptos__shinam')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver_aptos", "name": "not_null_silver_aptos__shinam_metric_date", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver_aptos__shinam_metric_date.sql", "original_file_path": "models/aptos_gas/shinam/silver_aptos__shinam.yml", "unique_id": "test.external_models.not_null_silver_aptos__shinam_metric_date.e87ed95074", "fqn": ["external_models", "aptos_gas", "shinam", "not_null_silver_aptos__shinam_metric_date"], "alias": "shinam_metric_date", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.4644213, "relation_name": "EXTERNAL.not_null_silver_aptos.shinam_metric_date", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver_aptos__shinam", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver_aptos__shinam"]}, "compiled_path": "target/compiled/external_models/models/aptos_gas/shinam/silver_aptos__shinam.yml/not_null_silver_aptos__shinam_metric_date.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver_aptos.shinam\nwhere metric_date is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metric_date", "file_key_name": "models.silver_aptos__shinam", "attached_node": "model.external_models.silver_aptos__shinam"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver_aptos__shinam_metric_date__day__3.d346ecf718": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 3, "column_name": "metric_date", "model": "{{ get_where_subquery(ref('silver_aptos__shinam')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver_aptos", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver_aptos__shinam_metric_date__day__3", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_row_va_e5d2a1a2c7f867c646b80c7077eac1be.sql", "original_file_path": "models/aptos_gas/shinam/silver_aptos__shinam.yml", "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver_aptos__shinam_metric_date__day__3.d346ecf718", "fqn": ["external_models", "aptos_gas", "shinam", "dbt_expectations_expect_row_values_to_have_recent_data_silver_aptos__shinam_metric_date__day__3"], "alias": "shinam_metric_date", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_e5d2a1a2c7f867c646b80c7077eac1be", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_e5d2a1a2c7f867c646b80c7077eac1be"}, "created_at": 1760113501.4662678, "relation_name": "EXTERNAL.dbt_expectations_expect_row_values_to_have_recent_data_silver_aptos.shinam_metric_date", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_e5d2a1a2c7f867c646b80c7077eac1be\") }}", "language": "sql", "refs": [{"name": "silver_aptos__shinam", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver_aptos__shinam"]}, "compiled_path": "target/compiled/external_models/models/aptos_gas/shinam/silver_aptos__shinam.yml/dbt_expectations_expect_row_va_e5d2a1a2c7f867c646b80c7077eac1be.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(metric_date as timestamp_ntz)) as max_timestamp\n from\n EXTERNAL.silver_aptos.shinam\n where\n -- to exclude erroneous future dates\n cast(metric_date as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -3,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metric_date", "file_key_name": "models.silver_aptos__shinam", "attached_node": "model.external_models.silver_aptos__shinam"}, "test.external_models.not_null_silver__snapshot_proposals_PROPOSAL_ID.7025c6df25": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROPOSAL_ID", "model": "{{ get_where_subquery(ref('silver__snapshot_proposals')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__snapshot_proposals_PROPOSAL_ID", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__snapshot_proposals_PROPOSAL_ID.sql", "original_file_path": "models/snapshot/silver/silver__snapshot_proposals.yml", "unique_id": "test.external_models.not_null_silver__snapshot_proposals_PROPOSAL_ID.7025c6df25", "fqn": ["external_models", "snapshot", "silver", "not_null_silver__snapshot_proposals_PROPOSAL_ID"], "alias": "snapshot_proposals_PROPOSAL_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.4900742, "relation_name": "EXTERNAL.not_null_silver.snapshot_proposals_PROPOSAL_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__snapshot_proposals", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__snapshot_proposals"]}, "compiled_path": "target/compiled/external_models/models/snapshot/silver/silver__snapshot_proposals.yml/not_null_silver__snapshot_proposals_PROPOSAL_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.snapshot_proposals\nwhere PROPOSAL_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROPOSAL_ID", "file_key_name": "models.silver__snapshot_proposals", "attached_node": "model.external_models.silver__snapshot_proposals"}, "test.external_models.not_null_silver__snapshot_proposals_CREATED_AT.6da88af9f6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CREATED_AT", "model": "{{ get_where_subquery(ref('silver__snapshot_proposals')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__snapshot_proposals_CREATED_AT", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__snapshot_proposals_CREATED_AT.sql", "original_file_path": "models/snapshot/silver/silver__snapshot_proposals.yml", "unique_id": "test.external_models.not_null_silver__snapshot_proposals_CREATED_AT.6da88af9f6", "fqn": ["external_models", "snapshot", "silver", "not_null_silver__snapshot_proposals_CREATED_AT"], "alias": "snapshot_proposals_CREATED_AT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.4919047, "relation_name": "EXTERNAL.not_null_silver.snapshot_proposals_CREATED_AT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__snapshot_proposals", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__snapshot_proposals"]}, "compiled_path": "target/compiled/external_models/models/snapshot/silver/silver__snapshot_proposals.yml/not_null_silver__snapshot_proposals_CREATED_AT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.snapshot_proposals\nwhere CREATED_AT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CREATED_AT", "file_key_name": "models.silver__snapshot_proposals", "attached_node": "model.external_models.silver__snapshot_proposals"}, "test.external_models.not_null_silver__snapshot_proposals_PROPOSAL_START_TIME.9f5c3c7f1b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROPOSAL_START_TIME", "model": "{{ get_where_subquery(ref('silver__snapshot_proposals')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__snapshot_proposals_PROPOSAL_START_TIME", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__snapshot_proposals_PROPOSAL_START_TIME.sql", "original_file_path": "models/snapshot/silver/silver__snapshot_proposals.yml", "unique_id": "test.external_models.not_null_silver__snapshot_proposals_PROPOSAL_START_TIME.9f5c3c7f1b", "fqn": ["external_models", "snapshot", "silver", "not_null_silver__snapshot_proposals_PROPOSAL_START_TIME"], "alias": "snapshot_proposals_PROPOSAL_START_TIME", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.4936886, "relation_name": "EXTERNAL.not_null_silver.snapshot_proposals_PROPOSAL_START_TIME", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__snapshot_proposals", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__snapshot_proposals"]}, "compiled_path": "target/compiled/external_models/models/snapshot/silver/silver__snapshot_proposals.yml/not_null_silver__snapshot_proposals_PROPOSAL_START_TIME.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.snapshot_proposals\nwhere PROPOSAL_START_TIME is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROPOSAL_START_TIME", "file_key_name": "models.silver__snapshot_proposals", "attached_node": "model.external_models.silver__snapshot_proposals"}, "test.external_models.not_null_silver__snapshot_proposals_PROPOSAL_END_TIME.5f14be541b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROPOSAL_END_TIME", "model": "{{ get_where_subquery(ref('silver__snapshot_proposals')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__snapshot_proposals_PROPOSAL_END_TIME", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__snapshot_proposals_PROPOSAL_END_TIME.sql", "original_file_path": "models/snapshot/silver/silver__snapshot_proposals.yml", "unique_id": "test.external_models.not_null_silver__snapshot_proposals_PROPOSAL_END_TIME.5f14be541b", "fqn": ["external_models", "snapshot", "silver", "not_null_silver__snapshot_proposals_PROPOSAL_END_TIME"], "alias": "snapshot_proposals_PROPOSAL_END_TIME", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.4954906, "relation_name": "EXTERNAL.not_null_silver.snapshot_proposals_PROPOSAL_END_TIME", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__snapshot_proposals", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__snapshot_proposals"]}, "compiled_path": "target/compiled/external_models/models/snapshot/silver/silver__snapshot_proposals.yml/not_null_silver__snapshot_proposals_PROPOSAL_END_TIME.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.snapshot_proposals\nwhere PROPOSAL_END_TIME is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROPOSAL_END_TIME", "file_key_name": "models.silver__snapshot_proposals", "attached_node": "model.external_models.silver__snapshot_proposals"}, "test.external_models.not_null_silver__snapshot_proposals__INSERTED_TIMESTAMP.9b86eaedeb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__snapshot_proposals')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__snapshot_proposals__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__snapshot_proposals__INSERTED_TIMESTAMP.sql", "original_file_path": "models/snapshot/silver/silver__snapshot_proposals.yml", "unique_id": "test.external_models.not_null_silver__snapshot_proposals__INSERTED_TIMESTAMP.9b86eaedeb", "fqn": ["external_models", "snapshot", "silver", "not_null_silver__snapshot_proposals__INSERTED_TIMESTAMP"], "alias": "snapshot_proposals", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.497325, "relation_name": "EXTERNAL.not_null_silver.snapshot_proposals", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__snapshot_proposals", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__snapshot_proposals"]}, "compiled_path": "target/compiled/external_models/models/snapshot/silver/silver__snapshot_proposals.yml/not_null_silver__snapshot_proposals__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.snapshot_proposals\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__snapshot_proposals", "attached_node": "model.external_models.silver__snapshot_proposals"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__snapshot_proposals__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.7931ee3896": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__snapshot_proposals')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__snapshot_proposals__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_8e83060f7c8ba55cb61efa273fba8fbf.sql", "original_file_path": "models/snapshot/silver/silver__snapshot_proposals.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__snapshot_proposals__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.7931ee3896", "fqn": ["external_models", "snapshot", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__snapshot_proposals__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "snapshot_proposals", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_8e83060f7c8ba55cb61efa273fba8fbf", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_8e83060f7c8ba55cb61efa273fba8fbf"}, "created_at": 1760113501.499852, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_silver.snapshot_proposals", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_8e83060f7c8ba55cb61efa273fba8fbf\") }}", "language": "sql", "refs": [{"name": "silver__snapshot_proposals", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__snapshot_proposals"]}, "compiled_path": "target/compiled/external_models/models/snapshot/silver/silver__snapshot_proposals.yml/dbt_expectations_expect_column_8e83060f7c8ba55cb61efa273fba8fbf.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('PROPOSAL_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IPFS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHOICES' as TEXT) as relation_column,\n cast('ARRAY' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSAL_AUTHOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSAL_TITLE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSAL_TEXT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DELAY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('QUORUM' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTING_PERIOD' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTING_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SPACE_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATED_AT' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSAL_START_TIME' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSAL_END_TIME' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__snapshot_proposals", "attached_node": "model.external_models.silver__snapshot_proposals"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__snapshot_proposals_PROPOSAL_ID.07e9b3a85b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["PROPOSAL_ID"], "model": "{{ get_where_subquery(ref('silver__snapshot_proposals')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__snapshot_proposals_PROPOSAL_ID", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_2505260cf0bd4ac43ba192012d8d03e0.sql", "original_file_path": "models/snapshot/silver/silver__snapshot_proposals.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__snapshot_proposals_PROPOSAL_ID.07e9b3a85b", "fqn": ["external_models", "snapshot", "silver", "dbt_utils_unique_combination_of_columns_silver__snapshot_proposals_PROPOSAL_ID"], "alias": "snapshot_proposals_PROPOSAL_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2505260cf0bd4ac43ba192012d8d03e0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_2505260cf0bd4ac43ba192012d8d03e0"}, "created_at": 1760113501.504658, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_silver.snapshot_proposals_PROPOSAL_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2505260cf0bd4ac43ba192012d8d03e0\") }}", "language": "sql", "refs": [{"name": "silver__snapshot_proposals", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__snapshot_proposals"]}, "compiled_path": "target/compiled/external_models/models/snapshot/silver/silver__snapshot_proposals.yml/dbt_utils_unique_combination_o_2505260cf0bd4ac43ba192012d8d03e0.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n PROPOSAL_ID\n from EXTERNAL.silver.snapshot_proposals\n group by PROPOSAL_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__snapshot_proposals", "attached_node": "model.external_models.silver__snapshot_proposals"}, "test.external_models.not_null_silver__snapshot_users_ADDRESS.1dd18cb68e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('silver__snapshot_users')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__snapshot_users_ADDRESS", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__snapshot_users_ADDRESS.sql", "original_file_path": "models/snapshot/silver/silver__snapshot_users.yml", "unique_id": "test.external_models.not_null_silver__snapshot_users_ADDRESS.1dd18cb68e", "fqn": ["external_models", "snapshot", "silver", "not_null_silver__snapshot_users_ADDRESS"], "alias": "snapshot_users_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.5103602, "relation_name": "EXTERNAL.not_null_silver.snapshot_users_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__snapshot_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__snapshot_users"]}, "compiled_path": "target/compiled/external_models/models/snapshot/silver/silver__snapshot_users.yml/not_null_silver__snapshot_users_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.snapshot_users\nwhere ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ADDRESS", "file_key_name": "models.silver__snapshot_users", "attached_node": "model.external_models.silver__snapshot_users"}, "test.external_models.not_null_silver__snapshot_users_CREATED_AT.0499e8afe9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CREATED_AT", "model": "{{ get_where_subquery(ref('silver__snapshot_users')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__snapshot_users_CREATED_AT", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__snapshot_users_CREATED_AT.sql", "original_file_path": "models/snapshot/silver/silver__snapshot_users.yml", "unique_id": "test.external_models.not_null_silver__snapshot_users_CREATED_AT.0499e8afe9", "fqn": ["external_models", "snapshot", "silver", "not_null_silver__snapshot_users_CREATED_AT"], "alias": "snapshot_users_CREATED_AT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.512168, "relation_name": "EXTERNAL.not_null_silver.snapshot_users_CREATED_AT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__snapshot_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__snapshot_users"]}, "compiled_path": "target/compiled/external_models/models/snapshot/silver/silver__snapshot_users.yml/not_null_silver__snapshot_users_CREATED_AT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.snapshot_users\nwhere CREATED_AT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CREATED_AT", "file_key_name": "models.silver__snapshot_users", "attached_node": "model.external_models.silver__snapshot_users"}, "test.external_models.not_null_silver__snapshot_users__INSERTED_TIMESTAMP.909a06b730": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__snapshot_users')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__snapshot_users__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__snapshot_users__INSERTED_TIMESTAMP.sql", "original_file_path": "models/snapshot/silver/silver__snapshot_users.yml", "unique_id": "test.external_models.not_null_silver__snapshot_users__INSERTED_TIMESTAMP.909a06b730", "fqn": ["external_models", "snapshot", "silver", "not_null_silver__snapshot_users__INSERTED_TIMESTAMP"], "alias": "snapshot_users", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.513996, "relation_name": "EXTERNAL.not_null_silver.snapshot_users", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__snapshot_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__snapshot_users"]}, "compiled_path": "target/compiled/external_models/models/snapshot/silver/silver__snapshot_users.yml/not_null_silver__snapshot_users__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.snapshot_users\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__snapshot_users", "attached_node": "model.external_models.silver__snapshot_users"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__snapshot_users_ADDRESS.9ea8a0645c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ADDRESS"], "model": "{{ get_where_subquery(ref('silver__snapshot_users')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__snapshot_users_ADDRESS", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_3422d2e4381afb0968f3fa1d31ed5476.sql", "original_file_path": "models/snapshot/silver/silver__snapshot_users.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__snapshot_users_ADDRESS.9ea8a0645c", "fqn": ["external_models", "snapshot", "silver", "dbt_utils_unique_combination_of_columns_silver__snapshot_users_ADDRESS"], "alias": "snapshot_users_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3422d2e4381afb0968f3fa1d31ed5476", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_3422d2e4381afb0968f3fa1d31ed5476"}, "created_at": 1760113501.515786, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_silver.snapshot_users_ADDRESS", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3422d2e4381afb0968f3fa1d31ed5476\") }}", "language": "sql", "refs": [{"name": "silver__snapshot_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__snapshot_users"]}, "compiled_path": "target/compiled/external_models/models/snapshot/silver/silver__snapshot_users.yml/dbt_utils_unique_combination_o_3422d2e4381afb0968f3fa1d31ed5476.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ADDRESS\n from EXTERNAL.silver.snapshot_users\n group by ADDRESS\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__snapshot_users", "attached_node": "model.external_models.silver__snapshot_users"}, "test.external_models.not_null_silver__snapshot_spaces_SPACE_ID.1e98e6593b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SPACE_ID", "model": "{{ get_where_subquery(ref('silver__snapshot_spaces')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__snapshot_spaces_SPACE_ID", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__snapshot_spaces_SPACE_ID.sql", "original_file_path": "models/snapshot/silver/silver__snapshot_spaces.yml", "unique_id": "test.external_models.not_null_silver__snapshot_spaces_SPACE_ID.1e98e6593b", "fqn": ["external_models", "snapshot", "silver", "not_null_silver__snapshot_spaces_SPACE_ID"], "alias": "snapshot_spaces_SPACE_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.5220828, "relation_name": "EXTERNAL.not_null_silver.snapshot_spaces_SPACE_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__snapshot_spaces", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__snapshot_spaces"]}, "compiled_path": "target/compiled/external_models/models/snapshot/silver/silver__snapshot_spaces.yml/not_null_silver__snapshot_spaces_SPACE_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.snapshot_spaces\nwhere SPACE_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SPACE_ID", "file_key_name": "models.silver__snapshot_spaces", "attached_node": "model.external_models.silver__snapshot_spaces"}, "test.external_models.not_null_silver__snapshot_spaces_SPACE.b594675078": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SPACE", "model": "{{ get_where_subquery(ref('silver__snapshot_spaces')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__snapshot_spaces_SPACE", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__snapshot_spaces_SPACE.sql", "original_file_path": "models/snapshot/silver/silver__snapshot_spaces.yml", "unique_id": "test.external_models.not_null_silver__snapshot_spaces_SPACE.b594675078", "fqn": ["external_models", "snapshot", "silver", "not_null_silver__snapshot_spaces_SPACE"], "alias": "snapshot_spaces_SPACE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.5240288, "relation_name": "EXTERNAL.not_null_silver.snapshot_spaces_SPACE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__snapshot_spaces", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__snapshot_spaces"]}, "compiled_path": "target/compiled/external_models/models/snapshot/silver/silver__snapshot_spaces.yml/not_null_silver__snapshot_spaces_SPACE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.snapshot_spaces\nwhere SPACE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SPACE", "file_key_name": "models.silver__snapshot_spaces", "attached_node": "model.external_models.silver__snapshot_spaces"}, "test.external_models.not_null_silver__snapshot_spaces__INSERTED_TIMESTAMP.9c97d87460": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__snapshot_spaces')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__snapshot_spaces__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__snapshot_spaces__INSERTED_TIMESTAMP.sql", "original_file_path": "models/snapshot/silver/silver__snapshot_spaces.yml", "unique_id": "test.external_models.not_null_silver__snapshot_spaces__INSERTED_TIMESTAMP.9c97d87460", "fqn": ["external_models", "snapshot", "silver", "not_null_silver__snapshot_spaces__INSERTED_TIMESTAMP"], "alias": "snapshot_spaces", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.5258489, "relation_name": "EXTERNAL.not_null_silver.snapshot_spaces", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__snapshot_spaces", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__snapshot_spaces"]}, "compiled_path": "target/compiled/external_models/models/snapshot/silver/silver__snapshot_spaces.yml/not_null_silver__snapshot_spaces__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.snapshot_spaces\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__snapshot_spaces", "attached_node": "model.external_models.silver__snapshot_spaces"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__snapshot_spaces_SPACE_ID.176897c79d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["SPACE_ID"], "model": "{{ get_where_subquery(ref('silver__snapshot_spaces')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__snapshot_spaces_SPACE_ID", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_e8fa7fe5892da7524d5f8be8b33c2eae.sql", "original_file_path": "models/snapshot/silver/silver__snapshot_spaces.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__snapshot_spaces_SPACE_ID.176897c79d", "fqn": ["external_models", "snapshot", "silver", "dbt_utils_unique_combination_of_columns_silver__snapshot_spaces_SPACE_ID"], "alias": "snapshot_spaces_SPACE_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e8fa7fe5892da7524d5f8be8b33c2eae", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_e8fa7fe5892da7524d5f8be8b33c2eae"}, "created_at": 1760113501.5279415, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_silver.snapshot_spaces_SPACE_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e8fa7fe5892da7524d5f8be8b33c2eae\") }}", "language": "sql", "refs": [{"name": "silver__snapshot_spaces", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__snapshot_spaces"]}, "compiled_path": "target/compiled/external_models/models/snapshot/silver/silver__snapshot_spaces.yml/dbt_utils_unique_combination_o_e8fa7fe5892da7524d5f8be8b33c2eae.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n SPACE_ID\n from EXTERNAL.silver.snapshot_spaces\n group by SPACE_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__snapshot_spaces", "attached_node": "model.external_models.silver__snapshot_spaces"}, "test.external_models.not_null_silver__snapshot_votes_VOTE_TIMESTAMP.bc2c7ab8f4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VOTE_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__snapshot_votes')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__snapshot_votes_VOTE_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__snapshot_votes_VOTE_TIMESTAMP.sql", "original_file_path": "models/snapshot/silver/silver__snapshot_votes.yml", "unique_id": "test.external_models.not_null_silver__snapshot_votes_VOTE_TIMESTAMP.bc2c7ab8f4", "fqn": ["external_models", "snapshot", "silver", "not_null_silver__snapshot_votes_VOTE_TIMESTAMP"], "alias": "snapshot_votes_VOTE_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.535173, "relation_name": "EXTERNAL.not_null_silver.snapshot_votes_VOTE_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__snapshot_votes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__snapshot_votes"]}, "compiled_path": "target/compiled/external_models/models/snapshot/silver/silver__snapshot_votes.yml/not_null_silver__snapshot_votes_VOTE_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.snapshot_votes\nwhere VOTE_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "VOTE_TIMESTAMP", "file_key_name": "models.silver__snapshot_votes", "attached_node": "model.external_models.silver__snapshot_votes"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__snapshot_votes_VOTE_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.449807ec08": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "VOTE_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__snapshot_votes')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__snapshot_votes_VOTE_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_d0bac729ee33bd8840519e04c7e62c31.sql", "original_file_path": "models/snapshot/silver/silver__snapshot_votes.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__snapshot_votes_VOTE_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.449807ec08", "fqn": ["external_models", "snapshot", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__snapshot_votes_VOTE_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "snapshot_votes_VOTE_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_d0bac729ee33bd8840519e04c7e62c31", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_d0bac729ee33bd8840519e04c7e62c31"}, "created_at": 1760113501.5370207, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_silver.snapshot_votes_VOTE_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_d0bac729ee33bd8840519e04c7e62c31\") }}", "language": "sql", "refs": [{"name": "silver__snapshot_votes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__snapshot_votes"]}, "compiled_path": "target/compiled/external_models/models/snapshot/silver/silver__snapshot_votes.yml/dbt_expectations_expect_column_d0bac729ee33bd8840519e04c7e62c31.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('VOTE_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSAL_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_OPTION' as TEXT) as relation_column,\n cast('ARRAY' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTING_POWER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('IPFS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'VOTE_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "VOTE_TIMESTAMP", "file_key_name": "models.silver__snapshot_votes", "attached_node": "model.external_models.silver__snapshot_votes"}, "test.external_models.not_null_silver__snapshot_votes_VOTER.f83f2638d0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VOTER", "model": "{{ get_where_subquery(ref('silver__snapshot_votes')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__snapshot_votes_VOTER", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__snapshot_votes_VOTER.sql", "original_file_path": "models/snapshot/silver/silver__snapshot_votes.yml", "unique_id": "test.external_models.not_null_silver__snapshot_votes_VOTER.f83f2638d0", "fqn": ["external_models", "snapshot", "silver", "not_null_silver__snapshot_votes_VOTER"], "alias": "snapshot_votes_VOTER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.541383, "relation_name": "EXTERNAL.not_null_silver.snapshot_votes_VOTER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__snapshot_votes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__snapshot_votes"]}, "compiled_path": "target/compiled/external_models/models/snapshot/silver/silver__snapshot_votes.yml/not_null_silver__snapshot_votes_VOTER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.snapshot_votes\nwhere VOTER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "VOTER", "file_key_name": "models.silver__snapshot_votes", "attached_node": "model.external_models.silver__snapshot_votes"}, "test.external_models.dbt_expectations_expect_column_values_to_match_regex_silver__snapshot_votes_VOTER__0_xX_0_9a_fA_F_.441303a55c": {"test_metadata": {"name": "expect_column_values_to_match_regex", "kwargs": {"regex": "0[xX][0-9a-fA-F]+", "column_name": "VOTER", "model": "{{ get_where_subquery(ref('silver__snapshot_votes')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_match_regex_silver", "name": "dbt_expectations_expect_column_values_to_match_regex_silver__snapshot_votes_VOTER__0_xX_0_9a_fA_F_", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_8af12bc20133731c75f732fcdbf358af.sql", "original_file_path": "models/snapshot/silver/silver__snapshot_votes.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_match_regex_silver__snapshot_votes_VOTER__0_xX_0_9a_fA_F_.441303a55c", "fqn": ["external_models", "snapshot", "silver", "dbt_expectations_expect_column_values_to_match_regex_silver__snapshot_votes_VOTER__0_xX_0_9a_fA_F_"], "alias": "snapshot_votes_VOTER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_8af12bc20133731c75f732fcdbf358af", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_8af12bc20133731c75f732fcdbf358af"}, "created_at": 1760113501.5431988, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_match_regex_silver.snapshot_votes_VOTER", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_match_regex(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_8af12bc20133731c75f732fcdbf358af\") }}", "language": "sql", "refs": [{"name": "silver__snapshot_votes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__snapshot_votes"]}, "compiled_path": "target/compiled/external_models/models/snapshot/silver/silver__snapshot_votes.yml/dbt_expectations_expect_column_8af12bc20133731c75f732fcdbf358af.sql", "compiled": true, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n regexp_instr(VOTER, '0[xX][0-9a-fA-F]+', 1, 1)\n\n\n > 0\n as expression\n\n\n from EXTERNAL.silver.snapshot_votes\n \n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression = true)\n\n)\n\nselect *\nfrom validation_errors\n\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "VOTER", "file_key_name": "models.silver__snapshot_votes", "attached_node": "model.external_models.silver__snapshot_votes"}, "test.external_models.not_null_silver__snapshot_votes_PROPOSAL_ID.a2a1e3cd20": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROPOSAL_ID", "model": "{{ get_where_subquery(ref('silver__snapshot_votes')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__snapshot_votes_PROPOSAL_ID", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__snapshot_votes_PROPOSAL_ID.sql", "original_file_path": "models/snapshot/silver/silver__snapshot_votes.yml", "unique_id": "test.external_models.not_null_silver__snapshot_votes_PROPOSAL_ID.a2a1e3cd20", "fqn": ["external_models", "snapshot", "silver", "not_null_silver__snapshot_votes_PROPOSAL_ID"], "alias": "snapshot_votes_PROPOSAL_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.5610929, "relation_name": "EXTERNAL.not_null_silver.snapshot_votes_PROPOSAL_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__snapshot_votes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__snapshot_votes"]}, "compiled_path": "target/compiled/external_models/models/snapshot/silver/silver__snapshot_votes.yml/not_null_silver__snapshot_votes_PROPOSAL_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.snapshot_votes\nwhere PROPOSAL_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROPOSAL_ID", "file_key_name": "models.silver__snapshot_votes", "attached_node": "model.external_models.silver__snapshot_votes"}, "test.external_models.not_null_silver__snapshot_votes_VOTE_OPTION.749d690de9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VOTE_OPTION", "model": "{{ get_where_subquery(ref('silver__snapshot_votes')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__snapshot_votes_VOTE_OPTION", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__snapshot_votes_VOTE_OPTION.sql", "original_file_path": "models/snapshot/silver/silver__snapshot_votes.yml", "unique_id": "test.external_models.not_null_silver__snapshot_votes_VOTE_OPTION.749d690de9", "fqn": ["external_models", "snapshot", "silver", "not_null_silver__snapshot_votes_VOTE_OPTION"], "alias": "snapshot_votes_VOTE_OPTION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.5629222, "relation_name": "EXTERNAL.not_null_silver.snapshot_votes_VOTE_OPTION", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__snapshot_votes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__snapshot_votes"]}, "compiled_path": "target/compiled/external_models/models/snapshot/silver/silver__snapshot_votes.yml/not_null_silver__snapshot_votes_VOTE_OPTION.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.snapshot_votes\nwhere VOTE_OPTION is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "VOTE_OPTION", "file_key_name": "models.silver__snapshot_votes", "attached_node": "model.external_models.silver__snapshot_votes"}, "test.external_models.not_null_silver__snapshot_votes_VOTE_ID.3e87d455f6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VOTE_ID", "model": "{{ get_where_subquery(ref('silver__snapshot_votes')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__snapshot_votes_VOTE_ID", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__snapshot_votes_VOTE_ID.sql", "original_file_path": "models/snapshot/silver/silver__snapshot_votes.yml", "unique_id": "test.external_models.not_null_silver__snapshot_votes_VOTE_ID.3e87d455f6", "fqn": ["external_models", "snapshot", "silver", "not_null_silver__snapshot_votes_VOTE_ID"], "alias": "snapshot_votes_VOTE_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.5647097, "relation_name": "EXTERNAL.not_null_silver.snapshot_votes_VOTE_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__snapshot_votes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__snapshot_votes"]}, "compiled_path": "target/compiled/external_models/models/snapshot/silver/silver__snapshot_votes.yml/not_null_silver__snapshot_votes_VOTE_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.snapshot_votes\nwhere VOTE_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "VOTE_ID", "file_key_name": "models.silver__snapshot_votes", "attached_node": "model.external_models.silver__snapshot_votes"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__snapshot_votes__INSERTED_TIMESTAMP__day__1.f824a44d33": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 1, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__snapshot_votes')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__snapshot_votes__INSERTED_TIMESTAMP__day__1", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_row_va_5e7908a5c4aada17638b21eea3ba11da.sql", "original_file_path": "models/snapshot/silver/silver__snapshot_votes.yml", "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__snapshot_votes__INSERTED_TIMESTAMP__day__1.f824a44d33", "fqn": ["external_models", "snapshot", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver__snapshot_votes__INSERTED_TIMESTAMP__day__1"], "alias": "snapshot_votes", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_5e7908a5c4aada17638b21eea3ba11da", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_5e7908a5c4aada17638b21eea3ba11da"}, "created_at": 1760113501.5664968, "relation_name": "EXTERNAL.dbt_expectations_expect_row_values_to_have_recent_data_silver.snapshot_votes", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_5e7908a5c4aada17638b21eea3ba11da\") }}", "language": "sql", "refs": [{"name": "silver__snapshot_votes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__snapshot_votes"]}, "compiled_path": "target/compiled/external_models/models/snapshot/silver/silver__snapshot_votes.yml/dbt_expectations_expect_row_va_5e7908a5c4aada17638b21eea3ba11da.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(_INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n EXTERNAL.silver.snapshot_votes\n where\n -- to exclude erroneous future dates\n cast(_INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -1,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__snapshot_votes", "attached_node": "model.external_models.silver__snapshot_votes"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__snapshot_votes_VOTE_ID.2d7a58900a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["VOTE_ID"], "model": "{{ get_where_subquery(ref('silver__snapshot_votes')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__snapshot_votes_VOTE_ID", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_b8c4c2034de2f0b6b84362315c964d44.sql", "original_file_path": "models/snapshot/silver/silver__snapshot_votes.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__snapshot_votes_VOTE_ID.2d7a58900a", "fqn": ["external_models", "snapshot", "silver", "dbt_utils_unique_combination_of_columns_silver__snapshot_votes_VOTE_ID"], "alias": "snapshot_votes_VOTE_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b8c4c2034de2f0b6b84362315c964d44", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_b8c4c2034de2f0b6b84362315c964d44"}, "created_at": 1760113501.5725884, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_silver.snapshot_votes_VOTE_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b8c4c2034de2f0b6b84362315c964d44\") }}", "language": "sql", "refs": [{"name": "silver__snapshot_votes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__snapshot_votes"]}, "compiled_path": "target/compiled/external_models/models/snapshot/silver/silver__snapshot_votes.yml/dbt_utils_unique_combination_o_b8c4c2034de2f0b6b84362315c964d44.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n VOTE_ID\n from EXTERNAL.silver.snapshot_votes\n group by VOTE_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__snapshot_votes", "attached_node": "model.external_models.silver__snapshot_votes"}, "test.external_models.not_null_bronze__snapshot_votes_ID.03d01283f1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ID", "model": "{{ get_where_subquery(ref('bronze__snapshot_votes')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__snapshot_votes_ID", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__snapshot_votes_ID.sql", "original_file_path": "models/snapshot/bronze/bronze__snapshot_votes.yml", "unique_id": "test.external_models.not_null_bronze__snapshot_votes_ID.03d01283f1", "fqn": ["external_models", "snapshot", "bronze", "not_null_bronze__snapshot_votes_ID"], "alias": "snapshot_votes_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.591447, "relation_name": "EXTERNAL.not_null_bronze.snapshot_votes_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__snapshot_votes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__snapshot_votes"]}, "compiled_path": "target/compiled/external_models/models/snapshot/bronze/bronze__snapshot_votes.yml/not_null_bronze__snapshot_votes_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.snapshot_votes\nwhere ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ID", "file_key_name": "models.bronze__snapshot_votes", "attached_node": "model.external_models.bronze__snapshot_votes"}, "test.external_models.not_null_bronze__snapshot_votes_PROPOSAL_ID.fd52925536": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROPOSAL_ID", "model": "{{ get_where_subquery(ref('bronze__snapshot_votes')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__snapshot_votes_PROPOSAL_ID", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__snapshot_votes_PROPOSAL_ID.sql", "original_file_path": "models/snapshot/bronze/bronze__snapshot_votes.yml", "unique_id": "test.external_models.not_null_bronze__snapshot_votes_PROPOSAL_ID.fd52925536", "fqn": ["external_models", "snapshot", "bronze", "not_null_bronze__snapshot_votes_PROPOSAL_ID"], "alias": "snapshot_votes_PROPOSAL_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.59334, "relation_name": "EXTERNAL.not_null_bronze.snapshot_votes_PROPOSAL_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__snapshot_votes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__snapshot_votes"]}, "compiled_path": "target/compiled/external_models/models/snapshot/bronze/bronze__snapshot_votes.yml/not_null_bronze__snapshot_votes_PROPOSAL_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.snapshot_votes\nwhere PROPOSAL_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROPOSAL_ID", "file_key_name": "models.bronze__snapshot_votes", "attached_node": "model.external_models.bronze__snapshot_votes"}, "test.external_models.not_null_bronze__snapshot_votes_VOTER.4c90295a96": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VOTER", "model": "{{ get_where_subquery(ref('bronze__snapshot_votes')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__snapshot_votes_VOTER", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__snapshot_votes_VOTER.sql", "original_file_path": "models/snapshot/bronze/bronze__snapshot_votes.yml", "unique_id": "test.external_models.not_null_bronze__snapshot_votes_VOTER.4c90295a96", "fqn": ["external_models", "snapshot", "bronze", "not_null_bronze__snapshot_votes_VOTER"], "alias": "snapshot_votes_VOTER", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.5951257, "relation_name": "EXTERNAL.not_null_bronze.snapshot_votes_VOTER", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__snapshot_votes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__snapshot_votes"]}, "compiled_path": "target/compiled/external_models/models/snapshot/bronze/bronze__snapshot_votes.yml/not_null_bronze__snapshot_votes_VOTER.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.snapshot_votes\nwhere VOTER is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "VOTER", "file_key_name": "models.bronze__snapshot_votes", "attached_node": "model.external_models.bronze__snapshot_votes"}, "test.external_models.not_null_bronze__snapshot_votes_VOTE_TIMESTAMP.3fa3f796a9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VOTE_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze__snapshot_votes')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__snapshot_votes_VOTE_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__snapshot_votes_VOTE_TIMESTAMP.sql", "original_file_path": "models/snapshot/bronze/bronze__snapshot_votes.yml", "unique_id": "test.external_models.not_null_bronze__snapshot_votes_VOTE_TIMESTAMP.3fa3f796a9", "fqn": ["external_models", "snapshot", "bronze", "not_null_bronze__snapshot_votes_VOTE_TIMESTAMP"], "alias": "snapshot_votes_VOTE_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.59694, "relation_name": "EXTERNAL.not_null_bronze.snapshot_votes_VOTE_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__snapshot_votes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__snapshot_votes"]}, "compiled_path": "target/compiled/external_models/models/snapshot/bronze/bronze__snapshot_votes.yml/not_null_bronze__snapshot_votes_VOTE_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.snapshot_votes\nwhere VOTE_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "VOTE_TIMESTAMP", "file_key_name": "models.bronze__snapshot_votes", "attached_node": "model.external_models.bronze__snapshot_votes"}, "test.external_models.not_null_bronze__snapshot_votes_VOTE_OPTION.55945386d3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "VOTE_OPTION", "model": "{{ get_where_subquery(ref('bronze__snapshot_votes')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__snapshot_votes_VOTE_OPTION", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__snapshot_votes_VOTE_OPTION.sql", "original_file_path": "models/snapshot/bronze/bronze__snapshot_votes.yml", "unique_id": "test.external_models.not_null_bronze__snapshot_votes_VOTE_OPTION.55945386d3", "fqn": ["external_models", "snapshot", "bronze", "not_null_bronze__snapshot_votes_VOTE_OPTION"], "alias": "snapshot_votes_VOTE_OPTION", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.5989952, "relation_name": "EXTERNAL.not_null_bronze.snapshot_votes_VOTE_OPTION", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__snapshot_votes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__snapshot_votes"]}, "compiled_path": "target/compiled/external_models/models/snapshot/bronze/bronze__snapshot_votes.yml/not_null_bronze__snapshot_votes_VOTE_OPTION.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.snapshot_votes\nwhere VOTE_OPTION is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "VOTE_OPTION", "file_key_name": "models.bronze__snapshot_votes", "attached_node": "model.external_models.bronze__snapshot_votes"}, "test.external_models.not_null_bronze__snapshot_votes__INSERTED_TIMESTAMP.22e6f3ebe5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze__snapshot_votes')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__snapshot_votes__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__snapshot_votes__INSERTED_TIMESTAMP.sql", "original_file_path": "models/snapshot/bronze/bronze__snapshot_votes.yml", "unique_id": "test.external_models.not_null_bronze__snapshot_votes__INSERTED_TIMESTAMP.22e6f3ebe5", "fqn": ["external_models", "snapshot", "bronze", "not_null_bronze__snapshot_votes__INSERTED_TIMESTAMP"], "alias": "snapshot_votes", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.6007907, "relation_name": "EXTERNAL.not_null_bronze.snapshot_votes", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__snapshot_votes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__snapshot_votes"]}, "compiled_path": "target/compiled/external_models/models/snapshot/bronze/bronze__snapshot_votes.yml/not_null_bronze__snapshot_votes__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.snapshot_votes\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze__snapshot_votes", "attached_node": "model.external_models.bronze__snapshot_votes"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_votes__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.ca2bd30b51": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze__snapshot_votes')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_votes__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_0b38035551c2d7f9eef5f2deea833185.sql", "original_file_path": "models/snapshot/bronze/bronze__snapshot_votes.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_votes__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.ca2bd30b51", "fqn": ["external_models", "snapshot", "bronze", "dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_votes__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "snapshot_votes", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0b38035551c2d7f9eef5f2deea833185", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_0b38035551c2d7f9eef5f2deea833185"}, "created_at": 1760113501.6026065, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_bronze.snapshot_votes", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0b38035551c2d7f9eef5f2deea833185\") }}", "language": "sql", "refs": [{"name": "bronze__snapshot_votes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__snapshot_votes"]}, "compiled_path": "target/compiled/external_models/models/snapshot/bronze/bronze__snapshot_votes.yml/dbt_expectations_expect_column_0b38035551c2d7f9eef5f2deea833185.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IPFS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSAL_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTING_POWER' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTE_OPTION' as TEXT) as relation_column,\n cast('ARRAY' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze__snapshot_votes", "attached_node": "model.external_models.bronze__snapshot_votes"}, "test.external_models.dbt_utils_unique_combination_of_columns_bronze__snapshot_votes_ID.58b906fcef": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ID"], "model": "{{ get_where_subquery(ref('bronze__snapshot_votes')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_bronze", "name": "dbt_utils_unique_combination_of_columns_bronze__snapshot_votes_ID", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_880d49817d63608507f063b1fa8ed45b.sql", "original_file_path": "models/snapshot/bronze/bronze__snapshot_votes.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bronze__snapshot_votes_ID.58b906fcef", "fqn": ["external_models", "snapshot", "bronze", "dbt_utils_unique_combination_of_columns_bronze__snapshot_votes_ID"], "alias": "snapshot_votes_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_880d49817d63608507f063b1fa8ed45b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_880d49817d63608507f063b1fa8ed45b"}, "created_at": 1760113501.607605, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_bronze.snapshot_votes_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_880d49817d63608507f063b1fa8ed45b\") }}", "language": "sql", "refs": [{"name": "bronze__snapshot_votes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__snapshot_votes"]}, "compiled_path": "target/compiled/external_models/models/snapshot/bronze/bronze__snapshot_votes.yml/dbt_utils_unique_combination_o_880d49817d63608507f063b1fa8ed45b.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ID\n from EXTERNAL.bronze.snapshot_votes\n group by ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.bronze__snapshot_votes", "attached_node": "model.external_models.bronze__snapshot_votes"}, "test.external_models.not_null_bronze__snapshot_proposals_PROPOSAL_ID.43feeab1b7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROPOSAL_ID", "model": "{{ get_where_subquery(ref('bronze__snapshot_proposals')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__snapshot_proposals_PROPOSAL_ID", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__snapshot_proposals_PROPOSAL_ID.sql", "original_file_path": "models/snapshot/bronze/bronze__snapshot_proposals.yml", "unique_id": "test.external_models.not_null_bronze__snapshot_proposals_PROPOSAL_ID.43feeab1b7", "fqn": ["external_models", "snapshot", "bronze", "not_null_bronze__snapshot_proposals_PROPOSAL_ID"], "alias": "snapshot_proposals_PROPOSAL_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.6132727, "relation_name": "EXTERNAL.not_null_bronze.snapshot_proposals_PROPOSAL_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__snapshot_proposals", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__snapshot_proposals"]}, "compiled_path": "target/compiled/external_models/models/snapshot/bronze/bronze__snapshot_proposals.yml/not_null_bronze__snapshot_proposals_PROPOSAL_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.snapshot_proposals\nwhere PROPOSAL_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROPOSAL_ID", "file_key_name": "models.bronze__snapshot_proposals", "attached_node": "model.external_models.bronze__snapshot_proposals"}, "test.external_models.not_null_bronze__snapshot_proposals_CHOICES.9871e8bf95": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CHOICES", "model": "{{ get_where_subquery(ref('bronze__snapshot_proposals')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__snapshot_proposals_CHOICES", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__snapshot_proposals_CHOICES.sql", "original_file_path": "models/snapshot/bronze/bronze__snapshot_proposals.yml", "unique_id": "test.external_models.not_null_bronze__snapshot_proposals_CHOICES.9871e8bf95", "fqn": ["external_models", "snapshot", "bronze", "not_null_bronze__snapshot_proposals_CHOICES"], "alias": "snapshot_proposals_CHOICES", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.615088, "relation_name": "EXTERNAL.not_null_bronze.snapshot_proposals_CHOICES", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__snapshot_proposals", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__snapshot_proposals"]}, "compiled_path": "target/compiled/external_models/models/snapshot/bronze/bronze__snapshot_proposals.yml/not_null_bronze__snapshot_proposals_CHOICES.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.snapshot_proposals\nwhere CHOICES is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CHOICES", "file_key_name": "models.bronze__snapshot_proposals", "attached_node": "model.external_models.bronze__snapshot_proposals"}, "test.external_models.not_null_bronze__snapshot_proposals_SPACE_ID.226caec17f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SPACE_ID", "model": "{{ get_where_subquery(ref('bronze__snapshot_proposals')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__snapshot_proposals_SPACE_ID", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__snapshot_proposals_SPACE_ID.sql", "original_file_path": "models/snapshot/bronze/bronze__snapshot_proposals.yml", "unique_id": "test.external_models.not_null_bronze__snapshot_proposals_SPACE_ID.226caec17f", "fqn": ["external_models", "snapshot", "bronze", "not_null_bronze__snapshot_proposals_SPACE_ID"], "alias": "snapshot_proposals_SPACE_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.6171288, "relation_name": "EXTERNAL.not_null_bronze.snapshot_proposals_SPACE_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__snapshot_proposals", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__snapshot_proposals"]}, "compiled_path": "target/compiled/external_models/models/snapshot/bronze/bronze__snapshot_proposals.yml/not_null_bronze__snapshot_proposals_SPACE_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.snapshot_proposals\nwhere SPACE_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SPACE_ID", "file_key_name": "models.bronze__snapshot_proposals", "attached_node": "model.external_models.bronze__snapshot_proposals"}, "test.external_models.not_null_bronze__snapshot_proposals_CREATED_AT.159e8e2d9c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CREATED_AT", "model": "{{ get_where_subquery(ref('bronze__snapshot_proposals')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__snapshot_proposals_CREATED_AT", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__snapshot_proposals_CREATED_AT.sql", "original_file_path": "models/snapshot/bronze/bronze__snapshot_proposals.yml", "unique_id": "test.external_models.not_null_bronze__snapshot_proposals_CREATED_AT.159e8e2d9c", "fqn": ["external_models", "snapshot", "bronze", "not_null_bronze__snapshot_proposals_CREATED_AT"], "alias": "snapshot_proposals_CREATED_AT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.6189237, "relation_name": "EXTERNAL.not_null_bronze.snapshot_proposals_CREATED_AT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__snapshot_proposals", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__snapshot_proposals"]}, "compiled_path": "target/compiled/external_models/models/snapshot/bronze/bronze__snapshot_proposals.yml/not_null_bronze__snapshot_proposals_CREATED_AT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.snapshot_proposals\nwhere CREATED_AT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CREATED_AT", "file_key_name": "models.bronze__snapshot_proposals", "attached_node": "model.external_models.bronze__snapshot_proposals"}, "test.external_models.not_null_bronze__snapshot_proposals_PROPOSAL_START_TIME.e3ff173f25": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROPOSAL_START_TIME", "model": "{{ get_where_subquery(ref('bronze__snapshot_proposals')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__snapshot_proposals_PROPOSAL_START_TIME", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__snapshot_proposals_PROPOSAL_START_TIME.sql", "original_file_path": "models/snapshot/bronze/bronze__snapshot_proposals.yml", "unique_id": "test.external_models.not_null_bronze__snapshot_proposals_PROPOSAL_START_TIME.e3ff173f25", "fqn": ["external_models", "snapshot", "bronze", "not_null_bronze__snapshot_proposals_PROPOSAL_START_TIME"], "alias": "snapshot_proposals_PROPOSAL_START_TIME", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.620714, "relation_name": "EXTERNAL.not_null_bronze.snapshot_proposals_PROPOSAL_START_TIME", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__snapshot_proposals", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__snapshot_proposals"]}, "compiled_path": "target/compiled/external_models/models/snapshot/bronze/bronze__snapshot_proposals.yml/not_null_bronze__snapshot_proposals_PROPOSAL_START_TIME.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.snapshot_proposals\nwhere PROPOSAL_START_TIME is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROPOSAL_START_TIME", "file_key_name": "models.bronze__snapshot_proposals", "attached_node": "model.external_models.bronze__snapshot_proposals"}, "test.external_models.not_null_bronze__snapshot_proposals_PROPOSAL_END_TIME.4cc9d3d569": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROPOSAL_END_TIME", "model": "{{ get_where_subquery(ref('bronze__snapshot_proposals')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__snapshot_proposals_PROPOSAL_END_TIME", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__snapshot_proposals_PROPOSAL_END_TIME.sql", "original_file_path": "models/snapshot/bronze/bronze__snapshot_proposals.yml", "unique_id": "test.external_models.not_null_bronze__snapshot_proposals_PROPOSAL_END_TIME.4cc9d3d569", "fqn": ["external_models", "snapshot", "bronze", "not_null_bronze__snapshot_proposals_PROPOSAL_END_TIME"], "alias": "snapshot_proposals_PROPOSAL_END_TIME", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.6224833, "relation_name": "EXTERNAL.not_null_bronze.snapshot_proposals_PROPOSAL_END_TIME", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__snapshot_proposals", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__snapshot_proposals"]}, "compiled_path": "target/compiled/external_models/models/snapshot/bronze/bronze__snapshot_proposals.yml/not_null_bronze__snapshot_proposals_PROPOSAL_END_TIME.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.snapshot_proposals\nwhere PROPOSAL_END_TIME is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROPOSAL_END_TIME", "file_key_name": "models.bronze__snapshot_proposals", "attached_node": "model.external_models.bronze__snapshot_proposals"}, "test.external_models.not_null_bronze__snapshot_proposals__INSERTED_TIMESTAMP.aa2872ddc3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze__snapshot_proposals')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__snapshot_proposals__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__snapshot_proposals__INSERTED_TIMESTAMP.sql", "original_file_path": "models/snapshot/bronze/bronze__snapshot_proposals.yml", "unique_id": "test.external_models.not_null_bronze__snapshot_proposals__INSERTED_TIMESTAMP.aa2872ddc3", "fqn": ["external_models", "snapshot", "bronze", "not_null_bronze__snapshot_proposals__INSERTED_TIMESTAMP"], "alias": "snapshot_proposals", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.624275, "relation_name": "EXTERNAL.not_null_bronze.snapshot_proposals", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__snapshot_proposals", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__snapshot_proposals"]}, "compiled_path": "target/compiled/external_models/models/snapshot/bronze/bronze__snapshot_proposals.yml/not_null_bronze__snapshot_proposals__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.snapshot_proposals\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze__snapshot_proposals", "attached_node": "model.external_models.bronze__snapshot_proposals"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_proposals__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.fbe74d6bb1": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze__snapshot_proposals')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_proposals__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_11470abdd0bd6a403d784d1064dc2d41.sql", "original_file_path": "models/snapshot/bronze/bronze__snapshot_proposals.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_proposals__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.fbe74d6bb1", "fqn": ["external_models", "snapshot", "bronze", "dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_proposals__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "snapshot_proposals", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_11470abdd0bd6a403d784d1064dc2d41", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_11470abdd0bd6a403d784d1064dc2d41"}, "created_at": 1760113501.626093, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_bronze.snapshot_proposals", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_11470abdd0bd6a403d784d1064dc2d41\") }}", "language": "sql", "refs": [{"name": "bronze__snapshot_proposals", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__snapshot_proposals"]}, "compiled_path": "target/compiled/external_models/models/snapshot/bronze/bronze__snapshot_proposals.yml/dbt_expectations_expect_column_11470abdd0bd6a403d784d1064dc2d41.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('PROPOSAL_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IPFS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHOICES' as TEXT) as relation_column,\n cast('ARRAY' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSAL_AUTHOR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSAL_TITLE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSAL_TEXT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DELAY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('QUORUM' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTING_PERIOD' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOTING_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SPACE_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATED_AT' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSAL_START_TIME' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROPOSAL_END_TIME' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze__snapshot_proposals", "attached_node": "model.external_models.bronze__snapshot_proposals"}, "test.external_models.dbt_utils_unique_combination_of_columns_bronze__snapshot_proposals_PROPOSAL_ID.4df591b4ac": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["PROPOSAL_ID"], "model": "{{ get_where_subquery(ref('bronze__snapshot_proposals')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_bronze", "name": "dbt_utils_unique_combination_of_columns_bronze__snapshot_proposals_PROPOSAL_ID", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_ced32184f829a71b324ed5a94cb7aa08.sql", "original_file_path": "models/snapshot/bronze/bronze__snapshot_proposals.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bronze__snapshot_proposals_PROPOSAL_ID.4df591b4ac", "fqn": ["external_models", "snapshot", "bronze", "dbt_utils_unique_combination_of_columns_bronze__snapshot_proposals_PROPOSAL_ID"], "alias": "snapshot_proposals_PROPOSAL_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ced32184f829a71b324ed5a94cb7aa08", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_ced32184f829a71b324ed5a94cb7aa08"}, "created_at": 1760113501.6306744, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_bronze.snapshot_proposals_PROPOSAL_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ced32184f829a71b324ed5a94cb7aa08\") }}", "language": "sql", "refs": [{"name": "bronze__snapshot_proposals", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__snapshot_proposals"]}, "compiled_path": "target/compiled/external_models/models/snapshot/bronze/bronze__snapshot_proposals.yml/dbt_utils_unique_combination_o_ced32184f829a71b324ed5a94cb7aa08.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n PROPOSAL_ID\n from EXTERNAL.bronze.snapshot_proposals\n group by PROPOSAL_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.bronze__snapshot_proposals", "attached_node": "model.external_models.bronze__snapshot_proposals"}, "test.external_models.not_null_bronze__snapshot_spaces_SPACE_ID.a2937f04fc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SPACE_ID", "model": "{{ get_where_subquery(ref('bronze__snapshot_spaces')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__snapshot_spaces_SPACE_ID", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__snapshot_spaces_SPACE_ID.sql", "original_file_path": "models/snapshot/bronze/bronze__snapshot_spaces.yml", "unique_id": "test.external_models.not_null_bronze__snapshot_spaces_SPACE_ID.a2937f04fc", "fqn": ["external_models", "snapshot", "bronze", "not_null_bronze__snapshot_spaces_SPACE_ID"], "alias": "snapshot_spaces_SPACE_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.6362565, "relation_name": "EXTERNAL.not_null_bronze.snapshot_spaces_SPACE_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__snapshot_spaces", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__snapshot_spaces"]}, "compiled_path": "target/compiled/external_models/models/snapshot/bronze/bronze__snapshot_spaces.yml/not_null_bronze__snapshot_spaces_SPACE_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.snapshot_spaces\nwhere SPACE_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SPACE_ID", "file_key_name": "models.bronze__snapshot_spaces", "attached_node": "model.external_models.bronze__snapshot_spaces"}, "test.external_models.not_null_bronze__snapshot_spaces_SPACE.30110840bc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SPACE", "model": "{{ get_where_subquery(ref('bronze__snapshot_spaces')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__snapshot_spaces_SPACE", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__snapshot_spaces_SPACE.sql", "original_file_path": "models/snapshot/bronze/bronze__snapshot_spaces.yml", "unique_id": "test.external_models.not_null_bronze__snapshot_spaces_SPACE.30110840bc", "fqn": ["external_models", "snapshot", "bronze", "not_null_bronze__snapshot_spaces_SPACE"], "alias": "snapshot_spaces_SPACE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.638091, "relation_name": "EXTERNAL.not_null_bronze.snapshot_spaces_SPACE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__snapshot_spaces", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__snapshot_spaces"]}, "compiled_path": "target/compiled/external_models/models/snapshot/bronze/bronze__snapshot_spaces.yml/not_null_bronze__snapshot_spaces_SPACE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.snapshot_spaces\nwhere SPACE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SPACE", "file_key_name": "models.bronze__snapshot_spaces", "attached_node": "model.external_models.bronze__snapshot_spaces"}, "test.external_models.not_null_bronze__snapshot_spaces__INSERTED_TIMESTAMP.b2a2ca6dee": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze__snapshot_spaces')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__snapshot_spaces__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__snapshot_spaces__INSERTED_TIMESTAMP.sql", "original_file_path": "models/snapshot/bronze/bronze__snapshot_spaces.yml", "unique_id": "test.external_models.not_null_bronze__snapshot_spaces__INSERTED_TIMESTAMP.b2a2ca6dee", "fqn": ["external_models", "snapshot", "bronze", "not_null_bronze__snapshot_spaces__INSERTED_TIMESTAMP"], "alias": "snapshot_spaces", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.639919, "relation_name": "EXTERNAL.not_null_bronze.snapshot_spaces", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__snapshot_spaces", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__snapshot_spaces"]}, "compiled_path": "target/compiled/external_models/models/snapshot/bronze/bronze__snapshot_spaces.yml/not_null_bronze__snapshot_spaces__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.snapshot_spaces\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze__snapshot_spaces", "attached_node": "model.external_models.bronze__snapshot_spaces"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_spaces__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.4a33bbc621": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze__snapshot_spaces')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_spaces__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_b0e7f76ae59a5c7c425b9ae6fe87278b.sql", "original_file_path": "models/snapshot/bronze/bronze__snapshot_spaces.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_spaces__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.4a33bbc621", "fqn": ["external_models", "snapshot", "bronze", "dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_spaces__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "snapshot_spaces", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b0e7f76ae59a5c7c425b9ae6fe87278b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_b0e7f76ae59a5c7c425b9ae6fe87278b"}, "created_at": 1760113501.6417294, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_bronze.snapshot_spaces", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b0e7f76ae59a5c7c425b9ae6fe87278b\") }}", "language": "sql", "refs": [{"name": "bronze__snapshot_spaces", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__snapshot_spaces"]}, "compiled_path": "target/compiled/external_models/models/snapshot/bronze/bronze__snapshot_spaces.yml/dbt_expectations_expect_column_b0e7f76ae59a5c7c425b9ae6fe87278b.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('SPACE_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SPACE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ABOUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORIES' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DOMAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_PRIVATE' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('IS_VERIFIED' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('ADMINS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('MEMBERS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TREASURIES' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze__snapshot_spaces", "attached_node": "model.external_models.bronze__snapshot_spaces"}, "test.external_models.dbt_utils_unique_combination_of_columns_bronze__snapshot_spaces_SPACE_ID.dcac8f89f2": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["SPACE_ID"], "model": "{{ get_where_subquery(ref('bronze__snapshot_spaces')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_bronze", "name": "dbt_utils_unique_combination_of_columns_bronze__snapshot_spaces_SPACE_ID", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_ffba4504e2d408a5e1e57e97993bd8f5.sql", "original_file_path": "models/snapshot/bronze/bronze__snapshot_spaces.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bronze__snapshot_spaces_SPACE_ID.dcac8f89f2", "fqn": ["external_models", "snapshot", "bronze", "dbt_utils_unique_combination_of_columns_bronze__snapshot_spaces_SPACE_ID"], "alias": "snapshot_spaces_SPACE_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ffba4504e2d408a5e1e57e97993bd8f5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_ffba4504e2d408a5e1e57e97993bd8f5"}, "created_at": 1760113501.6462657, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_bronze.snapshot_spaces_SPACE_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ffba4504e2d408a5e1e57e97993bd8f5\") }}", "language": "sql", "refs": [{"name": "bronze__snapshot_spaces", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__snapshot_spaces"]}, "compiled_path": "target/compiled/external_models/models/snapshot/bronze/bronze__snapshot_spaces.yml/dbt_utils_unique_combination_o_ffba4504e2d408a5e1e57e97993bd8f5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n SPACE_ID\n from EXTERNAL.bronze.snapshot_spaces\n group by SPACE_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.bronze__snapshot_spaces", "attached_node": "model.external_models.bronze__snapshot_spaces"}, "test.external_models.not_null_bronze__snapshot_users_ADDRESS.ca42f3f763": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ADDRESS", "model": "{{ get_where_subquery(ref('bronze__snapshot_users')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__snapshot_users_ADDRESS", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__snapshot_users_ADDRESS.sql", "original_file_path": "models/snapshot/bronze/bronze__snapshot_users.yml", "unique_id": "test.external_models.not_null_bronze__snapshot_users_ADDRESS.ca42f3f763", "fqn": ["external_models", "snapshot", "bronze", "not_null_bronze__snapshot_users_ADDRESS"], "alias": "snapshot_users_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.651833, "relation_name": "EXTERNAL.not_null_bronze.snapshot_users_ADDRESS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__snapshot_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__snapshot_users"]}, "compiled_path": "target/compiled/external_models/models/snapshot/bronze/bronze__snapshot_users.yml/not_null_bronze__snapshot_users_ADDRESS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.snapshot_users\nwhere ADDRESS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ADDRESS", "file_key_name": "models.bronze__snapshot_users", "attached_node": "model.external_models.bronze__snapshot_users"}, "test.external_models.not_null_bronze__snapshot_users_CREATED_AT.2912f9578e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CREATED_AT", "model": "{{ get_where_subquery(ref('bronze__snapshot_users')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__snapshot_users_CREATED_AT", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__snapshot_users_CREATED_AT.sql", "original_file_path": "models/snapshot/bronze/bronze__snapshot_users.yml", "unique_id": "test.external_models.not_null_bronze__snapshot_users_CREATED_AT.2912f9578e", "fqn": ["external_models", "snapshot", "bronze", "not_null_bronze__snapshot_users_CREATED_AT"], "alias": "snapshot_users_CREATED_AT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.6537023, "relation_name": "EXTERNAL.not_null_bronze.snapshot_users_CREATED_AT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__snapshot_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__snapshot_users"]}, "compiled_path": "target/compiled/external_models/models/snapshot/bronze/bronze__snapshot_users.yml/not_null_bronze__snapshot_users_CREATED_AT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.snapshot_users\nwhere CREATED_AT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CREATED_AT", "file_key_name": "models.bronze__snapshot_users", "attached_node": "model.external_models.bronze__snapshot_users"}, "test.external_models.not_null_bronze__snapshot_users__INSERTED_TIMESTAMP.6fb9280682": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze__snapshot_users')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__snapshot_users__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__snapshot_users__INSERTED_TIMESTAMP.sql", "original_file_path": "models/snapshot/bronze/bronze__snapshot_users.yml", "unique_id": "test.external_models.not_null_bronze__snapshot_users__INSERTED_TIMESTAMP.6fb9280682", "fqn": ["external_models", "snapshot", "bronze", "not_null_bronze__snapshot_users__INSERTED_TIMESTAMP"], "alias": "snapshot_users", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.6554923, "relation_name": "EXTERNAL.not_null_bronze.snapshot_users", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__snapshot_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__snapshot_users"]}, "compiled_path": "target/compiled/external_models/models/snapshot/bronze/bronze__snapshot_users.yml/not_null_bronze__snapshot_users__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.snapshot_users\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze__snapshot_users", "attached_node": "model.external_models.bronze__snapshot_users"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_users__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.61c6d4b19e": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_LTZ", "TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze__snapshot_users')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_users__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_a8d04c726d90e9cbcf82fd2c9eaee0d0.sql", "original_file_path": "models/snapshot/bronze/bronze__snapshot_users.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_users__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.61c6d4b19e", "fqn": ["external_models", "snapshot", "bronze", "dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_users__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ"], "alias": "snapshot_users", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_a8d04c726d90e9cbcf82fd2c9eaee0d0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_a8d04c726d90e9cbcf82fd2c9eaee0d0"}, "created_at": 1760113501.657292, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_bronze.snapshot_users", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_a8d04c726d90e9cbcf82fd2c9eaee0d0\") }}", "language": "sql", "refs": [{"name": "bronze__snapshot_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__snapshot_users"]}, "compiled_path": "target/compiled/external_models/models/snapshot/bronze/bronze__snapshot_users.yml/dbt_expectations_expect_column_a8d04c726d90e9cbcf82fd2c9eaee0d0.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ABOUT' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('AVATAR' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IPFS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CREATED_AT' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_LTZ', 'TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze__snapshot_users", "attached_node": "model.external_models.bronze__snapshot_users"}, "test.external_models.dbt_utils_unique_combination_of_columns_bronze__snapshot_users_ADDRESS.9c829aad58": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ADDRESS"], "model": "{{ get_where_subquery(ref('bronze__snapshot_users')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_bronze", "name": "dbt_utils_unique_combination_of_columns_bronze__snapshot_users_ADDRESS", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_db45051f7dec7aaa8da0c80f496d7e81.sql", "original_file_path": "models/snapshot/bronze/bronze__snapshot_users.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bronze__snapshot_users_ADDRESS.9c829aad58", "fqn": ["external_models", "snapshot", "bronze", "dbt_utils_unique_combination_of_columns_bronze__snapshot_users_ADDRESS"], "alias": "snapshot_users_ADDRESS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_db45051f7dec7aaa8da0c80f496d7e81", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_db45051f7dec7aaa8da0c80f496d7e81"}, "created_at": 1760113501.6617992, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_bronze.snapshot_users_ADDRESS", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_db45051f7dec7aaa8da0c80f496d7e81\") }}", "language": "sql", "refs": [{"name": "bronze__snapshot_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__snapshot_users"]}, "compiled_path": "target/compiled/external_models/models/snapshot/bronze/bronze__snapshot_users.yml/dbt_utils_unique_combination_o_db45051f7dec7aaa8da0c80f496d7e81.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ADDRESS\n from EXTERNAL.bronze.snapshot_users\n group by ADDRESS\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.bronze__snapshot_users", "attached_node": "model.external_models.bronze__snapshot_users"}, "test.external_models.not_null_oklink__tam_BLOCKCHAIN.9dd7cae40c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCKCHAIN", "model": "{{ get_where_subquery(ref('oklink__tam')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_oklink", "name": "not_null_oklink__tam_BLOCKCHAIN", "resource_type": "test", "package_name": "external_models", "path": "not_null_oklink__tam_BLOCKCHAIN.sql", "original_file_path": "models/oklink/gold/oklink__tam.yml", "unique_id": "test.external_models.not_null_oklink__tam_BLOCKCHAIN.9dd7cae40c", "fqn": ["external_models", "oklink", "gold", "not_null_oklink__tam_BLOCKCHAIN"], "alias": "tam_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.6694806, "relation_name": "EXTERNAL.not_null_oklink.tam_BLOCKCHAIN", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "oklink__tam", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCKCHAIN", "file_key_name": "models.oklink__tam", "attached_node": "model.external_models.oklink__tam"}, "test.external_models.not_null_oklink__tam_AS_OF_DATE.f23bba1c8a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AS_OF_DATE", "model": "{{ get_where_subquery(ref('oklink__tam')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_oklink", "name": "not_null_oklink__tam_AS_OF_DATE", "resource_type": "test", "package_name": "external_models", "path": "not_null_oklink__tam_AS_OF_DATE.sql", "original_file_path": "models/oklink/gold/oklink__tam.yml", "unique_id": "test.external_models.not_null_oklink__tam_AS_OF_DATE.f23bba1c8a", "fqn": ["external_models", "oklink", "gold", "not_null_oklink__tam_AS_OF_DATE"], "alias": "tam_AS_OF_DATE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.6713111, "relation_name": "EXTERNAL.not_null_oklink.tam_AS_OF_DATE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "oklink__tam", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AS_OF_DATE", "file_key_name": "models.oklink__tam", "attached_node": "model.external_models.oklink__tam"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_oklink__tam_AS_OF_DATE__day__2.b259a4cc0c": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 2, "column_name": "AS_OF_DATE", "model": "{{ get_where_subquery(ref('oklink__tam')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_oklink", "name": "dbt_expectations_expect_row_values_to_have_recent_data_oklink__tam_AS_OF_DATE__day__2", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_row_va_134e430cec11e1c56ddfeaea4396d8e7.sql", "original_file_path": "models/oklink/gold/oklink__tam.yml", "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_oklink__tam_AS_OF_DATE__day__2.b259a4cc0c", "fqn": ["external_models", "oklink", "gold", "dbt_expectations_expect_row_values_to_have_recent_data_oklink__tam_AS_OF_DATE__day__2"], "alias": "tam_AS_OF_DATE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_row_va_134e430cec11e1c56ddfeaea4396d8e7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_134e430cec11e1c56ddfeaea4396d8e7"}, "created_at": 1760113501.6731198, "relation_name": "EXTERNAL.dbt_expectations_expect_row_values_to_have_recent_data_oklink.tam_AS_OF_DATE", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_134e430cec11e1c56ddfeaea4396d8e7\") }}", "language": "sql", "refs": [{"name": "oklink__tam", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AS_OF_DATE", "file_key_name": "models.oklink__tam", "attached_node": "model.external_models.oklink__tam"}, "test.external_models.not_null_oklink__tam_TOTAL_ADDRESSES.0794bb787c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TOTAL_ADDRESSES", "model": "{{ get_where_subquery(ref('oklink__tam')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_oklink", "name": "not_null_oklink__tam_TOTAL_ADDRESSES", "resource_type": "test", "package_name": "external_models", "path": "not_null_oklink__tam_TOTAL_ADDRESSES.sql", "original_file_path": "models/oklink/gold/oklink__tam.yml", "unique_id": "test.external_models.not_null_oklink__tam_TOTAL_ADDRESSES.0794bb787c", "fqn": ["external_models", "oklink", "gold", "not_null_oklink__tam_TOTAL_ADDRESSES"], "alias": "tam_TOTAL_ADDRESSES", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.6789937, "relation_name": "EXTERNAL.not_null_oklink.tam_TOTAL_ADDRESSES", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "oklink__tam", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TOTAL_ADDRESSES", "file_key_name": "models.oklink__tam", "attached_node": "model.external_models.oklink__tam"}, "test.external_models.unique_oklink__tam_TAM_ID.5d0ddefb2f": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "TAM_ID", "model": "{{ get_where_subquery(ref('oklink__tam')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "unique_oklink", "name": "unique_oklink__tam_TAM_ID", "resource_type": "test", "package_name": "external_models", "path": "unique_oklink__tam_TAM_ID.sql", "original_file_path": "models/oklink/gold/oklink__tam.yml", "unique_id": "test.external_models.unique_oklink__tam_TAM_ID.5d0ddefb2f", "fqn": ["external_models", "oklink", "gold", "unique_oklink__tam_TAM_ID"], "alias": "tam_TAM_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.680779, "relation_name": "EXTERNAL.unique_oklink.tam_TAM_ID", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "oklink__tam", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TAM_ID", "file_key_name": "models.oklink__tam", "attached_node": "model.external_models.oklink__tam"}, "test.external_models.not_null_oklink__tx_count_BLOCKCHAIN.19d8c11da9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCKCHAIN", "model": "{{ get_where_subquery(ref('oklink__tx_count')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_oklink", "name": "not_null_oklink__tx_count_BLOCKCHAIN", "resource_type": "test", "package_name": "external_models", "path": "not_null_oklink__tx_count_BLOCKCHAIN.sql", "original_file_path": "models/oklink/gold/oklink__tx_count.yml", "unique_id": "test.external_models.not_null_oklink__tx_count_BLOCKCHAIN.19d8c11da9", "fqn": ["external_models", "oklink", "gold", "not_null_oklink__tx_count_BLOCKCHAIN"], "alias": "tx_count_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.6846485, "relation_name": "EXTERNAL.not_null_oklink.tx_count_BLOCKCHAIN", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "oklink__tx_count", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCKCHAIN", "file_key_name": "models.oklink__tx_count", "attached_node": "model.external_models.oklink__tx_count"}, "test.external_models.not_null_oklink__tx_count_BLOCK_DATE.ab2e1232d8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_DATE", "model": "{{ get_where_subquery(ref('oklink__tx_count')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_oklink", "name": "not_null_oklink__tx_count_BLOCK_DATE", "resource_type": "test", "package_name": "external_models", "path": "not_null_oklink__tx_count_BLOCK_DATE.sql", "original_file_path": "models/oklink/gold/oklink__tx_count.yml", "unique_id": "test.external_models.not_null_oklink__tx_count_BLOCK_DATE.ab2e1232d8", "fqn": ["external_models", "oklink", "gold", "not_null_oklink__tx_count_BLOCK_DATE"], "alias": "tx_count_BLOCK_DATE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.6864803, "relation_name": "EXTERNAL.not_null_oklink.tx_count_BLOCK_DATE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "oklink__tx_count", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_DATE", "file_key_name": "models.oklink__tx_count", "attached_node": "model.external_models.oklink__tx_count"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_oklink__tx_count_BLOCK_DATE__day__2.e0da2858e8": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 2, "column_name": "BLOCK_DATE", "model": "{{ get_where_subquery(ref('oklink__tx_count')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_oklink", "name": "dbt_expectations_expect_row_values_to_have_recent_data_oklink__tx_count_BLOCK_DATE__day__2", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_row_va_c254de1daaa7a479b56caf2e74761498.sql", "original_file_path": "models/oklink/gold/oklink__tx_count.yml", "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_oklink__tx_count_BLOCK_DATE__day__2.e0da2858e8", "fqn": ["external_models", "oklink", "gold", "dbt_expectations_expect_row_values_to_have_recent_data_oklink__tx_count_BLOCK_DATE__day__2"], "alias": "tx_count_BLOCK_DATE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_row_va_c254de1daaa7a479b56caf2e74761498", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_c254de1daaa7a479b56caf2e74761498"}, "created_at": 1760113501.688327, "relation_name": "EXTERNAL.dbt_expectations_expect_row_values_to_have_recent_data_oklink.tx_count_BLOCK_DATE", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_c254de1daaa7a479b56caf2e74761498\") }}", "language": "sql", "refs": [{"name": "oklink__tx_count", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_DATE", "file_key_name": "models.oklink__tx_count", "attached_node": "model.external_models.oklink__tx_count"}, "test.external_models.not_null_oklink__tx_count_TX_COUNT.24ad5901d0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_COUNT", "model": "{{ get_where_subquery(ref('oklink__tx_count')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_oklink", "name": "not_null_oklink__tx_count_TX_COUNT", "resource_type": "test", "package_name": "external_models", "path": "not_null_oklink__tx_count_TX_COUNT.sql", "original_file_path": "models/oklink/gold/oklink__tx_count.yml", "unique_id": "test.external_models.not_null_oklink__tx_count_TX_COUNT.24ad5901d0", "fqn": ["external_models", "oklink", "gold", "not_null_oklink__tx_count_TX_COUNT"], "alias": "tx_count_TX_COUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.694219, "relation_name": "EXTERNAL.not_null_oklink.tx_count_TX_COUNT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "oklink__tx_count", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_COUNT", "file_key_name": "models.oklink__tx_count", "attached_node": "model.external_models.oklink__tx_count"}, "test.external_models.unique_oklink__tx_count_TX_COUNT_ID.e3c27d411d": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "TX_COUNT_ID", "model": "{{ get_where_subquery(ref('oklink__tx_count')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "unique_oklink", "name": "unique_oklink__tx_count_TX_COUNT_ID", "resource_type": "test", "package_name": "external_models", "path": "unique_oklink__tx_count_TX_COUNT_ID.sql", "original_file_path": "models/oklink/gold/oklink__tx_count.yml", "unique_id": "test.external_models.unique_oklink__tx_count_TX_COUNT_ID.e3c27d411d", "fqn": ["external_models", "oklink", "gold", "unique_oklink__tx_count_TX_COUNT_ID"], "alias": "tx_count_TX_COUNT_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.6962261, "relation_name": "EXTERNAL.unique_oklink.tx_count_TX_COUNT_ID", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "oklink__tx_count", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_COUNT_ID", "file_key_name": "models.oklink__tx_count", "attached_node": "model.external_models.oklink__tx_count"}, "test.external_models.not_null_oklink__contracts_BLOCKCHAIN.7ac207cc5f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCKCHAIN", "model": "{{ get_where_subquery(ref('oklink__contracts')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_oklink", "name": "not_null_oklink__contracts_BLOCKCHAIN", "resource_type": "test", "package_name": "external_models", "path": "not_null_oklink__contracts_BLOCKCHAIN.sql", "original_file_path": "models/oklink/gold/oklink__contracts.yml", "unique_id": "test.external_models.not_null_oklink__contracts_BLOCKCHAIN.7ac207cc5f", "fqn": ["external_models", "oklink", "gold", "not_null_oklink__contracts_BLOCKCHAIN"], "alias": "contracts_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.6999366, "relation_name": "EXTERNAL.not_null_oklink.contracts_BLOCKCHAIN", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "oklink__contracts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCKCHAIN", "file_key_name": "models.oklink__contracts", "attached_node": "model.external_models.oklink__contracts"}, "test.external_models.not_null_oklink__contracts_AS_OF_DATE.cd51b05b30": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AS_OF_DATE", "model": "{{ get_where_subquery(ref('oklink__contracts')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_oklink", "name": "not_null_oklink__contracts_AS_OF_DATE", "resource_type": "test", "package_name": "external_models", "path": "not_null_oklink__contracts_AS_OF_DATE.sql", "original_file_path": "models/oklink/gold/oklink__contracts.yml", "unique_id": "test.external_models.not_null_oklink__contracts_AS_OF_DATE.cd51b05b30", "fqn": ["external_models", "oklink", "gold", "not_null_oklink__contracts_AS_OF_DATE"], "alias": "contracts_AS_OF_DATE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.7018209, "relation_name": "EXTERNAL.not_null_oklink.contracts_AS_OF_DATE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "oklink__contracts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AS_OF_DATE", "file_key_name": "models.oklink__contracts", "attached_node": "model.external_models.oklink__contracts"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_oklink__contracts_AS_OF_DATE__day__2.18e13a0259": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 2, "column_name": "AS_OF_DATE", "model": "{{ get_where_subquery(ref('oklink__contracts')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_oklink", "name": "dbt_expectations_expect_row_values_to_have_recent_data_oklink__contracts_AS_OF_DATE__day__2", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_row_va_8054de26e14c6023dd5b7266e8b10765.sql", "original_file_path": "models/oklink/gold/oklink__contracts.yml", "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_oklink__contracts_AS_OF_DATE__day__2.18e13a0259", "fqn": ["external_models", "oklink", "gold", "dbt_expectations_expect_row_values_to_have_recent_data_oklink__contracts_AS_OF_DATE__day__2"], "alias": "contracts_AS_OF_DATE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_row_va_8054de26e14c6023dd5b7266e8b10765", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_8054de26e14c6023dd5b7266e8b10765"}, "created_at": 1760113501.7036896, "relation_name": "EXTERNAL.dbt_expectations_expect_row_values_to_have_recent_data_oklink.contracts_AS_OF_DATE", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_8054de26e14c6023dd5b7266e8b10765\") }}", "language": "sql", "refs": [{"name": "oklink__contracts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AS_OF_DATE", "file_key_name": "models.oklink__contracts", "attached_node": "model.external_models.oklink__contracts"}, "test.external_models.not_null_oklink__contracts_CONTRACT_COUNT.addc0fff5d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CONTRACT_COUNT", "model": "{{ get_where_subquery(ref('oklink__contracts')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_oklink", "name": "not_null_oklink__contracts_CONTRACT_COUNT", "resource_type": "test", "package_name": "external_models", "path": "not_null_oklink__contracts_CONTRACT_COUNT.sql", "original_file_path": "models/oklink/gold/oklink__contracts.yml", "unique_id": "test.external_models.not_null_oklink__contracts_CONTRACT_COUNT.addc0fff5d", "fqn": ["external_models", "oklink", "gold", "not_null_oklink__contracts_CONTRACT_COUNT"], "alias": "contracts_CONTRACT_COUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.710022, "relation_name": "EXTERNAL.not_null_oklink.contracts_CONTRACT_COUNT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "oklink__contracts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACT_COUNT", "file_key_name": "models.oklink__contracts", "attached_node": "model.external_models.oklink__contracts"}, "test.external_models.unique_oklink__contracts_CONTRACTS_ID.068241a2ef": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "CONTRACTS_ID", "model": "{{ get_where_subquery(ref('oklink__contracts')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "unique_oklink", "name": "unique_oklink__contracts_CONTRACTS_ID", "resource_type": "test", "package_name": "external_models", "path": "unique_oklink__contracts_CONTRACTS_ID.sql", "original_file_path": "models/oklink/gold/oklink__contracts.yml", "unique_id": "test.external_models.unique_oklink__contracts_CONTRACTS_ID.068241a2ef", "fqn": ["external_models", "oklink", "gold", "unique_oklink__contracts_CONTRACTS_ID"], "alias": "contracts_CONTRACTS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.7118332, "relation_name": "EXTERNAL.unique_oklink.contracts_CONTRACTS_ID", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "oklink__contracts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CONTRACTS_ID", "file_key_name": "models.oklink__contracts", "attached_node": "model.external_models.oklink__contracts"}, "test.external_models.not_null_oklink__active_users_BLOCKCHAIN.7d537a456c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCKCHAIN", "model": "{{ get_where_subquery(ref('oklink__active_users')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_oklink", "name": "not_null_oklink__active_users_BLOCKCHAIN", "resource_type": "test", "package_name": "external_models", "path": "not_null_oklink__active_users_BLOCKCHAIN.sql", "original_file_path": "models/oklink/gold/oklink__active_users.yml", "unique_id": "test.external_models.not_null_oklink__active_users_BLOCKCHAIN.7d537a456c", "fqn": ["external_models", "oklink", "gold", "not_null_oklink__active_users_BLOCKCHAIN"], "alias": "active_users_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.7156782, "relation_name": "EXTERNAL.not_null_oklink.active_users_BLOCKCHAIN", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "oklink__active_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCKCHAIN", "file_key_name": "models.oklink__active_users", "attached_node": "model.external_models.oklink__active_users"}, "test.external_models.not_null_oklink__active_users_AS_OF_DATE.8148b5f03c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AS_OF_DATE", "model": "{{ get_where_subquery(ref('oklink__active_users')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_oklink", "name": "not_null_oklink__active_users_AS_OF_DATE", "resource_type": "test", "package_name": "external_models", "path": "not_null_oklink__active_users_AS_OF_DATE.sql", "original_file_path": "models/oklink/gold/oklink__active_users.yml", "unique_id": "test.external_models.not_null_oklink__active_users_AS_OF_DATE.8148b5f03c", "fqn": ["external_models", "oklink", "gold", "not_null_oklink__active_users_AS_OF_DATE"], "alias": "active_users_AS_OF_DATE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.7175303, "relation_name": "EXTERNAL.not_null_oklink.active_users_AS_OF_DATE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "oklink__active_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AS_OF_DATE", "file_key_name": "models.oklink__active_users", "attached_node": "model.external_models.oklink__active_users"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_oklink__active_users_AS_OF_DATE__day__2.7a6b7c52ae": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 2, "column_name": "AS_OF_DATE", "model": "{{ get_where_subquery(ref('oklink__active_users')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_oklink", "name": "dbt_expectations_expect_row_values_to_have_recent_data_oklink__active_users_AS_OF_DATE__day__2", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_row_va_d112994b00e3927ec4db619f135fb5ae.sql", "original_file_path": "models/oklink/gold/oklink__active_users.yml", "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_oklink__active_users_AS_OF_DATE__day__2.7a6b7c52ae", "fqn": ["external_models", "oklink", "gold", "dbt_expectations_expect_row_values_to_have_recent_data_oklink__active_users_AS_OF_DATE__day__2"], "alias": "active_users_AS_OF_DATE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_expectations_expect_row_va_d112994b00e3927ec4db619f135fb5ae", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_d112994b00e3927ec4db619f135fb5ae"}, "created_at": 1760113501.7193475, "relation_name": "EXTERNAL.dbt_expectations_expect_row_values_to_have_recent_data_oklink.active_users_AS_OF_DATE", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_d112994b00e3927ec4db619f135fb5ae\") }}", "language": "sql", "refs": [{"name": "oklink__active_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AS_OF_DATE", "file_key_name": "models.oklink__active_users", "attached_node": "model.external_models.oklink__active_users"}, "test.external_models.not_null_oklink__active_users_ACTIVE_USERS.3011289ebb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ACTIVE_USERS", "model": "{{ get_where_subquery(ref('oklink__active_users')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_oklink", "name": "not_null_oklink__active_users_ACTIVE_USERS", "resource_type": "test", "package_name": "external_models", "path": "not_null_oklink__active_users_ACTIVE_USERS.sql", "original_file_path": "models/oklink/gold/oklink__active_users.yml", "unique_id": "test.external_models.not_null_oklink__active_users_ACTIVE_USERS.3011289ebb", "fqn": ["external_models", "oklink", "gold", "not_null_oklink__active_users_ACTIVE_USERS"], "alias": "active_users_ACTIVE_USERS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.7253258, "relation_name": "EXTERNAL.not_null_oklink.active_users_ACTIVE_USERS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "oklink__active_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ACTIVE_USERS", "file_key_name": "models.oklink__active_users", "attached_node": "model.external_models.oklink__active_users"}, "test.external_models.unique_oklink__active_users_ACTIVE_USERS_ID.60d02a848d": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "ACTIVE_USERS_ID", "model": "{{ get_where_subquery(ref('oklink__active_users')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "unique_oklink", "name": "unique_oklink__active_users_ACTIVE_USERS_ID", "resource_type": "test", "package_name": "external_models", "path": "unique_oklink__active_users_ACTIVE_USERS_ID.sql", "original_file_path": "models/oklink/gold/oklink__active_users.yml", "unique_id": "test.external_models.unique_oklink__active_users_ACTIVE_USERS_ID.60d02a848d", "fqn": ["external_models", "oklink", "gold", "unique_oklink__active_users_ACTIVE_USERS_ID"], "alias": "active_users_ACTIVE_USERS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.7271163, "relation_name": "EXTERNAL.unique_oklink.active_users_ACTIVE_USERS_ID", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "oklink__active_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ACTIVE_USERS_ID", "file_key_name": "models.oklink__active_users", "attached_node": "model.external_models.oklink__active_users"}, "test.external_models.not_null_silver__defillama_raises_RAISE_ID.a6c9cfda9b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "RAISE_ID", "model": "{{ get_where_subquery(ref('silver__defillama_raises')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_raises_RAISE_ID", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_raises_RAISE_ID.sql", "original_file_path": "models/defillama/silver/silver__defillama_raises.yml", "unique_id": "test.external_models.not_null_silver__defillama_raises_RAISE_ID.a6c9cfda9b", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_raises_RAISE_ID"], "alias": "defillama_raises_RAISE_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.7311525, "relation_name": "EXTERNAL.not_null_silver.defillama_raises_RAISE_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_raises", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_raises"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_raises.yml/not_null_silver__defillama_raises_RAISE_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_raises\nwhere RAISE_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "RAISE_ID", "file_key_name": "models.silver__defillama_raises", "attached_node": "model.external_models.silver__defillama_raises"}, "test.external_models.not_null_silver__defillama_raises_PROJECT_NAME.e6a6854bbb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROJECT_NAME", "model": "{{ get_where_subquery(ref('silver__defillama_raises')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_raises_PROJECT_NAME", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_raises_PROJECT_NAME.sql", "original_file_path": "models/defillama/silver/silver__defillama_raises.yml", "unique_id": "test.external_models.not_null_silver__defillama_raises_PROJECT_NAME.e6a6854bbb", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_raises_PROJECT_NAME"], "alias": "defillama_raises_PROJECT_NAME", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.733005, "relation_name": "EXTERNAL.not_null_silver.defillama_raises_PROJECT_NAME", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_raises", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_raises"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_raises.yml/not_null_silver__defillama_raises_PROJECT_NAME.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_raises\nwhere PROJECT_NAME is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROJECT_NAME", "file_key_name": "models.silver__defillama_raises", "attached_node": "model.external_models.silver__defillama_raises"}, "test.external_models.not_null_silver__defillama_raises_FUNDING_DATE.055464c7e9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "FUNDING_DATE", "model": "{{ get_where_subquery(ref('silver__defillama_raises')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_raises_FUNDING_DATE", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_raises_FUNDING_DATE.sql", "original_file_path": "models/defillama/silver/silver__defillama_raises.yml", "unique_id": "test.external_models.not_null_silver__defillama_raises_FUNDING_DATE.055464c7e9", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_raises_FUNDING_DATE"], "alias": "defillama_raises_FUNDING_DATE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.7348995, "relation_name": "EXTERNAL.not_null_silver.defillama_raises_FUNDING_DATE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_raises", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_raises"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_raises.yml/not_null_silver__defillama_raises_FUNDING_DATE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_raises\nwhere FUNDING_DATE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FUNDING_DATE", "file_key_name": "models.silver__defillama_raises", "attached_node": "model.external_models.silver__defillama_raises"}, "test.external_models.not_null_silver__defillama_raises__INSERTED_TIMESTAMP.09318375f6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_raises')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_raises__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_raises__INSERTED_TIMESTAMP.sql", "original_file_path": "models/defillama/silver/silver__defillama_raises.yml", "unique_id": "test.external_models.not_null_silver__defillama_raises__INSERTED_TIMESTAMP.09318375f6", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_raises__INSERTED_TIMESTAMP"], "alias": "defillama_raises", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.7367356, "relation_name": "EXTERNAL.not_null_silver.defillama_raises", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_raises", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_raises"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_raises.yml/not_null_silver__defillama_raises__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_raises\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_raises", "attached_node": "model.external_models.silver__defillama_raises"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_raises_RAISE_ID.cbd412cee8": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["RAISE_ID"], "model": "{{ get_where_subquery(ref('silver__defillama_raises')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__defillama_raises_RAISE_ID", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_30952e546a56e92924f06261c82acb92.sql", "original_file_path": "models/defillama/silver/silver__defillama_raises.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_raises_RAISE_ID.cbd412cee8", "fqn": ["external_models", "defillama", "silver", "dbt_utils_unique_combination_of_columns_silver__defillama_raises_RAISE_ID"], "alias": "defillama_raises_RAISE_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_30952e546a56e92924f06261c82acb92", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_30952e546a56e92924f06261c82acb92"}, "created_at": 1760113501.7385302, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_silver.defillama_raises_RAISE_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_30952e546a56e92924f06261c82acb92\") }}", "language": "sql", "refs": [{"name": "silver__defillama_raises", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_raises"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_raises.yml/dbt_utils_unique_combination_o_30952e546a56e92924f06261c82acb92.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n RAISE_ID\n from EXTERNAL.silver.defillama_raises\n group by RAISE_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__defillama_raises", "attached_node": "model.external_models.silver__defillama_raises"}, "test.external_models.not_null_silver__defillama_protocol_fees_CHAIN.d434098292": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CHAIN", "model": "{{ get_where_subquery(ref('silver__defillama_protocol_fees')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_protocol_fees_CHAIN", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_protocol_fees_CHAIN.sql", "original_file_path": "models/defillama/silver/silver__defillama_protocol_fees.yml", "unique_id": "test.external_models.not_null_silver__defillama_protocol_fees_CHAIN.d434098292", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_protocol_fees_CHAIN"], "alias": "defillama_protocol_fees_CHAIN", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.7446108, "relation_name": "EXTERNAL.not_null_silver.defillama_protocol_fees_CHAIN", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_protocol_fees", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_protocol_fees"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_protocol_fees.yml/not_null_silver__defillama_protocol_fees_CHAIN.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_protocol_fees\nwhere CHAIN is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CHAIN", "file_key_name": "models.silver__defillama_protocol_fees", "attached_node": "model.external_models.silver__defillama_protocol_fees"}, "test.external_models.not_null_silver__defillama_protocol_fees__INSERTED_TIMESTAMP.ce25594587": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_protocol_fees')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_protocol_fees__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_protocol_fees__INSERTED_TIMESTAMP.sql", "original_file_path": "models/defillama/silver/silver__defillama_protocol_fees.yml", "unique_id": "test.external_models.not_null_silver__defillama_protocol_fees__INSERTED_TIMESTAMP.ce25594587", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_protocol_fees__INSERTED_TIMESTAMP"], "alias": "defillama_protocol_fees", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.7463987, "relation_name": "EXTERNAL.not_null_silver.defillama_protocol_fees", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_protocol_fees", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_protocol_fees"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_protocol_fees.yml/not_null_silver__defillama_protocol_fees__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_protocol_fees\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_protocol_fees", "attached_node": "model.external_models.silver__defillama_protocol_fees"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocol_fees__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.5acc5c41a2": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_protocol_fees')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocol_fees__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_1da2d59b91cacd6f71311493823511fd.sql", "original_file_path": "models/defillama/silver/silver__defillama_protocol_fees.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocol_fees__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.5acc5c41a2", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocol_fees__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "defillama_protocol_fees", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_1da2d59b91cacd6f71311493823511fd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_1da2d59b91cacd6f71311493823511fd"}, "created_at": 1760113501.7481384, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_silver.defillama_protocol_fees", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_1da2d59b91cacd6f71311493823511fd\") }}", "language": "sql", "refs": [{"name": "silver__defillama_protocol_fees", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_protocol_fees"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_protocol_fees.yml/dbt_expectations_expect_column_1da2d59b91cacd6f71311493823511fd.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('CHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DAILY_FEES' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('FEES_OBJECT' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_protocol_fees", "attached_node": "model.external_models.silver__defillama_protocol_fees"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocol_fees__INSERTED_TIMESTAMP__day__2.0405088cbd": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 2, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_protocol_fees')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocol_fees__INSERTED_TIMESTAMP__day__2", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_row_va_2f713f31c5c85f5450df001af502efb7.sql", "original_file_path": "models/defillama/silver/silver__defillama_protocol_fees.yml", "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocol_fees__INSERTED_TIMESTAMP__day__2.0405088cbd", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocol_fees__INSERTED_TIMESTAMP__day__2"], "alias": "defillama_protocol_fees", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_2f713f31c5c85f5450df001af502efb7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_2f713f31c5c85f5450df001af502efb7"}, "created_at": 1760113501.752726, "relation_name": "EXTERNAL.dbt_expectations_expect_row_values_to_have_recent_data_silver.defillama_protocol_fees", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_2f713f31c5c85f5450df001af502efb7\") }}", "language": "sql", "refs": [{"name": "silver__defillama_protocol_fees", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_protocol_fees"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_protocol_fees.yml/dbt_expectations_expect_row_va_2f713f31c5c85f5450df001af502efb7.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(_INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n EXTERNAL.silver.defillama_protocol_fees\n where\n -- to exclude erroneous future dates\n cast(_INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_protocol_fees", "attached_node": "model.external_models.silver__defillama_protocol_fees"}, "test.external_models.not_null_silver__defillama_protocol_fees_ID.e292c7143d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ID", "model": "{{ get_where_subquery(ref('silver__defillama_protocol_fees')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_protocol_fees_ID", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_protocol_fees_ID.sql", "original_file_path": "models/defillama/silver/silver__defillama_protocol_fees.yml", "unique_id": "test.external_models.not_null_silver__defillama_protocol_fees_ID.e292c7143d", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_protocol_fees_ID"], "alias": "defillama_protocol_fees_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.7585611, "relation_name": "EXTERNAL.not_null_silver.defillama_protocol_fees_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_protocol_fees", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_protocol_fees"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_protocol_fees.yml/not_null_silver__defillama_protocol_fees_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_protocol_fees\nwhere ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ID", "file_key_name": "models.silver__defillama_protocol_fees", "attached_node": "model.external_models.silver__defillama_protocol_fees"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_protocol_fees_ID.03cc375156": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ID"], "model": "{{ get_where_subquery(ref('silver__defillama_protocol_fees')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__defillama_protocol_fees_ID", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_ab1de61005224c3f611824c2476c23b8.sql", "original_file_path": "models/defillama/silver/silver__defillama_protocol_fees.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_protocol_fees_ID.03cc375156", "fqn": ["external_models", "defillama", "silver", "dbt_utils_unique_combination_of_columns_silver__defillama_protocol_fees_ID"], "alias": "defillama_protocol_fees_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ab1de61005224c3f611824c2476c23b8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_ab1de61005224c3f611824c2476c23b8"}, "created_at": 1760113501.7603545, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_silver.defillama_protocol_fees_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ab1de61005224c3f611824c2476c23b8\") }}", "language": "sql", "refs": [{"name": "silver__defillama_protocol_fees", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_protocol_fees"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_protocol_fees.yml/dbt_utils_unique_combination_o_ab1de61005224c3f611824c2476c23b8.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ID\n from EXTERNAL.silver.defillama_protocol_fees\n group by ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__defillama_protocol_fees", "attached_node": "model.external_models.silver__defillama_protocol_fees"}, "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_BRIDGE_ID.a614975e3c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BRIDGE_ID", "model": "{{ get_where_subquery(ref('silver__defillama_bridge_volume_by_chain')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_bridge_volume_by_chain_BRIDGE_ID", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_bridge_volume_by_chain_BRIDGE_ID.sql", "original_file_path": "models/defillama/silver/silver__defillama_bridge_volume_by_chain.yml", "unique_id": "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_BRIDGE_ID.a614975e3c", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_bridge_volume_by_chain_BRIDGE_ID"], "alias": "defillama_bridge_volume_by_chain_BRIDGE_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.768884, "relation_name": "EXTERNAL.not_null_silver.defillama_bridge_volume_by_chain_BRIDGE_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_bridge_volume_by_chain", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_bridge_volume_by_chain"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_bridge_volume_by_chain.yml/not_null_silver__defillama_bridge_volume_by_chain_BRIDGE_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_bridge_volume_by_chain\nwhere BRIDGE_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BRIDGE_ID", "file_key_name": "models.silver__defillama_bridge_volume_by_chain", "attached_node": "model.external_models.silver__defillama_bridge_volume_by_chain"}, "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_BRIDGE.b6f114b68a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BRIDGE", "model": "{{ get_where_subquery(ref('silver__defillama_bridge_volume_by_chain')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_bridge_volume_by_chain_BRIDGE", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_bridge_volume_by_chain_BRIDGE.sql", "original_file_path": "models/defillama/silver/silver__defillama_bridge_volume_by_chain.yml", "unique_id": "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_BRIDGE.b6f114b68a", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_bridge_volume_by_chain_BRIDGE"], "alias": "defillama_bridge_volume_by_chain_BRIDGE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.7707455, "relation_name": "EXTERNAL.not_null_silver.defillama_bridge_volume_by_chain_BRIDGE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_bridge_volume_by_chain", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_bridge_volume_by_chain"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_bridge_volume_by_chain.yml/not_null_silver__defillama_bridge_volume_by_chain_BRIDGE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_bridge_volume_by_chain\nwhere BRIDGE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BRIDGE", "file_key_name": "models.silver__defillama_bridge_volume_by_chain", "attached_node": "model.external_models.silver__defillama_bridge_volume_by_chain"}, "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_CHAIN.eff9323ee0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CHAIN", "model": "{{ get_where_subquery(ref('silver__defillama_bridge_volume_by_chain')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_bridge_volume_by_chain_CHAIN", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_bridge_volume_by_chain_CHAIN.sql", "original_file_path": "models/defillama/silver/silver__defillama_bridge_volume_by_chain.yml", "unique_id": "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_CHAIN.eff9323ee0", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_bridge_volume_by_chain_CHAIN"], "alias": "defillama_bridge_volume_by_chain_CHAIN", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.7725177, "relation_name": "EXTERNAL.not_null_silver.defillama_bridge_volume_by_chain_CHAIN", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_bridge_volume_by_chain", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_bridge_volume_by_chain"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_bridge_volume_by_chain.yml/not_null_silver__defillama_bridge_volume_by_chain_CHAIN.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_bridge_volume_by_chain\nwhere CHAIN is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CHAIN", "file_key_name": "models.silver__defillama_bridge_volume_by_chain", "attached_node": "model.external_models.silver__defillama_bridge_volume_by_chain"}, "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_DATE.c6d68128a2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DATE", "model": "{{ get_where_subquery(ref('silver__defillama_bridge_volume_by_chain')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_bridge_volume_by_chain_DATE", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_bridge_volume_by_chain_DATE.sql", "original_file_path": "models/defillama/silver/silver__defillama_bridge_volume_by_chain.yml", "unique_id": "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_DATE.c6d68128a2", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_bridge_volume_by_chain_DATE"], "alias": "defillama_bridge_volume_by_chain_DATE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.7743523, "relation_name": "EXTERNAL.not_null_silver.defillama_bridge_volume_by_chain_DATE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_bridge_volume_by_chain", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_bridge_volume_by_chain"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_bridge_volume_by_chain.yml/not_null_silver__defillama_bridge_volume_by_chain_DATE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_bridge_volume_by_chain\nwhere DATE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DATE", "file_key_name": "models.silver__defillama_bridge_volume_by_chain", "attached_node": "model.external_models.silver__defillama_bridge_volume_by_chain"}, "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_DEPOSIT_TXS.047faf98b4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DEPOSIT_TXS", "model": "{{ get_where_subquery(ref('silver__defillama_bridge_volume_by_chain')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_bridge_volume_by_chain_DEPOSIT_TXS", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_bridge_volume_by_chain_DEPOSIT_TXS.sql", "original_file_path": "models/defillama/silver/silver__defillama_bridge_volume_by_chain.yml", "unique_id": "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_DEPOSIT_TXS.047faf98b4", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_bridge_volume_by_chain_DEPOSIT_TXS"], "alias": "defillama_bridge_volume_by_chain_DEPOSIT_TXS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.7760751, "relation_name": "EXTERNAL.not_null_silver.defillama_bridge_volume_by_chain_DEPOSIT_TXS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_bridge_volume_by_chain", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_bridge_volume_by_chain"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_bridge_volume_by_chain.yml/not_null_silver__defillama_bridge_volume_by_chain_DEPOSIT_TXS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_bridge_volume_by_chain\nwhere DEPOSIT_TXS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DEPOSIT_TXS", "file_key_name": "models.silver__defillama_bridge_volume_by_chain", "attached_node": "model.external_models.silver__defillama_bridge_volume_by_chain"}, "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_DEPOSIT_USD.615b5cbf42": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DEPOSIT_USD", "model": "{{ get_where_subquery(ref('silver__defillama_bridge_volume_by_chain')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_bridge_volume_by_chain_DEPOSIT_USD", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_bridge_volume_by_chain_DEPOSIT_USD.sql", "original_file_path": "models/defillama/silver/silver__defillama_bridge_volume_by_chain.yml", "unique_id": "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_DEPOSIT_USD.615b5cbf42", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_bridge_volume_by_chain_DEPOSIT_USD"], "alias": "defillama_bridge_volume_by_chain_DEPOSIT_USD", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.7778227, "relation_name": "EXTERNAL.not_null_silver.defillama_bridge_volume_by_chain_DEPOSIT_USD", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_bridge_volume_by_chain", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_bridge_volume_by_chain"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_bridge_volume_by_chain.yml/not_null_silver__defillama_bridge_volume_by_chain_DEPOSIT_USD.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_bridge_volume_by_chain\nwhere DEPOSIT_USD is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DEPOSIT_USD", "file_key_name": "models.silver__defillama_bridge_volume_by_chain", "attached_node": "model.external_models.silver__defillama_bridge_volume_by_chain"}, "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_WITHDRAW_TXS.7117c612b3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "WITHDRAW_TXS", "model": "{{ get_where_subquery(ref('silver__defillama_bridge_volume_by_chain')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_bridge_volume_by_chain_WITHDRAW_TXS", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_bridge_volume_by_chain_WITHDRAW_TXS.sql", "original_file_path": "models/defillama/silver/silver__defillama_bridge_volume_by_chain.yml", "unique_id": "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_WITHDRAW_TXS.7117c612b3", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_bridge_volume_by_chain_WITHDRAW_TXS"], "alias": "defillama_bridge_volume_by_chain_WITHDRAW_TXS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.779614, "relation_name": "EXTERNAL.not_null_silver.defillama_bridge_volume_by_chain_WITHDRAW_TXS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_bridge_volume_by_chain", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_bridge_volume_by_chain"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_bridge_volume_by_chain.yml/not_null_silver__defillama_bridge_volume_by_chain_WITHDRAW_TXS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_bridge_volume_by_chain\nwhere WITHDRAW_TXS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "WITHDRAW_TXS", "file_key_name": "models.silver__defillama_bridge_volume_by_chain", "attached_node": "model.external_models.silver__defillama_bridge_volume_by_chain"}, "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_WITHDRAW_USD.279d267331": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "WITHDRAW_USD", "model": "{{ get_where_subquery(ref('silver__defillama_bridge_volume_by_chain')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_bridge_volume_by_chain_WITHDRAW_USD", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_bridge_volume_by_chain_WITHDRAW_USD.sql", "original_file_path": "models/defillama/silver/silver__defillama_bridge_volume_by_chain.yml", "unique_id": "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_WITHDRAW_USD.279d267331", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_bridge_volume_by_chain_WITHDRAW_USD"], "alias": "defillama_bridge_volume_by_chain_WITHDRAW_USD", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.7816517, "relation_name": "EXTERNAL.not_null_silver.defillama_bridge_volume_by_chain_WITHDRAW_USD", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_bridge_volume_by_chain", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_bridge_volume_by_chain"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_bridge_volume_by_chain.yml/not_null_silver__defillama_bridge_volume_by_chain_WITHDRAW_USD.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_bridge_volume_by_chain\nwhere WITHDRAW_USD is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "WITHDRAW_USD", "file_key_name": "models.silver__defillama_bridge_volume_by_chain", "attached_node": "model.external_models.silver__defillama_bridge_volume_by_chain"}, "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_INSERTED_TIMESTAMP.88d1482ef7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_bridge_volume_by_chain')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_bridge_volume_by_chain_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_bri_189a8706458553633943c8bc2d981c95.sql", "original_file_path": "models/defillama/silver/silver__defillama_bridge_volume_by_chain.yml", "unique_id": "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_INSERTED_TIMESTAMP.88d1482ef7", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_bridge_volume_by_chain_INSERTED_TIMESTAMP"], "alias": "defillama_bridge_volume_by_chain_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver__defillama_bri_189a8706458553633943c8bc2d981c95", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "not_null_silver__defillama_bri_189a8706458553633943c8bc2d981c95"}, "created_at": 1760113501.783447, "relation_name": "EXTERNAL.not_null_silver.defillama_bridge_volume_by_chain_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver__defillama_bri_189a8706458553633943c8bc2d981c95\") }}", "language": "sql", "refs": [{"name": "silver__defillama_bridge_volume_by_chain", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_bridge_volume_by_chain"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_bridge_volume_by_chain.yml/not_null_silver__defillama_bri_189a8706458553633943c8bc2d981c95.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_bridge_volume_by_chain\nwhere INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_bridge_volume_by_chain", "attached_node": "model.external_models.silver__defillama_bridge_volume_by_chain"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_bridge_volume_by_chain_INSERTED_TIMESTAMP__TIMESTAMP_NTZ.886365f9bf": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_bridge_volume_by_chain')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_bridge_volume_by_chain_INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_2926c5d77468883bdc140d698a9e2cd0.sql", "original_file_path": "models/defillama/silver/silver__defillama_bridge_volume_by_chain.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_bridge_volume_by_chain_INSERTED_TIMESTAMP__TIMESTAMP_NTZ.886365f9bf", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_bridge_volume_by_chain_INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "defillama_bridge_volume_by_chain_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_2926c5d77468883bdc140d698a9e2cd0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_2926c5d77468883bdc140d698a9e2cd0"}, "created_at": 1760113501.7851777, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_silver.defillama_bridge_volume_by_chain_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_2926c5d77468883bdc140d698a9e2cd0\") }}", "language": "sql", "refs": [{"name": "silver__defillama_bridge_volume_by_chain", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_bridge_volume_by_chain"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_bridge_volume_by_chain.yml/dbt_expectations_expect_column_2926c5d77468883bdc140d698a9e2cd0.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BRIDGE_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BRIDGE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BRIDGE_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BRIDGE_ID_CHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DATE' as TEXT) as relation_column,\n cast('DATE' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEPOSIT_TXS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEPOSIT_USD' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('WITHDRAW_TXS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('WITHDRAW_USD' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEFILLAMA_BRIDGE_VOL_BY_CHAIN_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_bridge_volume_by_chain", "attached_node": "model.external_models.silver__defillama_bridge_volume_by_chain"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_bridge_volume_by_chain_INSERTED_TIMESTAMP__day__2.84922787bf": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 2, "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_bridge_volume_by_chain')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_bridge_volume_by_chain_INSERTED_TIMESTAMP__day__2", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_row_va_73f647f86d86b9ae868f7aaa65e526bf.sql", "original_file_path": "models/defillama/silver/silver__defillama_bridge_volume_by_chain.yml", "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_bridge_volume_by_chain_INSERTED_TIMESTAMP__day__2.84922787bf", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_bridge_volume_by_chain_INSERTED_TIMESTAMP__day__2"], "alias": "defillama_bridge_volume_by_chain_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_73f647f86d86b9ae868f7aaa65e526bf", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_73f647f86d86b9ae868f7aaa65e526bf"}, "created_at": 1760113501.789754, "relation_name": "EXTERNAL.dbt_expectations_expect_row_values_to_have_recent_data_silver.defillama_bridge_volume_by_chain_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_73f647f86d86b9ae868f7aaa65e526bf\") }}", "language": "sql", "refs": [{"name": "silver__defillama_bridge_volume_by_chain", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_bridge_volume_by_chain"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_bridge_volume_by_chain.yml/dbt_expectations_expect_row_va_73f647f86d86b9ae868f7aaa65e526bf.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n EXTERNAL.silver.defillama_bridge_volume_by_chain\n where\n -- to exclude erroneous future dates\n cast(INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_bridge_volume_by_chain", "attached_node": "model.external_models.silver__defillama_bridge_volume_by_chain"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_bridge_volume_by_chain_defillama_bridge_vol_by_chain_id.335bdf13f6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["defillama_bridge_vol_by_chain_id"], "model": "{{ get_where_subquery(ref('silver__defillama_bridge_volume_by_chain')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__defillama_bridge_volume_by_chain_defillama_bridge_vol_by_chain_id", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_38f736d7dd9dbf60ff1fac6fdba2a857.sql", "original_file_path": "models/defillama/silver/silver__defillama_bridge_volume_by_chain.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_bridge_volume_by_chain_defillama_bridge_vol_by_chain_id.335bdf13f6", "fqn": ["external_models", "defillama", "silver", "dbt_utils_unique_combination_of_columns_silver__defillama_bridge_volume_by_chain_defillama_bridge_vol_by_chain_id"], "alias": "defillama_bridge_volume_by_chain_defillama_bridge_vol_by_chain_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_38f736d7dd9dbf60ff1fac6fdba2a857", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_38f736d7dd9dbf60ff1fac6fdba2a857"}, "created_at": 1760113501.7955537, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_silver.defillama_bridge_volume_by_chain_defillama_bridge_vol_by_chain_id", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_38f736d7dd9dbf60ff1fac6fdba2a857\") }}", "language": "sql", "refs": [{"name": "silver__defillama_bridge_volume_by_chain", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_bridge_volume_by_chain"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_bridge_volume_by_chain.yml/dbt_utils_unique_combination_o_38f736d7dd9dbf60ff1fac6fdba2a857.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n defillama_bridge_vol_by_chain_id\n from EXTERNAL.silver.defillama_bridge_volume_by_chain\n group by defillama_bridge_vol_by_chain_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__defillama_bridge_volume_by_chain", "attached_node": "model.external_models.silver__defillama_bridge_volume_by_chain"}, "test.external_models.not_null_silver__defillama_options_notional_CHAIN.17704c94d3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CHAIN", "model": "{{ get_where_subquery(ref('silver__defillama_options_notional')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_options_notional_CHAIN", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_options_notional_CHAIN.sql", "original_file_path": "models/defillama/silver/silver__defillama_options_notional.yml", "unique_id": "test.external_models.not_null_silver__defillama_options_notional_CHAIN.17704c94d3", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_options_notional_CHAIN"], "alias": "defillama_options_notional_CHAIN", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.8013248, "relation_name": "EXTERNAL.not_null_silver.defillama_options_notional_CHAIN", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_options_notional", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_options_notional"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_options_notional.yml/not_null_silver__defillama_options_notional_CHAIN.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_options_notional\nwhere CHAIN is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CHAIN", "file_key_name": "models.silver__defillama_options_notional", "attached_node": "model.external_models.silver__defillama_options_notional"}, "test.external_models.not_null_silver__defillama_options_notional__INSERTED_TIMESTAMP.1b2760a764": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_options_notional')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_options_notional__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_options_notional__INSERTED_TIMESTAMP.sql", "original_file_path": "models/defillama/silver/silver__defillama_options_notional.yml", "unique_id": "test.external_models.not_null_silver__defillama_options_notional__INSERTED_TIMESTAMP.1b2760a764", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_options_notional__INSERTED_TIMESTAMP"], "alias": "defillama_options_notional", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.8038383, "relation_name": "EXTERNAL.not_null_silver.defillama_options_notional", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_options_notional", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_options_notional"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_options_notional.yml/not_null_silver__defillama_options_notional__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_options_notional\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_options_notional", "attached_node": "model.external_models.silver__defillama_options_notional"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_options_notional__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.954e6abb0e": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_options_notional')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_options_notional__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_12da22d513523b49c30df97b38ec055f.sql", "original_file_path": "models/defillama/silver/silver__defillama_options_notional.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_options_notional__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.954e6abb0e", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_options_notional__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "defillama_options_notional", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_12da22d513523b49c30df97b38ec055f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_12da22d513523b49c30df97b38ec055f"}, "created_at": 1760113501.8056488, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_silver.defillama_options_notional", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_12da22d513523b49c30df97b38ec055f\") }}", "language": "sql", "refs": [{"name": "silver__defillama_options_notional", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_options_notional"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_options_notional.yml/dbt_expectations_expect_column_12da22d513523b49c30df97b38ec055f.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('CHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DAILY_VOLUME_NOTIONAL' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('OPTIONS_OBJECT' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_options_notional", "attached_node": "model.external_models.silver__defillama_options_notional"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_options_notional__INSERTED_TIMESTAMP__day__2.bfa1ced883": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 2, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_options_notional')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_options_notional__INSERTED_TIMESTAMP__day__2", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_row_va_76aa5db215166de20f20c032f4d17624.sql", "original_file_path": "models/defillama/silver/silver__defillama_options_notional.yml", "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_options_notional__INSERTED_TIMESTAMP__day__2.bfa1ced883", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_options_notional__INSERTED_TIMESTAMP__day__2"], "alias": "defillama_options_notional", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_76aa5db215166de20f20c032f4d17624", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_76aa5db215166de20f20c032f4d17624"}, "created_at": 1760113501.8098955, "relation_name": "EXTERNAL.dbt_expectations_expect_row_values_to_have_recent_data_silver.defillama_options_notional", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_76aa5db215166de20f20c032f4d17624\") }}", "language": "sql", "refs": [{"name": "silver__defillama_options_notional", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_options_notional"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_options_notional.yml/dbt_expectations_expect_row_va_76aa5db215166de20f20c032f4d17624.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(_INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n EXTERNAL.silver.defillama_options_notional\n where\n -- to exclude erroneous future dates\n cast(_INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_options_notional", "attached_node": "model.external_models.silver__defillama_options_notional"}, "test.external_models.not_null_silver__defillama_options_notional_ID.797f360571": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ID", "model": "{{ get_where_subquery(ref('silver__defillama_options_notional')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_options_notional_ID", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_options_notional_ID.sql", "original_file_path": "models/defillama/silver/silver__defillama_options_notional.yml", "unique_id": "test.external_models.not_null_silver__defillama_options_notional_ID.797f360571", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_options_notional_ID"], "alias": "defillama_options_notional_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.815786, "relation_name": "EXTERNAL.not_null_silver.defillama_options_notional_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_options_notional", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_options_notional"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_options_notional.yml/not_null_silver__defillama_options_notional_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_options_notional\nwhere ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ID", "file_key_name": "models.silver__defillama_options_notional", "attached_node": "model.external_models.silver__defillama_options_notional"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_options_notional_ID.4ed2e3fa3f": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ID"], "model": "{{ get_where_subquery(ref('silver__defillama_options_notional')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__defillama_options_notional_ID", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_4a5ddca5c8983c346cca3a7d234d1d9a.sql", "original_file_path": "models/defillama/silver/silver__defillama_options_notional.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_options_notional_ID.4ed2e3fa3f", "fqn": ["external_models", "defillama", "silver", "dbt_utils_unique_combination_of_columns_silver__defillama_options_notional_ID"], "alias": "defillama_options_notional_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4a5ddca5c8983c346cca3a7d234d1d9a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_4a5ddca5c8983c346cca3a7d234d1d9a"}, "created_at": 1760113501.817773, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_silver.defillama_options_notional_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4a5ddca5c8983c346cca3a7d234d1d9a\") }}", "language": "sql", "refs": [{"name": "silver__defillama_options_notional", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_options_notional"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_options_notional.yml/dbt_utils_unique_combination_o_4a5ddca5c8983c346cca3a7d234d1d9a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ID\n from EXTERNAL.silver.defillama_options_notional\n group by ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__defillama_options_notional", "attached_node": "model.external_models.silver__defillama_options_notional"}, "test.external_models.not_null_silver__defillama_bridge_volume_BRIDGE_ID.e186492e1d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BRIDGE_ID", "model": "{{ get_where_subquery(ref('silver__defillama_bridge_volume')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_bridge_volume_BRIDGE_ID", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_bridge_volume_BRIDGE_ID.sql", "original_file_path": "models/defillama/silver/silver__defillama_bridge_volume.yml", "unique_id": "test.external_models.not_null_silver__defillama_bridge_volume_BRIDGE_ID.e186492e1d", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_bridge_volume_BRIDGE_ID"], "alias": "defillama_bridge_volume_BRIDGE_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.8232558, "relation_name": "EXTERNAL.not_null_silver.defillama_bridge_volume_BRIDGE_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_bridge_volume", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_bridge_volume"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_bridge_volume.yml/not_null_silver__defillama_bridge_volume_BRIDGE_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_bridge_volume\nwhere BRIDGE_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BRIDGE_ID", "file_key_name": "models.silver__defillama_bridge_volume", "attached_node": "model.external_models.silver__defillama_bridge_volume"}, "test.external_models.not_null_silver__defillama_bridge_volume_BRIDGE.2758ecc03f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BRIDGE", "model": "{{ get_where_subquery(ref('silver__defillama_bridge_volume')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_bridge_volume_BRIDGE", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_bridge_volume_BRIDGE.sql", "original_file_path": "models/defillama/silver/silver__defillama_bridge_volume.yml", "unique_id": "test.external_models.not_null_silver__defillama_bridge_volume_BRIDGE.2758ecc03f", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_bridge_volume_BRIDGE"], "alias": "defillama_bridge_volume_BRIDGE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.8250375, "relation_name": "EXTERNAL.not_null_silver.defillama_bridge_volume_BRIDGE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_bridge_volume", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_bridge_volume"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_bridge_volume.yml/not_null_silver__defillama_bridge_volume_BRIDGE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_bridge_volume\nwhere BRIDGE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BRIDGE", "file_key_name": "models.silver__defillama_bridge_volume", "attached_node": "model.external_models.silver__defillama_bridge_volume"}, "test.external_models.not_null_silver__defillama_bridge_volume__INSERTED_TIMESTAMP.2d38284c8d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_bridge_volume')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_bridge_volume__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_bridge_volume__INSERTED_TIMESTAMP.sql", "original_file_path": "models/defillama/silver/silver__defillama_bridge_volume.yml", "unique_id": "test.external_models.not_null_silver__defillama_bridge_volume__INSERTED_TIMESTAMP.2d38284c8d", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_bridge_volume__INSERTED_TIMESTAMP"], "alias": "defillama_bridge_volume", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.8270965, "relation_name": "EXTERNAL.not_null_silver.defillama_bridge_volume", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_bridge_volume", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_bridge_volume"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_bridge_volume.yml/not_null_silver__defillama_bridge_volume__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_bridge_volume\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_bridge_volume", "attached_node": "model.external_models.silver__defillama_bridge_volume"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_bridge_volume__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.98985142f9": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_bridge_volume')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_bridge_volume__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_740583ff5e6de0746ef100490cd3b6a2.sql", "original_file_path": "models/defillama/silver/silver__defillama_bridge_volume.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_bridge_volume__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.98985142f9", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_bridge_volume__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "defillama_bridge_volume", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_740583ff5e6de0746ef100490cd3b6a2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_740583ff5e6de0746ef100490cd3b6a2"}, "created_at": 1760113501.8288786, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_silver.defillama_bridge_volume", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_740583ff5e6de0746ef100490cd3b6a2\") }}", "language": "sql", "refs": [{"name": "silver__defillama_bridge_volume", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_bridge_volume"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_bridge_volume.yml/dbt_expectations_expect_column_740583ff5e6de0746ef100490cd3b6a2.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BRIDGE_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BRIDGE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BRIDGE_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEPOSIT_TXS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEPOSIT_USD' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('WITHDRAW_TXS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('WITHDRAW_USD' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_bridge_volume", "attached_node": "model.external_models.silver__defillama_bridge_volume"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_bridge_volume__INSERTED_TIMESTAMP__day__2.6817773edd": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 2, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_bridge_volume')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_bridge_volume__INSERTED_TIMESTAMP__day__2", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_row_va_ff1065cb79b4c93e083614f503218bb7.sql", "original_file_path": "models/defillama/silver/silver__defillama_bridge_volume.yml", "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_bridge_volume__INSERTED_TIMESTAMP__day__2.6817773edd", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_bridge_volume__INSERTED_TIMESTAMP__day__2"], "alias": "defillama_bridge_volume", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_ff1065cb79b4c93e083614f503218bb7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_ff1065cb79b4c93e083614f503218bb7"}, "created_at": 1760113501.8331738, "relation_name": "EXTERNAL.dbt_expectations_expect_row_values_to_have_recent_data_silver.defillama_bridge_volume", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_ff1065cb79b4c93e083614f503218bb7\") }}", "language": "sql", "refs": [{"name": "silver__defillama_bridge_volume", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_bridge_volume"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_bridge_volume.yml/dbt_expectations_expect_row_va_ff1065cb79b4c93e083614f503218bb7.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(_INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n EXTERNAL.silver.defillama_bridge_volume\n where\n -- to exclude erroneous future dates\n cast(_INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_bridge_volume", "attached_node": "model.external_models.silver__defillama_bridge_volume"}, "test.external_models.not_null_silver__defillama_bridge_volume_ID.553904b651": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ID", "model": "{{ get_where_subquery(ref('silver__defillama_bridge_volume')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_bridge_volume_ID", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_bridge_volume_ID.sql", "original_file_path": "models/defillama/silver/silver__defillama_bridge_volume.yml", "unique_id": "test.external_models.not_null_silver__defillama_bridge_volume_ID.553904b651", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_bridge_volume_ID"], "alias": "defillama_bridge_volume_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.8392832, "relation_name": "EXTERNAL.not_null_silver.defillama_bridge_volume_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_bridge_volume", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_bridge_volume"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_bridge_volume.yml/not_null_silver__defillama_bridge_volume_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_bridge_volume\nwhere ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ID", "file_key_name": "models.silver__defillama_bridge_volume", "attached_node": "model.external_models.silver__defillama_bridge_volume"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_bridge_volume_BRIDGE_ID__TIMESTAMP.84d1376ea1": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["BRIDGE_ID", "TIMESTAMP"], "model": "{{ get_where_subquery(ref('silver__defillama_bridge_volume')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__defillama_bridge_volume_BRIDGE_ID__TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_4c1e02af702a7609d1b7b7d685ce1b3c.sql", "original_file_path": "models/defillama/silver/silver__defillama_bridge_volume.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_bridge_volume_BRIDGE_ID__TIMESTAMP.84d1376ea1", "fqn": ["external_models", "defillama", "silver", "dbt_utils_unique_combination_of_columns_silver__defillama_bridge_volume_BRIDGE_ID__TIMESTAMP"], "alias": "defillama_bridge_volume_BRIDGE_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4c1e02af702a7609d1b7b7d685ce1b3c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_4c1e02af702a7609d1b7b7d685ce1b3c"}, "created_at": 1760113501.841089, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_silver.defillama_bridge_volume_BRIDGE_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4c1e02af702a7609d1b7b7d685ce1b3c\") }}", "language": "sql", "refs": [{"name": "silver__defillama_bridge_volume", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_bridge_volume"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_bridge_volume.yml/dbt_utils_unique_combination_o_4c1e02af702a7609d1b7b7d685ce1b3c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n BRIDGE_ID, TIMESTAMP\n from EXTERNAL.silver.defillama_bridge_volume\n group by BRIDGE_ID, TIMESTAMP\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__defillama_bridge_volume", "attached_node": "model.external_models.silver__defillama_bridge_volume"}, "test.external_models.not_null_silver__defillama_perp_metrics_timestamp.472db55af5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "timestamp", "model": "{{ get_where_subquery(ref('silver__defillama_perp_metrics')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_perp_metrics_timestamp", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_perp_metrics_timestamp.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_metrics.yml", "unique_id": "test.external_models.not_null_silver__defillama_perp_metrics_timestamp.472db55af5", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_perp_metrics_timestamp"], "alias": "defillama_perp_metrics_timestamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.8555763, "relation_name": "EXTERNAL.not_null_silver.defillama_perp_metrics_timestamp", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_metrics.yml/not_null_silver__defillama_perp_metrics_timestamp.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_perp_metrics\nwhere timestamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "timestamp", "file_key_name": "models.silver__defillama_perp_metrics", "attached_node": "model.external_models.silver__defillama_perp_metrics"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_timestamp__DATE.81996737ac": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["DATE"], "column_name": "timestamp", "model": "{{ get_where_subquery(ref('silver__defillama_perp_metrics')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_timestamp__DATE", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_030d09c9c891a69e07077c73426b5cf9.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_metrics.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_timestamp__DATE.81996737ac", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_timestamp__DATE"], "alias": "defillama_perp_metrics_timestamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_030d09c9c891a69e07077c73426b5cf9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_030d09c9c891a69e07077c73426b5cf9"}, "created_at": 1760113501.8574033, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_silver.defillama_perp_metrics_timestamp", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_030d09c9c891a69e07077c73426b5cf9\") }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_metrics.yml/dbt_expectations_expect_column_030d09c9c891a69e07077c73426b5cf9.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('TIMESTAMP' as TEXT) as relation_column,\n cast('DATE' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DISPLAY_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODULE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LOGO' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAINS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('METHODOLOGY_URL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('METHODOLOGY' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_PROTOCOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_SLUG' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LINKED_PROTOCOLS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_24H' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_48H_TO_24H' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_7D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_30D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_ALL_TIME' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHANGE_1D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DATA_CHART_BREAKDOWN' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEFILLAMA_PERP_METRICS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TIMESTAMP'\n and\n relation_column_type not in ('DATE')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "timestamp", "file_key_name": "models.silver__defillama_perp_metrics", "attached_node": "model.external_models.silver__defillama_perp_metrics"}, "test.external_models.not_null_silver__defillama_perp_metrics_protocol_id.14c6ac4f05": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "protocol_id", "model": "{{ get_where_subquery(ref('silver__defillama_perp_metrics')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_perp_metrics_protocol_id", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_perp_metrics_protocol_id.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_metrics.yml", "unique_id": "test.external_models.not_null_silver__defillama_perp_metrics_protocol_id.14c6ac4f05", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_perp_metrics_protocol_id"], "alias": "defillama_perp_metrics_protocol_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.8618608, "relation_name": "EXTERNAL.not_null_silver.defillama_perp_metrics_protocol_id", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_metrics.yml/not_null_silver__defillama_perp_metrics_protocol_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_perp_metrics\nwhere protocol_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "protocol_id", "file_key_name": "models.silver__defillama_perp_metrics", "attached_node": "model.external_models.silver__defillama_perp_metrics"}, "test.external_models.not_null_silver__defillama_perp_metrics_category.03f85efead": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "category", "model": "{{ get_where_subquery(ref('silver__defillama_perp_metrics')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_perp_metrics_category", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_perp_metrics_category.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_metrics.yml", "unique_id": "test.external_models.not_null_silver__defillama_perp_metrics_category.03f85efead", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_perp_metrics_category"], "alias": "defillama_perp_metrics_category", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.8636446, "relation_name": "EXTERNAL.not_null_silver.defillama_perp_metrics_category", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_metrics.yml/not_null_silver__defillama_perp_metrics_category.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_perp_metrics\nwhere category is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "category", "file_key_name": "models.silver__defillama_perp_metrics", "attached_node": "model.external_models.silver__defillama_perp_metrics"}, "test.external_models.not_null_silver__defillama_perp_metrics_name.7b2aa5872c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "name", "model": "{{ get_where_subquery(ref('silver__defillama_perp_metrics')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_perp_metrics_name", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_perp_metrics_name.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_metrics.yml", "unique_id": "test.external_models.not_null_silver__defillama_perp_metrics_name.7b2aa5872c", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_perp_metrics_name"], "alias": "defillama_perp_metrics_name", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.8654456, "relation_name": "EXTERNAL.not_null_silver.defillama_perp_metrics_name", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_metrics.yml/not_null_silver__defillama_perp_metrics_name.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_perp_metrics\nwhere name is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "name", "file_key_name": "models.silver__defillama_perp_metrics", "attached_node": "model.external_models.silver__defillama_perp_metrics"}, "test.external_models.not_null_silver__defillama_perp_metrics_display_name.f6a537f455": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "display_name", "model": "{{ get_where_subquery(ref('silver__defillama_perp_metrics')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_perp_metrics_display_name", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_perp_metrics_display_name.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_metrics.yml", "unique_id": "test.external_models.not_null_silver__defillama_perp_metrics_display_name.f6a537f455", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_perp_metrics_display_name"], "alias": "defillama_perp_metrics_display_name", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.8671982, "relation_name": "EXTERNAL.not_null_silver.defillama_perp_metrics_display_name", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_metrics.yml/not_null_silver__defillama_perp_metrics_display_name.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_perp_metrics\nwhere display_name is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "display_name", "file_key_name": "models.silver__defillama_perp_metrics", "attached_node": "model.external_models.silver__defillama_perp_metrics"}, "test.external_models.not_null_silver__defillama_perp_metrics_module.1ee1cd9d64": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "module", "model": "{{ get_where_subquery(ref('silver__defillama_perp_metrics')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_perp_metrics_module", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_perp_metrics_module.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_metrics.yml", "unique_id": "test.external_models.not_null_silver__defillama_perp_metrics_module.1ee1cd9d64", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_perp_metrics_module"], "alias": "defillama_perp_metrics_module", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.868931, "relation_name": "EXTERNAL.not_null_silver.defillama_perp_metrics_module", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_metrics.yml/not_null_silver__defillama_perp_metrics_module.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_perp_metrics\nwhere module is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "module", "file_key_name": "models.silver__defillama_perp_metrics", "attached_node": "model.external_models.silver__defillama_perp_metrics"}, "test.external_models.not_null_silver__defillama_perp_metrics_logo.cd14f778d5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "logo", "model": "{{ get_where_subquery(ref('silver__defillama_perp_metrics')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_perp_metrics_logo", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_perp_metrics_logo.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_metrics.yml", "unique_id": "test.external_models.not_null_silver__defillama_perp_metrics_logo.cd14f778d5", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_perp_metrics_logo"], "alias": "defillama_perp_metrics_logo", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.8710735, "relation_name": "EXTERNAL.not_null_silver.defillama_perp_metrics_logo", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_metrics.yml/not_null_silver__defillama_perp_metrics_logo.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_perp_metrics\nwhere logo is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "logo", "file_key_name": "models.silver__defillama_perp_metrics", "attached_node": "model.external_models.silver__defillama_perp_metrics"}, "test.external_models.not_null_silver__defillama_perp_metrics_chains.3ef0fddd80": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "chains", "model": "{{ get_where_subquery(ref('silver__defillama_perp_metrics')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_perp_metrics_chains", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_perp_metrics_chains.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_metrics.yml", "unique_id": "test.external_models.not_null_silver__defillama_perp_metrics_chains.3ef0fddd80", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_perp_metrics_chains"], "alias": "defillama_perp_metrics_chains", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.8728504, "relation_name": "EXTERNAL.not_null_silver.defillama_perp_metrics_chains", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_metrics.yml/not_null_silver__defillama_perp_metrics_chains.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_perp_metrics\nwhere chains is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "chains", "file_key_name": "models.silver__defillama_perp_metrics", "attached_node": "model.external_models.silver__defillama_perp_metrics"}, "test.external_models.not_null_silver__defillama_perp_metrics_protocol_type.4823df5948": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "protocol_type", "model": "{{ get_where_subquery(ref('silver__defillama_perp_metrics')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_perp_metrics_protocol_type", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_perp_metrics_protocol_type.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_metrics.yml", "unique_id": "test.external_models.not_null_silver__defillama_perp_metrics_protocol_type.4823df5948", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_perp_metrics_protocol_type"], "alias": "defillama_perp_metrics_protocol_type", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.8746345, "relation_name": "EXTERNAL.not_null_silver.defillama_perp_metrics_protocol_type", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_metrics.yml/not_null_silver__defillama_perp_metrics_protocol_type.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_perp_metrics\nwhere protocol_type is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "protocol_type", "file_key_name": "models.silver__defillama_perp_metrics", "attached_node": "model.external_models.silver__defillama_perp_metrics"}, "test.external_models.not_null_silver__defillama_perp_metrics_methodology_url.0bf67e7b14": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "methodology_url", "model": "{{ get_where_subquery(ref('silver__defillama_perp_metrics')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_perp_metrics_methodology_url", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_perp_metrics_methodology_url.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_metrics.yml", "unique_id": "test.external_models.not_null_silver__defillama_perp_metrics_methodology_url.0bf67e7b14", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_perp_metrics_methodology_url"], "alias": "defillama_perp_metrics_methodology_url", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.876387, "relation_name": "EXTERNAL.not_null_silver.defillama_perp_metrics_methodology_url", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_metrics.yml/not_null_silver__defillama_perp_metrics_methodology_url.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_perp_metrics\nwhere methodology_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "methodology_url", "file_key_name": "models.silver__defillama_perp_metrics", "attached_node": "model.external_models.silver__defillama_perp_metrics"}, "test.external_models.not_null_silver__defillama_perp_metrics_methodology.8dfe586cb6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "methodology", "model": "{{ get_where_subquery(ref('silver__defillama_perp_metrics')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_perp_metrics_methodology", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_perp_metrics_methodology.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_metrics.yml", "unique_id": "test.external_models.not_null_silver__defillama_perp_metrics_methodology.8dfe586cb6", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_perp_metrics_methodology"], "alias": "defillama_perp_metrics_methodology", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.878145, "relation_name": "EXTERNAL.not_null_silver.defillama_perp_metrics_methodology", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_metrics.yml/not_null_silver__defillama_perp_metrics_methodology.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_perp_metrics\nwhere methodology is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "methodology", "file_key_name": "models.silver__defillama_perp_metrics", "attached_node": "model.external_models.silver__defillama_perp_metrics"}, "test.external_models.not_null_silver__defillama_perp_metrics_protocol_slug.2cb6a79b30": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "protocol_slug", "model": "{{ get_where_subquery(ref('silver__defillama_perp_metrics')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_perp_metrics_protocol_slug", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_perp_metrics_protocol_slug.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_metrics.yml", "unique_id": "test.external_models.not_null_silver__defillama_perp_metrics_protocol_slug.2cb6a79b30", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_perp_metrics_protocol_slug"], "alias": "defillama_perp_metrics_protocol_slug", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.8798964, "relation_name": "EXTERNAL.not_null_silver.defillama_perp_metrics_protocol_slug", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_metrics.yml/not_null_silver__defillama_perp_metrics_protocol_slug.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_perp_metrics\nwhere protocol_slug is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "protocol_slug", "file_key_name": "models.silver__defillama_perp_metrics", "attached_node": "model.external_models.silver__defillama_perp_metrics"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_24h__FLOAT.8ec5c7045d": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["FLOAT"], "column_name": "total_24h", "model": "{{ get_where_subquery(ref('silver__defillama_perp_metrics')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_24h__FLOAT", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_39bb110a7039fd2a06e373d51a694c83.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_metrics.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_24h__FLOAT.8ec5c7045d", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_24h__FLOAT"], "alias": "defillama_perp_metrics_total_24h", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_39bb110a7039fd2a06e373d51a694c83", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_39bb110a7039fd2a06e373d51a694c83"}, "created_at": 1760113501.8816473, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_silver.defillama_perp_metrics_total_24h", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_39bb110a7039fd2a06e373d51a694c83\") }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_metrics.yml/dbt_expectations_expect_column_39bb110a7039fd2a06e373d51a694c83.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('TIMESTAMP' as TEXT) as relation_column,\n cast('DATE' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DISPLAY_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODULE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LOGO' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAINS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('METHODOLOGY_URL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('METHODOLOGY' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_PROTOCOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_SLUG' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LINKED_PROTOCOLS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_24H' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_48H_TO_24H' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_7D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_30D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_ALL_TIME' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHANGE_1D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DATA_CHART_BREAKDOWN' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEFILLAMA_PERP_METRICS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TOTAL_24H'\n and\n relation_column_type not in ('FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "total_24h", "file_key_name": "models.silver__defillama_perp_metrics", "attached_node": "model.external_models.silver__defillama_perp_metrics"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_48h_to_24h__FLOAT.ebb833856d": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["FLOAT"], "column_name": "total_48h_to_24h", "model": "{{ get_where_subquery(ref('silver__defillama_perp_metrics')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_48h_to_24h__FLOAT", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_e464069d3dceb0f81db4a894f9fbcc66.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_metrics.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_48h_to_24h__FLOAT.ebb833856d", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_48h_to_24h__FLOAT"], "alias": "defillama_perp_metrics_total_48h_to_24h", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e464069d3dceb0f81db4a894f9fbcc66", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_e464069d3dceb0f81db4a894f9fbcc66"}, "created_at": 1760113501.886581, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_silver.defillama_perp_metrics_total_48h_to_24h", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e464069d3dceb0f81db4a894f9fbcc66\") }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_metrics.yml/dbt_expectations_expect_column_e464069d3dceb0f81db4a894f9fbcc66.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('TIMESTAMP' as TEXT) as relation_column,\n cast('DATE' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DISPLAY_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODULE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LOGO' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAINS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('METHODOLOGY_URL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('METHODOLOGY' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_PROTOCOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_SLUG' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LINKED_PROTOCOLS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_24H' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_48H_TO_24H' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_7D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_30D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_ALL_TIME' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHANGE_1D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DATA_CHART_BREAKDOWN' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEFILLAMA_PERP_METRICS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TOTAL_48H_TO_24H'\n and\n relation_column_type not in ('FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "total_48h_to_24h", "file_key_name": "models.silver__defillama_perp_metrics", "attached_node": "model.external_models.silver__defillama_perp_metrics"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_7d__FLOAT.8b6e748f8b": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["FLOAT"], "column_name": "total_7d", "model": "{{ get_where_subquery(ref('silver__defillama_perp_metrics')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_7d__FLOAT", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_24871692d7d0da1665ae00f81de9d393.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_metrics.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_7d__FLOAT.8b6e748f8b", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_7d__FLOAT"], "alias": "defillama_perp_metrics_total_7d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_24871692d7d0da1665ae00f81de9d393", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_24871692d7d0da1665ae00f81de9d393"}, "created_at": 1760113501.8910594, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_silver.defillama_perp_metrics_total_7d", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_24871692d7d0da1665ae00f81de9d393\") }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_metrics.yml/dbt_expectations_expect_column_24871692d7d0da1665ae00f81de9d393.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('TIMESTAMP' as TEXT) as relation_column,\n cast('DATE' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DISPLAY_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODULE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LOGO' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAINS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('METHODOLOGY_URL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('METHODOLOGY' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_PROTOCOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_SLUG' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LINKED_PROTOCOLS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_24H' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_48H_TO_24H' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_7D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_30D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_ALL_TIME' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHANGE_1D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DATA_CHART_BREAKDOWN' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEFILLAMA_PERP_METRICS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TOTAL_7D'\n and\n relation_column_type not in ('FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "total_7d", "file_key_name": "models.silver__defillama_perp_metrics", "attached_node": "model.external_models.silver__defillama_perp_metrics"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_30d__FLOAT.27077c7b0e": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["FLOAT"], "column_name": "total_30d", "model": "{{ get_where_subquery(ref('silver__defillama_perp_metrics')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_30d__FLOAT", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_11951687ac5c7ac7a6b7297571422344.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_metrics.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_30d__FLOAT.27077c7b0e", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_30d__FLOAT"], "alias": "defillama_perp_metrics_total_30d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_11951687ac5c7ac7a6b7297571422344", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_11951687ac5c7ac7a6b7297571422344"}, "created_at": 1760113501.8953576, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_silver.defillama_perp_metrics_total_30d", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_11951687ac5c7ac7a6b7297571422344\") }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_metrics.yml/dbt_expectations_expect_column_11951687ac5c7ac7a6b7297571422344.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('TIMESTAMP' as TEXT) as relation_column,\n cast('DATE' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DISPLAY_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODULE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LOGO' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAINS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('METHODOLOGY_URL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('METHODOLOGY' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_PROTOCOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_SLUG' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LINKED_PROTOCOLS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_24H' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_48H_TO_24H' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_7D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_30D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_ALL_TIME' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHANGE_1D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DATA_CHART_BREAKDOWN' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEFILLAMA_PERP_METRICS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TOTAL_30D'\n and\n relation_column_type not in ('FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "total_30d", "file_key_name": "models.silver__defillama_perp_metrics", "attached_node": "model.external_models.silver__defillama_perp_metrics"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_all_time__FLOAT.896c72813b": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["FLOAT"], "column_name": "total_all_time", "model": "{{ get_where_subquery(ref('silver__defillama_perp_metrics')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_all_time__FLOAT", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_7fd51de68a5facddc0bfa0683bc8bcd2.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_metrics.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_all_time__FLOAT.896c72813b", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_all_time__FLOAT"], "alias": "defillama_perp_metrics_total_all_time", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_7fd51de68a5facddc0bfa0683bc8bcd2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_7fd51de68a5facddc0bfa0683bc8bcd2"}, "created_at": 1760113501.9003074, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_silver.defillama_perp_metrics_total_all_time", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_7fd51de68a5facddc0bfa0683bc8bcd2\") }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_metrics.yml/dbt_expectations_expect_column_7fd51de68a5facddc0bfa0683bc8bcd2.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('TIMESTAMP' as TEXT) as relation_column,\n cast('DATE' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DISPLAY_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODULE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LOGO' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAINS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('METHODOLOGY_URL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('METHODOLOGY' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_PROTOCOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_SLUG' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LINKED_PROTOCOLS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_24H' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_48H_TO_24H' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_7D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_30D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_ALL_TIME' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHANGE_1D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DATA_CHART_BREAKDOWN' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEFILLAMA_PERP_METRICS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'TOTAL_ALL_TIME'\n and\n relation_column_type not in ('FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "total_all_time", "file_key_name": "models.silver__defillama_perp_metrics", "attached_node": "model.external_models.silver__defillama_perp_metrics"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_change_1d__FLOAT.f2337eadc0": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["FLOAT"], "column_name": "change_1d", "model": "{{ get_where_subquery(ref('silver__defillama_perp_metrics')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_change_1d__FLOAT", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_68dfff61cd559ef4f5b49153773b1834.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_metrics.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_change_1d__FLOAT.f2337eadc0", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_change_1d__FLOAT"], "alias": "defillama_perp_metrics_change_1d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_68dfff61cd559ef4f5b49153773b1834", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_68dfff61cd559ef4f5b49153773b1834"}, "created_at": 1760113501.904906, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_silver.defillama_perp_metrics_change_1d", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_68dfff61cd559ef4f5b49153773b1834\") }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_metrics.yml/dbt_expectations_expect_column_68dfff61cd559ef4f5b49153773b1834.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('TIMESTAMP' as TEXT) as relation_column,\n cast('DATE' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DISPLAY_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODULE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LOGO' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAINS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('METHODOLOGY_URL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('METHODOLOGY' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_PROTOCOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_SLUG' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LINKED_PROTOCOLS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_24H' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_48H_TO_24H' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_7D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_30D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_ALL_TIME' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHANGE_1D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DATA_CHART_BREAKDOWN' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEFILLAMA_PERP_METRICS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'CHANGE_1D'\n and\n relation_column_type not in ('FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "change_1d", "file_key_name": "models.silver__defillama_perp_metrics", "attached_node": "model.external_models.silver__defillama_perp_metrics"}, "test.external_models.not_null_silver__defillama_perp_metrics_total_data_chart_breakdown.eeccb8e45f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "total_data_chart_breakdown", "model": "{{ get_where_subquery(ref('silver__defillama_perp_metrics')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_perp_metrics_total_data_chart_breakdown", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_per_4f68bf982d4fbcc41371d04e70cd8e69.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_metrics.yml", "unique_id": "test.external_models.not_null_silver__defillama_perp_metrics_total_data_chart_breakdown.eeccb8e45f", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_perp_metrics_total_data_chart_breakdown"], "alias": "defillama_perp_metrics_total_data_chart_breakdown", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver__defillama_per_4f68bf982d4fbcc41371d04e70cd8e69", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "not_null_silver__defillama_per_4f68bf982d4fbcc41371d04e70cd8e69"}, "created_at": 1760113501.9094684, "relation_name": "EXTERNAL.not_null_silver.defillama_perp_metrics_total_data_chart_breakdown", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver__defillama_per_4f68bf982d4fbcc41371d04e70cd8e69\") }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_metrics.yml/not_null_silver__defillama_per_4f68bf982d4fbcc41371d04e70cd8e69.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_perp_metrics\nwhere total_data_chart_breakdown is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "total_data_chart_breakdown", "file_key_name": "models.silver__defillama_perp_metrics", "attached_node": "model.external_models.silver__defillama_perp_metrics"}, "test.external_models.not_null_silver__defillama_perp_metrics_defillama_perp_metrics_id.ec9ff8860a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "defillama_perp_metrics_id", "model": "{{ get_where_subquery(ref('silver__defillama_perp_metrics')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_perp_metrics_defillama_perp_metrics_id", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_per_8329277ab87e5fad3fca5d0846a1ce6a.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_metrics.yml", "unique_id": "test.external_models.not_null_silver__defillama_perp_metrics_defillama_perp_metrics_id.ec9ff8860a", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_perp_metrics_defillama_perp_metrics_id"], "alias": "defillama_perp_metrics_defillama_perp_metrics_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver__defillama_per_8329277ab87e5fad3fca5d0846a1ce6a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "not_null_silver__defillama_per_8329277ab87e5fad3fca5d0846a1ce6a"}, "created_at": 1760113501.911312, "relation_name": "EXTERNAL.not_null_silver.defillama_perp_metrics_defillama_perp_metrics_id", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver__defillama_per_8329277ab87e5fad3fca5d0846a1ce6a\") }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_metrics.yml/not_null_silver__defillama_per_8329277ab87e5fad3fca5d0846a1ce6a.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_perp_metrics\nwhere defillama_perp_metrics_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "defillama_perp_metrics_id", "file_key_name": "models.silver__defillama_perp_metrics", "attached_node": "model.external_models.silver__defillama_perp_metrics"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics__inserted_timestamp__TIMESTAMP_NTZ.07b57d6775": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_inserted_timestamp", "model": "{{ get_where_subquery(ref('silver__defillama_perp_metrics')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics__inserted_timestamp__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_076661c804b20bc845709dfa39200a8c.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_metrics.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics__inserted_timestamp__TIMESTAMP_NTZ.07b57d6775", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics__inserted_timestamp__TIMESTAMP_NTZ"], "alias": "defillama_perp_metrics", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_076661c804b20bc845709dfa39200a8c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_076661c804b20bc845709dfa39200a8c"}, "created_at": 1760113501.913081, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_silver.defillama_perp_metrics", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_076661c804b20bc845709dfa39200a8c\") }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_metrics.yml/dbt_expectations_expect_column_076661c804b20bc845709dfa39200a8c.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('TIMESTAMP' as TEXT) as relation_column,\n cast('DATE' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DISPLAY_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODULE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LOGO' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAINS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('METHODOLOGY_URL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('METHODOLOGY' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_PROTOCOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_SLUG' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LINKED_PROTOCOLS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_24H' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_48H_TO_24H' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_7D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_30D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_ALL_TIME' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHANGE_1D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DATA_CHART_BREAKDOWN' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEFILLAMA_PERP_METRICS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_inserted_timestamp", "file_key_name": "models.silver__defillama_perp_metrics", "attached_node": "model.external_models.silver__defillama_perp_metrics"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_inserted_timestamp__TIMESTAMP_NTZ.c65246177c": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "inserted_timestamp", "model": "{{ get_where_subquery(ref('silver__defillama_perp_metrics')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_inserted_timestamp__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_682936291524d679667b7f0e24c59baf.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_metrics.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_inserted_timestamp__TIMESTAMP_NTZ.c65246177c", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_inserted_timestamp__TIMESTAMP_NTZ"], "alias": "defillama_perp_metrics_inserted_timestamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_682936291524d679667b7f0e24c59baf", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_682936291524d679667b7f0e24c59baf"}, "created_at": 1760113501.9176776, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_silver.defillama_perp_metrics_inserted_timestamp", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_682936291524d679667b7f0e24c59baf\") }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_metrics.yml/dbt_expectations_expect_column_682936291524d679667b7f0e24c59baf.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('TIMESTAMP' as TEXT) as relation_column,\n cast('DATE' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DISPLAY_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODULE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LOGO' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAINS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('METHODOLOGY_URL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('METHODOLOGY' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_PROTOCOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_SLUG' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LINKED_PROTOCOLS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_24H' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_48H_TO_24H' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_7D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_30D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_ALL_TIME' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHANGE_1D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DATA_CHART_BREAKDOWN' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEFILLAMA_PERP_METRICS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "inserted_timestamp", "file_key_name": "models.silver__defillama_perp_metrics", "attached_node": "model.external_models.silver__defillama_perp_metrics"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_modified_timestamp__TIMESTAMP_NTZ.5559f95279": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "modified_timestamp", "model": "{{ get_where_subquery(ref('silver__defillama_perp_metrics')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_modified_timestamp__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_e5fe253f43735b2ddee8b4419a50d3bc.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_metrics.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_modified_timestamp__TIMESTAMP_NTZ.5559f95279", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_modified_timestamp__TIMESTAMP_NTZ"], "alias": "defillama_perp_metrics_modified_timestamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_e5fe253f43735b2ddee8b4419a50d3bc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_e5fe253f43735b2ddee8b4419a50d3bc"}, "created_at": 1760113501.9221582, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_silver.defillama_perp_metrics_modified_timestamp", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_e5fe253f43735b2ddee8b4419a50d3bc\") }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_metrics.yml/dbt_expectations_expect_column_e5fe253f43735b2ddee8b4419a50d3bc.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('TIMESTAMP' as TEXT) as relation_column,\n cast('DATE' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DISPLAY_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODULE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LOGO' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAINS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('METHODOLOGY_URL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('METHODOLOGY' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_PROTOCOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_SLUG' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LINKED_PROTOCOLS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_24H' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_48H_TO_24H' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_7D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_30D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_ALL_TIME' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHANGE_1D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_DATA_CHART_BREAKDOWN' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEFILLAMA_PERP_METRICS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'MODIFIED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "modified_timestamp", "file_key_name": "models.silver__defillama_perp_metrics", "attached_node": "model.external_models.silver__defillama_perp_metrics"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_perp_metrics_protocol_id__timestamp.132646d40b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["protocol_id", "timestamp"], "model": "{{ get_where_subquery(ref('silver__defillama_perp_metrics')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__defillama_perp_metrics_protocol_id__timestamp", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_344068c9b4bb82df1e3211ac038520f4.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_metrics.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_perp_metrics_protocol_id__timestamp.132646d40b", "fqn": ["external_models", "defillama", "silver", "dbt_utils_unique_combination_of_columns_silver__defillama_perp_metrics_protocol_id__timestamp"], "alias": "defillama_perp_metrics_protocol_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_344068c9b4bb82df1e3211ac038520f4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_344068c9b4bb82df1e3211ac038520f4"}, "created_at": 1760113501.9265049, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_silver.defillama_perp_metrics_protocol_id", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_344068c9b4bb82df1e3211ac038520f4\") }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_metrics.yml/dbt_utils_unique_combination_o_344068c9b4bb82df1e3211ac038520f4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n protocol_id, timestamp\n from EXTERNAL.silver.defillama_perp_metrics\n group by protocol_id, timestamp\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__defillama_perp_metrics", "attached_node": "model.external_models.silver__defillama_perp_metrics"}, "test.external_models.not_null_silver__defillama_stablecoin_metrics__INSERTED_TIMESTAMP.e75bd7f082": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_stablecoin_metrics')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_stablecoin_metrics__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_sta_c2501bd9bfa5df2cd99f01166618be04.sql", "original_file_path": "models/defillama/silver/silver__defillama_stablecoin_metrics.yml", "unique_id": "test.external_models.not_null_silver__defillama_stablecoin_metrics__INSERTED_TIMESTAMP.e75bd7f082", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_stablecoin_metrics__INSERTED_TIMESTAMP"], "alias": "defillama_stablecoin_metrics", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver__defillama_sta_c2501bd9bfa5df2cd99f01166618be04", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "not_null_silver__defillama_sta_c2501bd9bfa5df2cd99f01166618be04"}, "created_at": 1760113501.932899, "relation_name": "EXTERNAL.not_null_silver.defillama_stablecoin_metrics", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver__defillama_sta_c2501bd9bfa5df2cd99f01166618be04\") }}", "language": "sql", "refs": [{"name": "silver__defillama_stablecoin_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_stablecoin_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_stablecoin_metrics.yml/not_null_silver__defillama_sta_c2501bd9bfa5df2cd99f01166618be04.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_stablecoin_metrics\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_stablecoin_metrics", "attached_node": "model.external_models.silver__defillama_stablecoin_metrics"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_stablecoin_metrics__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.0771cb7209": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_stablecoin_metrics')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_stablecoin_metrics__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_eaa735c95452403b8ee357626c88887d.sql", "original_file_path": "models/defillama/silver/silver__defillama_stablecoin_metrics.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_stablecoin_metrics__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.0771cb7209", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_stablecoin_metrics__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "defillama_stablecoin_metrics", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_eaa735c95452403b8ee357626c88887d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_eaa735c95452403b8ee357626c88887d"}, "created_at": 1760113501.9347448, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_silver.defillama_stablecoin_metrics", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_eaa735c95452403b8ee357626c88887d\") }}", "language": "sql", "refs": [{"name": "silver__defillama_stablecoin_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_stablecoin_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_stablecoin_metrics.yml/dbt_expectations_expect_column_eaa735c95452403b8ee357626c88887d.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('CHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DATE_DAY' as TEXT) as relation_column,\n cast('DATE' as TEXT) as relation_column_type\n union all\n \n select\n cast('STABLECOIN_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_CIRCULATING_USD' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_MINTED_USD' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_CIRCULATING' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_BRIDGED_TO_USD' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_UNRELEASED' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('RUN_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARTITION_KEY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEFILLAMA_STABLECOIN_METRICS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_stablecoin_metrics", "attached_node": "model.external_models.silver__defillama_stablecoin_metrics"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_stablecoin_metrics__INSERTED_TIMESTAMP__day__2.f04ba5a494": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 2, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_stablecoin_metrics')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_stablecoin_metrics__INSERTED_TIMESTAMP__day__2", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_row_va_5be781615a77f8f869c74c4c5faf5a24.sql", "original_file_path": "models/defillama/silver/silver__defillama_stablecoin_metrics.yml", "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_stablecoin_metrics__INSERTED_TIMESTAMP__day__2.f04ba5a494", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_stablecoin_metrics__INSERTED_TIMESTAMP__day__2"], "alias": "defillama_stablecoin_metrics", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_5be781615a77f8f869c74c4c5faf5a24", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_5be781615a77f8f869c74c4c5faf5a24"}, "created_at": 1760113501.9393694, "relation_name": "EXTERNAL.dbt_expectations_expect_row_values_to_have_recent_data_silver.defillama_stablecoin_metrics", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_5be781615a77f8f869c74c4c5faf5a24\") }}", "language": "sql", "refs": [{"name": "silver__defillama_stablecoin_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_stablecoin_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_stablecoin_metrics.yml/dbt_expectations_expect_row_va_5be781615a77f8f869c74c4c5faf5a24.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(_INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n EXTERNAL.silver.defillama_stablecoin_metrics\n where\n -- to exclude erroneous future dates\n cast(_INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_stablecoin_metrics", "attached_node": "model.external_models.silver__defillama_stablecoin_metrics"}, "test.external_models.not_null_silver__defillama_stablecoin_metrics_DATE_DAY.897365ca0a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DATE_DAY", "model": "{{ get_where_subquery(ref('silver__defillama_stablecoin_metrics')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_stablecoin_metrics_DATE_DAY", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_stablecoin_metrics_DATE_DAY.sql", "original_file_path": "models/defillama/silver/silver__defillama_stablecoin_metrics.yml", "unique_id": "test.external_models.not_null_silver__defillama_stablecoin_metrics_DATE_DAY.897365ca0a", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_stablecoin_metrics_DATE_DAY"], "alias": "defillama_stablecoin_metrics_DATE_DAY", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.9452755, "relation_name": "EXTERNAL.not_null_silver.defillama_stablecoin_metrics_DATE_DAY", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_stablecoin_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_stablecoin_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_stablecoin_metrics.yml/not_null_silver__defillama_stablecoin_metrics_DATE_DAY.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_stablecoin_metrics\nwhere DATE_DAY is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DATE_DAY", "file_key_name": "models.silver__defillama_stablecoin_metrics", "attached_node": "model.external_models.silver__defillama_stablecoin_metrics"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_stablecoin_metrics_DATE_DAY__DATE.2ef937fbbe": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["DATE"], "column_name": "DATE_DAY", "model": "{{ get_where_subquery(ref('silver__defillama_stablecoin_metrics')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_stablecoin_metrics_DATE_DAY__DATE", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_0ee694189aaa7e430c5af65c35601d32.sql", "original_file_path": "models/defillama/silver/silver__defillama_stablecoin_metrics.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_stablecoin_metrics_DATE_DAY__DATE.2ef937fbbe", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_stablecoin_metrics_DATE_DAY__DATE"], "alias": "defillama_stablecoin_metrics_DATE_DAY", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0ee694189aaa7e430c5af65c35601d32", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_0ee694189aaa7e430c5af65c35601d32"}, "created_at": 1760113501.9470234, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_silver.defillama_stablecoin_metrics_DATE_DAY", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0ee694189aaa7e430c5af65c35601d32\") }}", "language": "sql", "refs": [{"name": "silver__defillama_stablecoin_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_stablecoin_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_stablecoin_metrics.yml/dbt_expectations_expect_column_0ee694189aaa7e430c5af65c35601d32.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('CHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DATE_DAY' as TEXT) as relation_column,\n cast('DATE' as TEXT) as relation_column_type\n union all\n \n select\n cast('STABLECOIN_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_CIRCULATING_USD' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_MINTED_USD' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_CIRCULATING' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_BRIDGED_TO_USD' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_UNRELEASED' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('RUN_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARTITION_KEY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEFILLAMA_STABLECOIN_METRICS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'DATE_DAY'\n and\n relation_column_type not in ('DATE')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DATE_DAY", "file_key_name": "models.silver__defillama_stablecoin_metrics", "attached_node": "model.external_models.silver__defillama_stablecoin_metrics"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_stablecoin_metrics_DATE_DAY__day__2.62280edb3d": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 2, "column_name": "DATE_DAY", "model": "{{ get_where_subquery(ref('silver__defillama_stablecoin_metrics')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_stablecoin_metrics_DATE_DAY__day__2", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_row_va_3c8acf5ab86e1efbf750df770c1fa6d3.sql", "original_file_path": "models/defillama/silver/silver__defillama_stablecoin_metrics.yml", "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_stablecoin_metrics_DATE_DAY__day__2.62280edb3d", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_stablecoin_metrics_DATE_DAY__day__2"], "alias": "defillama_stablecoin_metrics_DATE_DAY", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_3c8acf5ab86e1efbf750df770c1fa6d3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_3c8acf5ab86e1efbf750df770c1fa6d3"}, "created_at": 1760113501.9515672, "relation_name": "EXTERNAL.dbt_expectations_expect_row_values_to_have_recent_data_silver.defillama_stablecoin_metrics_DATE_DAY", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_3c8acf5ab86e1efbf750df770c1fa6d3\") }}", "language": "sql", "refs": [{"name": "silver__defillama_stablecoin_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_stablecoin_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_stablecoin_metrics.yml/dbt_expectations_expect_row_va_3c8acf5ab86e1efbf750df770c1fa6d3.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(DATE_DAY as timestamp_ntz)) as max_timestamp\n from\n EXTERNAL.silver.defillama_stablecoin_metrics\n where\n -- to exclude erroneous future dates\n cast(DATE_DAY as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DATE_DAY", "file_key_name": "models.silver__defillama_stablecoin_metrics", "attached_node": "model.external_models.silver__defillama_stablecoin_metrics"}, "test.external_models.not_null_silver__defillama_stablecoin_metrics_DEFILLAMA_STABLECOIN_METRICS_ID.1e22190956": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DEFILLAMA_STABLECOIN_METRICS_ID", "model": "{{ get_where_subquery(ref('silver__defillama_stablecoin_metrics')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_stablecoin_metrics_DEFILLAMA_STABLECOIN_METRICS_ID", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_sta_eb6950728118817822fea64a8359d766.sql", "original_file_path": "models/defillama/silver/silver__defillama_stablecoin_metrics.yml", "unique_id": "test.external_models.not_null_silver__defillama_stablecoin_metrics_DEFILLAMA_STABLECOIN_METRICS_ID.1e22190956", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_stablecoin_metrics_DEFILLAMA_STABLECOIN_METRICS_ID"], "alias": "defillama_stablecoin_metrics_DEFILLAMA_STABLECOIN_METRICS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver__defillama_sta_eb6950728118817822fea64a8359d766", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "not_null_silver__defillama_sta_eb6950728118817822fea64a8359d766"}, "created_at": 1760113501.9574046, "relation_name": "EXTERNAL.not_null_silver.defillama_stablecoin_metrics_DEFILLAMA_STABLECOIN_METRICS_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver__defillama_sta_eb6950728118817822fea64a8359d766\") }}", "language": "sql", "refs": [{"name": "silver__defillama_stablecoin_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_stablecoin_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_stablecoin_metrics.yml/not_null_silver__defillama_sta_eb6950728118817822fea64a8359d766.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_stablecoin_metrics\nwhere DEFILLAMA_STABLECOIN_METRICS_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DEFILLAMA_STABLECOIN_METRICS_ID", "file_key_name": "models.silver__defillama_stablecoin_metrics", "attached_node": "model.external_models.silver__defillama_stablecoin_metrics"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_stablecoin_metrics_DEFILLAMA_STABLECOIN_METRICS_ID.658e9db88b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["DEFILLAMA_STABLECOIN_METRICS_ID"], "model": "{{ get_where_subquery(ref('silver__defillama_stablecoin_metrics')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__defillama_stablecoin_metrics_DEFILLAMA_STABLECOIN_METRICS_ID", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_4c4ec3d37b6f45dcd3317a1a87590950.sql", "original_file_path": "models/defillama/silver/silver__defillama_stablecoin_metrics.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_stablecoin_metrics_DEFILLAMA_STABLECOIN_METRICS_ID.658e9db88b", "fqn": ["external_models", "defillama", "silver", "dbt_utils_unique_combination_of_columns_silver__defillama_stablecoin_metrics_DEFILLAMA_STABLECOIN_METRICS_ID"], "alias": "defillama_stablecoin_metrics_DEFILLAMA_STABLECOIN_METRICS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4c4ec3d37b6f45dcd3317a1a87590950", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_4c4ec3d37b6f45dcd3317a1a87590950"}, "created_at": 1760113501.959207, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_silver.defillama_stablecoin_metrics_DEFILLAMA_STABLECOIN_METRICS_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4c4ec3d37b6f45dcd3317a1a87590950\") }}", "language": "sql", "refs": [{"name": "silver__defillama_stablecoin_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_stablecoin_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_stablecoin_metrics.yml/dbt_utils_unique_combination_o_4c4ec3d37b6f45dcd3317a1a87590950.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n DEFILLAMA_STABLECOIN_METRICS_ID\n from EXTERNAL.silver.defillama_stablecoin_metrics\n group by DEFILLAMA_STABLECOIN_METRICS_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__defillama_stablecoin_metrics", "attached_node": "model.external_models.silver__defillama_stablecoin_metrics"}, "test.external_models.not_null_silver__defillama_usdt_usdc_supply__INSERTED_TIMESTAMP.f669b526df": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_usdt_usdc_supply')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_usdt_usdc_supply__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_usdt_usdc_supply__INSERTED_TIMESTAMP.sql", "original_file_path": "models/defillama/silver/silver__defillama_usdt_usdc_supply.yml", "unique_id": "test.external_models.not_null_silver__defillama_usdt_usdc_supply__INSERTED_TIMESTAMP.f669b526df", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_usdt_usdc_supply__INSERTED_TIMESTAMP"], "alias": "defillama_usdt_usdc_supply", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.9646509, "relation_name": "EXTERNAL.not_null_silver.defillama_usdt_usdc_supply", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_usdt_usdc_supply", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_usdt_usdc_supply"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_usdt_usdc_supply.yml/not_null_silver__defillama_usdt_usdc_supply__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_usdt_usdc_supply\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_usdt_usdc_supply", "attached_node": "model.external_models.silver__defillama_usdt_usdc_supply"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_usdt_usdc_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.9f973f7fd3": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_usdt_usdc_supply')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_usdt_usdc_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_81e717a130cfd387a08bf4a0738cfc33.sql", "original_file_path": "models/defillama/silver/silver__defillama_usdt_usdc_supply.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_usdt_usdc_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.9f973f7fd3", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_usdt_usdc_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "defillama_usdt_usdc_supply", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_81e717a130cfd387a08bf4a0738cfc33", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_81e717a130cfd387a08bf4a0738cfc33"}, "created_at": 1760113501.9664419, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_silver.defillama_usdt_usdc_supply", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_81e717a130cfd387a08bf4a0738cfc33\") }}", "language": "sql", "refs": [{"name": "silver__defillama_usdt_usdc_supply", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_usdt_usdc_supply"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_usdt_usdc_supply.yml/dbt_expectations_expect_column_81e717a130cfd387a08bf4a0738cfc33.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('DATE' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('STABLECOIN_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('STABLECOIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_BRIDGED_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_CIRCULATING' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOTAL_CIRCULATING_USD' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEFILLAMA_USDC_USDT_SUPPLY_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_usdt_usdc_supply", "attached_node": "model.external_models.silver__defillama_usdt_usdc_supply"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_usdt_usdc_supply__INSERTED_TIMESTAMP__day__2.08f1f58f98": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 2, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_usdt_usdc_supply')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_usdt_usdc_supply__INSERTED_TIMESTAMP__day__2", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_row_va_fa003046597b4e7965dd2b4f7b536c95.sql", "original_file_path": "models/defillama/silver/silver__defillama_usdt_usdc_supply.yml", "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_usdt_usdc_supply__INSERTED_TIMESTAMP__day__2.08f1f58f98", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_usdt_usdc_supply__INSERTED_TIMESTAMP__day__2"], "alias": "defillama_usdt_usdc_supply", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_fa003046597b4e7965dd2b4f7b536c95", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_fa003046597b4e7965dd2b4f7b536c95"}, "created_at": 1760113501.9709697, "relation_name": "EXTERNAL.dbt_expectations_expect_row_values_to_have_recent_data_silver.defillama_usdt_usdc_supply", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_fa003046597b4e7965dd2b4f7b536c95\") }}", "language": "sql", "refs": [{"name": "silver__defillama_usdt_usdc_supply", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_usdt_usdc_supply"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_usdt_usdc_supply.yml/dbt_expectations_expect_row_va_fa003046597b4e7965dd2b4f7b536c95.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(_INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n EXTERNAL.silver.defillama_usdt_usdc_supply\n where\n -- to exclude erroneous future dates\n cast(_INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_usdt_usdc_supply", "attached_node": "model.external_models.silver__defillama_usdt_usdc_supply"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_usdt_usdc_supply_DEFILLAMA_USDC_USDT_SUPPLY_ID.7a5a092f00": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["DEFILLAMA_USDC_USDT_SUPPLY_ID"], "model": "{{ get_where_subquery(ref('silver__defillama_usdt_usdc_supply')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__defillama_usdt_usdc_supply_DEFILLAMA_USDC_USDT_SUPPLY_ID", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_3dfe87ed82249aa7005cb938844f1589.sql", "original_file_path": "models/defillama/silver/silver__defillama_usdt_usdc_supply.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_usdt_usdc_supply_DEFILLAMA_USDC_USDT_SUPPLY_ID.7a5a092f00", "fqn": ["external_models", "defillama", "silver", "dbt_utils_unique_combination_of_columns_silver__defillama_usdt_usdc_supply_DEFILLAMA_USDC_USDT_SUPPLY_ID"], "alias": "defillama_usdt_usdc_supply_DEFILLAMA_USDC_USDT_SUPPLY_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3dfe87ed82249aa7005cb938844f1589", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_3dfe87ed82249aa7005cb938844f1589"}, "created_at": 1760113501.9768634, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_silver.defillama_usdt_usdc_supply_DEFILLAMA_USDC_USDT_SUPPLY_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3dfe87ed82249aa7005cb938844f1589\") }}", "language": "sql", "refs": [{"name": "silver__defillama_usdt_usdc_supply", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_usdt_usdc_supply"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_usdt_usdc_supply.yml/dbt_utils_unique_combination_o_3dfe87ed82249aa7005cb938844f1589.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n DEFILLAMA_USDC_USDT_SUPPLY_ID\n from EXTERNAL.silver.defillama_usdt_usdc_supply\n group by DEFILLAMA_USDC_USDT_SUPPLY_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__defillama_usdt_usdc_supply", "attached_node": "model.external_models.silver__defillama_usdt_usdc_supply"}, "test.external_models.not_null_silver__defillama_protocol_tvl__INSERTED_TIMESTAMP.df3fc95018": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_protocol_tvl')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_protocol_tvl__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_protocol_tvl__INSERTED_TIMESTAMP.sql", "original_file_path": "models/defillama/silver/silver__defillama_protocol_tvl.yml", "unique_id": "test.external_models.not_null_silver__defillama_protocol_tvl__INSERTED_TIMESTAMP.df3fc95018", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_protocol_tvl__INSERTED_TIMESTAMP"], "alias": "defillama_protocol_tvl", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.9837432, "relation_name": "EXTERNAL.not_null_silver.defillama_protocol_tvl", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_protocol_tvl", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_protocol_tvl"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_protocol_tvl.yml/not_null_silver__defillama_protocol_tvl__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_protocol_tvl\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_protocol_tvl", "attached_node": "model.external_models.silver__defillama_protocol_tvl"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocol_tvl__INSERTED_TIMESTAMP__day__1.fcd40b4f7c": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 1, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_protocol_tvl')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocol_tvl__INSERTED_TIMESTAMP__day__1", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_row_va_64070f0d9401a9a4d99893284bd1f9bd.sql", "original_file_path": "models/defillama/silver/silver__defillama_protocol_tvl.yml", "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocol_tvl__INSERTED_TIMESTAMP__day__1.fcd40b4f7c", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocol_tvl__INSERTED_TIMESTAMP__day__1"], "alias": "defillama_protocol_tvl", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_64070f0d9401a9a4d99893284bd1f9bd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_64070f0d9401a9a4d99893284bd1f9bd"}, "created_at": 1760113501.9855952, "relation_name": "EXTERNAL.dbt_expectations_expect_row_values_to_have_recent_data_silver.defillama_protocol_tvl", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_64070f0d9401a9a4d99893284bd1f9bd\") }}", "language": "sql", "refs": [{"name": "silver__defillama_protocol_tvl", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_protocol_tvl"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_protocol_tvl.yml/dbt_expectations_expect_row_va_64070f0d9401a9a4d99893284bd1f9bd.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(_INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n EXTERNAL.silver.defillama_protocol_tvl\n where\n -- to exclude erroneous future dates\n cast(_INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -1,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_protocol_tvl", "attached_node": "model.external_models.silver__defillama_protocol_tvl"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocol_tvl__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.67afb5c2b5": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_protocol_tvl')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocol_tvl__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_09b880a2a5bb76ae5d9236590f347ac9.sql", "original_file_path": "models/defillama/silver/silver__defillama_protocol_tvl.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocol_tvl__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.67afb5c2b5", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocol_tvl__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "defillama_protocol_tvl", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_09b880a2a5bb76ae5d9236590f347ac9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_09b880a2a5bb76ae5d9236590f347ac9"}, "created_at": 1760113501.9914434, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_silver.defillama_protocol_tvl", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_09b880a2a5bb76ae5d9236590f347ac9\") }}", "language": "sql", "refs": [{"name": "silver__defillama_protocol_tvl", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_protocol_tvl"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_protocol_tvl.yml/dbt_expectations_expect_column_09b880a2a5bb76ae5d9236590f347ac9.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('TIMESTAMP' as TEXT) as relation_column,\n cast('DATE' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MARKET_CAP' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TVL' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TVL_PREV_DAY' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TVL_PREV_WEEK' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TVL_PREV_MONTH' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAIN_TVL' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAIN_TVL_PREV_DAY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAIN_TVL_PREV_WEEK' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAIN_TVL_PREV_MONTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEFILLAMA_TVL_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_protocol_tvl", "attached_node": "model.external_models.silver__defillama_protocol_tvl"}, "test.external_models.not_null_silver__defillama_protocol_tvl_DEFILLAMA_TVL_ID.42ecdf436d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DEFILLAMA_TVL_ID", "model": "{{ get_where_subquery(ref('silver__defillama_protocol_tvl')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_protocol_tvl_DEFILLAMA_TVL_ID", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_protocol_tvl_DEFILLAMA_TVL_ID.sql", "original_file_path": "models/defillama/silver/silver__defillama_protocol_tvl.yml", "unique_id": "test.external_models.not_null_silver__defillama_protocol_tvl_DEFILLAMA_TVL_ID.42ecdf436d", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_protocol_tvl_DEFILLAMA_TVL_ID"], "alias": "defillama_protocol_tvl_DEFILLAMA_TVL_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113501.9959445, "relation_name": "EXTERNAL.not_null_silver.defillama_protocol_tvl_DEFILLAMA_TVL_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_protocol_tvl", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_protocol_tvl"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_protocol_tvl.yml/not_null_silver__defillama_protocol_tvl_DEFILLAMA_TVL_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_protocol_tvl\nwhere DEFILLAMA_TVL_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DEFILLAMA_TVL_ID", "file_key_name": "models.silver__defillama_protocol_tvl", "attached_node": "model.external_models.silver__defillama_protocol_tvl"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_protocol_tvl_DEFILLAMA_TVL_ID.8db584bebb": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["DEFILLAMA_TVL_ID"], "model": "{{ get_where_subquery(ref('silver__defillama_protocol_tvl')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__defillama_protocol_tvl_DEFILLAMA_TVL_ID", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_3acd7c85d516a0f8b17f132281c0540d.sql", "original_file_path": "models/defillama/silver/silver__defillama_protocol_tvl.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_protocol_tvl_DEFILLAMA_TVL_ID.8db584bebb", "fqn": ["external_models", "defillama", "silver", "dbt_utils_unique_combination_of_columns_silver__defillama_protocol_tvl_DEFILLAMA_TVL_ID"], "alias": "defillama_protocol_tvl_DEFILLAMA_TVL_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3acd7c85d516a0f8b17f132281c0540d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_3acd7c85d516a0f8b17f132281c0540d"}, "created_at": 1760113501.9977899, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_silver.defillama_protocol_tvl_DEFILLAMA_TVL_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3acd7c85d516a0f8b17f132281c0540d\") }}", "language": "sql", "refs": [{"name": "silver__defillama_protocol_tvl", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_protocol_tvl"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_protocol_tvl.yml/dbt_utils_unique_combination_o_3acd7c85d516a0f8b17f132281c0540d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n DEFILLAMA_TVL_ID\n from EXTERNAL.silver.defillama_protocol_tvl\n group by DEFILLAMA_TVL_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__defillama_protocol_tvl", "attached_node": "model.external_models.silver__defillama_protocol_tvl"}, "test.external_models.not_null_silver__defillama_perp_daily_volume_date.ed62238679": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date", "model": "{{ get_where_subquery(ref('silver__defillama_perp_daily_volume')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_perp_daily_volume_date", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_perp_daily_volume_date.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_daily_volume.yml", "unique_id": "test.external_models.not_null_silver__defillama_perp_daily_volume_date.ed62238679", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_perp_daily_volume_date"], "alias": "defillama_perp_daily_volume_date", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.005776, "relation_name": "EXTERNAL.not_null_silver.defillama_perp_daily_volume_date", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_daily_volume", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_daily_volume"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_daily_volume.yml/not_null_silver__defillama_perp_daily_volume_date.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_perp_daily_volume\nwhere date is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date", "file_key_name": "models.silver__defillama_perp_daily_volume", "attached_node": "model.external_models.silver__defillama_perp_daily_volume"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_date__DATE.fb8b5499bd": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["DATE"], "column_name": "date", "model": "{{ get_where_subquery(ref('silver__defillama_perp_daily_volume')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_date__DATE", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_29d88e6aec996372f3b2845d61b3304b.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_daily_volume.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_date__DATE.fb8b5499bd", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_date__DATE"], "alias": "defillama_perp_daily_volume_date", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_29d88e6aec996372f3b2845d61b3304b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_29d88e6aec996372f3b2845d61b3304b"}, "created_at": 1760113502.0076237, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_silver.defillama_perp_daily_volume_date", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_29d88e6aec996372f3b2845d61b3304b\") }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_daily_volume", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_daily_volume"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_daily_volume.yml/dbt_expectations_expect_column_29d88e6aec996372f3b2845d61b3304b.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('DATE' as TEXT) as relation_column,\n cast('DATE' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_SLUG' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOLUME' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEFILLAMA_PERP_METRICS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEFILLAMA_PERP_DAILY_VOLUME_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'DATE'\n and\n relation_column_type not in ('DATE')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date", "file_key_name": "models.silver__defillama_perp_daily_volume", "attached_node": "model.external_models.silver__defillama_perp_daily_volume"}, "test.external_models.not_null_silver__defillama_perp_daily_volume_chain.45bd739186": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "chain", "model": "{{ get_where_subquery(ref('silver__defillama_perp_daily_volume')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_perp_daily_volume_chain", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_perp_daily_volume_chain.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_daily_volume.yml", "unique_id": "test.external_models.not_null_silver__defillama_perp_daily_volume_chain.45bd739186", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_perp_daily_volume_chain"], "alias": "defillama_perp_daily_volume_chain", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.0121026, "relation_name": "EXTERNAL.not_null_silver.defillama_perp_daily_volume_chain", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_daily_volume", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_daily_volume"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_daily_volume.yml/not_null_silver__defillama_perp_daily_volume_chain.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_perp_daily_volume\nwhere chain is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "chain", "file_key_name": "models.silver__defillama_perp_daily_volume", "attached_node": "model.external_models.silver__defillama_perp_daily_volume"}, "test.external_models.not_null_silver__defillama_perp_daily_volume_protocol_id.cdcfe05028": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "protocol_id", "model": "{{ get_where_subquery(ref('silver__defillama_perp_daily_volume')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_perp_daily_volume_protocol_id", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_perp_daily_volume_protocol_id.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_daily_volume.yml", "unique_id": "test.external_models.not_null_silver__defillama_perp_daily_volume_protocol_id.cdcfe05028", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_perp_daily_volume_protocol_id"], "alias": "defillama_perp_daily_volume_protocol_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.013946, "relation_name": "EXTERNAL.not_null_silver.defillama_perp_daily_volume_protocol_id", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_daily_volume", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_daily_volume"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_daily_volume.yml/not_null_silver__defillama_perp_daily_volume_protocol_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_perp_daily_volume\nwhere protocol_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "protocol_id", "file_key_name": "models.silver__defillama_perp_daily_volume", "attached_node": "model.external_models.silver__defillama_perp_daily_volume"}, "test.external_models.not_null_silver__defillama_perp_daily_volume_protocol_slug.5e56702a0d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "protocol_slug", "model": "{{ get_where_subquery(ref('silver__defillama_perp_daily_volume')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_perp_daily_volume_protocol_slug", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_perp_daily_volume_protocol_slug.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_daily_volume.yml", "unique_id": "test.external_models.not_null_silver__defillama_perp_daily_volume_protocol_slug.5e56702a0d", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_perp_daily_volume_protocol_slug"], "alias": "defillama_perp_daily_volume_protocol_slug", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.0157752, "relation_name": "EXTERNAL.not_null_silver.defillama_perp_daily_volume_protocol_slug", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_daily_volume", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_daily_volume"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_daily_volume.yml/not_null_silver__defillama_perp_daily_volume_protocol_slug.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_perp_daily_volume\nwhere protocol_slug is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "protocol_slug", "file_key_name": "models.silver__defillama_perp_daily_volume", "attached_node": "model.external_models.silver__defillama_perp_daily_volume"}, "test.external_models.not_null_silver__defillama_perp_daily_volume_protocol.d43869ecf4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "protocol", "model": "{{ get_where_subquery(ref('silver__defillama_perp_daily_volume')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_perp_daily_volume_protocol", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_perp_daily_volume_protocol.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_daily_volume.yml", "unique_id": "test.external_models.not_null_silver__defillama_perp_daily_volume_protocol.d43869ecf4", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_perp_daily_volume_protocol"], "alias": "defillama_perp_daily_volume_protocol", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.0175555, "relation_name": "EXTERNAL.not_null_silver.defillama_perp_daily_volume_protocol", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_daily_volume", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_daily_volume"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_daily_volume.yml/not_null_silver__defillama_perp_daily_volume_protocol.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_perp_daily_volume\nwhere protocol is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "protocol", "file_key_name": "models.silver__defillama_perp_daily_volume", "attached_node": "model.external_models.silver__defillama_perp_daily_volume"}, "test.external_models.not_null_silver__defillama_perp_daily_volume_volume.dda7a42480": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "volume", "model": "{{ get_where_subquery(ref('silver__defillama_perp_daily_volume')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_perp_daily_volume_volume", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_perp_daily_volume_volume.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_daily_volume.yml", "unique_id": "test.external_models.not_null_silver__defillama_perp_daily_volume_volume.dda7a42480", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_perp_daily_volume_volume"], "alias": "defillama_perp_daily_volume_volume", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.0193565, "relation_name": "EXTERNAL.not_null_silver.defillama_perp_daily_volume_volume", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_daily_volume", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_daily_volume"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_daily_volume.yml/not_null_silver__defillama_perp_daily_volume_volume.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_perp_daily_volume\nwhere volume is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "volume", "file_key_name": "models.silver__defillama_perp_daily_volume", "attached_node": "model.external_models.silver__defillama_perp_daily_volume"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_volume__FLOAT.227148bece": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["FLOAT"], "column_name": "volume", "model": "{{ get_where_subquery(ref('silver__defillama_perp_daily_volume')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_volume__FLOAT", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_49e3a1d13763a3d4c1187a71d53865a1.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_daily_volume.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_volume__FLOAT.227148bece", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_volume__FLOAT"], "alias": "defillama_perp_daily_volume_volume", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_49e3a1d13763a3d4c1187a71d53865a1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_49e3a1d13763a3d4c1187a71d53865a1"}, "created_at": 1760113502.021204, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_silver.defillama_perp_daily_volume_volume", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_49e3a1d13763a3d4c1187a71d53865a1\") }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_daily_volume", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_daily_volume"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_daily_volume.yml/dbt_expectations_expect_column_49e3a1d13763a3d4c1187a71d53865a1.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('DATE' as TEXT) as relation_column,\n cast('DATE' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_SLUG' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOLUME' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEFILLAMA_PERP_METRICS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEFILLAMA_PERP_DAILY_VOLUME_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'VOLUME'\n and\n relation_column_type not in ('FLOAT')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "volume", "file_key_name": "models.silver__defillama_perp_daily_volume", "attached_node": "model.external_models.silver__defillama_perp_daily_volume"}, "test.external_models.not_null_silver__defillama_perp_daily_volume_defillama_perp_metrics_id.fc9e7a49b1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "defillama_perp_metrics_id", "model": "{{ get_where_subquery(ref('silver__defillama_perp_daily_volume')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_perp_daily_volume_defillama_perp_metrics_id", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_per_f779e6b46fc213993c334d5311693fc1.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_daily_volume.yml", "unique_id": "test.external_models.not_null_silver__defillama_perp_daily_volume_defillama_perp_metrics_id.fc9e7a49b1", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_perp_daily_volume_defillama_perp_metrics_id"], "alias": "defillama_perp_daily_volume_defillama_perp_metrics_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver__defillama_per_f779e6b46fc213993c334d5311693fc1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "not_null_silver__defillama_per_f779e6b46fc213993c334d5311693fc1"}, "created_at": 1760113502.025815, "relation_name": "EXTERNAL.not_null_silver.defillama_perp_daily_volume_defillama_perp_metrics_id", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver__defillama_per_f779e6b46fc213993c334d5311693fc1\") }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_daily_volume", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_daily_volume"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_daily_volume.yml/not_null_silver__defillama_per_f779e6b46fc213993c334d5311693fc1.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_perp_daily_volume\nwhere defillama_perp_metrics_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "defillama_perp_metrics_id", "file_key_name": "models.silver__defillama_perp_daily_volume", "attached_node": "model.external_models.silver__defillama_perp_daily_volume"}, "test.external_models.not_null_silver__defillama_perp_daily_volume_defillama_perp_daily_volume_id.050418fda4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "defillama_perp_daily_volume_id", "model": "{{ get_where_subquery(ref('silver__defillama_perp_daily_volume')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_perp_daily_volume_defillama_perp_daily_volume_id", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_per_08f9c1685784995caf61707c57fd5b93.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_daily_volume.yml", "unique_id": "test.external_models.not_null_silver__defillama_perp_daily_volume_defillama_perp_daily_volume_id.050418fda4", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_perp_daily_volume_defillama_perp_daily_volume_id"], "alias": "defillama_perp_daily_volume_defillama_perp_daily_volume_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver__defillama_per_08f9c1685784995caf61707c57fd5b93", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "not_null_silver__defillama_per_08f9c1685784995caf61707c57fd5b93"}, "created_at": 1760113502.0276046, "relation_name": "EXTERNAL.not_null_silver.defillama_perp_daily_volume_defillama_perp_daily_volume_id", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver__defillama_per_08f9c1685784995caf61707c57fd5b93\") }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_daily_volume", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_daily_volume"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_daily_volume.yml/not_null_silver__defillama_per_08f9c1685784995caf61707c57fd5b93.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_perp_daily_volume\nwhere defillama_perp_daily_volume_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "defillama_perp_daily_volume_id", "file_key_name": "models.silver__defillama_perp_daily_volume", "attached_node": "model.external_models.silver__defillama_perp_daily_volume"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume__inserted_timestamp__TIMESTAMP_NTZ.a7334119d7": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_inserted_timestamp", "model": "{{ get_where_subquery(ref('silver__defillama_perp_daily_volume')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume__inserted_timestamp__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_2b1a3110af3f1994dacf88b2863c7efe.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_daily_volume.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume__inserted_timestamp__TIMESTAMP_NTZ.a7334119d7", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume__inserted_timestamp__TIMESTAMP_NTZ"], "alias": "defillama_perp_daily_volume", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_2b1a3110af3f1994dacf88b2863c7efe", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_2b1a3110af3f1994dacf88b2863c7efe"}, "created_at": 1760113502.0293531, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_silver.defillama_perp_daily_volume", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_2b1a3110af3f1994dacf88b2863c7efe\") }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_daily_volume", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_daily_volume"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_daily_volume.yml/dbt_expectations_expect_column_2b1a3110af3f1994dacf88b2863c7efe.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('DATE' as TEXT) as relation_column,\n cast('DATE' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_SLUG' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOLUME' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEFILLAMA_PERP_METRICS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEFILLAMA_PERP_DAILY_VOLUME_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_inserted_timestamp", "file_key_name": "models.silver__defillama_perp_daily_volume", "attached_node": "model.external_models.silver__defillama_perp_daily_volume"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_inserted_timestamp__TIMESTAMP_NTZ.f65eb01509": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "inserted_timestamp", "model": "{{ get_where_subquery(ref('silver__defillama_perp_daily_volume')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_inserted_timestamp__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_92fd74a07766eb90fa6f89d25bfadea4.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_daily_volume.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_inserted_timestamp__TIMESTAMP_NTZ.f65eb01509", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_inserted_timestamp__TIMESTAMP_NTZ"], "alias": "defillama_perp_daily_volume_inserted_timestamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_92fd74a07766eb90fa6f89d25bfadea4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_92fd74a07766eb90fa6f89d25bfadea4"}, "created_at": 1760113502.0338364, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_silver.defillama_perp_daily_volume_inserted_timestamp", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_92fd74a07766eb90fa6f89d25bfadea4\") }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_daily_volume", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_daily_volume"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_daily_volume.yml/dbt_expectations_expect_column_92fd74a07766eb90fa6f89d25bfadea4.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('DATE' as TEXT) as relation_column,\n cast('DATE' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_SLUG' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOLUME' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEFILLAMA_PERP_METRICS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEFILLAMA_PERP_DAILY_VOLUME_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "inserted_timestamp", "file_key_name": "models.silver__defillama_perp_daily_volume", "attached_node": "model.external_models.silver__defillama_perp_daily_volume"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_modified_timestamp__TIMESTAMP_NTZ.23255c8acd": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "modified_timestamp", "model": "{{ get_where_subquery(ref('silver__defillama_perp_daily_volume')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_modified_timestamp__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_b5d1342a8e9e29e9bad47b6e9c98c3dc.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_daily_volume.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_modified_timestamp__TIMESTAMP_NTZ.23255c8acd", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_modified_timestamp__TIMESTAMP_NTZ"], "alias": "defillama_perp_daily_volume_modified_timestamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_b5d1342a8e9e29e9bad47b6e9c98c3dc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_b5d1342a8e9e29e9bad47b6e9c98c3dc"}, "created_at": 1760113502.0380929, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_silver.defillama_perp_daily_volume_modified_timestamp", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_b5d1342a8e9e29e9bad47b6e9c98c3dc\") }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_daily_volume", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_daily_volume"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_daily_volume.yml/dbt_expectations_expect_column_b5d1342a8e9e29e9bad47b6e9c98c3dc.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('DATE' as TEXT) as relation_column,\n cast('DATE' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_SLUG' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOLUME' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEFILLAMA_PERP_METRICS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEFILLAMA_PERP_DAILY_VOLUME_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'MODIFIED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "modified_timestamp", "file_key_name": "models.silver__defillama_perp_daily_volume", "attached_node": "model.external_models.silver__defillama_perp_daily_volume"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_perp_daily_volume_protocol_id__date__chain.acc3fd514c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["protocol_id", "date", "chain"], "model": "{{ get_where_subquery(ref('silver__defillama_perp_daily_volume')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__defillama_perp_daily_volume_protocol_id__date__chain", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_975e1ec642ee1783124fe9f4d84d2c44.sql", "original_file_path": "models/defillama/silver/silver__defillama_perp_daily_volume.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_perp_daily_volume_protocol_id__date__chain.acc3fd514c", "fqn": ["external_models", "defillama", "silver", "dbt_utils_unique_combination_of_columns_silver__defillama_perp_daily_volume_protocol_id__date__chain"], "alias": "defillama_perp_daily_volume_protocol_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_975e1ec642ee1783124fe9f4d84d2c44", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_975e1ec642ee1783124fe9f4d84d2c44"}, "created_at": 1760113502.042628, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_silver.defillama_perp_daily_volume_protocol_id", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_975e1ec642ee1783124fe9f4d84d2c44\") }}", "language": "sql", "refs": [{"name": "silver__defillama_perp_daily_volume", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_perp_daily_volume"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_perp_daily_volume.yml/dbt_utils_unique_combination_o_975e1ec642ee1783124fe9f4d84d2c44.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n protocol_id, date, chain\n from EXTERNAL.silver.defillama_perp_daily_volume\n group by protocol_id, date, chain\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__defillama_perp_daily_volume", "attached_node": "model.external_models.silver__defillama_perp_daily_volume"}, "test.external_models.not_null_silver__defillama_investors_INVESTOR.2b2a8c6e9a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INVESTOR", "model": "{{ get_where_subquery(ref('silver__defillama_investors')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_investors_INVESTOR", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_investors_INVESTOR.sql", "original_file_path": "models/defillama/silver/silver__defillama_investors.yml", "unique_id": "test.external_models.not_null_silver__defillama_investors_INVESTOR.2b2a8c6e9a", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_investors_INVESTOR"], "alias": "defillama_investors_INVESTOR", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.0484316, "relation_name": "EXTERNAL.not_null_silver.defillama_investors_INVESTOR", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_investors", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_investors"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_investors.yml/not_null_silver__defillama_investors_INVESTOR.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_investors\nwhere INVESTOR is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INVESTOR", "file_key_name": "models.silver__defillama_investors", "attached_node": "model.external_models.silver__defillama_investors"}, "test.external_models.not_null_silver__defillama_investors__INSERTED_TIMESTAMP.a9348ff319": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_investors')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_investors__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_investors__INSERTED_TIMESTAMP.sql", "original_file_path": "models/defillama/silver/silver__defillama_investors.yml", "unique_id": "test.external_models.not_null_silver__defillama_investors__INSERTED_TIMESTAMP.a9348ff319", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_investors__INSERTED_TIMESTAMP"], "alias": "defillama_investors", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.0502634, "relation_name": "EXTERNAL.not_null_silver.defillama_investors", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_investors", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_investors"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_investors.yml/not_null_silver__defillama_investors__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_investors\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_investors", "attached_node": "model.external_models.silver__defillama_investors"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_investors_INVESTOR.a7623080b4": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["INVESTOR"], "model": "{{ get_where_subquery(ref('silver__defillama_investors')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__defillama_investors_INVESTOR", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_bc5509028931f8ce6d97e2eee83de695.sql", "original_file_path": "models/defillama/silver/silver__defillama_investors.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_investors_INVESTOR.a7623080b4", "fqn": ["external_models", "defillama", "silver", "dbt_utils_unique_combination_of_columns_silver__defillama_investors_INVESTOR"], "alias": "defillama_investors_INVESTOR", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_bc5509028931f8ce6d97e2eee83de695", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_bc5509028931f8ce6d97e2eee83de695"}, "created_at": 1760113502.0520494, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_silver.defillama_investors_INVESTOR", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_bc5509028931f8ce6d97e2eee83de695\") }}", "language": "sql", "refs": [{"name": "silver__defillama_investors", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_investors"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_investors.yml/dbt_utils_unique_combination_o_bc5509028931f8ce6d97e2eee83de695.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n INVESTOR\n from EXTERNAL.silver.defillama_investors\n group by INVESTOR\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__defillama_investors", "attached_node": "model.external_models.silver__defillama_investors"}, "test.external_models.not_null_silver__defillama_stablecoin_supply__INSERTED_TIMESTAMP.7e00b9d5c5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_stablecoin_supply')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_stablecoin_supply__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_sta_f7870ab9f642e76b437f7719cba29c0f.sql", "original_file_path": "models/defillama/silver/silver__defillama_stablecoin_supply.yml", "unique_id": "test.external_models.not_null_silver__defillama_stablecoin_supply__INSERTED_TIMESTAMP.7e00b9d5c5", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_stablecoin_supply__INSERTED_TIMESTAMP"], "alias": "defillama_stablecoin_supply", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver__defillama_sta_f7870ab9f642e76b437f7719cba29c0f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "not_null_silver__defillama_sta_f7870ab9f642e76b437f7719cba29c0f"}, "created_at": 1760113502.0579762, "relation_name": "EXTERNAL.not_null_silver.defillama_stablecoin_supply", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver__defillama_sta_f7870ab9f642e76b437f7719cba29c0f\") }}", "language": "sql", "refs": [{"name": "silver__defillama_stablecoin_supply", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_stablecoin_supply"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_stablecoin_supply.yml/not_null_silver__defillama_sta_f7870ab9f642e76b437f7719cba29c0f.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_stablecoin_supply\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_stablecoin_supply", "attached_node": "model.external_models.silver__defillama_stablecoin_supply"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_stablecoin_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.3653e5a1cf": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_stablecoin_supply')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_stablecoin_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_531be947b73963d79bf797ad223c8ebf.sql", "original_file_path": "models/defillama/silver/silver__defillama_stablecoin_supply.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_stablecoin_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.3653e5a1cf", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_stablecoin_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "defillama_stablecoin_supply", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_531be947b73963d79bf797ad223c8ebf", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_531be947b73963d79bf797ad223c8ebf"}, "created_at": 1760113502.0597975, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_silver.defillama_stablecoin_supply", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_531be947b73963d79bf797ad223c8ebf\") }}", "language": "sql", "refs": [{"name": "silver__defillama_stablecoin_supply", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_stablecoin_supply"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_stablecoin_supply.yml/dbt_expectations_expect_column_531be947b73963d79bf797ad223c8ebf.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STABLECOIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STABLECOIN_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAINS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PEG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CIRCULATING' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('MINTED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNRELEASED' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEFILLAMA_STABLECOIN_SUPPLY_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_stablecoin_supply", "attached_node": "model.external_models.silver__defillama_stablecoin_supply"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_stablecoin_supply__INSERTED_TIMESTAMP__day__2.8028729672": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 2, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_stablecoin_supply')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_stablecoin_supply__INSERTED_TIMESTAMP__day__2", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_row_va_d037e87a0031738c88855ae52ae75fad.sql", "original_file_path": "models/defillama/silver/silver__defillama_stablecoin_supply.yml", "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_stablecoin_supply__INSERTED_TIMESTAMP__day__2.8028729672", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_stablecoin_supply__INSERTED_TIMESTAMP__day__2"], "alias": "defillama_stablecoin_supply", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_d037e87a0031738c88855ae52ae75fad", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_d037e87a0031738c88855ae52ae75fad"}, "created_at": 1760113502.064312, "relation_name": "EXTERNAL.dbt_expectations_expect_row_values_to_have_recent_data_silver.defillama_stablecoin_supply", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_d037e87a0031738c88855ae52ae75fad\") }}", "language": "sql", "refs": [{"name": "silver__defillama_stablecoin_supply", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_stablecoin_supply"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_stablecoin_supply.yml/dbt_expectations_expect_row_va_d037e87a0031738c88855ae52ae75fad.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(_INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n EXTERNAL.silver.defillama_stablecoin_supply\n where\n -- to exclude erroneous future dates\n cast(_INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_stablecoin_supply", "attached_node": "model.external_models.silver__defillama_stablecoin_supply"}, "test.external_models.not_null_silver__defillama_stablecoin_supply_DEFILLAMA_STABLECOIN_SUPPLY_ID.072450f5e2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DEFILLAMA_STABLECOIN_SUPPLY_ID", "model": "{{ get_where_subquery(ref('silver__defillama_stablecoin_supply')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_stablecoin_supply_DEFILLAMA_STABLECOIN_SUPPLY_ID", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_sta_7160e27bbb225183dc9f05a1256f71c5.sql", "original_file_path": "models/defillama/silver/silver__defillama_stablecoin_supply.yml", "unique_id": "test.external_models.not_null_silver__defillama_stablecoin_supply_DEFILLAMA_STABLECOIN_SUPPLY_ID.072450f5e2", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_stablecoin_supply_DEFILLAMA_STABLECOIN_SUPPLY_ID"], "alias": "defillama_stablecoin_supply_DEFILLAMA_STABLECOIN_SUPPLY_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver__defillama_sta_7160e27bbb225183dc9f05a1256f71c5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "not_null_silver__defillama_sta_7160e27bbb225183dc9f05a1256f71c5"}, "created_at": 1760113502.0701592, "relation_name": "EXTERNAL.not_null_silver.defillama_stablecoin_supply_DEFILLAMA_STABLECOIN_SUPPLY_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver__defillama_sta_7160e27bbb225183dc9f05a1256f71c5\") }}", "language": "sql", "refs": [{"name": "silver__defillama_stablecoin_supply", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_stablecoin_supply"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_stablecoin_supply.yml/not_null_silver__defillama_sta_7160e27bbb225183dc9f05a1256f71c5.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_stablecoin_supply\nwhere DEFILLAMA_STABLECOIN_SUPPLY_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DEFILLAMA_STABLECOIN_SUPPLY_ID", "file_key_name": "models.silver__defillama_stablecoin_supply", "attached_node": "model.external_models.silver__defillama_stablecoin_supply"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_stablecoin_supply_DEFILLAMA_STABLECOIN_SUPPLY_ID.7bf8bbe21c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["DEFILLAMA_STABLECOIN_SUPPLY_ID"], "model": "{{ get_where_subquery(ref('silver__defillama_stablecoin_supply')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__defillama_stablecoin_supply_DEFILLAMA_STABLECOIN_SUPPLY_ID", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_7767b0dc55f5e376b599af4438baf6d1.sql", "original_file_path": "models/defillama/silver/silver__defillama_stablecoin_supply.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_stablecoin_supply_DEFILLAMA_STABLECOIN_SUPPLY_ID.7bf8bbe21c", "fqn": ["external_models", "defillama", "silver", "dbt_utils_unique_combination_of_columns_silver__defillama_stablecoin_supply_DEFILLAMA_STABLECOIN_SUPPLY_ID"], "alias": "defillama_stablecoin_supply_DEFILLAMA_STABLECOIN_SUPPLY_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7767b0dc55f5e376b599af4438baf6d1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_7767b0dc55f5e376b599af4438baf6d1"}, "created_at": 1760113502.071949, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_silver.defillama_stablecoin_supply_DEFILLAMA_STABLECOIN_SUPPLY_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7767b0dc55f5e376b599af4438baf6d1\") }}", "language": "sql", "refs": [{"name": "silver__defillama_stablecoin_supply", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_stablecoin_supply"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_stablecoin_supply.yml/dbt_utils_unique_combination_o_7767b0dc55f5e376b599af4438baf6d1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n DEFILLAMA_STABLECOIN_SUPPLY_ID\n from EXTERNAL.silver.defillama_stablecoin_supply\n group by DEFILLAMA_STABLECOIN_SUPPLY_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__defillama_stablecoin_supply", "attached_node": "model.external_models.silver__defillama_stablecoin_supply"}, "test.external_models.not_null_silver__defillama_dex_volume_CHAIN.99ef0dec7d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CHAIN", "model": "{{ get_where_subquery(ref('silver__defillama_dex_volume')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_dex_volume_CHAIN", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_dex_volume_CHAIN.sql", "original_file_path": "models/defillama/silver/silver__defillama_dex_volume.yml", "unique_id": "test.external_models.not_null_silver__defillama_dex_volume_CHAIN.99ef0dec7d", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_dex_volume_CHAIN"], "alias": "defillama_dex_volume_CHAIN", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.078201, "relation_name": "EXTERNAL.not_null_silver.defillama_dex_volume_CHAIN", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_dex_volume", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_dex_volume"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_dex_volume.yml/not_null_silver__defillama_dex_volume_CHAIN.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_dex_volume\nwhere CHAIN is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CHAIN", "file_key_name": "models.silver__defillama_dex_volume", "attached_node": "model.external_models.silver__defillama_dex_volume"}, "test.external_models.not_null_silver__defillama_dex_volume__INSERTED_TIMESTAMP.1ccec92206": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_dex_volume')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_dex_volume__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_dex_volume__INSERTED_TIMESTAMP.sql", "original_file_path": "models/defillama/silver/silver__defillama_dex_volume.yml", "unique_id": "test.external_models.not_null_silver__defillama_dex_volume__INSERTED_TIMESTAMP.1ccec92206", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_dex_volume__INSERTED_TIMESTAMP"], "alias": "defillama_dex_volume", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.0800018, "relation_name": "EXTERNAL.not_null_silver.defillama_dex_volume", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_dex_volume", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_dex_volume"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_dex_volume.yml/not_null_silver__defillama_dex_volume__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_dex_volume\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_dex_volume", "attached_node": "model.external_models.silver__defillama_dex_volume"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_dex_volume__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.8e26780493": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_dex_volume')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_dex_volume__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_7bcb22098d115910051a08e6a9626448.sql", "original_file_path": "models/defillama/silver/silver__defillama_dex_volume.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_dex_volume__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.8e26780493", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_dex_volume__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "defillama_dex_volume", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_7bcb22098d115910051a08e6a9626448", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_7bcb22098d115910051a08e6a9626448"}, "created_at": 1760113502.0817907, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_silver.defillama_dex_volume", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_7bcb22098d115910051a08e6a9626448\") }}", "language": "sql", "refs": [{"name": "silver__defillama_dex_volume", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_dex_volume"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_dex_volume.yml/dbt_expectations_expect_column_7bcb22098d115910051a08e6a9626448.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('CHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DAILY_VOLUME' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEX_OBJECT' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_dex_volume", "attached_node": "model.external_models.silver__defillama_dex_volume"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_dex_volume__INSERTED_TIMESTAMP__day__1.bef8fa61d0": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 1, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_dex_volume')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_dex_volume__INSERTED_TIMESTAMP__day__1", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_row_va_096d011d161d820307a7cbf74e6dd553.sql", "original_file_path": "models/defillama/silver/silver__defillama_dex_volume.yml", "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_dex_volume__INSERTED_TIMESTAMP__day__1.bef8fa61d0", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_dex_volume__INSERTED_TIMESTAMP__day__1"], "alias": "defillama_dex_volume", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_096d011d161d820307a7cbf74e6dd553", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_096d011d161d820307a7cbf74e6dd553"}, "created_at": 1760113502.0863795, "relation_name": "EXTERNAL.dbt_expectations_expect_row_values_to_have_recent_data_silver.defillama_dex_volume", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_096d011d161d820307a7cbf74e6dd553\") }}", "language": "sql", "refs": [{"name": "silver__defillama_dex_volume", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_dex_volume"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_dex_volume.yml/dbt_expectations_expect_row_va_096d011d161d820307a7cbf74e6dd553.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(_INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n EXTERNAL.silver.defillama_dex_volume\n where\n -- to exclude erroneous future dates\n cast(_INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -1,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_dex_volume", "attached_node": "model.external_models.silver__defillama_dex_volume"}, "test.external_models.not_null_silver__defillama_dex_volume_ID.4eac69b2aa": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ID", "model": "{{ get_where_subquery(ref('silver__defillama_dex_volume')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_dex_volume_ID", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_dex_volume_ID.sql", "original_file_path": "models/defillama/silver/silver__defillama_dex_volume.yml", "unique_id": "test.external_models.not_null_silver__defillama_dex_volume_ID.4eac69b2aa", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_dex_volume_ID"], "alias": "defillama_dex_volume_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.0923176, "relation_name": "EXTERNAL.not_null_silver.defillama_dex_volume_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_dex_volume", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_dex_volume"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_dex_volume.yml/not_null_silver__defillama_dex_volume_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_dex_volume\nwhere ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ID", "file_key_name": "models.silver__defillama_dex_volume", "attached_node": "model.external_models.silver__defillama_dex_volume"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_dex_volume_ID.93100978dc": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ID"], "model": "{{ get_where_subquery(ref('silver__defillama_dex_volume')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__defillama_dex_volume_ID", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_0a0ffa46f3b9d2c6f3c951c117325ed9.sql", "original_file_path": "models/defillama/silver/silver__defillama_dex_volume.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_dex_volume_ID.93100978dc", "fqn": ["external_models", "defillama", "silver", "dbt_utils_unique_combination_of_columns_silver__defillama_dex_volume_ID"], "alias": "defillama_dex_volume_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0a0ffa46f3b9d2c6f3c951c117325ed9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_0a0ffa46f3b9d2c6f3c951c117325ed9"}, "created_at": 1760113502.09416, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_silver.defillama_dex_volume_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0a0ffa46f3b9d2c6f3c951c117325ed9\") }}", "language": "sql", "refs": [{"name": "silver__defillama_dex_volume", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_dex_volume"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_dex_volume.yml/dbt_utils_unique_combination_o_0a0ffa46f3b9d2c6f3c951c117325ed9.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ID\n from EXTERNAL.silver.defillama_dex_volume\n group by ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__defillama_dex_volume", "attached_node": "model.external_models.silver__defillama_dex_volume"}, "test.external_models.not_null_silver__defillama_pool_yields__INSERTED_TIMESTAMP.cf82b3d544": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_pool_yields')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_pool_yields__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_pool_yields__INSERTED_TIMESTAMP.sql", "original_file_path": "models/defillama/silver/silver__defillama_pool_yields.yml", "unique_id": "test.external_models.not_null_silver__defillama_pool_yields__INSERTED_TIMESTAMP.cf82b3d544", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_pool_yields__INSERTED_TIMESTAMP"], "alias": "defillama_pool_yields", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.0997393, "relation_name": "EXTERNAL.not_null_silver.defillama_pool_yields", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_pool_yields", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_pool_yields"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_pool_yields.yml/not_null_silver__defillama_pool_yields__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_pool_yields\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_pool_yields", "attached_node": "model.external_models.silver__defillama_pool_yields"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_pool_yields__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.1a6d978404": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_pool_yields')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_pool_yields__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_69548e8c4a07cf1fe5a89ac7bd7116d6.sql", "original_file_path": "models/defillama/silver/silver__defillama_pool_yields.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_pool_yields__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.1a6d978404", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_pool_yields__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "defillama_pool_yields", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_69548e8c4a07cf1fe5a89ac7bd7116d6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_69548e8c4a07cf1fe5a89ac7bd7116d6"}, "created_at": 1760113502.1015615, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_silver.defillama_pool_yields", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_69548e8c4a07cf1fe5a89ac7bd7116d6\") }}", "language": "sql", "refs": [{"name": "silver__defillama_pool_yields", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_pool_yields"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_pool_yields.yml/dbt_expectations_expect_column_69548e8c4a07cf1fe5a89ac7bd7116d6.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('TIMESTAMP' as TEXT) as relation_column,\n cast('DATE' as TEXT) as relation_column_type\n union all\n \n select\n cast('APY' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('APY_BASE' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('BASE_7D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('APY_BASE_INCEPTION' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('APY_MEAN_30D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('APY_PCT_1D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('APY_PCT_30D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('APY_PCT_7D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('APY_REWARDS' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('COUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('EXPOSURE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('IL_7D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('IL_RISK' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MU' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('OUTLIER' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('POOL_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('POOL_META' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PREDICTIONS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROJECTS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('REWARD_TOKENS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('SIGMA' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('STABLECOIN' as TEXT) as relation_column,\n cast('BOOLEAN' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TVL_USD' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('UNDERLYING_TOKENS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOLUME_USD_1D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('VOLUME_USD_7D' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEFILLAMA_YIELD_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_pool_yields", "attached_node": "model.external_models.silver__defillama_pool_yields"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_pool_yields__INSERTED_TIMESTAMP__day__2.2f63a4fa45": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 2, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_pool_yields')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_pool_yields__INSERTED_TIMESTAMP__day__2", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_row_va_bd002df06ef8bd244360fb212445bc11.sql", "original_file_path": "models/defillama/silver/silver__defillama_pool_yields.yml", "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_pool_yields__INSERTED_TIMESTAMP__day__2.2f63a4fa45", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_pool_yields__INSERTED_TIMESTAMP__day__2"], "alias": "defillama_pool_yields", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_bd002df06ef8bd244360fb212445bc11", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_bd002df06ef8bd244360fb212445bc11"}, "created_at": 1760113502.1061492, "relation_name": "EXTERNAL.dbt_expectations_expect_row_values_to_have_recent_data_silver.defillama_pool_yields", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_bd002df06ef8bd244360fb212445bc11\") }}", "language": "sql", "refs": [{"name": "silver__defillama_pool_yields", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_pool_yields"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_pool_yields.yml/dbt_expectations_expect_row_va_bd002df06ef8bd244360fb212445bc11.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(_INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n EXTERNAL.silver.defillama_pool_yields\n where\n -- to exclude erroneous future dates\n cast(_INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_pool_yields", "attached_node": "model.external_models.silver__defillama_pool_yields"}, "test.external_models.not_null_silver__defillama_pool_yields_TIMESTAMP.37b3272aba": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_pool_yields')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_pool_yields_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_pool_yields_TIMESTAMP.sql", "original_file_path": "models/defillama/silver/silver__defillama_pool_yields.yml", "unique_id": "test.external_models.not_null_silver__defillama_pool_yields_TIMESTAMP.37b3272aba", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_pool_yields_TIMESTAMP"], "alias": "defillama_pool_yields_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.1120198, "relation_name": "EXTERNAL.not_null_silver.defillama_pool_yields_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_pool_yields", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_pool_yields"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_pool_yields.yml/not_null_silver__defillama_pool_yields_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_pool_yields\nwhere TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TIMESTAMP", "file_key_name": "models.silver__defillama_pool_yields", "attached_node": "model.external_models.silver__defillama_pool_yields"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_pool_yields_DEFILLAMA_YIELD_ID.b59e60eeda": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["DEFILLAMA_YIELD_ID"], "model": "{{ get_where_subquery(ref('silver__defillama_pool_yields')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__defillama_pool_yields_DEFILLAMA_YIELD_ID", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_e06824f60b505f6578948ff90fdb1359.sql", "original_file_path": "models/defillama/silver/silver__defillama_pool_yields.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_pool_yields_DEFILLAMA_YIELD_ID.b59e60eeda", "fqn": ["external_models", "defillama", "silver", "dbt_utils_unique_combination_of_columns_silver__defillama_pool_yields_DEFILLAMA_YIELD_ID"], "alias": "defillama_pool_yields_DEFILLAMA_YIELD_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e06824f60b505f6578948ff90fdb1359", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_e06824f60b505f6578948ff90fdb1359"}, "created_at": 1760113502.1138542, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_silver.defillama_pool_yields_DEFILLAMA_YIELD_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e06824f60b505f6578948ff90fdb1359\") }}", "language": "sql", "refs": [{"name": "silver__defillama_pool_yields", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_pool_yields"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_pool_yields.yml/dbt_utils_unique_combination_o_e06824f60b505f6578948ff90fdb1359.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n DEFILLAMA_YIELD_ID\n from EXTERNAL.silver.defillama_pool_yields\n group by DEFILLAMA_YIELD_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__defillama_pool_yields", "attached_node": "model.external_models.silver__defillama_pool_yields"}, "test.external_models.not_null_silver__defillama_protocols__INSERTED_TIMESTAMP.59c4e95c9c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_protocols')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_protocols__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_protocols__INSERTED_TIMESTAMP.sql", "original_file_path": "models/defillama/silver/silver__defillama_protocols.yml", "unique_id": "test.external_models.not_null_silver__defillama_protocols__INSERTED_TIMESTAMP.59c4e95c9c", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_protocols__INSERTED_TIMESTAMP"], "alias": "defillama_protocols", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.1197515, "relation_name": "EXTERNAL.not_null_silver.defillama_protocols", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_protocols", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_protocols"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_protocols.yml/not_null_silver__defillama_protocols__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_protocols\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_protocols", "attached_node": "model.external_models.silver__defillama_protocols"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocols__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.54e4afda8f": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_protocols')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocols__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_35084a09829e9ecf9dfa619aff40a68a.sql", "original_file_path": "models/defillama/silver/silver__defillama_protocols.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocols__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.54e4afda8f", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocols__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "defillama_protocols", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_35084a09829e9ecf9dfa619aff40a68a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_35084a09829e9ecf9dfa619aff40a68a"}, "created_at": 1760113502.121587, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_silver.defillama_protocols", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_35084a09829e9ecf9dfa619aff40a68a\") }}", "language": "sql", "refs": [{"name": "silver__defillama_protocols", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_protocols"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_protocols.yml/dbt_expectations_expect_column_35084a09829e9ecf9dfa619aff40a68a.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('RUN_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('RUN_DATE' as TEXT) as relation_column,\n cast('DATE' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_SLUG' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_PROTOCOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DESCRIPTION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NUM_AUDITS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('AUDIT_NOTE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('URL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LOGO' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TWITTER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TVL' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAINS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAIN_TVLS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DATA' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEFILLAMA_PROTOCOLS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_protocols", "attached_node": "model.external_models.silver__defillama_protocols"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocols__INSERTED_TIMESTAMP__day__2.420a65084a": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 2, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_protocols')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocols__INSERTED_TIMESTAMP__day__2", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_row_va_7804eb42c48891a8dddcf0aea2fddb56.sql", "original_file_path": "models/defillama/silver/silver__defillama_protocols.yml", "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocols__INSERTED_TIMESTAMP__day__2.420a65084a", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocols__INSERTED_TIMESTAMP__day__2"], "alias": "defillama_protocols", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_7804eb42c48891a8dddcf0aea2fddb56", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_7804eb42c48891a8dddcf0aea2fddb56"}, "created_at": 1760113502.1259172, "relation_name": "EXTERNAL.dbt_expectations_expect_row_values_to_have_recent_data_silver.defillama_protocols", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_7804eb42c48891a8dddcf0aea2fddb56\") }}", "language": "sql", "refs": [{"name": "silver__defillama_protocols", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_protocols"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_protocols.yml/dbt_expectations_expect_row_va_7804eb42c48891a8dddcf0aea2fddb56.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(_INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n EXTERNAL.silver.defillama_protocols\n where\n -- to exclude erroneous future dates\n cast(_INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_protocols", "attached_node": "model.external_models.silver__defillama_protocols"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_protocols_DEFILLAMA_PROTOCOLS_ID.8a2a9bf6a7": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["DEFILLAMA_PROTOCOLS_ID"], "model": "{{ get_where_subquery(ref('silver__defillama_protocols')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__defillama_protocols_DEFILLAMA_PROTOCOLS_ID", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_87027766add4f50b003b552298b46ea8.sql", "original_file_path": "models/defillama/silver/silver__defillama_protocols.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_protocols_DEFILLAMA_PROTOCOLS_ID.8a2a9bf6a7", "fqn": ["external_models", "defillama", "silver", "dbt_utils_unique_combination_of_columns_silver__defillama_protocols_DEFILLAMA_PROTOCOLS_ID"], "alias": "defillama_protocols_DEFILLAMA_PROTOCOLS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_87027766add4f50b003b552298b46ea8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_87027766add4f50b003b552298b46ea8"}, "created_at": 1760113502.1320224, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_silver.defillama_protocols_DEFILLAMA_PROTOCOLS_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_87027766add4f50b003b552298b46ea8\") }}", "language": "sql", "refs": [{"name": "silver__defillama_protocols", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_protocols"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_protocols.yml/dbt_utils_unique_combination_o_87027766add4f50b003b552298b46ea8.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n DEFILLAMA_PROTOCOLS_ID\n from EXTERNAL.silver.defillama_protocols\n group by DEFILLAMA_PROTOCOLS_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__defillama_protocols", "attached_node": "model.external_models.silver__defillama_protocols"}, "test.external_models.not_null_silver__defillama_chains_tvl__INSERTED_TIMESTAMP.72b4261db1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_chains_tvl')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_chains_tvl__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_chains_tvl__INSERTED_TIMESTAMP.sql", "original_file_path": "models/defillama/silver/silver__defillama_chains_tvl.yml", "unique_id": "test.external_models.not_null_silver__defillama_chains_tvl__INSERTED_TIMESTAMP.72b4261db1", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_chains_tvl__INSERTED_TIMESTAMP"], "alias": "defillama_chains_tvl", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.1377697, "relation_name": "EXTERNAL.not_null_silver.defillama_chains_tvl", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_chains_tvl", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_chains_tvl"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_chains_tvl.yml/not_null_silver__defillama_chains_tvl__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_chains_tvl\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_chains_tvl", "attached_node": "model.external_models.silver__defillama_chains_tvl"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_chains_tvl__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.a067d1eac2": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_chains_tvl')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_chains_tvl__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_c7c622311eec6dbe239512c22f9bd258.sql", "original_file_path": "models/defillama/silver/silver__defillama_chains_tvl.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_chains_tvl__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.a067d1eac2", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_chains_tvl__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "defillama_chains_tvl", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c7c622311eec6dbe239512c22f9bd258", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_c7c622311eec6dbe239512c22f9bd258"}, "created_at": 1760113502.1399024, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_silver.defillama_chains_tvl", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c7c622311eec6dbe239512c22f9bd258\") }}", "language": "sql", "refs": [{"name": "silver__defillama_chains_tvl", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_chains_tvl"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_chains_tvl.yml/dbt_expectations_expect_column_c7c622311eec6dbe239512c22f9bd258.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('CHAIN_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('TVL_USD' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_chains_tvl", "attached_node": "model.external_models.silver__defillama_chains_tvl"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_chains_tvl__INSERTED_TIMESTAMP__day__2.187b24cdd3": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 2, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_chains_tvl')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_chains_tvl__INSERTED_TIMESTAMP__day__2", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_row_va_e4231de595224dec371525f3d525e6fd.sql", "original_file_path": "models/defillama/silver/silver__defillama_chains_tvl.yml", "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_chains_tvl__INSERTED_TIMESTAMP__day__2.187b24cdd3", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_chains_tvl__INSERTED_TIMESTAMP__day__2"], "alias": "defillama_chains_tvl", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_e4231de595224dec371525f3d525e6fd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_e4231de595224dec371525f3d525e6fd"}, "created_at": 1760113502.144338, "relation_name": "EXTERNAL.dbt_expectations_expect_row_values_to_have_recent_data_silver.defillama_chains_tvl", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_e4231de595224dec371525f3d525e6fd\") }}", "language": "sql", "refs": [{"name": "silver__defillama_chains_tvl", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_chains_tvl"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_chains_tvl.yml/dbt_expectations_expect_row_va_e4231de595224dec371525f3d525e6fd.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(_INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n EXTERNAL.silver.defillama_chains_tvl\n where\n -- to exclude erroneous future dates\n cast(_INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_chains_tvl", "attached_node": "model.external_models.silver__defillama_chains_tvl"}, "test.external_models.not_null_silver__defillama_chains_tvl_ID.4053d1c479": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ID", "model": "{{ get_where_subquery(ref('silver__defillama_chains_tvl')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_chains_tvl_ID", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_chains_tvl_ID.sql", "original_file_path": "models/defillama/silver/silver__defillama_chains_tvl.yml", "unique_id": "test.external_models.not_null_silver__defillama_chains_tvl_ID.4053d1c479", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_chains_tvl_ID"], "alias": "defillama_chains_tvl_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.1502821, "relation_name": "EXTERNAL.not_null_silver.defillama_chains_tvl_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_chains_tvl", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_chains_tvl"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_chains_tvl.yml/not_null_silver__defillama_chains_tvl_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_chains_tvl\nwhere ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ID", "file_key_name": "models.silver__defillama_chains_tvl", "attached_node": "model.external_models.silver__defillama_chains_tvl"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_chains_tvl_CHAIN__TIMESTAMP.1bc2091543": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["CHAIN", "TIMESTAMP"], "model": "{{ get_where_subquery(ref('silver__defillama_chains_tvl')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__defillama_chains_tvl_CHAIN__TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_c3a1cf723bc92e0c57ac8ab0f54ac1d3.sql", "original_file_path": "models/defillama/silver/silver__defillama_chains_tvl.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_chains_tvl_CHAIN__TIMESTAMP.1bc2091543", "fqn": ["external_models", "defillama", "silver", "dbt_utils_unique_combination_of_columns_silver__defillama_chains_tvl_CHAIN__TIMESTAMP"], "alias": "defillama_chains_tvl_CHAIN", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c3a1cf723bc92e0c57ac8ab0f54ac1d3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_c3a1cf723bc92e0c57ac8ab0f54ac1d3"}, "created_at": 1760113502.1520762, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_silver.defillama_chains_tvl_CHAIN", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c3a1cf723bc92e0c57ac8ab0f54ac1d3\") }}", "language": "sql", "refs": [{"name": "silver__defillama_chains_tvl", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_chains_tvl"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_chains_tvl.yml/dbt_utils_unique_combination_o_c3a1cf723bc92e0c57ac8ab0f54ac1d3.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n CHAIN, TIMESTAMP\n from EXTERNAL.silver.defillama_chains_tvl\n group by CHAIN, TIMESTAMP\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__defillama_chains_tvl", "attached_node": "model.external_models.silver__defillama_chains_tvl"}, "test.external_models.not_null_silver__defillama_options_premium_CHAIN.a58ffe7b2b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CHAIN", "model": "{{ get_where_subquery(ref('silver__defillama_options_premium')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_options_premium_CHAIN", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_options_premium_CHAIN.sql", "original_file_path": "models/defillama/silver/silver__defillama_options_premium.yml", "unique_id": "test.external_models.not_null_silver__defillama_options_premium_CHAIN.a58ffe7b2b", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_options_premium_CHAIN"], "alias": "defillama_options_premium_CHAIN", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.1579049, "relation_name": "EXTERNAL.not_null_silver.defillama_options_premium_CHAIN", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_options_premium", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_options_premium"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_options_premium.yml/not_null_silver__defillama_options_premium_CHAIN.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_options_premium\nwhere CHAIN is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CHAIN", "file_key_name": "models.silver__defillama_options_premium", "attached_node": "model.external_models.silver__defillama_options_premium"}, "test.external_models.not_null_silver__defillama_options_premium__INSERTED_TIMESTAMP.3d9bd5a105": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_options_premium')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_options_premium__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_options_premium__INSERTED_TIMESTAMP.sql", "original_file_path": "models/defillama/silver/silver__defillama_options_premium.yml", "unique_id": "test.external_models.not_null_silver__defillama_options_premium__INSERTED_TIMESTAMP.3d9bd5a105", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_options_premium__INSERTED_TIMESTAMP"], "alias": "defillama_options_premium", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.1599097, "relation_name": "EXTERNAL.not_null_silver.defillama_options_premium", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_options_premium", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_options_premium"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_options_premium.yml/not_null_silver__defillama_options_premium__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_options_premium\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_options_premium", "attached_node": "model.external_models.silver__defillama_options_premium"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_options_premium__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.2280d7f2a6": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_options_premium')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_options_premium__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_5a4badffaa452e8a951438d69c45380d.sql", "original_file_path": "models/defillama/silver/silver__defillama_options_premium.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_options_premium__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.2280d7f2a6", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_options_premium__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "defillama_options_premium", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_5a4badffaa452e8a951438d69c45380d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_5a4badffaa452e8a951438d69c45380d"}, "created_at": 1760113502.1617298, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_silver.defillama_options_premium", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_5a4badffaa452e8a951438d69c45380d\") }}", "language": "sql", "refs": [{"name": "silver__defillama_options_premium", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_options_premium"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_options_premium.yml/dbt_expectations_expect_column_5a4badffaa452e8a951438d69c45380d.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('CHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DAILY_VOLUME_PREMIUM' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('OPTIONS_OBJECT' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_options_premium", "attached_node": "model.external_models.silver__defillama_options_premium"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_options_premium__INSERTED_TIMESTAMP__day__2.b0dc92c970": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 2, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_options_premium')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_options_premium__INSERTED_TIMESTAMP__day__2", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_row_va_96bd67e6c7e06c88c42577ebd2f45dc2.sql", "original_file_path": "models/defillama/silver/silver__defillama_options_premium.yml", "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_options_premium__INSERTED_TIMESTAMP__day__2.b0dc92c970", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_options_premium__INSERTED_TIMESTAMP__day__2"], "alias": "defillama_options_premium", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_96bd67e6c7e06c88c42577ebd2f45dc2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_96bd67e6c7e06c88c42577ebd2f45dc2"}, "created_at": 1760113502.167062, "relation_name": "EXTERNAL.dbt_expectations_expect_row_values_to_have_recent_data_silver.defillama_options_premium", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_96bd67e6c7e06c88c42577ebd2f45dc2\") }}", "language": "sql", "refs": [{"name": "silver__defillama_options_premium", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_options_premium"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_options_premium.yml/dbt_expectations_expect_row_va_96bd67e6c7e06c88c42577ebd2f45dc2.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(_INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n EXTERNAL.silver.defillama_options_premium\n where\n -- to exclude erroneous future dates\n cast(_INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_options_premium", "attached_node": "model.external_models.silver__defillama_options_premium"}, "test.external_models.not_null_silver__defillama_options_premium_ID.8c8d1dbefe": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ID", "model": "{{ get_where_subquery(ref('silver__defillama_options_premium')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_options_premium_ID", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_options_premium_ID.sql", "original_file_path": "models/defillama/silver/silver__defillama_options_premium.yml", "unique_id": "test.external_models.not_null_silver__defillama_options_premium_ID.8c8d1dbefe", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_options_premium_ID"], "alias": "defillama_options_premium_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.1729362, "relation_name": "EXTERNAL.not_null_silver.defillama_options_premium_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_options_premium", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_options_premium"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_options_premium.yml/not_null_silver__defillama_options_premium_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_options_premium\nwhere ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ID", "file_key_name": "models.silver__defillama_options_premium", "attached_node": "model.external_models.silver__defillama_options_premium"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_options_premium_ID.f2c952c29e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ID"], "model": "{{ get_where_subquery(ref('silver__defillama_options_premium')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__defillama_options_premium_ID", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_7a72d92946b5640663de8f5102db0250.sql", "original_file_path": "models/defillama/silver/silver__defillama_options_premium.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_options_premium_ID.f2c952c29e", "fqn": ["external_models", "defillama", "silver", "dbt_utils_unique_combination_of_columns_silver__defillama_options_premium_ID"], "alias": "defillama_options_premium_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7a72d92946b5640663de8f5102db0250", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_7a72d92946b5640663de8f5102db0250"}, "created_at": 1760113502.1747434, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_silver.defillama_options_premium_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7a72d92946b5640663de8f5102db0250\") }}", "language": "sql", "refs": [{"name": "silver__defillama_options_premium", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_options_premium"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_options_premium.yml/dbt_utils_unique_combination_o_7a72d92946b5640663de8f5102db0250.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ID\n from EXTERNAL.silver.defillama_options_premium\n group by ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__defillama_options_premium", "attached_node": "model.external_models.silver__defillama_options_premium"}, "test.external_models.not_null_silver__defillama_protocol_revenue_CHAIN.aaf93a9585": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CHAIN", "model": "{{ get_where_subquery(ref('silver__defillama_protocol_revenue')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_protocol_revenue_CHAIN", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_protocol_revenue_CHAIN.sql", "original_file_path": "models/defillama/silver/silver__defillama_protocol_revenue.yml", "unique_id": "test.external_models.not_null_silver__defillama_protocol_revenue_CHAIN.aaf93a9585", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_protocol_revenue_CHAIN"], "alias": "defillama_protocol_revenue_CHAIN", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.180396, "relation_name": "EXTERNAL.not_null_silver.defillama_protocol_revenue_CHAIN", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_protocol_revenue", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_protocol_revenue"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_protocol_revenue.yml/not_null_silver__defillama_protocol_revenue_CHAIN.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_protocol_revenue\nwhere CHAIN is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CHAIN", "file_key_name": "models.silver__defillama_protocol_revenue", "attached_node": "model.external_models.silver__defillama_protocol_revenue"}, "test.external_models.not_null_silver__defillama_protocol_revenue__INSERTED_TIMESTAMP.960b8d7b66": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_protocol_revenue')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_protocol_revenue__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_protocol_revenue__INSERTED_TIMESTAMP.sql", "original_file_path": "models/defillama/silver/silver__defillama_protocol_revenue.yml", "unique_id": "test.external_models.not_null_silver__defillama_protocol_revenue__INSERTED_TIMESTAMP.960b8d7b66", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_protocol_revenue__INSERTED_TIMESTAMP"], "alias": "defillama_protocol_revenue", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.1822147, "relation_name": "EXTERNAL.not_null_silver.defillama_protocol_revenue", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_protocol_revenue", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_protocol_revenue"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_protocol_revenue.yml/not_null_silver__defillama_protocol_revenue__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_protocol_revenue\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_protocol_revenue", "attached_node": "model.external_models.silver__defillama_protocol_revenue"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocol_revenue__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.2025c52a03": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_protocol_revenue')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_silver", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocol_revenue__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_4c0fc7f47e2839a9d4b1da99246b4a1b.sql", "original_file_path": "models/defillama/silver/silver__defillama_protocol_revenue.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocol_revenue__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.2025c52a03", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocol_revenue__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "defillama_protocol_revenue", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_4c0fc7f47e2839a9d4b1da99246b4a1b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_4c0fc7f47e2839a9d4b1da99246b4a1b"}, "created_at": 1760113502.1840024, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_silver.defillama_protocol_revenue", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_4c0fc7f47e2839a9d4b1da99246b4a1b\") }}", "language": "sql", "refs": [{"name": "silver__defillama_protocol_revenue", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_protocol_revenue"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_protocol_revenue.yml/dbt_expectations_expect_column_4c0fc7f47e2839a9d4b1da99246b4a1b.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('CHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DAILY_REV' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('REV_OBJECT' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_protocol_revenue", "attached_node": "model.external_models.silver__defillama_protocol_revenue"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocol_revenue__INSERTED_TIMESTAMP__day__2.9255e527b7": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 2, "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__defillama_protocol_revenue')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_silver", "name": "dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocol_revenue__INSERTED_TIMESTAMP__day__2", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_row_va_cabcded02893c7ca95ce65427f687a74.sql", "original_file_path": "models/defillama/silver/silver__defillama_protocol_revenue.yml", "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocol_revenue__INSERTED_TIMESTAMP__day__2.9255e527b7", "fqn": ["external_models", "defillama", "silver", "dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocol_revenue__INSERTED_TIMESTAMP__day__2"], "alias": "defillama_protocol_revenue", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_cabcded02893c7ca95ce65427f687a74", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_cabcded02893c7ca95ce65427f687a74"}, "created_at": 1760113502.1885734, "relation_name": "EXTERNAL.dbt_expectations_expect_row_values_to_have_recent_data_silver.defillama_protocol_revenue", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_cabcded02893c7ca95ce65427f687a74\") }}", "language": "sql", "refs": [{"name": "silver__defillama_protocol_revenue", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_protocol_revenue"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_protocol_revenue.yml/dbt_expectations_expect_row_va_cabcded02893c7ca95ce65427f687a74.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(_INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n EXTERNAL.silver.defillama_protocol_revenue\n where\n -- to exclude erroneous future dates\n cast(_INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__defillama_protocol_revenue", "attached_node": "model.external_models.silver__defillama_protocol_revenue"}, "test.external_models.not_null_silver__defillama_protocol_revenue_ID.fc3053c7bf": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ID", "model": "{{ get_where_subquery(ref('silver__defillama_protocol_revenue')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_protocol_revenue_ID", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_protocol_revenue_ID.sql", "original_file_path": "models/defillama/silver/silver__defillama_protocol_revenue.yml", "unique_id": "test.external_models.not_null_silver__defillama_protocol_revenue_ID.fc3053c7bf", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_protocol_revenue_ID"], "alias": "defillama_protocol_revenue_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.1944149, "relation_name": "EXTERNAL.not_null_silver.defillama_protocol_revenue_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_protocol_revenue", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_protocol_revenue"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_protocol_revenue.yml/not_null_silver__defillama_protocol_revenue_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_protocol_revenue\nwhere ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ID", "file_key_name": "models.silver__defillama_protocol_revenue", "attached_node": "model.external_models.silver__defillama_protocol_revenue"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_protocol_revenue_ID.f28e235429": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ID"], "model": "{{ get_where_subquery(ref('silver__defillama_protocol_revenue')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__defillama_protocol_revenue_ID", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_01877e09ad1db8719ff574726f2d2974.sql", "original_file_path": "models/defillama/silver/silver__defillama_protocol_revenue.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_protocol_revenue_ID.f28e235429", "fqn": ["external_models", "defillama", "silver", "dbt_utils_unique_combination_of_columns_silver__defillama_protocol_revenue_ID"], "alias": "defillama_protocol_revenue_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_01877e09ad1db8719ff574726f2d2974", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_01877e09ad1db8719ff574726f2d2974"}, "created_at": 1760113502.196225, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_silver.defillama_protocol_revenue_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_01877e09ad1db8719ff574726f2d2974\") }}", "language": "sql", "refs": [{"name": "silver__defillama_protocol_revenue", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_protocol_revenue"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_protocol_revenue.yml/dbt_utils_unique_combination_o_01877e09ad1db8719ff574726f2d2974.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ID\n from EXTERNAL.silver.defillama_protocol_revenue\n group by ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__defillama_protocol_revenue", "attached_node": "model.external_models.silver__defillama_protocol_revenue"}, "test.external_models.not_null_silver__defillama_protocol_tvl_history_timestamp.603a6ed60f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "timestamp", "model": "{{ get_where_subquery(ref('silver__defillama_protocol_tvl_history')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_protocol_tvl_history_timestamp", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_protocol_tvl_history_timestamp.sql", "original_file_path": "models/defillama/silver/silver__defillama_protocol_tvl_history.yml", "unique_id": "test.external_models.not_null_silver__defillama_protocol_tvl_history_timestamp.603a6ed60f", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_protocol_tvl_history_timestamp"], "alias": "defillama_protocol_tvl_history_timestamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.2045846, "relation_name": "EXTERNAL.not_null_silver.defillama_protocol_tvl_history_timestamp", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_protocol_tvl_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_protocol_tvl_history"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_protocol_tvl_history.yml/not_null_silver__defillama_protocol_tvl_history_timestamp.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_protocol_tvl_history\nwhere timestamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "timestamp", "file_key_name": "models.silver__defillama_protocol_tvl_history", "attached_node": "model.external_models.silver__defillama_protocol_tvl_history"}, "test.external_models.not_null_silver__defillama_protocol_tvl_history_protocol_id.e8f35f7758": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "protocol_id", "model": "{{ get_where_subquery(ref('silver__defillama_protocol_tvl_history')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_protocol_tvl_history_protocol_id", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_protocol_tvl_history_protocol_id.sql", "original_file_path": "models/defillama/silver/silver__defillama_protocol_tvl_history.yml", "unique_id": "test.external_models.not_null_silver__defillama_protocol_tvl_history_protocol_id.e8f35f7758", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_protocol_tvl_history_protocol_id"], "alias": "defillama_protocol_tvl_history_protocol_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.2066212, "relation_name": "EXTERNAL.not_null_silver.defillama_protocol_tvl_history_protocol_id", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_protocol_tvl_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_protocol_tvl_history"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_protocol_tvl_history.yml/not_null_silver__defillama_protocol_tvl_history_protocol_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_protocol_tvl_history\nwhere protocol_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "protocol_id", "file_key_name": "models.silver__defillama_protocol_tvl_history", "attached_node": "model.external_models.silver__defillama_protocol_tvl_history"}, "test.external_models.not_null_silver__defillama_protocol_tvl_history_chain.00929371cd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "chain", "model": "{{ get_where_subquery(ref('silver__defillama_protocol_tvl_history')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_protocol_tvl_history_chain", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_protocol_tvl_history_chain.sql", "original_file_path": "models/defillama/silver/silver__defillama_protocol_tvl_history.yml", "unique_id": "test.external_models.not_null_silver__defillama_protocol_tvl_history_chain.00929371cd", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_protocol_tvl_history_chain"], "alias": "defillama_protocol_tvl_history_chain", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.2084482, "relation_name": "EXTERNAL.not_null_silver.defillama_protocol_tvl_history_chain", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_protocol_tvl_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_protocol_tvl_history"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_protocol_tvl_history.yml/not_null_silver__defillama_protocol_tvl_history_chain.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_protocol_tvl_history\nwhere chain is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "chain", "file_key_name": "models.silver__defillama_protocol_tvl_history", "attached_node": "model.external_models.silver__defillama_protocol_tvl_history"}, "test.external_models.not_null_silver__defillama_protocol_tvl_history_chain_tvl.dd69677c11": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "chain_tvl", "model": "{{ get_where_subquery(ref('silver__defillama_protocol_tvl_history')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_protocol_tvl_history_chain_tvl", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_protocol_tvl_history_chain_tvl.sql", "original_file_path": "models/defillama/silver/silver__defillama_protocol_tvl_history.yml", "unique_id": "test.external_models.not_null_silver__defillama_protocol_tvl_history_chain_tvl.dd69677c11", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_protocol_tvl_history_chain_tvl"], "alias": "defillama_protocol_tvl_history_chain_tvl", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.2102597, "relation_name": "EXTERNAL.not_null_silver.defillama_protocol_tvl_history_chain_tvl", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__defillama_protocol_tvl_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_protocol_tvl_history"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_protocol_tvl_history.yml/not_null_silver__defillama_protocol_tvl_history_chain_tvl.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_protocol_tvl_history\nwhere chain_tvl is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "chain_tvl", "file_key_name": "models.silver__defillama_protocol_tvl_history", "attached_node": "model.external_models.silver__defillama_protocol_tvl_history"}, "test.external_models.unique_silver__defillama_protocol_tvl_history_defillama_protocol_tvl_history_id.7a26f80f27": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "defillama_protocol_tvl_history_id", "model": "{{ get_where_subquery(ref('silver__defillama_protocol_tvl_history')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "unique_silver", "name": "unique_silver__defillama_protocol_tvl_history_defillama_protocol_tvl_history_id", "resource_type": "test", "package_name": "external_models", "path": "unique_silver__defillama_proto_6124cbb218343659f741422217f29239.sql", "original_file_path": "models/defillama/silver/silver__defillama_protocol_tvl_history.yml", "unique_id": "test.external_models.unique_silver__defillama_protocol_tvl_history_defillama_protocol_tvl_history_id.7a26f80f27", "fqn": ["external_models", "defillama", "silver", "unique_silver__defillama_protocol_tvl_history_defillama_protocol_tvl_history_id"], "alias": "defillama_protocol_tvl_history_defillama_protocol_tvl_history_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_silver__defillama_proto_6124cbb218343659f741422217f29239", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "unique_silver__defillama_proto_6124cbb218343659f741422217f29239"}, "created_at": 1760113502.21206, "relation_name": "EXTERNAL.unique_silver.defillama_protocol_tvl_history_defillama_protocol_tvl_history_id", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_silver__defillama_proto_6124cbb218343659f741422217f29239\") }}", "language": "sql", "refs": [{"name": "silver__defillama_protocol_tvl_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_protocol_tvl_history"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_protocol_tvl_history.yml/unique_silver__defillama_proto_6124cbb218343659f741422217f29239.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n defillama_protocol_tvl_history_id as unique_field,\n count(*) as n_records\n\nfrom EXTERNAL.silver.defillama_protocol_tvl_history\nwhere defillama_protocol_tvl_history_id is not null\ngroup by defillama_protocol_tvl_history_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "defillama_protocol_tvl_history_id", "file_key_name": "models.silver__defillama_protocol_tvl_history", "attached_node": "model.external_models.silver__defillama_protocol_tvl_history"}, "test.external_models.not_null_silver__defillama_protocol_tvl_history_defillama_protocol_tvl_history_id.0c1700be63": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "defillama_protocol_tvl_history_id", "model": "{{ get_where_subquery(ref('silver__defillama_protocol_tvl_history')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_protocol_tvl_history_defillama_protocol_tvl_history_id", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_pro_1e8cd79356542af5217828a53c5204ff.sql", "original_file_path": "models/defillama/silver/silver__defillama_protocol_tvl_history.yml", "unique_id": "test.external_models.not_null_silver__defillama_protocol_tvl_history_defillama_protocol_tvl_history_id.0c1700be63", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_protocol_tvl_history_defillama_protocol_tvl_history_id"], "alias": "defillama_protocol_tvl_history_defillama_protocol_tvl_history_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver__defillama_pro_1e8cd79356542af5217828a53c5204ff", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "not_null_silver__defillama_pro_1e8cd79356542af5217828a53c5204ff"}, "created_at": 1760113502.2138274, "relation_name": "EXTERNAL.not_null_silver.defillama_protocol_tvl_history_defillama_protocol_tvl_history_id", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver__defillama_pro_1e8cd79356542af5217828a53c5204ff\") }}", "language": "sql", "refs": [{"name": "silver__defillama_protocol_tvl_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_protocol_tvl_history"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_protocol_tvl_history.yml/not_null_silver__defillama_pro_1e8cd79356542af5217828a53c5204ff.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_protocol_tvl_history\nwhere defillama_protocol_tvl_history_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "defillama_protocol_tvl_history_id", "file_key_name": "models.silver__defillama_protocol_tvl_history", "attached_node": "model.external_models.silver__defillama_protocol_tvl_history"}, "test.external_models.not_null_silver__defillama_protocol_tvl_history__inserted_timestamp.3a00bdcdaf": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_inserted_timestamp", "model": "{{ get_where_subquery(ref('silver__defillama_protocol_tvl_history')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__defillama_protocol_tvl_history__inserted_timestamp", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__defillama_pro_8d30262426c1432c041e931beff9fe05.sql", "original_file_path": "models/defillama/silver/silver__defillama_protocol_tvl_history.yml", "unique_id": "test.external_models.not_null_silver__defillama_protocol_tvl_history__inserted_timestamp.3a00bdcdaf", "fqn": ["external_models", "defillama", "silver", "not_null_silver__defillama_protocol_tvl_history__inserted_timestamp"], "alias": "defillama_protocol_tvl_history", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_silver__defillama_pro_8d30262426c1432c041e931beff9fe05", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "not_null_silver__defillama_pro_8d30262426c1432c041e931beff9fe05"}, "created_at": 1760113502.2156296, "relation_name": "EXTERNAL.not_null_silver.defillama_protocol_tvl_history", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_silver__defillama_pro_8d30262426c1432c041e931beff9fe05\") }}", "language": "sql", "refs": [{"name": "silver__defillama_protocol_tvl_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__defillama_protocol_tvl_history"]}, "compiled_path": "target/compiled/external_models/models/defillama/silver/silver__defillama_protocol_tvl_history.yml/not_null_silver__defillama_pro_8d30262426c1432c041e931beff9fe05.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.defillama_protocol_tvl_history\nwhere _inserted_timestamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_inserted_timestamp", "file_key_name": "models.silver__defillama_protocol_tvl_history", "attached_node": "model.external_models.silver__defillama_protocol_tvl_history"}, "test.external_models.not_null_defillama__ez_stablecoin_metrics_chain.a31537394e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "chain", "model": "{{ get_where_subquery(ref('defillama__ez_stablecoin_metrics')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_defillama", "name": "not_null_defillama__ez_stablecoin_metrics_chain", "resource_type": "test", "package_name": "external_models", "path": "not_null_defillama__ez_stablecoin_metrics_chain.sql", "original_file_path": "models/defillama/gold/defillama__ez_stablecoin_metrics.yml", "unique_id": "test.external_models.not_null_defillama__ez_stablecoin_metrics_chain.a31537394e", "fqn": ["external_models", "defillama", "gold", "not_null_defillama__ez_stablecoin_metrics_chain"], "alias": "ez_stablecoin_metrics_chain", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.2249599, "relation_name": "EXTERNAL.not_null_defillama.ez_stablecoin_metrics_chain", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "defillama__ez_stablecoin_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.defillama__ez_stablecoin_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__ez_stablecoin_metrics.yml/not_null_defillama__ez_stablecoin_metrics_chain.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.defillama.ez_stablecoin_metrics\nwhere chain is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "chain", "file_key_name": "models.defillama__ez_stablecoin_metrics", "attached_node": "model.external_models.defillama__ez_stablecoin_metrics"}, "test.external_models.not_null_defillama__ez_stablecoin_metrics_date_day.8be6c5ded3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('defillama__ez_stablecoin_metrics')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_defillama", "name": "not_null_defillama__ez_stablecoin_metrics_date_day", "resource_type": "test", "package_name": "external_models", "path": "not_null_defillama__ez_stablecoin_metrics_date_day.sql", "original_file_path": "models/defillama/gold/defillama__ez_stablecoin_metrics.yml", "unique_id": "test.external_models.not_null_defillama__ez_stablecoin_metrics_date_day.8be6c5ded3", "fqn": ["external_models", "defillama", "gold", "not_null_defillama__ez_stablecoin_metrics_date_day"], "alias": "ez_stablecoin_metrics_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.2269342, "relation_name": "EXTERNAL.not_null_defillama.ez_stablecoin_metrics_date_day", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "defillama__ez_stablecoin_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.defillama__ez_stablecoin_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__ez_stablecoin_metrics.yml/not_null_defillama__ez_stablecoin_metrics_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.defillama.ez_stablecoin_metrics\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "date_day", "file_key_name": "models.defillama__ez_stablecoin_metrics", "attached_node": "model.external_models.defillama__ez_stablecoin_metrics"}, "test.external_models.not_null_defillama__ez_stablecoin_metrics_stablecoin_id.550d95d3ce": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "stablecoin_id", "model": "{{ get_where_subquery(ref('defillama__ez_stablecoin_metrics')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_defillama", "name": "not_null_defillama__ez_stablecoin_metrics_stablecoin_id", "resource_type": "test", "package_name": "external_models", "path": "not_null_defillama__ez_stablecoin_metrics_stablecoin_id.sql", "original_file_path": "models/defillama/gold/defillama__ez_stablecoin_metrics.yml", "unique_id": "test.external_models.not_null_defillama__ez_stablecoin_metrics_stablecoin_id.550d95d3ce", "fqn": ["external_models", "defillama", "gold", "not_null_defillama__ez_stablecoin_metrics_stablecoin_id"], "alias": "ez_stablecoin_metrics_stablecoin_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.2287424, "relation_name": "EXTERNAL.not_null_defillama.ez_stablecoin_metrics_stablecoin_id", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "defillama__ez_stablecoin_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.defillama__ez_stablecoin_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__ez_stablecoin_metrics.yml/not_null_defillama__ez_stablecoin_metrics_stablecoin_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.defillama.ez_stablecoin_metrics\nwhere stablecoin_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "stablecoin_id", "file_key_name": "models.defillama__ez_stablecoin_metrics", "attached_node": "model.external_models.defillama__ez_stablecoin_metrics"}, "test.external_models.not_null_defillama__ez_stablecoin_metrics_stablecoin.8bd8a24860": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "stablecoin", "model": "{{ get_where_subquery(ref('defillama__ez_stablecoin_metrics')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_defillama", "name": "not_null_defillama__ez_stablecoin_metrics_stablecoin", "resource_type": "test", "package_name": "external_models", "path": "not_null_defillama__ez_stablecoin_metrics_stablecoin.sql", "original_file_path": "models/defillama/gold/defillama__ez_stablecoin_metrics.yml", "unique_id": "test.external_models.not_null_defillama__ez_stablecoin_metrics_stablecoin.8bd8a24860", "fqn": ["external_models", "defillama", "gold", "not_null_defillama__ez_stablecoin_metrics_stablecoin"], "alias": "ez_stablecoin_metrics_stablecoin", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.2305472, "relation_name": "EXTERNAL.not_null_defillama.ez_stablecoin_metrics_stablecoin", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "defillama__ez_stablecoin_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.defillama__ez_stablecoin_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__ez_stablecoin_metrics.yml/not_null_defillama__ez_stablecoin_metrics_stablecoin.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.defillama.ez_stablecoin_metrics\nwhere stablecoin is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "stablecoin", "file_key_name": "models.defillama__ez_stablecoin_metrics", "attached_node": "model.external_models.defillama__ez_stablecoin_metrics"}, "test.external_models.not_null_defillama__ez_stablecoin_metrics_symbol.b7badaccb5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "symbol", "model": "{{ get_where_subquery(ref('defillama__ez_stablecoin_metrics')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_defillama", "name": "not_null_defillama__ez_stablecoin_metrics_symbol", "resource_type": "test", "package_name": "external_models", "path": "not_null_defillama__ez_stablecoin_metrics_symbol.sql", "original_file_path": "models/defillama/gold/defillama__ez_stablecoin_metrics.yml", "unique_id": "test.external_models.not_null_defillama__ez_stablecoin_metrics_symbol.b7badaccb5", "fqn": ["external_models", "defillama", "gold", "not_null_defillama__ez_stablecoin_metrics_symbol"], "alias": "ez_stablecoin_metrics_symbol", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.2323112, "relation_name": "EXTERNAL.not_null_defillama.ez_stablecoin_metrics_symbol", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "defillama__ez_stablecoin_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.defillama__ez_stablecoin_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__ez_stablecoin_metrics.yml/not_null_defillama__ez_stablecoin_metrics_symbol.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.defillama.ez_stablecoin_metrics\nwhere symbol is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "symbol", "file_key_name": "models.defillama__ez_stablecoin_metrics", "attached_node": "model.external_models.defillama__ez_stablecoin_metrics"}, "test.external_models.not_null_defillama__ez_stablecoin_metrics_peg_type.17890d14ad": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "peg_type", "model": "{{ get_where_subquery(ref('defillama__ez_stablecoin_metrics')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_defillama", "name": "not_null_defillama__ez_stablecoin_metrics_peg_type", "resource_type": "test", "package_name": "external_models", "path": "not_null_defillama__ez_stablecoin_metrics_peg_type.sql", "original_file_path": "models/defillama/gold/defillama__ez_stablecoin_metrics.yml", "unique_id": "test.external_models.not_null_defillama__ez_stablecoin_metrics_peg_type.17890d14ad", "fqn": ["external_models", "defillama", "gold", "not_null_defillama__ez_stablecoin_metrics_peg_type"], "alias": "ez_stablecoin_metrics_peg_type", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.234048, "relation_name": "EXTERNAL.not_null_defillama.ez_stablecoin_metrics_peg_type", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "defillama__ez_stablecoin_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.defillama__ez_stablecoin_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__ez_stablecoin_metrics.yml/not_null_defillama__ez_stablecoin_metrics_peg_type.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.defillama.ez_stablecoin_metrics\nwhere peg_type is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "peg_type", "file_key_name": "models.defillama__ez_stablecoin_metrics", "attached_node": "model.external_models.defillama__ez_stablecoin_metrics"}, "test.external_models.not_null_defillama__ez_stablecoin_metrics_peg_mechanism.4ca9af4400": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "peg_mechanism", "model": "{{ get_where_subquery(ref('defillama__ez_stablecoin_metrics')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_defillama", "name": "not_null_defillama__ez_stablecoin_metrics_peg_mechanism", "resource_type": "test", "package_name": "external_models", "path": "not_null_defillama__ez_stablecoin_metrics_peg_mechanism.sql", "original_file_path": "models/defillama/gold/defillama__ez_stablecoin_metrics.yml", "unique_id": "test.external_models.not_null_defillama__ez_stablecoin_metrics_peg_mechanism.4ca9af4400", "fqn": ["external_models", "defillama", "gold", "not_null_defillama__ez_stablecoin_metrics_peg_mechanism"], "alias": "ez_stablecoin_metrics_peg_mechanism", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.235864, "relation_name": "EXTERNAL.not_null_defillama.ez_stablecoin_metrics_peg_mechanism", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "defillama__ez_stablecoin_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.defillama__ez_stablecoin_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__ez_stablecoin_metrics.yml/not_null_defillama__ez_stablecoin_metrics_peg_mechanism.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.defillama.ez_stablecoin_metrics\nwhere peg_mechanism is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "peg_mechanism", "file_key_name": "models.defillama__ez_stablecoin_metrics", "attached_node": "model.external_models.defillama__ez_stablecoin_metrics"}, "test.external_models.unique_defillama__ez_stablecoin_metrics_ez_stablecoin_metrics_id.bf19235079": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "ez_stablecoin_metrics_id", "model": "{{ get_where_subquery(ref('defillama__ez_stablecoin_metrics')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "unique_defillama", "name": "unique_defillama__ez_stablecoin_metrics_ez_stablecoin_metrics_id", "resource_type": "test", "package_name": "external_models", "path": "unique_defillama__ez_stablecoi_5653c3507cd1c9cef1beb2ff3bcb0cf1.sql", "original_file_path": "models/defillama/gold/defillama__ez_stablecoin_metrics.yml", "unique_id": "test.external_models.unique_defillama__ez_stablecoin_metrics_ez_stablecoin_metrics_id.bf19235079", "fqn": ["external_models", "defillama", "gold", "unique_defillama__ez_stablecoin_metrics_ez_stablecoin_metrics_id"], "alias": "ez_stablecoin_metrics_ez_stablecoin_metrics_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_defillama__ez_stablecoi_5653c3507cd1c9cef1beb2ff3bcb0cf1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "unique_defillama__ez_stablecoi_5653c3507cd1c9cef1beb2ff3bcb0cf1"}, "created_at": 1760113502.2379518, "relation_name": "EXTERNAL.unique_defillama.ez_stablecoin_metrics_ez_stablecoin_metrics_id", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_defillama__ez_stablecoi_5653c3507cd1c9cef1beb2ff3bcb0cf1\") }}", "language": "sql", "refs": [{"name": "defillama__ez_stablecoin_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.defillama__ez_stablecoin_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__ez_stablecoin_metrics.yml/unique_defillama__ez_stablecoi_5653c3507cd1c9cef1beb2ff3bcb0cf1.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n ez_stablecoin_metrics_id as unique_field,\n count(*) as n_records\n\nfrom EXTERNAL.defillama.ez_stablecoin_metrics\nwhere ez_stablecoin_metrics_id is not null\ngroup by ez_stablecoin_metrics_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ez_stablecoin_metrics_id", "file_key_name": "models.defillama__ez_stablecoin_metrics", "attached_node": "model.external_models.defillama__ez_stablecoin_metrics"}, "test.external_models.not_null_defillama__ez_stablecoin_metrics_ez_stablecoin_metrics_id.adf99e97ff": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ez_stablecoin_metrics_id", "model": "{{ get_where_subquery(ref('defillama__ez_stablecoin_metrics')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_defillama", "name": "not_null_defillama__ez_stablecoin_metrics_ez_stablecoin_metrics_id", "resource_type": "test", "package_name": "external_models", "path": "not_null_defillama__ez_stablec_c160be5b5934f0b8699fefffa28956e7.sql", "original_file_path": "models/defillama/gold/defillama__ez_stablecoin_metrics.yml", "unique_id": "test.external_models.not_null_defillama__ez_stablecoin_metrics_ez_stablecoin_metrics_id.adf99e97ff", "fqn": ["external_models", "defillama", "gold", "not_null_defillama__ez_stablecoin_metrics_ez_stablecoin_metrics_id"], "alias": "ez_stablecoin_metrics_ez_stablecoin_metrics_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_defillama__ez_stablec_c160be5b5934f0b8699fefffa28956e7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "not_null_defillama__ez_stablec_c160be5b5934f0b8699fefffa28956e7"}, "created_at": 1760113502.2397437, "relation_name": "EXTERNAL.not_null_defillama.ez_stablecoin_metrics_ez_stablecoin_metrics_id", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_defillama__ez_stablec_c160be5b5934f0b8699fefffa28956e7\") }}", "language": "sql", "refs": [{"name": "defillama__ez_stablecoin_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.defillama__ez_stablecoin_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__ez_stablecoin_metrics.yml/not_null_defillama__ez_stablec_c160be5b5934f0b8699fefffa28956e7.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.defillama.ez_stablecoin_metrics\nwhere ez_stablecoin_metrics_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ez_stablecoin_metrics_id", "file_key_name": "models.defillama__ez_stablecoin_metrics", "attached_node": "model.external_models.defillama__ez_stablecoin_metrics"}, "test.external_models.not_null_defillama__ez_stablecoin_metrics_inserted_timestamp.20f593d022": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "inserted_timestamp", "model": "{{ get_where_subquery(ref('defillama__ez_stablecoin_metrics')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_defillama", "name": "not_null_defillama__ez_stablecoin_metrics_inserted_timestamp", "resource_type": "test", "package_name": "external_models", "path": "not_null_defillama__ez_stablecoin_metrics_inserted_timestamp.sql", "original_file_path": "models/defillama/gold/defillama__ez_stablecoin_metrics.yml", "unique_id": "test.external_models.not_null_defillama__ez_stablecoin_metrics_inserted_timestamp.20f593d022", "fqn": ["external_models", "defillama", "gold", "not_null_defillama__ez_stablecoin_metrics_inserted_timestamp"], "alias": "ez_stablecoin_metrics_inserted_timestamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.2415102, "relation_name": "EXTERNAL.not_null_defillama.ez_stablecoin_metrics_inserted_timestamp", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "defillama__ez_stablecoin_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.defillama__ez_stablecoin_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__ez_stablecoin_metrics.yml/not_null_defillama__ez_stablecoin_metrics_inserted_timestamp.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.defillama.ez_stablecoin_metrics\nwhere inserted_timestamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "inserted_timestamp", "file_key_name": "models.defillama__ez_stablecoin_metrics", "attached_node": "model.external_models.defillama__ez_stablecoin_metrics"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_defillama__ez_stablecoin_metrics_inserted_timestamp__day__2.acb8be47e0": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 2, "column_name": "inserted_timestamp", "model": "{{ get_where_subquery(ref('defillama__ez_stablecoin_metrics')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_defillama", "name": "dbt_expectations_expect_row_values_to_have_recent_data_defillama__ez_stablecoin_metrics_inserted_timestamp__day__2", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_row_va_86b9a962af5be9a06e89b46e5867e439.sql", "original_file_path": "models/defillama/gold/defillama__ez_stablecoin_metrics.yml", "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_defillama__ez_stablecoin_metrics_inserted_timestamp__day__2.acb8be47e0", "fqn": ["external_models", "defillama", "gold", "dbt_expectations_expect_row_values_to_have_recent_data_defillama__ez_stablecoin_metrics_inserted_timestamp__day__2"], "alias": "ez_stablecoin_metrics_inserted_timestamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_86b9a962af5be9a06e89b46e5867e439", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_86b9a962af5be9a06e89b46e5867e439"}, "created_at": 1760113502.2434065, "relation_name": "EXTERNAL.dbt_expectations_expect_row_values_to_have_recent_data_defillama.ez_stablecoin_metrics_inserted_timestamp", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_86b9a962af5be9a06e89b46e5867e439\") }}", "language": "sql", "refs": [{"name": "defillama__ez_stablecoin_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.defillama__ez_stablecoin_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__ez_stablecoin_metrics.yml/dbt_expectations_expect_row_va_86b9a962af5be9a06e89b46e5867e439.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(inserted_timestamp as timestamp_ntz)) as max_timestamp\n from\n EXTERNAL.defillama.ez_stablecoin_metrics\n where\n -- to exclude erroneous future dates\n cast(inserted_timestamp as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "inserted_timestamp", "file_key_name": "models.defillama__ez_stablecoin_metrics", "attached_node": "model.external_models.defillama__ez_stablecoin_metrics"}, "test.external_models.not_null_defillama__ez_stablecoin_metrics_modified_timestamp.d90908e883": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "modified_timestamp", "model": "{{ get_where_subquery(ref('defillama__ez_stablecoin_metrics')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_defillama", "name": "not_null_defillama__ez_stablecoin_metrics_modified_timestamp", "resource_type": "test", "package_name": "external_models", "path": "not_null_defillama__ez_stablecoin_metrics_modified_timestamp.sql", "original_file_path": "models/defillama/gold/defillama__ez_stablecoin_metrics.yml", "unique_id": "test.external_models.not_null_defillama__ez_stablecoin_metrics_modified_timestamp.d90908e883", "fqn": ["external_models", "defillama", "gold", "not_null_defillama__ez_stablecoin_metrics_modified_timestamp"], "alias": "ez_stablecoin_metrics_modified_timestamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.2493157, "relation_name": "EXTERNAL.not_null_defillama.ez_stablecoin_metrics_modified_timestamp", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "defillama__ez_stablecoin_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.defillama__ez_stablecoin_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__ez_stablecoin_metrics.yml/not_null_defillama__ez_stablecoin_metrics_modified_timestamp.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.defillama.ez_stablecoin_metrics\nwhere modified_timestamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "modified_timestamp", "file_key_name": "models.defillama__ez_stablecoin_metrics", "attached_node": "model.external_models.defillama__ez_stablecoin_metrics"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_defillama__ez_stablecoin_metrics_modified_timestamp__day__2.a305d6efe9": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 2, "column_name": "modified_timestamp", "model": "{{ get_where_subquery(ref('defillama__ez_stablecoin_metrics')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_defillama", "name": "dbt_expectations_expect_row_values_to_have_recent_data_defillama__ez_stablecoin_metrics_modified_timestamp__day__2", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_row_va_474b8585420daa2b91d9fb23ad519598.sql", "original_file_path": "models/defillama/gold/defillama__ez_stablecoin_metrics.yml", "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_defillama__ez_stablecoin_metrics_modified_timestamp__day__2.a305d6efe9", "fqn": ["external_models", "defillama", "gold", "dbt_expectations_expect_row_values_to_have_recent_data_defillama__ez_stablecoin_metrics_modified_timestamp__day__2"], "alias": "ez_stablecoin_metrics_modified_timestamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_474b8585420daa2b91d9fb23ad519598", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_474b8585420daa2b91d9fb23ad519598"}, "created_at": 1760113502.251092, "relation_name": "EXTERNAL.dbt_expectations_expect_row_values_to_have_recent_data_defillama.ez_stablecoin_metrics_modified_timestamp", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_474b8585420daa2b91d9fb23ad519598\") }}", "language": "sql", "refs": [{"name": "defillama__ez_stablecoin_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.defillama__ez_stablecoin_metrics"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__ez_stablecoin_metrics.yml/dbt_expectations_expect_row_va_474b8585420daa2b91d9fb23ad519598.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(modified_timestamp as timestamp_ntz)) as max_timestamp\n from\n EXTERNAL.defillama.ez_stablecoin_metrics\n where\n -- to exclude erroneous future dates\n cast(modified_timestamp as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "modified_timestamp", "file_key_name": "models.defillama__ez_stablecoin_metrics", "attached_node": "model.external_models.defillama__ez_stablecoin_metrics"}, "test.external_models.dbt_utils_unique_combination_of_columns_defillama__fact_usdt_usdc_supply_DEFILLAMA_FACT_USDT_USDC_SUPPLY_ID.af85cd2773": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["DEFILLAMA_FACT_USDT_USDC_SUPPLY_ID"], "model": "{{ get_where_subquery(ref('defillama__fact_usdt_usdc_supply')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_defillama", "name": "dbt_utils_unique_combination_of_columns_defillama__fact_usdt_usdc_supply_DEFILLAMA_FACT_USDT_USDC_SUPPLY_ID", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_35948d22ed4937f0580ff38e07a736d5.sql", "original_file_path": "models/defillama/gold/defillama__fact_usdt_usdc_supply.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_defillama__fact_usdt_usdc_supply_DEFILLAMA_FACT_USDT_USDC_SUPPLY_ID.af85cd2773", "fqn": ["external_models", "defillama", "gold", "dbt_utils_unique_combination_of_columns_defillama__fact_usdt_usdc_supply_DEFILLAMA_FACT_USDT_USDC_SUPPLY_ID"], "alias": "fact_usdt_usdc_supply_DEFILLAMA_FACT_USDT_USDC_SUPPLY_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_35948d22ed4937f0580ff38e07a736d5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_35948d22ed4937f0580ff38e07a736d5"}, "created_at": 1760113502.2634544, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_defillama.fact_usdt_usdc_supply_DEFILLAMA_FACT_USDT_USDC_SUPPLY_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_35948d22ed4937f0580ff38e07a736d5\") }}", "language": "sql", "refs": [{"name": "defillama__fact_usdt_usdc_supply", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.defillama__fact_usdt_usdc_supply"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__fact_usdt_usdc_supply.yml/dbt_utils_unique_combination_o_35948d22ed4937f0580ff38e07a736d5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n DEFILLAMA_FACT_USDT_USDC_SUPPLY_ID\n from EXTERNAL.defillama.fact_usdt_usdc_supply\n group by DEFILLAMA_FACT_USDT_USDC_SUPPLY_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.defillama__fact_usdt_usdc_supply", "attached_node": "model.external_models.defillama__fact_usdt_usdc_supply"}, "test.external_models.not_null_defillama__dim_protocols_MODIFIED_TIMESTAMP.2e3ecb0b3e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('defillama__dim_protocols')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_defillama", "name": "not_null_defillama__dim_protocols_MODIFIED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_defillama__dim_protocols_MODIFIED_TIMESTAMP.sql", "original_file_path": "models/defillama/gold/defillama__dim_protocols.yml", "unique_id": "test.external_models.not_null_defillama__dim_protocols_MODIFIED_TIMESTAMP.2e3ecb0b3e", "fqn": ["external_models", "defillama", "gold", "not_null_defillama__dim_protocols_MODIFIED_TIMESTAMP"], "alias": "dim_protocols_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.2973373, "relation_name": "EXTERNAL.not_null_defillama.dim_protocols_MODIFIED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "defillama__dim_protocols", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.defillama__dim_protocols"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__dim_protocols.yml/not_null_defillama__dim_protocols_MODIFIED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.defillama.dim_protocols\nwhere MODIFIED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.defillama__dim_protocols", "attached_node": "model.external_models.defillama__dim_protocols"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_defillama__dim_protocols_MODIFIED_TIMESTAMP__TIMESTAMP_NTZ.390f2a37c8": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('defillama__dim_protocols')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_defillama", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_defillama__dim_protocols_MODIFIED_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_866225d127c5733df0ce152e55d24b14.sql", "original_file_path": "models/defillama/gold/defillama__dim_protocols.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_defillama__dim_protocols_MODIFIED_TIMESTAMP__TIMESTAMP_NTZ.390f2a37c8", "fqn": ["external_models", "defillama", "gold", "dbt_expectations_expect_column_values_to_be_in_type_list_defillama__dim_protocols_MODIFIED_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "dim_protocols_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_866225d127c5733df0ce152e55d24b14", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_866225d127c5733df0ce152e55d24b14"}, "created_at": 1760113502.2993524, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_defillama.dim_protocols_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_866225d127c5733df0ce152e55d24b14\") }}", "language": "sql", "refs": [{"name": "defillama__dim_protocols", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.defillama__dim_protocols"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__dim_protocols.yml/dbt_expectations_expect_column_866225d127c5733df0ce152e55d24b14.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('PROTOCOL_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_SLUG' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DESCRIPTION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAINS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NUM_AUDITS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('AUDIT_NOTE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TWITTER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TVL' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAIN_TVLS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('DIM_PROTOCOLS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'MODIFIED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.defillama__dim_protocols", "attached_node": "model.external_models.defillama__dim_protocols"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_defillama__dim_protocols_MODIFIED_TIMESTAMP__day__2.6fbd64af1e": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 2, "column_name": "MODIFIED_TIMESTAMP", "model": "{{ get_where_subquery(ref('defillama__dim_protocols')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_defillama", "name": "dbt_expectations_expect_row_values_to_have_recent_data_defillama__dim_protocols_MODIFIED_TIMESTAMP__day__2", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_row_va_a10772d8ad8a5ebde969ea924056edaf.sql", "original_file_path": "models/defillama/gold/defillama__dim_protocols.yml", "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_defillama__dim_protocols_MODIFIED_TIMESTAMP__day__2.6fbd64af1e", "fqn": ["external_models", "defillama", "gold", "dbt_expectations_expect_row_values_to_have_recent_data_defillama__dim_protocols_MODIFIED_TIMESTAMP__day__2"], "alias": "dim_protocols_MODIFIED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_a10772d8ad8a5ebde969ea924056edaf", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_a10772d8ad8a5ebde969ea924056edaf"}, "created_at": 1760113502.30363, "relation_name": "EXTERNAL.dbt_expectations_expect_row_values_to_have_recent_data_defillama.dim_protocols_MODIFIED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_a10772d8ad8a5ebde969ea924056edaf\") }}", "language": "sql", "refs": [{"name": "defillama__dim_protocols", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.defillama__dim_protocols"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__dim_protocols.yml/dbt_expectations_expect_row_va_a10772d8ad8a5ebde969ea924056edaf.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(MODIFIED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n EXTERNAL.defillama.dim_protocols\n where\n -- to exclude erroneous future dates\n cast(MODIFIED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "MODIFIED_TIMESTAMP", "file_key_name": "models.defillama__dim_protocols", "attached_node": "model.external_models.defillama__dim_protocols"}, "test.external_models.not_null_defillama__dim_protocols_INSERTED_TIMESTAMP.46acb9a7da": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('defillama__dim_protocols')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_defillama", "name": "not_null_defillama__dim_protocols_INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_defillama__dim_protocols_INSERTED_TIMESTAMP.sql", "original_file_path": "models/defillama/gold/defillama__dim_protocols.yml", "unique_id": "test.external_models.not_null_defillama__dim_protocols_INSERTED_TIMESTAMP.46acb9a7da", "fqn": ["external_models", "defillama", "gold", "not_null_defillama__dim_protocols_INSERTED_TIMESTAMP"], "alias": "dim_protocols_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.30955, "relation_name": "EXTERNAL.not_null_defillama.dim_protocols_INSERTED_TIMESTAMP", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "defillama__dim_protocols", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.defillama__dim_protocols"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__dim_protocols.yml/not_null_defillama__dim_protocols_INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.defillama.dim_protocols\nwhere INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.defillama__dim_protocols", "attached_node": "model.external_models.defillama__dim_protocols"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_defillama__dim_protocols_INSERTED_TIMESTAMP__TIMESTAMP_NTZ.3e63f796d0": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('defillama__dim_protocols')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_defillama", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_defillama__dim_protocols_INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_a78999413c81f060d164a5509851228b.sql", "original_file_path": "models/defillama/gold/defillama__dim_protocols.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_defillama__dim_protocols_INSERTED_TIMESTAMP__TIMESTAMP_NTZ.3e63f796d0", "fqn": ["external_models", "defillama", "gold", "dbt_expectations_expect_column_values_to_be_in_type_list_defillama__dim_protocols_INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "dim_protocols_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_a78999413c81f060d164a5509851228b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_a78999413c81f060d164a5509851228b"}, "created_at": 1760113502.3115737, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_defillama.dim_protocols_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_a78999413c81f060d164a5509851228b\") }}", "language": "sql", "refs": [{"name": "defillama__dim_protocols", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.defillama__dim_protocols"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__dim_protocols.yml/dbt_expectations_expect_column_a78999413c81f060d164a5509851228b.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('PROTOCOL_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_SLUG' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DESCRIPTION' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAINS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NUM_AUDITS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('AUDIT_NOTE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TWITTER' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TVL' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAIN_TVLS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('DIM_PROTOCOLS_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = 'INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.defillama__dim_protocols", "attached_node": "model.external_models.defillama__dim_protocols"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_defillama__dim_protocols_INSERTED_TIMESTAMP__day__2.0f727fed14": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 2, "column_name": "INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('defillama__dim_protocols')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_defillama", "name": "dbt_expectations_expect_row_values_to_have_recent_data_defillama__dim_protocols_INSERTED_TIMESTAMP__day__2", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_row_va_f0ac3d9b0629cfa870d8aa008ef0703e.sql", "original_file_path": "models/defillama/gold/defillama__dim_protocols.yml", "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_defillama__dim_protocols_INSERTED_TIMESTAMP__day__2.0f727fed14", "fqn": ["external_models", "defillama", "gold", "dbt_expectations_expect_row_values_to_have_recent_data_defillama__dim_protocols_INSERTED_TIMESTAMP__day__2"], "alias": "dim_protocols_INSERTED_TIMESTAMP", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_f0ac3d9b0629cfa870d8aa008ef0703e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_f0ac3d9b0629cfa870d8aa008ef0703e"}, "created_at": 1760113502.3158896, "relation_name": "EXTERNAL.dbt_expectations_expect_row_values_to_have_recent_data_defillama.dim_protocols_INSERTED_TIMESTAMP", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_f0ac3d9b0629cfa870d8aa008ef0703e\") }}", "language": "sql", "refs": [{"name": "defillama__dim_protocols", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.defillama__dim_protocols"]}, "compiled_path": "target/compiled/external_models/models/defillama/gold/defillama__dim_protocols.yml/dbt_expectations_expect_row_va_f0ac3d9b0629cfa870d8aa008ef0703e.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(INSERTED_TIMESTAMP as timestamp_ntz)) as max_timestamp\n from\n EXTERNAL.defillama.dim_protocols\n where\n -- to exclude erroneous future dates\n cast(INSERTED_TIMESTAMP as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "INSERTED_TIMESTAMP", "file_key_name": "models.defillama__dim_protocols", "attached_node": "model.external_models.defillama__dim_protocols"}, "test.external_models.not_null_bronze__defillama_dexes_DEX_ID.279f415a10": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DEX_ID", "model": "{{ get_where_subquery(ref('bronze__defillama_dexes')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__defillama_dexes_DEX_ID", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__defillama_dexes_DEX_ID.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_dexes.yml", "unique_id": "test.external_models.not_null_bronze__defillama_dexes_DEX_ID.279f415a10", "fqn": ["external_models", "defillama", "bronze", "not_null_bronze__defillama_dexes_DEX_ID"], "alias": "defillama_dexes_DEX_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.3355355, "relation_name": "EXTERNAL.not_null_bronze.defillama_dexes_DEX_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__defillama_dexes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_dexes"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_dexes.yml/not_null_bronze__defillama_dexes_DEX_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.defillama_dexes\nwhere DEX_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DEX_ID", "file_key_name": "models.bronze__defillama_dexes", "attached_node": "model.external_models.bronze__defillama_dexes"}, "test.external_models.not_null_bronze__defillama_dexes_DEX.773f1f75f7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "DEX", "model": "{{ get_where_subquery(ref('bronze__defillama_dexes')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__defillama_dexes_DEX", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__defillama_dexes_DEX.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_dexes.yml", "unique_id": "test.external_models.not_null_bronze__defillama_dexes_DEX.773f1f75f7", "fqn": ["external_models", "defillama", "bronze", "not_null_bronze__defillama_dexes_DEX"], "alias": "defillama_dexes_DEX", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.3373797, "relation_name": "EXTERNAL.not_null_bronze.defillama_dexes_DEX", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__defillama_dexes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_dexes"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_dexes.yml/not_null_bronze__defillama_dexes_DEX.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.defillama_dexes\nwhere DEX is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "DEX", "file_key_name": "models.bronze__defillama_dexes", "attached_node": "model.external_models.bronze__defillama_dexes"}, "test.external_models.not_null_bronze__defillama_dexes__INSERTED_TIMESTAMP.27d26ad6e1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze__defillama_dexes')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__defillama_dexes__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__defillama_dexes__INSERTED_TIMESTAMP.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_dexes.yml", "unique_id": "test.external_models.not_null_bronze__defillama_dexes__INSERTED_TIMESTAMP.27d26ad6e1", "fqn": ["external_models", "defillama", "bronze", "not_null_bronze__defillama_dexes__INSERTED_TIMESTAMP"], "alias": "defillama_dexes", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.3392446, "relation_name": "EXTERNAL.not_null_bronze.defillama_dexes", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__defillama_dexes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_dexes"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_dexes.yml/not_null_bronze__defillama_dexes__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.defillama_dexes\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze__defillama_dexes", "attached_node": "model.external_models.bronze__defillama_dexes"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_dexes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.6158c95d98": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze__defillama_dexes')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_dexes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_55a677cc7b5076d9a1a8e1527a9babeb.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_dexes.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_dexes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.6158c95d98", "fqn": ["external_models", "defillama", "bronze", "dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_dexes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "defillama_dexes", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_55a677cc7b5076d9a1a8e1527a9babeb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_55a677cc7b5076d9a1a8e1527a9babeb"}, "created_at": 1760113502.3415778, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_bronze.defillama_dexes", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_55a677cc7b5076d9a1a8e1527a9babeb\") }}", "language": "sql", "refs": [{"name": "bronze__defillama_dexes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_dexes"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_dexes.yml/dbt_expectations_expect_column_55a677cc7b5076d9a1a8e1527a9babeb.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('DEX_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DEX' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAINS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze__defillama_dexes", "attached_node": "model.external_models.bronze__defillama_dexes"}, "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_dexes_DEX_ID__DEX.a9bfc87b1f": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["DEX_ID", "DEX"], "model": "{{ get_where_subquery(ref('bronze__defillama_dexes')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_bronze", "name": "dbt_utils_unique_combination_of_columns_bronze__defillama_dexes_DEX_ID__DEX", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_ac3ff24dfdca6dff820e055b8f6e1fa8.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_dexes.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_dexes_DEX_ID__DEX.a9bfc87b1f", "fqn": ["external_models", "defillama", "bronze", "dbt_utils_unique_combination_of_columns_bronze__defillama_dexes_DEX_ID__DEX"], "alias": "defillama_dexes_DEX_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ac3ff24dfdca6dff820e055b8f6e1fa8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_ac3ff24dfdca6dff820e055b8f6e1fa8"}, "created_at": 1760113502.345922, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_bronze.defillama_dexes_DEX_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ac3ff24dfdca6dff820e055b8f6e1fa8\") }}", "language": "sql", "refs": [{"name": "bronze__defillama_dexes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_dexes"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_dexes.yml/dbt_utils_unique_combination_o_ac3ff24dfdca6dff820e055b8f6e1fa8.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n DEX_ID, DEX\n from EXTERNAL.bronze.defillama_dexes\n group by DEX_ID, DEX\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.bronze__defillama_dexes", "attached_node": "model.external_models.bronze__defillama_dexes"}, "test.external_models.not_null_bronze__defillama_chains_CHAIN.c988effa27": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CHAIN", "model": "{{ get_where_subquery(ref('bronze__defillama_chains')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__defillama_chains_CHAIN", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__defillama_chains_CHAIN.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_chains.yml", "unique_id": "test.external_models.not_null_bronze__defillama_chains_CHAIN.c988effa27", "fqn": ["external_models", "defillama", "bronze", "not_null_bronze__defillama_chains_CHAIN"], "alias": "defillama_chains_CHAIN", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.3514147, "relation_name": "EXTERNAL.not_null_bronze.defillama_chains_CHAIN", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__defillama_chains", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_chains"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_chains.yml/not_null_bronze__defillama_chains_CHAIN.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.defillama_chains\nwhere CHAIN is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CHAIN", "file_key_name": "models.bronze__defillama_chains", "attached_node": "model.external_models.bronze__defillama_chains"}, "test.external_models.not_null_bronze__defillama_chains__INSERTED_TIMESTAMP.826ea39a44": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze__defillama_chains')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__defillama_chains__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__defillama_chains__INSERTED_TIMESTAMP.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_chains.yml", "unique_id": "test.external_models.not_null_bronze__defillama_chains__INSERTED_TIMESTAMP.826ea39a44", "fqn": ["external_models", "defillama", "bronze", "not_null_bronze__defillama_chains__INSERTED_TIMESTAMP"], "alias": "defillama_chains", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.3532538, "relation_name": "EXTERNAL.not_null_bronze.defillama_chains", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__defillama_chains", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_chains"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_chains.yml/not_null_bronze__defillama_chains__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.defillama_chains\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze__defillama_chains", "attached_node": "model.external_models.bronze__defillama_chains"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_chains__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.4cb489c21f": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze__defillama_chains')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_chains__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_a10cea6f02b1749b715c2faa7936e74e.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_chains.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_chains__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.4cb489c21f", "fqn": ["external_models", "defillama", "bronze", "dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_chains__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "defillama_chains", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_a10cea6f02b1749b715c2faa7936e74e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_a10cea6f02b1749b715c2faa7936e74e"}, "created_at": 1760113502.3551164, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_bronze.defillama_chains", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_a10cea6f02b1749b715c2faa7936e74e\") }}", "language": "sql", "refs": [{"name": "bronze__defillama_chains", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_chains"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_chains.yml/dbt_expectations_expect_column_a10cea6f02b1749b715c2faa7936e74e.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('CHAIN_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ROW_NUM' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze__defillama_chains", "attached_node": "model.external_models.bronze__defillama_chains"}, "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_chains_CHAIN.545e1a28c1": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["CHAIN"], "model": "{{ get_where_subquery(ref('bronze__defillama_chains')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_bronze", "name": "dbt_utils_unique_combination_of_columns_bronze__defillama_chains_CHAIN", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_9242652f80f716c818a7ba3376177235.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_chains.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_chains_CHAIN.545e1a28c1", "fqn": ["external_models", "defillama", "bronze", "dbt_utils_unique_combination_of_columns_bronze__defillama_chains_CHAIN"], "alias": "defillama_chains_CHAIN", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_9242652f80f716c818a7ba3376177235", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_9242652f80f716c818a7ba3376177235"}, "created_at": 1760113502.3597598, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_bronze.defillama_chains_CHAIN", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_9242652f80f716c818a7ba3376177235\") }}", "language": "sql", "refs": [{"name": "bronze__defillama_chains", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_chains"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_chains.yml/dbt_utils_unique_combination_o_9242652f80f716c818a7ba3376177235.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n CHAIN\n from EXTERNAL.bronze.defillama_chains\n group by CHAIN\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.bronze__defillama_chains", "attached_node": "model.external_models.bronze__defillama_chains"}, "test.external_models.not_null_bronze__defillama_stablecoins_STABLECOIN_ID.2e0b05c5d2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "STABLECOIN_ID", "model": "{{ get_where_subquery(ref('bronze__defillama_stablecoins')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__defillama_stablecoins_STABLECOIN_ID", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__defillama_stablecoins_STABLECOIN_ID.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_stablecoins.yml", "unique_id": "test.external_models.not_null_bronze__defillama_stablecoins_STABLECOIN_ID.2e0b05c5d2", "fqn": ["external_models", "defillama", "bronze", "not_null_bronze__defillama_stablecoins_STABLECOIN_ID"], "alias": "defillama_stablecoins_STABLECOIN_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.3653963, "relation_name": "EXTERNAL.not_null_bronze.defillama_stablecoins_STABLECOIN_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__defillama_stablecoins", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_stablecoins"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_stablecoins.yml/not_null_bronze__defillama_stablecoins_STABLECOIN_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.defillama_stablecoins\nwhere STABLECOIN_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "STABLECOIN_ID", "file_key_name": "models.bronze__defillama_stablecoins", "attached_node": "model.external_models.bronze__defillama_stablecoins"}, "test.external_models.not_null_bronze__defillama_stablecoins_STABLECOIN.64b104eca3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "STABLECOIN", "model": "{{ get_where_subquery(ref('bronze__defillama_stablecoins')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__defillama_stablecoins_STABLECOIN", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__defillama_stablecoins_STABLECOIN.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_stablecoins.yml", "unique_id": "test.external_models.not_null_bronze__defillama_stablecoins_STABLECOIN.64b104eca3", "fqn": ["external_models", "defillama", "bronze", "not_null_bronze__defillama_stablecoins_STABLECOIN"], "alias": "defillama_stablecoins_STABLECOIN", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.3672373, "relation_name": "EXTERNAL.not_null_bronze.defillama_stablecoins_STABLECOIN", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__defillama_stablecoins", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_stablecoins"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_stablecoins.yml/not_null_bronze__defillama_stablecoins_STABLECOIN.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.defillama_stablecoins\nwhere STABLECOIN is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "STABLECOIN", "file_key_name": "models.bronze__defillama_stablecoins", "attached_node": "model.external_models.bronze__defillama_stablecoins"}, "test.external_models.not_null_bronze__defillama_stablecoins__INSERTED_TIMESTAMP.e8667d321e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze__defillama_stablecoins')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__defillama_stablecoins__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__defillama_stablecoins__INSERTED_TIMESTAMP.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_stablecoins.yml", "unique_id": "test.external_models.not_null_bronze__defillama_stablecoins__INSERTED_TIMESTAMP.e8667d321e", "fqn": ["external_models", "defillama", "bronze", "not_null_bronze__defillama_stablecoins__INSERTED_TIMESTAMP"], "alias": "defillama_stablecoins", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.3690236, "relation_name": "EXTERNAL.not_null_bronze.defillama_stablecoins", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__defillama_stablecoins", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_stablecoins"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_stablecoins.yml/not_null_bronze__defillama_stablecoins__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.defillama_stablecoins\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze__defillama_stablecoins", "attached_node": "model.external_models.bronze__defillama_stablecoins"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_stablecoins__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.258f8a2290": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze__defillama_stablecoins')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_stablecoins__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_65cd4249187b12959d3174111a2eb256.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_stablecoins.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_stablecoins__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.258f8a2290", "fqn": ["external_models", "defillama", "bronze", "dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_stablecoins__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "defillama_stablecoins", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_65cd4249187b12959d3174111a2eb256", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_65cd4249187b12959d3174111a2eb256"}, "created_at": 1760113502.3708544, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_bronze.defillama_stablecoins", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_65cd4249187b12959d3174111a2eb256\") }}", "language": "sql", "refs": [{"name": "bronze__defillama_stablecoins", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_stablecoins"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_stablecoins.yml/dbt_expectations_expect_column_65cd4249187b12959d3174111a2eb256.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('STABLECOIN_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STABLECOIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PEG_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PEG_MECHANISM' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PRICE_SOURCE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAINS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('ROW_NUM' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze__defillama_stablecoins", "attached_node": "model.external_models.bronze__defillama_stablecoins"}, "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_stablecoins_STABLECOIN_ID.626bc22a29": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["STABLECOIN_ID"], "model": "{{ get_where_subquery(ref('bronze__defillama_stablecoins')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_bronze", "name": "dbt_utils_unique_combination_of_columns_bronze__defillama_stablecoins_STABLECOIN_ID", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_1d78681d46b058f5d002479bd066d276.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_stablecoins.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_stablecoins_STABLECOIN_ID.626bc22a29", "fqn": ["external_models", "defillama", "bronze", "dbt_utils_unique_combination_of_columns_bronze__defillama_stablecoins_STABLECOIN_ID"], "alias": "defillama_stablecoins_STABLECOIN_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1d78681d46b058f5d002479bd066d276", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_1d78681d46b058f5d002479bd066d276"}, "created_at": 1760113502.3754241, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_bronze.defillama_stablecoins_STABLECOIN_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1d78681d46b058f5d002479bd066d276\") }}", "language": "sql", "refs": [{"name": "bronze__defillama_stablecoins", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_stablecoins"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_stablecoins.yml/dbt_utils_unique_combination_o_1d78681d46b058f5d002479bd066d276.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n STABLECOIN_ID\n from EXTERNAL.bronze.defillama_stablecoins\n group by STABLECOIN_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.bronze__defillama_stablecoins", "attached_node": "model.external_models.bronze__defillama_stablecoins"}, "test.external_models.not_null_bronze__defillama_stablecoin_supply__INSERTED_TIMESTAMP.466594afa2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze__defillama_stablecoin_supply')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__defillama_stablecoin_supply__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__defillama_sta_d6a2914884a7a47a56871339b4ac5c29.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_stablecoin_supply.yml", "unique_id": "test.external_models.not_null_bronze__defillama_stablecoin_supply__INSERTED_TIMESTAMP.466594afa2", "fqn": ["external_models", "defillama", "bronze", "not_null_bronze__defillama_stablecoin_supply__INSERTED_TIMESTAMP"], "alias": "defillama_stablecoin_supply", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_bronze__defillama_sta_d6a2914884a7a47a56871339b4ac5c29", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "not_null_bronze__defillama_sta_d6a2914884a7a47a56871339b4ac5c29"}, "created_at": 1760113502.3805835, "relation_name": "EXTERNAL.not_null_bronze.defillama_stablecoin_supply", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_bronze__defillama_sta_d6a2914884a7a47a56871339b4ac5c29\") }}", "language": "sql", "refs": [{"name": "bronze__defillama_stablecoin_supply", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_stablecoin_supply"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_stablecoin_supply.yml/not_null_bronze__defillama_sta_d6a2914884a7a47a56871339b4ac5c29.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.defillama_stablecoin_supply\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze__defillama_stablecoin_supply", "attached_node": "model.external_models.bronze__defillama_stablecoin_supply"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_stablecoin_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.22ec5016c6": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze__defillama_stablecoin_supply')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_stablecoin_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_c9ff9bb2a272bcd4c5af8c58d74b27c3.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_stablecoin_supply.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_stablecoin_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.22ec5016c6", "fqn": ["external_models", "defillama", "bronze", "dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_stablecoin_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "defillama_stablecoin_supply", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_c9ff9bb2a272bcd4c5af8c58d74b27c3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_c9ff9bb2a272bcd4c5af8c58d74b27c3"}, "created_at": 1760113502.382664, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_bronze.defillama_stablecoin_supply", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_c9ff9bb2a272bcd4c5af8c58d74b27c3\") }}", "language": "sql", "refs": [{"name": "bronze__defillama_stablecoin_supply", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_stablecoin_supply"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_stablecoin_supply.yml/dbt_expectations_expect_column_c9ff9bb2a272bcd4c5af8c58d74b27c3.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('ADDRESS' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STABLECOIN_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('VALUE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze__defillama_stablecoin_supply", "attached_node": "model.external_models.bronze__defillama_stablecoin_supply"}, "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_stablecoin_supply_STABLECOIN_ID__TIMESTAMP.a73b0531bc": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["STABLECOIN_ID", "TIMESTAMP"], "model": "{{ get_where_subquery(ref('bronze__defillama_stablecoin_supply')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_bronze", "name": "dbt_utils_unique_combination_of_columns_bronze__defillama_stablecoin_supply_STABLECOIN_ID__TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_69518ce88b672e265c939868eb7032f6.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_stablecoin_supply.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_stablecoin_supply_STABLECOIN_ID__TIMESTAMP.a73b0531bc", "fqn": ["external_models", "defillama", "bronze", "dbt_utils_unique_combination_of_columns_bronze__defillama_stablecoin_supply_STABLECOIN_ID__TIMESTAMP"], "alias": "defillama_stablecoin_supply_STABLECOIN_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_69518ce88b672e265c939868eb7032f6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_69518ce88b672e265c939868eb7032f6"}, "created_at": 1760113502.3870282, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_bronze.defillama_stablecoin_supply_STABLECOIN_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_69518ce88b672e265c939868eb7032f6\") }}", "language": "sql", "refs": [{"name": "bronze__defillama_stablecoin_supply", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_stablecoin_supply"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_stablecoin_supply.yml/dbt_utils_unique_combination_o_69518ce88b672e265c939868eb7032f6.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n STABLECOIN_ID, TIMESTAMP\n from EXTERNAL.bronze.defillama_stablecoin_supply\n group by STABLECOIN_ID, TIMESTAMP\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.bronze__defillama_stablecoin_supply", "attached_node": "model.external_models.bronze__defillama_stablecoin_supply"}, "test.external_models.not_null_bronze__defillama_protocol_tvl_PROTOCOL_ID.45da76f0c4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROTOCOL_ID", "model": "{{ get_where_subquery(ref('bronze__defillama_protocol_tvl')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__defillama_protocol_tvl_PROTOCOL_ID", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__defillama_protocol_tvl_PROTOCOL_ID.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_protocol_tvl.yml", "unique_id": "test.external_models.not_null_bronze__defillama_protocol_tvl_PROTOCOL_ID.45da76f0c4", "fqn": ["external_models", "defillama", "bronze", "not_null_bronze__defillama_protocol_tvl_PROTOCOL_ID"], "alias": "defillama_protocol_tvl_PROTOCOL_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.3925495, "relation_name": "EXTERNAL.not_null_bronze.defillama_protocol_tvl_PROTOCOL_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__defillama_protocol_tvl", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_protocol_tvl"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_protocol_tvl.yml/not_null_bronze__defillama_protocol_tvl_PROTOCOL_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.defillama_protocol_tvl\nwhere PROTOCOL_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROTOCOL_ID", "file_key_name": "models.bronze__defillama_protocol_tvl", "attached_node": "model.external_models.bronze__defillama_protocol_tvl"}, "test.external_models.not_null_bronze__defillama_protocol_tvl__INSERTED_TIMESTAMP.2237722b25": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze__defillama_protocol_tvl')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__defillama_protocol_tvl__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__defillama_protocol_tvl__INSERTED_TIMESTAMP.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_protocol_tvl.yml", "unique_id": "test.external_models.not_null_bronze__defillama_protocol_tvl__INSERTED_TIMESTAMP.2237722b25", "fqn": ["external_models", "defillama", "bronze", "not_null_bronze__defillama_protocol_tvl__INSERTED_TIMESTAMP"], "alias": "defillama_protocol_tvl", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.3943696, "relation_name": "EXTERNAL.not_null_bronze.defillama_protocol_tvl", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__defillama_protocol_tvl", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_protocol_tvl"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_protocol_tvl.yml/not_null_bronze__defillama_protocol_tvl__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.defillama_protocol_tvl\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze__defillama_protocol_tvl", "attached_node": "model.external_models.bronze__defillama_protocol_tvl"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_protocol_tvl__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.3adf7c0003": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze__defillama_protocol_tvl')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_protocol_tvl__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_3b38936793cc5cc88c4e1ee8d7f2e084.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_protocol_tvl.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_protocol_tvl__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.3adf7c0003", "fqn": ["external_models", "defillama", "bronze", "dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_protocol_tvl__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "defillama_protocol_tvl", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_3b38936793cc5cc88c4e1ee8d7f2e084", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_3b38936793cc5cc88c4e1ee8d7f2e084"}, "created_at": 1760113502.396121, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_bronze.defillama_protocol_tvl", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_3b38936793cc5cc88c4e1ee8d7f2e084\") }}", "language": "sql", "refs": [{"name": "bronze__defillama_protocol_tvl", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_protocol_tvl"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_protocol_tvl.yml/dbt_expectations_expect_column_3b38936793cc5cc88c4e1ee8d7f2e084.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('TIMESTAMP' as TEXT) as relation_column,\n cast('DATE' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MARKET_CAP' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TVL' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TVL_PREV_DAY' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TVL_PREV_WEEK' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('TVL_PREV_MONTH' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAIN_TVL' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAIN_TVL_PREV_DAY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAIN_TVL_PREV_WEEK' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAIN_TVL_PREV_MONTH' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze__defillama_protocol_tvl", "attached_node": "model.external_models.bronze__defillama_protocol_tvl"}, "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_protocol_tvl_PROTOCOL_ID__CHAIN___INSERTED_TIMESTAMP.5be1ec25fb": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["PROTOCOL_ID", "CHAIN", "_INSERTED_TIMESTAMP"], "model": "{{ get_where_subquery(ref('bronze__defillama_protocol_tvl')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_bronze", "name": "dbt_utils_unique_combination_of_columns_bronze__defillama_protocol_tvl_PROTOCOL_ID__CHAIN___INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_dfe89c96dde374ccc0054eccd47cdbee.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_protocol_tvl.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_protocol_tvl_PROTOCOL_ID__CHAIN___INSERTED_TIMESTAMP.5be1ec25fb", "fqn": ["external_models", "defillama", "bronze", "dbt_utils_unique_combination_of_columns_bronze__defillama_protocol_tvl_PROTOCOL_ID__CHAIN___INSERTED_TIMESTAMP"], "alias": "defillama_protocol_tvl_PROTOCOL_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_dfe89c96dde374ccc0054eccd47cdbee", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_dfe89c96dde374ccc0054eccd47cdbee"}, "created_at": 1760113502.400788, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_bronze.defillama_protocol_tvl_PROTOCOL_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_dfe89c96dde374ccc0054eccd47cdbee\") }}", "language": "sql", "refs": [{"name": "bronze__defillama_protocol_tvl", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_protocol_tvl"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_protocol_tvl.yml/dbt_utils_unique_combination_o_dfe89c96dde374ccc0054eccd47cdbee.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n PROTOCOL_ID, CHAIN, _INSERTED_TIMESTAMP\n from EXTERNAL.bronze.defillama_protocol_tvl\n group by PROTOCOL_ID, CHAIN, _INSERTED_TIMESTAMP\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.bronze__defillama_protocol_tvl", "attached_node": "model.external_models.bronze__defillama_protocol_tvl"}, "test.external_models.not_null_bronze__defillama_perps_protocol_id.1c27f19c82": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "protocol_id", "model": "{{ get_where_subquery(ref('bronze__defillama_perps')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__defillama_perps_protocol_id", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__defillama_perps_protocol_id.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_perps.yml", "unique_id": "test.external_models.not_null_bronze__defillama_perps_protocol_id.1c27f19c82", "fqn": ["external_models", "defillama", "bronze", "not_null_bronze__defillama_perps_protocol_id"], "alias": "defillama_perps_protocol_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.4066837, "relation_name": "EXTERNAL.not_null_bronze.defillama_perps_protocol_id", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__defillama_perps", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_perps"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_perps.yml/not_null_bronze__defillama_perps_protocol_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.defillama_perps\nwhere protocol_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "protocol_id", "file_key_name": "models.bronze__defillama_perps", "attached_node": "model.external_models.bronze__defillama_perps"}, "test.external_models.not_null_bronze__defillama_perps_protocol_slug.b54442faae": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "protocol_slug", "model": "{{ get_where_subquery(ref('bronze__defillama_perps')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__defillama_perps_protocol_slug", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__defillama_perps_protocol_slug.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_perps.yml", "unique_id": "test.external_models.not_null_bronze__defillama_perps_protocol_slug.b54442faae", "fqn": ["external_models", "defillama", "bronze", "not_null_bronze__defillama_perps_protocol_slug"], "alias": "defillama_perps_protocol_slug", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.4084852, "relation_name": "EXTERNAL.not_null_bronze.defillama_perps_protocol_slug", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__defillama_perps", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_perps"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_perps.yml/not_null_bronze__defillama_perps_protocol_slug.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.defillama_perps\nwhere protocol_slug is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "protocol_slug", "file_key_name": "models.bronze__defillama_perps", "attached_node": "model.external_models.bronze__defillama_perps"}, "test.external_models.not_null_bronze__defillama_perps_category.966373d4f7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "category", "model": "{{ get_where_subquery(ref('bronze__defillama_perps')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__defillama_perps_category", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__defillama_perps_category.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_perps.yml", "unique_id": "test.external_models.not_null_bronze__defillama_perps_category.966373d4f7", "fqn": ["external_models", "defillama", "bronze", "not_null_bronze__defillama_perps_category"], "alias": "defillama_perps_category", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.4102948, "relation_name": "EXTERNAL.not_null_bronze.defillama_perps_category", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__defillama_perps", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_perps"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_perps.yml/not_null_bronze__defillama_perps_category.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.defillama_perps\nwhere category is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "category", "file_key_name": "models.bronze__defillama_perps", "attached_node": "model.external_models.bronze__defillama_perps"}, "test.external_models.not_null_bronze__defillama_perps_name.f711db516d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "name", "model": "{{ get_where_subquery(ref('bronze__defillama_perps')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__defillama_perps_name", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__defillama_perps_name.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_perps.yml", "unique_id": "test.external_models.not_null_bronze__defillama_perps_name.f711db516d", "fqn": ["external_models", "defillama", "bronze", "not_null_bronze__defillama_perps_name"], "alias": "defillama_perps_name", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.4120471, "relation_name": "EXTERNAL.not_null_bronze.defillama_perps_name", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__defillama_perps", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_perps"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_perps.yml/not_null_bronze__defillama_perps_name.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.defillama_perps\nwhere name is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "name", "file_key_name": "models.bronze__defillama_perps", "attached_node": "model.external_models.bronze__defillama_perps"}, "test.external_models.not_null_bronze__defillama_perps_display_name.38f88c8b75": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "display_name", "model": "{{ get_where_subquery(ref('bronze__defillama_perps')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__defillama_perps_display_name", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__defillama_perps_display_name.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_perps.yml", "unique_id": "test.external_models.not_null_bronze__defillama_perps_display_name.38f88c8b75", "fqn": ["external_models", "defillama", "bronze", "not_null_bronze__defillama_perps_display_name"], "alias": "defillama_perps_display_name", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.4138317, "relation_name": "EXTERNAL.not_null_bronze.defillama_perps_display_name", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__defillama_perps", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_perps"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_perps.yml/not_null_bronze__defillama_perps_display_name.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.defillama_perps\nwhere display_name is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "display_name", "file_key_name": "models.bronze__defillama_perps", "attached_node": "model.external_models.bronze__defillama_perps"}, "test.external_models.not_null_bronze__defillama_perps__inserted_timestamp.7d33dc4b81": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_inserted_timestamp", "model": "{{ get_where_subquery(ref('bronze__defillama_perps')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__defillama_perps__inserted_timestamp", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__defillama_perps__inserted_timestamp.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_perps.yml", "unique_id": "test.external_models.not_null_bronze__defillama_perps__inserted_timestamp.7d33dc4b81", "fqn": ["external_models", "defillama", "bronze", "not_null_bronze__defillama_perps__inserted_timestamp"], "alias": "defillama_perps", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.4156332, "relation_name": "EXTERNAL.not_null_bronze.defillama_perps", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__defillama_perps", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_perps"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_perps.yml/not_null_bronze__defillama_perps__inserted_timestamp.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.defillama_perps\nwhere _inserted_timestamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_inserted_timestamp", "file_key_name": "models.bronze__defillama_perps", "attached_node": "model.external_models.bronze__defillama_perps"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_perps__inserted_timestamp__TIMESTAMP_NTZ.b78bef6168": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_inserted_timestamp", "model": "{{ get_where_subquery(ref('bronze__defillama_perps')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_perps__inserted_timestamp__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_94356de9590bfe49286b8392dad3f4b3.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_perps.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_perps__inserted_timestamp__TIMESTAMP_NTZ.b78bef6168", "fqn": ["external_models", "defillama", "bronze", "dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_perps__inserted_timestamp__TIMESTAMP_NTZ"], "alias": "defillama_perps", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_94356de9590bfe49286b8392dad3f4b3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_94356de9590bfe49286b8392dad3f4b3"}, "created_at": 1760113502.4176576, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_bronze.defillama_perps", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_94356de9590bfe49286b8392dad3f4b3\") }}", "language": "sql", "refs": [{"name": "bronze__defillama_perps", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_perps"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_perps.yml/dbt_expectations_expect_column_94356de9590bfe49286b8392dad3f4b3.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('PROTOCOL_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_SLUG' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('DISPLAY_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODULE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LOGO' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAINS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PROTOCOL_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('METHODOLOGY_URL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('METHODOLOGY' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARENT_PROTOCOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('LINKED_PROTOCOLS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_inserted_timestamp", "file_key_name": "models.bronze__defillama_perps", "attached_node": "model.external_models.bronze__defillama_perps"}, "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_perps_protocol_id.1b75f4d8fa": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["protocol_id"], "model": "{{ get_where_subquery(ref('bronze__defillama_perps')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_bronze", "name": "dbt_utils_unique_combination_of_columns_bronze__defillama_perps_protocol_id", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_405d8c4fd8059b32dd5788ab4cf9c659.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_perps.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_perps_protocol_id.1b75f4d8fa", "fqn": ["external_models", "defillama", "bronze", "dbt_utils_unique_combination_of_columns_bronze__defillama_perps_protocol_id"], "alias": "defillama_perps_protocol_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_405d8c4fd8059b32dd5788ab4cf9c659", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_405d8c4fd8059b32dd5788ab4cf9c659"}, "created_at": 1760113502.4219968, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_bronze.defillama_perps_protocol_id", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_405d8c4fd8059b32dd5788ab4cf9c659\") }}", "language": "sql", "refs": [{"name": "bronze__defillama_perps", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_perps"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_perps.yml/dbt_utils_unique_combination_o_405d8c4fd8059b32dd5788ab4cf9c659.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n protocol_id\n from EXTERNAL.bronze.defillama_perps\n group by protocol_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.bronze__defillama_perps", "attached_node": "model.external_models.bronze__defillama_perps"}, "test.external_models.not_null_bronze__defillama_raises_RAISE_ID.5d70470335": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "RAISE_ID", "model": "{{ get_where_subquery(ref('bronze__defillama_raises')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__defillama_raises_RAISE_ID", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__defillama_raises_RAISE_ID.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_raises.yml", "unique_id": "test.external_models.not_null_bronze__defillama_raises_RAISE_ID.5d70470335", "fqn": ["external_models", "defillama", "bronze", "not_null_bronze__defillama_raises_RAISE_ID"], "alias": "defillama_raises_RAISE_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.4276373, "relation_name": "EXTERNAL.not_null_bronze.defillama_raises_RAISE_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__defillama_raises", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_raises"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_raises.yml/not_null_bronze__defillama_raises_RAISE_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.defillama_raises\nwhere RAISE_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "RAISE_ID", "file_key_name": "models.bronze__defillama_raises", "attached_node": "model.external_models.bronze__defillama_raises"}, "test.external_models.not_null_bronze__defillama_raises_PROJECT_NAME.b9ae7b7f38": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROJECT_NAME", "model": "{{ get_where_subquery(ref('bronze__defillama_raises')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__defillama_raises_PROJECT_NAME", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__defillama_raises_PROJECT_NAME.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_raises.yml", "unique_id": "test.external_models.not_null_bronze__defillama_raises_PROJECT_NAME.b9ae7b7f38", "fqn": ["external_models", "defillama", "bronze", "not_null_bronze__defillama_raises_PROJECT_NAME"], "alias": "defillama_raises_PROJECT_NAME", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.4294398, "relation_name": "EXTERNAL.not_null_bronze.defillama_raises_PROJECT_NAME", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__defillama_raises", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_raises"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_raises.yml/not_null_bronze__defillama_raises_PROJECT_NAME.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.defillama_raises\nwhere PROJECT_NAME is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROJECT_NAME", "file_key_name": "models.bronze__defillama_raises", "attached_node": "model.external_models.bronze__defillama_raises"}, "test.external_models.not_null_bronze__defillama_raises_FUNDING_DATE.36da197012": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "FUNDING_DATE", "model": "{{ get_where_subquery(ref('bronze__defillama_raises')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__defillama_raises_FUNDING_DATE", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__defillama_raises_FUNDING_DATE.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_raises.yml", "unique_id": "test.external_models.not_null_bronze__defillama_raises_FUNDING_DATE.36da197012", "fqn": ["external_models", "defillama", "bronze", "not_null_bronze__defillama_raises_FUNDING_DATE"], "alias": "defillama_raises_FUNDING_DATE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.43117, "relation_name": "EXTERNAL.not_null_bronze.defillama_raises_FUNDING_DATE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__defillama_raises", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_raises"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_raises.yml/not_null_bronze__defillama_raises_FUNDING_DATE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.defillama_raises\nwhere FUNDING_DATE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FUNDING_DATE", "file_key_name": "models.bronze__defillama_raises", "attached_node": "model.external_models.bronze__defillama_raises"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_bronze__defillama_raises_FUNDING_DATE__day__30.ca1b778724": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 30, "column_name": "FUNDING_DATE", "model": "{{ get_where_subquery(ref('bronze__defillama_raises')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_bronze", "name": "dbt_expectations_expect_row_values_to_have_recent_data_bronze__defillama_raises_FUNDING_DATE__day__30", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_row_va_d2d286253ae4af8a017d7115959f9ad7.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_raises.yml", "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_bronze__defillama_raises_FUNDING_DATE__day__30.ca1b778724", "fqn": ["external_models", "defillama", "bronze", "dbt_expectations_expect_row_values_to_have_recent_data_bronze__defillama_raises_FUNDING_DATE__day__30"], "alias": "defillama_raises_FUNDING_DATE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_d2d286253ae4af8a017d7115959f9ad7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_d2d286253ae4af8a017d7115959f9ad7"}, "created_at": 1760113502.432925, "relation_name": "EXTERNAL.dbt_expectations_expect_row_values_to_have_recent_data_bronze.defillama_raises_FUNDING_DATE", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_d2d286253ae4af8a017d7115959f9ad7\") }}", "language": "sql", "refs": [{"name": "bronze__defillama_raises", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_raises"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_raises.yml/dbt_expectations_expect_row_va_d2d286253ae4af8a017d7115959f9ad7.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(FUNDING_DATE as timestamp_ntz)) as max_timestamp\n from\n EXTERNAL.bronze.defillama_raises\n where\n -- to exclude erroneous future dates\n cast(FUNDING_DATE as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -30,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "FUNDING_DATE", "file_key_name": "models.bronze__defillama_raises", "attached_node": "model.external_models.bronze__defillama_raises"}, "test.external_models.not_null_bronze__defillama_raises__INSERTED_TIMESTAMP.92aefadf98": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze__defillama_raises')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__defillama_raises__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__defillama_raises__INSERTED_TIMESTAMP.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_raises.yml", "unique_id": "test.external_models.not_null_bronze__defillama_raises__INSERTED_TIMESTAMP.92aefadf98", "fqn": ["external_models", "defillama", "bronze", "not_null_bronze__defillama_raises__INSERTED_TIMESTAMP"], "alias": "defillama_raises", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.439981, "relation_name": "EXTERNAL.not_null_bronze.defillama_raises", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__defillama_raises", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_raises"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_raises.yml/not_null_bronze__defillama_raises__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.defillama_raises\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze__defillama_raises", "attached_node": "model.external_models.bronze__defillama_raises"}, "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_raises_RAISE_ID.c194c48903": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["RAISE_ID"], "model": "{{ get_where_subquery(ref('bronze__defillama_raises')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_bronze", "name": "dbt_utils_unique_combination_of_columns_bronze__defillama_raises_RAISE_ID", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_988bba3e400dedb597d28f17dccdde7e.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_raises.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_raises_RAISE_ID.c194c48903", "fqn": ["external_models", "defillama", "bronze", "dbt_utils_unique_combination_of_columns_bronze__defillama_raises_RAISE_ID"], "alias": "defillama_raises_RAISE_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_988bba3e400dedb597d28f17dccdde7e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_988bba3e400dedb597d28f17dccdde7e"}, "created_at": 1760113502.441867, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_bronze.defillama_raises_RAISE_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_988bba3e400dedb597d28f17dccdde7e\") }}", "language": "sql", "refs": [{"name": "bronze__defillama_raises", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_raises"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_raises.yml/dbt_utils_unique_combination_o_988bba3e400dedb597d28f17dccdde7e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n RAISE_ID\n from EXTERNAL.bronze.defillama_raises\n group by RAISE_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.bronze__defillama_raises", "attached_node": "model.external_models.bronze__defillama_raises"}, "test.external_models.not_null_bronze__defillama_protocol_tvl_history_PROTOCOL_ID.f49602e496": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "PROTOCOL_ID", "model": "{{ get_where_subquery(ref('bronze__defillama_protocol_tvl_history')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__defillama_protocol_tvl_history_PROTOCOL_ID", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__defillama_protocol_tvl_history_PROTOCOL_ID.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_protocol_tvl_history.yml", "unique_id": "test.external_models.not_null_bronze__defillama_protocol_tvl_history_PROTOCOL_ID.f49602e496", "fqn": ["external_models", "defillama", "bronze", "not_null_bronze__defillama_protocol_tvl_history_PROTOCOL_ID"], "alias": "defillama_protocol_tvl_history_PROTOCOL_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.4471831, "relation_name": "EXTERNAL.not_null_bronze.defillama_protocol_tvl_history_PROTOCOL_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__defillama_protocol_tvl_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_protocol_tvl_history"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_protocol_tvl_history.yml/not_null_bronze__defillama_protocol_tvl_history_PROTOCOL_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.defillama_protocol_tvl_history\nwhere PROTOCOL_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "PROTOCOL_ID", "file_key_name": "models.bronze__defillama_protocol_tvl_history", "attached_node": "model.external_models.bronze__defillama_protocol_tvl_history"}, "test.external_models.not_null_bronze__defillama_protocol_tvl_history__INSERTED_TIMESTAMP.8740370390": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze__defillama_protocol_tvl_history')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__defillama_protocol_tvl_history__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__defillama_pro_96b099168bd2b5a3adf35dd87f1f4f1e.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_protocol_tvl_history.yml", "unique_id": "test.external_models.not_null_bronze__defillama_protocol_tvl_history__INSERTED_TIMESTAMP.8740370390", "fqn": ["external_models", "defillama", "bronze", "not_null_bronze__defillama_protocol_tvl_history__INSERTED_TIMESTAMP"], "alias": "defillama_protocol_tvl_history", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_bronze__defillama_pro_96b099168bd2b5a3adf35dd87f1f4f1e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "not_null_bronze__defillama_pro_96b099168bd2b5a3adf35dd87f1f4f1e"}, "created_at": 1760113502.4492671, "relation_name": "EXTERNAL.not_null_bronze.defillama_protocol_tvl_history", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_bronze__defillama_pro_96b099168bd2b5a3adf35dd87f1f4f1e\") }}", "language": "sql", "refs": [{"name": "bronze__defillama_protocol_tvl_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_protocol_tvl_history"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_protocol_tvl_history.yml/not_null_bronze__defillama_pro_96b099168bd2b5a3adf35dd87f1f4f1e.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.defillama_protocol_tvl_history\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze__defillama_protocol_tvl_history", "attached_node": "model.external_models.bronze__defillama_protocol_tvl_history"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_protocol_tvl_history__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.565c8d7976": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze__defillama_protocol_tvl_history')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_protocol_tvl_history__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_0f65ceda5ed2f3c03618cfd5cca32b88.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_protocol_tvl_history.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_protocol_tvl_history__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.565c8d7976", "fqn": ["external_models", "defillama", "bronze", "dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_protocol_tvl_history__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "defillama_protocol_tvl_history", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0f65ceda5ed2f3c03618cfd5cca32b88", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_0f65ceda5ed2f3c03618cfd5cca32b88"}, "created_at": 1760113502.4510229, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_bronze.defillama_protocol_tvl_history", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0f65ceda5ed2f3c03618cfd5cca32b88\") }}", "language": "sql", "refs": [{"name": "bronze__defillama_protocol_tvl_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_protocol_tvl_history"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_protocol_tvl_history.yml/dbt_expectations_expect_column_0f65ceda5ed2f3c03618cfd5cca32b88.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('PROTOCOL_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('CATEGORY' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('PARTITION_KEY' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('RESPONSE' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('BRONZE_DEFILLAMA_PROTOCOL_HISTORICAL_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('MODIFIED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INVOCATION_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze__defillama_protocol_tvl_history", "attached_node": "model.external_models.bronze__defillama_protocol_tvl_history"}, "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_protocol_tvl_history_PROTOCOL_ID___INSERTED_TIMESTAMP.604bc47379": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["PROTOCOL_ID", "_INSERTED_TIMESTAMP"], "model": "{{ get_where_subquery(ref('bronze__defillama_protocol_tvl_history')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_bronze", "name": "dbt_utils_unique_combination_of_columns_bronze__defillama_protocol_tvl_history_PROTOCOL_ID___INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_244d4d57c84c58d95e020f763ed77717.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_protocol_tvl_history.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_protocol_tvl_history_PROTOCOL_ID___INSERTED_TIMESTAMP.604bc47379", "fqn": ["external_models", "defillama", "bronze", "dbt_utils_unique_combination_of_columns_bronze__defillama_protocol_tvl_history_PROTOCOL_ID___INSERTED_TIMESTAMP"], "alias": "defillama_protocol_tvl_history_PROTOCOL_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_244d4d57c84c58d95e020f763ed77717", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_244d4d57c84c58d95e020f763ed77717"}, "created_at": 1760113502.4553516, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_bronze.defillama_protocol_tvl_history_PROTOCOL_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_244d4d57c84c58d95e020f763ed77717\") }}", "language": "sql", "refs": [{"name": "bronze__defillama_protocol_tvl_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_protocol_tvl_history"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_protocol_tvl_history.yml/dbt_utils_unique_combination_o_244d4d57c84c58d95e020f763ed77717.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n PROTOCOL_ID, _INSERTED_TIMESTAMP\n from EXTERNAL.bronze.defillama_protocol_tvl_history\n group by PROTOCOL_ID, _INSERTED_TIMESTAMP\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.bronze__defillama_protocol_tvl_history", "attached_node": "model.external_models.bronze__defillama_protocol_tvl_history"}, "test.external_models.not_null_bronze__defillama_chainlist_CHAIN_ID.25192577da": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CHAIN_ID", "model": "{{ get_where_subquery(ref('bronze__defillama_chainlist')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__defillama_chainlist_CHAIN_ID", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__defillama_chainlist_CHAIN_ID.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_chainlist.yml", "unique_id": "test.external_models.not_null_bronze__defillama_chainlist_CHAIN_ID.25192577da", "fqn": ["external_models", "defillama", "bronze", "not_null_bronze__defillama_chainlist_CHAIN_ID"], "alias": "defillama_chainlist_CHAIN_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.4609056, "relation_name": "EXTERNAL.not_null_bronze.defillama_chainlist_CHAIN_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__defillama_chainlist", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_chainlist"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_chainlist.yml/not_null_bronze__defillama_chainlist_CHAIN_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.defillama_chainlist\nwhere CHAIN_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CHAIN_ID", "file_key_name": "models.bronze__defillama_chainlist", "attached_node": "model.external_models.bronze__defillama_chainlist"}, "test.external_models.not_null_bronze__defillama_chainlist_CHAIN.5780be5d54": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CHAIN", "model": "{{ get_where_subquery(ref('bronze__defillama_chainlist')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__defillama_chainlist_CHAIN", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__defillama_chainlist_CHAIN.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_chainlist.yml", "unique_id": "test.external_models.not_null_bronze__defillama_chainlist_CHAIN.5780be5d54", "fqn": ["external_models", "defillama", "bronze", "not_null_bronze__defillama_chainlist_CHAIN"], "alias": "defillama_chainlist_CHAIN", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.462729, "relation_name": "EXTERNAL.not_null_bronze.defillama_chainlist_CHAIN", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__defillama_chainlist", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_chainlist"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_chainlist.yml/not_null_bronze__defillama_chainlist_CHAIN.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.defillama_chainlist\nwhere CHAIN is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CHAIN", "file_key_name": "models.bronze__defillama_chainlist", "attached_node": "model.external_models.bronze__defillama_chainlist"}, "test.external_models.not_null_bronze__defillama_chainlist__INSERTED_TIMESTAMP.540820d90f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze__defillama_chainlist')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__defillama_chainlist__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__defillama_chainlist__INSERTED_TIMESTAMP.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_chainlist.yml", "unique_id": "test.external_models.not_null_bronze__defillama_chainlist__INSERTED_TIMESTAMP.540820d90f", "fqn": ["external_models", "defillama", "bronze", "not_null_bronze__defillama_chainlist__INSERTED_TIMESTAMP"], "alias": "defillama_chainlist", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.464518, "relation_name": "EXTERNAL.not_null_bronze.defillama_chainlist", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__defillama_chainlist", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_chainlist"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_chainlist.yml/not_null_bronze__defillama_chainlist__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.defillama_chainlist\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze__defillama_chainlist", "attached_node": "model.external_models.bronze__defillama_chainlist"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_chainlist__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.d348817d21": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze__defillama_chainlist')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_chainlist__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_f373215ee628129a120f103cb8f8eae2.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_chainlist.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_chainlist__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.d348817d21", "fqn": ["external_models", "defillama", "bronze", "dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_chainlist__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "defillama_chainlist", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_f373215ee628129a120f103cb8f8eae2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_f373215ee628129a120f103cb8f8eae2"}, "created_at": 1760113502.466319, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_bronze.defillama_chainlist", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_f373215ee628129a120f103cb8f8eae2\") }}", "language": "sql", "refs": [{"name": "bronze__defillama_chainlist", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_chainlist"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_chainlist.yml/dbt_expectations_expect_column_f373215ee628129a120f103cb8f8eae2.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('CHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAIN_SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_DECIMALS' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('TOKEN_SYMBOL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAIN_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('NETWORK_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ICON' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RPC' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('FAUCETS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INFO_URL' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('SHORT_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('EXPLORERS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze__defillama_chainlist", "attached_node": "model.external_models.bronze__defillama_chainlist"}, "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_chainlist_CHAIN_ID.7ce0a0b603": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["CHAIN_ID"], "model": "{{ get_where_subquery(ref('bronze__defillama_chainlist')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_bronze", "name": "dbt_utils_unique_combination_of_columns_bronze__defillama_chainlist_CHAIN_ID", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_2299c243c3c154f80d83a84fa748170d.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_chainlist.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_chainlist_CHAIN_ID.7ce0a0b603", "fqn": ["external_models", "defillama", "bronze", "dbt_utils_unique_combination_of_columns_bronze__defillama_chainlist_CHAIN_ID"], "alias": "defillama_chainlist_CHAIN_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2299c243c3c154f80d83a84fa748170d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_2299c243c3c154f80d83a84fa748170d"}, "created_at": 1760113502.4709222, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_bronze.defillama_chainlist_CHAIN_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2299c243c3c154f80d83a84fa748170d\") }}", "language": "sql", "refs": [{"name": "bronze__defillama_chainlist", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_chainlist"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_chainlist.yml/dbt_utils_unique_combination_o_2299c243c3c154f80d83a84fa748170d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n CHAIN_ID\n from EXTERNAL.bronze.defillama_chainlist\n group by CHAIN_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.bronze__defillama_chainlist", "attached_node": "model.external_models.bronze__defillama_chainlist"}, "test.external_models.not_null_bronze__defillama_usdc_usdt_supply__INSERTED_TIMESTAMP.5706d592c1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze__defillama_usdc_usdt_supply')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__defillama_usdc_usdt_supply__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__defillama_usdc_usdt_supply__INSERTED_TIMESTAMP.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_usdc_usdt_supply.yml", "unique_id": "test.external_models.not_null_bronze__defillama_usdc_usdt_supply__INSERTED_TIMESTAMP.5706d592c1", "fqn": ["external_models", "defillama", "bronze", "not_null_bronze__defillama_usdc_usdt_supply__INSERTED_TIMESTAMP"], "alias": "defillama_usdc_usdt_supply", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.4764023, "relation_name": "EXTERNAL.not_null_bronze.defillama_usdc_usdt_supply", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__defillama_usdc_usdt_supply", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_usdc_usdt_supply"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_usdc_usdt_supply.yml/not_null_bronze__defillama_usdc_usdt_supply__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.defillama_usdc_usdt_supply\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze__defillama_usdc_usdt_supply", "attached_node": "model.external_models.bronze__defillama_usdc_usdt_supply"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_usdc_usdt_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.e35111402d": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze__defillama_usdc_usdt_supply')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_usdc_usdt_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_0aca6dcf6b498ece29f39493d3e02344.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_usdc_usdt_supply.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_usdc_usdt_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.e35111402d", "fqn": ["external_models", "defillama", "bronze", "dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_usdc_usdt_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "defillama_usdc_usdt_supply", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_0aca6dcf6b498ece29f39493d3e02344", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_0aca6dcf6b498ece29f39493d3e02344"}, "created_at": 1760113502.4782805, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_bronze.defillama_usdc_usdt_supply", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_0aca6dcf6b498ece29f39493d3e02344\") }}", "language": "sql", "refs": [{"name": "bronze__defillama_usdc_usdt_supply", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_usdc_usdt_supply"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_usdc_usdt_supply.yml/dbt_expectations_expect_column_0aca6dcf6b498ece29f39493d3e02344.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('CHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('STABLECOIN_ID' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('READ' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze__defillama_usdc_usdt_supply", "attached_node": "model.external_models.bronze__defillama_usdc_usdt_supply"}, "test.external_models.not_null_bronze__defillama_bridges_BRIDGE_ID.2ba6c21db0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BRIDGE_ID", "model": "{{ get_where_subquery(ref('bronze__defillama_bridges')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__defillama_bridges_BRIDGE_ID", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__defillama_bridges_BRIDGE_ID.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_bridges.yml", "unique_id": "test.external_models.not_null_bronze__defillama_bridges_BRIDGE_ID.2ba6c21db0", "fqn": ["external_models", "defillama", "bronze", "not_null_bronze__defillama_bridges_BRIDGE_ID"], "alias": "defillama_bridges_BRIDGE_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.483857, "relation_name": "EXTERNAL.not_null_bronze.defillama_bridges_BRIDGE_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__defillama_bridges", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_bridges"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_bridges.yml/not_null_bronze__defillama_bridges_BRIDGE_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.defillama_bridges\nwhere BRIDGE_ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BRIDGE_ID", "file_key_name": "models.bronze__defillama_bridges", "attached_node": "model.external_models.bronze__defillama_bridges"}, "test.external_models.not_null_bronze__defillama_bridges_BRIDGE.d073e2edb8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BRIDGE", "model": "{{ get_where_subquery(ref('bronze__defillama_bridges')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__defillama_bridges_BRIDGE", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__defillama_bridges_BRIDGE.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_bridges.yml", "unique_id": "test.external_models.not_null_bronze__defillama_bridges_BRIDGE.d073e2edb8", "fqn": ["external_models", "defillama", "bronze", "not_null_bronze__defillama_bridges_BRIDGE"], "alias": "defillama_bridges_BRIDGE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.4856987, "relation_name": "EXTERNAL.not_null_bronze.defillama_bridges_BRIDGE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__defillama_bridges", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_bridges"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_bridges.yml/not_null_bronze__defillama_bridges_BRIDGE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.defillama_bridges\nwhere BRIDGE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BRIDGE", "file_key_name": "models.bronze__defillama_bridges", "attached_node": "model.external_models.bronze__defillama_bridges"}, "test.external_models.not_null_bronze__defillama_bridges__INSERTED_TIMESTAMP.cf3a9c3ab5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze__defillama_bridges')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__defillama_bridges__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__defillama_bridges__INSERTED_TIMESTAMP.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_bridges.yml", "unique_id": "test.external_models.not_null_bronze__defillama_bridges__INSERTED_TIMESTAMP.cf3a9c3ab5", "fqn": ["external_models", "defillama", "bronze", "not_null_bronze__defillama_bridges__INSERTED_TIMESTAMP"], "alias": "defillama_bridges", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.487517, "relation_name": "EXTERNAL.not_null_bronze.defillama_bridges", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__defillama_bridges", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_bridges"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_bridges.yml/not_null_bronze__defillama_bridges__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.defillama_bridges\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze__defillama_bridges", "attached_node": "model.external_models.bronze__defillama_bridges"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_bridges__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.47c9c197a2": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze__defillama_bridges')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_bridges__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_457d37d87da2c74b54efcf96144a54cc.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_bridges.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_bridges__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.47c9c197a2", "fqn": ["external_models", "defillama", "bronze", "dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_bridges__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "defillama_bridges", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_457d37d87da2c74b54efcf96144a54cc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_457d37d87da2c74b54efcf96144a54cc"}, "created_at": 1760113502.489326, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_bronze.defillama_bridges", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_457d37d87da2c74b54efcf96144a54cc\") }}", "language": "sql", "refs": [{"name": "bronze__defillama_bridges", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_bridges"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_bridges.yml/dbt_expectations_expect_column_457d37d87da2c74b54efcf96144a54cc.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('BRIDGE_ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BRIDGE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('BRIDGE_NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('CHAINS' as TEXT) as relation_column,\n cast('VARIANT' as TEXT) as relation_column_type\n union all\n \n select\n cast('DESTINATION_CHAIN' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ROW_NUM' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze__defillama_bridges", "attached_node": "model.external_models.bronze__defillama_bridges"}, "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_bridges_BRIDGE_ID.ec12df5019": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["BRIDGE_ID"], "model": "{{ get_where_subquery(ref('bronze__defillama_bridges')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_bronze", "name": "dbt_utils_unique_combination_of_columns_bronze__defillama_bridges_BRIDGE_ID", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_a8cedafefb7c3fc83748dfe675a3fd38.sql", "original_file_path": "models/defillama/bronze/bronze__defillama_bridges.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_bridges_BRIDGE_ID.ec12df5019", "fqn": ["external_models", "defillama", "bronze", "dbt_utils_unique_combination_of_columns_bronze__defillama_bridges_BRIDGE_ID"], "alias": "defillama_bridges_BRIDGE_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a8cedafefb7c3fc83748dfe675a3fd38", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_a8cedafefb7c3fc83748dfe675a3fd38"}, "created_at": 1760113502.493819, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_bronze.defillama_bridges_BRIDGE_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a8cedafefb7c3fc83748dfe675a3fd38\") }}", "language": "sql", "refs": [{"name": "bronze__defillama_bridges", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__defillama_bridges"]}, "compiled_path": "target/compiled/external_models/models/defillama/bronze/bronze__defillama_bridges.yml/dbt_utils_unique_combination_o_a8cedafefb7c3fc83748dfe675a3fd38.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n BRIDGE_ID\n from EXTERNAL.bronze.defillama_bridges\n group by BRIDGE_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.bronze__defillama_bridges", "attached_node": "model.external_models.bronze__defillama_bridges"}, "test.external_models.not_null_bitquery__active_users_BLOCKCHAIN.914a87f4a8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCKCHAIN", "model": "{{ get_where_subquery(ref('bitquery__active_users')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bitquery", "name": "not_null_bitquery__active_users_BLOCKCHAIN", "resource_type": "test", "package_name": "external_models", "path": "not_null_bitquery__active_users_BLOCKCHAIN.sql", "original_file_path": "models/bitquery/gold/bitquery__active_users.yml", "unique_id": "test.external_models.not_null_bitquery__active_users_BLOCKCHAIN.914a87f4a8", "fqn": ["external_models", "bitquery", "gold", "not_null_bitquery__active_users_BLOCKCHAIN"], "alias": "active_users_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.4995658, "relation_name": "EXTERNAL.not_null_bitquery.active_users_BLOCKCHAIN", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bitquery__active_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bitquery__active_users"]}, "compiled_path": "target/compiled/external_models/models/bitquery/gold/bitquery__active_users.yml/not_null_bitquery__active_users_BLOCKCHAIN.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bitquery.active_users\nwhere BLOCKCHAIN is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCKCHAIN", "file_key_name": "models.bitquery__active_users", "attached_node": "model.external_models.bitquery__active_users"}, "test.external_models.not_null_bitquery__active_users_METRIC.4a978e38ec": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "METRIC", "model": "{{ get_where_subquery(ref('bitquery__active_users')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bitquery", "name": "not_null_bitquery__active_users_METRIC", "resource_type": "test", "package_name": "external_models", "path": "not_null_bitquery__active_users_METRIC.sql", "original_file_path": "models/bitquery/gold/bitquery__active_users.yml", "unique_id": "test.external_models.not_null_bitquery__active_users_METRIC.4a978e38ec", "fqn": ["external_models", "bitquery", "gold", "not_null_bitquery__active_users_METRIC"], "alias": "active_users_METRIC", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.5013957, "relation_name": "EXTERNAL.not_null_bitquery.active_users_METRIC", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bitquery__active_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bitquery__active_users"]}, "compiled_path": "target/compiled/external_models/models/bitquery/gold/bitquery__active_users.yml/not_null_bitquery__active_users_METRIC.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bitquery.active_users\nwhere METRIC is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "METRIC", "file_key_name": "models.bitquery__active_users", "attached_node": "model.external_models.bitquery__active_users"}, "test.external_models.not_null_bitquery__active_users_AS_OF_DATE.24e6f16d52": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "AS_OF_DATE", "model": "{{ get_where_subquery(ref('bitquery__active_users')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bitquery", "name": "not_null_bitquery__active_users_AS_OF_DATE", "resource_type": "test", "package_name": "external_models", "path": "not_null_bitquery__active_users_AS_OF_DATE.sql", "original_file_path": "models/bitquery/gold/bitquery__active_users.yml", "unique_id": "test.external_models.not_null_bitquery__active_users_AS_OF_DATE.24e6f16d52", "fqn": ["external_models", "bitquery", "gold", "not_null_bitquery__active_users_AS_OF_DATE"], "alias": "active_users_AS_OF_DATE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.5032, "relation_name": "EXTERNAL.not_null_bitquery.active_users_AS_OF_DATE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bitquery__active_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bitquery__active_users"]}, "compiled_path": "target/compiled/external_models/models/bitquery/gold/bitquery__active_users.yml/not_null_bitquery__active_users_AS_OF_DATE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bitquery.active_users\nwhere AS_OF_DATE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AS_OF_DATE", "file_key_name": "models.bitquery__active_users", "attached_node": "model.external_models.bitquery__active_users"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_bitquery__active_users_AS_OF_DATE__day__2.640f33ae24": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 2, "column_name": "AS_OF_DATE", "model": "{{ get_where_subquery(ref('bitquery__active_users')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_bitquery", "name": "dbt_expectations_expect_row_values_to_have_recent_data_bitquery__active_users_AS_OF_DATE__day__2", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_row_va_7929c5239a98ae1bc160ab3d1a63572c.sql", "original_file_path": "models/bitquery/gold/bitquery__active_users.yml", "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_bitquery__active_users_AS_OF_DATE__day__2.640f33ae24", "fqn": ["external_models", "bitquery", "gold", "dbt_expectations_expect_row_values_to_have_recent_data_bitquery__active_users_AS_OF_DATE__day__2"], "alias": "active_users_AS_OF_DATE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_7929c5239a98ae1bc160ab3d1a63572c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_7929c5239a98ae1bc160ab3d1a63572c"}, "created_at": 1760113502.505026, "relation_name": "EXTERNAL.dbt_expectations_expect_row_values_to_have_recent_data_bitquery.active_users_AS_OF_DATE", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_7929c5239a98ae1bc160ab3d1a63572c\") }}", "language": "sql", "refs": [{"name": "bitquery__active_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bitquery__active_users"]}, "compiled_path": "target/compiled/external_models/models/bitquery/gold/bitquery__active_users.yml/dbt_expectations_expect_row_va_7929c5239a98ae1bc160ab3d1a63572c.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(AS_OF_DATE as timestamp_ntz)) as max_timestamp\n from\n EXTERNAL.bitquery.active_users\n where\n -- to exclude erroneous future dates\n cast(AS_OF_DATE as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "AS_OF_DATE", "file_key_name": "models.bitquery__active_users", "attached_node": "model.external_models.bitquery__active_users"}, "test.external_models.not_null_bitquery__active_users_ACTIVE_USERS.c10bdbc8ad": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ACTIVE_USERS", "model": "{{ get_where_subquery(ref('bitquery__active_users')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bitquery", "name": "not_null_bitquery__active_users_ACTIVE_USERS", "resource_type": "test", "package_name": "external_models", "path": "not_null_bitquery__active_users_ACTIVE_USERS.sql", "original_file_path": "models/bitquery/gold/bitquery__active_users.yml", "unique_id": "test.external_models.not_null_bitquery__active_users_ACTIVE_USERS.c10bdbc8ad", "fqn": ["external_models", "bitquery", "gold", "not_null_bitquery__active_users_ACTIVE_USERS"], "alias": "active_users_ACTIVE_USERS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.5109394, "relation_name": "EXTERNAL.not_null_bitquery.active_users_ACTIVE_USERS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bitquery__active_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bitquery__active_users"]}, "compiled_path": "target/compiled/external_models/models/bitquery/gold/bitquery__active_users.yml/not_null_bitquery__active_users_ACTIVE_USERS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bitquery.active_users\nwhere ACTIVE_USERS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ACTIVE_USERS", "file_key_name": "models.bitquery__active_users", "attached_node": "model.external_models.bitquery__active_users"}, "test.external_models.dbt_utils_unique_combination_of_columns_bitquery__active_users_BLOCKCHAIN__METRIC__AS_OF_DATE.6fcc49b831": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["BLOCKCHAIN", "METRIC", "AS_OF_DATE"], "model": "{{ get_where_subquery(ref('bitquery__active_users')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_bitquery", "name": "dbt_utils_unique_combination_of_columns_bitquery__active_users_BLOCKCHAIN__METRIC__AS_OF_DATE", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_4a1984813bf20defc982eb9288d98142.sql", "original_file_path": "models/bitquery/gold/bitquery__active_users.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bitquery__active_users_BLOCKCHAIN__METRIC__AS_OF_DATE.6fcc49b831", "fqn": ["external_models", "bitquery", "gold", "dbt_utils_unique_combination_of_columns_bitquery__active_users_BLOCKCHAIN__METRIC__AS_OF_DATE"], "alias": "active_users_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4a1984813bf20defc982eb9288d98142", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_4a1984813bf20defc982eb9288d98142"}, "created_at": 1760113502.5127506, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_bitquery.active_users_BLOCKCHAIN", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4a1984813bf20defc982eb9288d98142\") }}", "language": "sql", "refs": [{"name": "bitquery__active_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bitquery__active_users"]}, "compiled_path": "target/compiled/external_models/models/bitquery/gold/bitquery__active_users.yml/dbt_utils_unique_combination_o_4a1984813bf20defc982eb9288d98142.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n BLOCKCHAIN, METRIC, AS_OF_DATE\n from EXTERNAL.bitquery.active_users\n group by BLOCKCHAIN, METRIC, AS_OF_DATE\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.bitquery__active_users", "attached_node": "model.external_models.bitquery__active_users"}, "test.external_models.not_null_bitquery__tx_count_BLOCKCHAIN.8ae6357142": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCKCHAIN", "model": "{{ get_where_subquery(ref('bitquery__tx_count')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bitquery", "name": "not_null_bitquery__tx_count_BLOCKCHAIN", "resource_type": "test", "package_name": "external_models", "path": "not_null_bitquery__tx_count_BLOCKCHAIN.sql", "original_file_path": "models/bitquery/gold/bitquery__tx_count.yml", "unique_id": "test.external_models.not_null_bitquery__tx_count_BLOCKCHAIN.8ae6357142", "fqn": ["external_models", "bitquery", "gold", "not_null_bitquery__tx_count_BLOCKCHAIN"], "alias": "tx_count_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.5184648, "relation_name": "EXTERNAL.not_null_bitquery.tx_count_BLOCKCHAIN", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bitquery__tx_count", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bitquery__tx_count"]}, "compiled_path": "target/compiled/external_models/models/bitquery/gold/bitquery__tx_count.yml/not_null_bitquery__tx_count_BLOCKCHAIN.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bitquery.tx_count\nwhere BLOCKCHAIN is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCKCHAIN", "file_key_name": "models.bitquery__tx_count", "attached_node": "model.external_models.bitquery__tx_count"}, "test.external_models.not_null_bitquery__tx_count_METRIC.74279a41fa": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "METRIC", "model": "{{ get_where_subquery(ref('bitquery__tx_count')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bitquery", "name": "not_null_bitquery__tx_count_METRIC", "resource_type": "test", "package_name": "external_models", "path": "not_null_bitquery__tx_count_METRIC.sql", "original_file_path": "models/bitquery/gold/bitquery__tx_count.yml", "unique_id": "test.external_models.not_null_bitquery__tx_count_METRIC.74279a41fa", "fqn": ["external_models", "bitquery", "gold", "not_null_bitquery__tx_count_METRIC"], "alias": "tx_count_METRIC", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.5202847, "relation_name": "EXTERNAL.not_null_bitquery.tx_count_METRIC", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bitquery__tx_count", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bitquery__tx_count"]}, "compiled_path": "target/compiled/external_models/models/bitquery/gold/bitquery__tx_count.yml/not_null_bitquery__tx_count_METRIC.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bitquery.tx_count\nwhere METRIC is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "METRIC", "file_key_name": "models.bitquery__tx_count", "attached_node": "model.external_models.bitquery__tx_count"}, "test.external_models.not_null_bitquery__tx_count_BLOCK_DATE.fbbe8ebf2c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_DATE", "model": "{{ get_where_subquery(ref('bitquery__tx_count')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bitquery", "name": "not_null_bitquery__tx_count_BLOCK_DATE", "resource_type": "test", "package_name": "external_models", "path": "not_null_bitquery__tx_count_BLOCK_DATE.sql", "original_file_path": "models/bitquery/gold/bitquery__tx_count.yml", "unique_id": "test.external_models.not_null_bitquery__tx_count_BLOCK_DATE.fbbe8ebf2c", "fqn": ["external_models", "bitquery", "gold", "not_null_bitquery__tx_count_BLOCK_DATE"], "alias": "tx_count_BLOCK_DATE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.5220697, "relation_name": "EXTERNAL.not_null_bitquery.tx_count_BLOCK_DATE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bitquery__tx_count", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bitquery__tx_count"]}, "compiled_path": "target/compiled/external_models/models/bitquery/gold/bitquery__tx_count.yml/not_null_bitquery__tx_count_BLOCK_DATE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bitquery.tx_count\nwhere BLOCK_DATE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_DATE", "file_key_name": "models.bitquery__tx_count", "attached_node": "model.external_models.bitquery__tx_count"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_bitquery__tx_count_BLOCK_DATE__day__2.706e3ce251": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 2, "column_name": "BLOCK_DATE", "model": "{{ get_where_subquery(ref('bitquery__tx_count')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_bitquery", "name": "dbt_expectations_expect_row_values_to_have_recent_data_bitquery__tx_count_BLOCK_DATE__day__2", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_row_va_9418950d40a6b0b69a3e47d330a4d203.sql", "original_file_path": "models/bitquery/gold/bitquery__tx_count.yml", "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_bitquery__tx_count_BLOCK_DATE__day__2.706e3ce251", "fqn": ["external_models", "bitquery", "gold", "dbt_expectations_expect_row_values_to_have_recent_data_bitquery__tx_count_BLOCK_DATE__day__2"], "alias": "tx_count_BLOCK_DATE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_9418950d40a6b0b69a3e47d330a4d203", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_9418950d40a6b0b69a3e47d330a4d203"}, "created_at": 1760113502.5239427, "relation_name": "EXTERNAL.dbt_expectations_expect_row_values_to_have_recent_data_bitquery.tx_count_BLOCK_DATE", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_9418950d40a6b0b69a3e47d330a4d203\") }}", "language": "sql", "refs": [{"name": "bitquery__tx_count", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bitquery__tx_count"]}, "compiled_path": "target/compiled/external_models/models/bitquery/gold/bitquery__tx_count.yml/dbt_expectations_expect_row_va_9418950d40a6b0b69a3e47d330a4d203.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_DATE as timestamp_ntz)) as max_timestamp\n from\n EXTERNAL.bitquery.tx_count\n where\n -- to exclude erroneous future dates\n cast(BLOCK_DATE as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -2,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_DATE", "file_key_name": "models.bitquery__tx_count", "attached_node": "model.external_models.bitquery__tx_count"}, "test.external_models.not_null_bitquery__tx_count_TX_COUNT.5a8345b648": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_COUNT", "model": "{{ get_where_subquery(ref('bitquery__tx_count')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bitquery", "name": "not_null_bitquery__tx_count_TX_COUNT", "resource_type": "test", "package_name": "external_models", "path": "not_null_bitquery__tx_count_TX_COUNT.sql", "original_file_path": "models/bitquery/gold/bitquery__tx_count.yml", "unique_id": "test.external_models.not_null_bitquery__tx_count_TX_COUNT.5a8345b648", "fqn": ["external_models", "bitquery", "gold", "not_null_bitquery__tx_count_TX_COUNT"], "alias": "tx_count_TX_COUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.530058, "relation_name": "EXTERNAL.not_null_bitquery.tx_count_TX_COUNT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bitquery__tx_count", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bitquery__tx_count"]}, "compiled_path": "target/compiled/external_models/models/bitquery/gold/bitquery__tx_count.yml/not_null_bitquery__tx_count_TX_COUNT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bitquery.tx_count\nwhere TX_COUNT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_COUNT", "file_key_name": "models.bitquery__tx_count", "attached_node": "model.external_models.bitquery__tx_count"}, "test.external_models.dbt_utils_unique_combination_of_columns_bitquery__tx_count_BLOCKCHAIN__METRIC__BLOCK_DATE.ec78a68947": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["BLOCKCHAIN", "METRIC", "BLOCK_DATE"], "model": "{{ get_where_subquery(ref('bitquery__tx_count')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_bitquery", "name": "dbt_utils_unique_combination_of_columns_bitquery__tx_count_BLOCKCHAIN__METRIC__BLOCK_DATE", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_ba059a029e641cb86ea86c175c00ee12.sql", "original_file_path": "models/bitquery/gold/bitquery__tx_count.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bitquery__tx_count_BLOCKCHAIN__METRIC__BLOCK_DATE.ec78a68947", "fqn": ["external_models", "bitquery", "gold", "dbt_utils_unique_combination_of_columns_bitquery__tx_count_BLOCKCHAIN__METRIC__BLOCK_DATE"], "alias": "tx_count_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ba059a029e641cb86ea86c175c00ee12", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_ba059a029e641cb86ea86c175c00ee12"}, "created_at": 1760113502.5319211, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_bitquery.tx_count_BLOCKCHAIN", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ba059a029e641cb86ea86c175c00ee12\") }}", "language": "sql", "refs": [{"name": "bitquery__tx_count", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bitquery__tx_count"]}, "compiled_path": "target/compiled/external_models/models/bitquery/gold/bitquery__tx_count.yml/dbt_utils_unique_combination_o_ba059a029e641cb86ea86c175c00ee12.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n BLOCKCHAIN, METRIC, BLOCK_DATE\n from EXTERNAL.bitquery.tx_count\n group by BLOCKCHAIN, METRIC, BLOCK_DATE\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.bitquery__tx_count", "attached_node": "model.external_models.bitquery__tx_count"}, "test.external_models.not_null_silver__artemis_metric_date.9a93f8e63b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "metric_date", "model": "{{ get_where_subquery(ref('silver__artemis')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__artemis_metric_date", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__artemis_metric_date.sql", "original_file_path": "models/artemis/silver/silver__artemis.yml", "unique_id": "test.external_models.not_null_silver__artemis_metric_date.9a93f8e63b", "fqn": ["external_models", "artemis", "silver", "not_null_silver__artemis_metric_date"], "alias": "artemis_metric_date", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.5392013, "relation_name": "EXTERNAL.not_null_silver.artemis_metric_date", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__artemis", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__artemis"]}, "compiled_path": "target/compiled/external_models/models/artemis/silver/silver__artemis.yml/not_null_silver__artemis_metric_date.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.artemis\nwhere metric_date is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metric_date", "file_key_name": "models.silver__artemis", "attached_node": "model.external_models.silver__artemis"}, "test.external_models.not_null_silver__artemis_blockchain.a0d0dfb71d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "blockchain", "model": "{{ get_where_subquery(ref('silver__artemis')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__artemis_blockchain", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__artemis_blockchain.sql", "original_file_path": "models/artemis/silver/silver__artemis.yml", "unique_id": "test.external_models.not_null_silver__artemis_blockchain.a0d0dfb71d", "fqn": ["external_models", "artemis", "silver", "not_null_silver__artemis_blockchain"], "alias": "artemis_blockchain", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.5410311, "relation_name": "EXTERNAL.not_null_silver.artemis_blockchain", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__artemis", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__artemis"]}, "compiled_path": "target/compiled/external_models/models/artemis/silver/silver__artemis.yml/not_null_silver__artemis_blockchain.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.artemis\nwhere blockchain is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "blockchain", "file_key_name": "models.silver__artemis", "attached_node": "model.external_models.silver__artemis"}, "test.external_models.unique_silver__artemis_artemis_id.7cc15da134": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "artemis_id", "model": "{{ get_where_subquery(ref('silver__artemis')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "unique_silver", "name": "unique_silver__artemis_artemis_id", "resource_type": "test", "package_name": "external_models", "path": "unique_silver__artemis_artemis_id.sql", "original_file_path": "models/artemis/silver/silver__artemis.yml", "unique_id": "test.external_models.unique_silver__artemis_artemis_id.7cc15da134", "fqn": ["external_models", "artemis", "silver", "unique_silver__artemis_artemis_id"], "alias": "artemis_artemis_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.5428152, "relation_name": "EXTERNAL.unique_silver.artemis_artemis_id", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__artemis", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__artemis"]}, "compiled_path": "target/compiled/external_models/models/artemis/silver/silver__artemis.yml/unique_silver__artemis_artemis_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n artemis_id as unique_field,\n count(*) as n_records\n\nfrom EXTERNAL.silver.artemis\nwhere artemis_id is not null\ngroup by artemis_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "artemis_id", "file_key_name": "models.silver__artemis", "attached_node": "model.external_models.silver__artemis"}, "test.external_models.not_null_silver__artemis_artemis_id.d82126688b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "artemis_id", "model": "{{ get_where_subquery(ref('silver__artemis')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__artemis_artemis_id", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__artemis_artemis_id.sql", "original_file_path": "models/artemis/silver/silver__artemis.yml", "unique_id": "test.external_models.not_null_silver__artemis_artemis_id.d82126688b", "fqn": ["external_models", "artemis", "silver", "not_null_silver__artemis_artemis_id"], "alias": "artemis_artemis_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.5446022, "relation_name": "EXTERNAL.not_null_silver.artemis_artemis_id", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__artemis", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__artemis"]}, "compiled_path": "target/compiled/external_models/models/artemis/silver/silver__artemis.yml/not_null_silver__artemis_artemis_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.artemis\nwhere artemis_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "artemis_id", "file_key_name": "models.silver__artemis", "attached_node": "model.external_models.silver__artemis"}, "test.external_models.not_null_silver__artemis__inserted_timestamp.a6a732f820": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_inserted_timestamp", "model": "{{ get_where_subquery(ref('silver__artemis')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__artemis__inserted_timestamp", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__artemis__inserted_timestamp.sql", "original_file_path": "models/artemis/silver/silver__artemis.yml", "unique_id": "test.external_models.not_null_silver__artemis__inserted_timestamp.a6a732f820", "fqn": ["external_models", "artemis", "silver", "not_null_silver__artemis__inserted_timestamp"], "alias": "artemis", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.546386, "relation_name": "EXTERNAL.not_null_silver.artemis", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__artemis", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__artemis"]}, "compiled_path": "target/compiled/external_models/models/artemis/silver/silver__artemis.yml/not_null_silver__artemis__inserted_timestamp.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.artemis\nwhere _inserted_timestamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_inserted_timestamp", "file_key_name": "models.silver__artemis", "attached_node": "model.external_models.silver__artemis"}, "test.external_models.not_null_artemis__active_users_BLOCKCHAIN.686f55f021": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCKCHAIN", "model": "{{ get_where_subquery(ref('artemis__active_users')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_artemis", "name": "not_null_artemis__active_users_BLOCKCHAIN", "resource_type": "test", "package_name": "external_models", "path": "not_null_artemis__active_users_BLOCKCHAIN.sql", "original_file_path": "models/artemis/gold/artemis__active_users.yml", "unique_id": "test.external_models.not_null_artemis__active_users_BLOCKCHAIN.686f55f021", "fqn": ["external_models", "artemis", "gold", "not_null_artemis__active_users_BLOCKCHAIN"], "alias": "active_users_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.5493722, "relation_name": "EXTERNAL.not_null_artemis.active_users_BLOCKCHAIN", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "artemis__active_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.artemis__active_users"]}, "compiled_path": "target/compiled/external_models/models/artemis/gold/artemis__active_users.yml/not_null_artemis__active_users_BLOCKCHAIN.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.artemis.active_users\nwhere BLOCKCHAIN is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCKCHAIN", "file_key_name": "models.artemis__active_users", "attached_node": "model.external_models.artemis__active_users"}, "test.external_models.not_null_artemis__active_users_BLOCK_DATE.d56135f9af": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_DATE", "model": "{{ get_where_subquery(ref('artemis__active_users')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_artemis", "name": "not_null_artemis__active_users_BLOCK_DATE", "resource_type": "test", "package_name": "external_models", "path": "not_null_artemis__active_users_BLOCK_DATE.sql", "original_file_path": "models/artemis/gold/artemis__active_users.yml", "unique_id": "test.external_models.not_null_artemis__active_users_BLOCK_DATE.d56135f9af", "fqn": ["external_models", "artemis", "gold", "not_null_artemis__active_users_BLOCK_DATE"], "alias": "active_users_BLOCK_DATE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.5514455, "relation_name": "EXTERNAL.not_null_artemis.active_users_BLOCK_DATE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "artemis__active_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.artemis__active_users"]}, "compiled_path": "target/compiled/external_models/models/artemis/gold/artemis__active_users.yml/not_null_artemis__active_users_BLOCK_DATE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.artemis.active_users\nwhere BLOCK_DATE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_DATE", "file_key_name": "models.artemis__active_users", "attached_node": "model.external_models.artemis__active_users"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_artemis__active_users_BLOCK_DATE__day__3.e4b3cfa665": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 3, "column_name": "BLOCK_DATE", "model": "{{ get_where_subquery(ref('artemis__active_users')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_artemis", "name": "dbt_expectations_expect_row_values_to_have_recent_data_artemis__active_users_BLOCK_DATE__day__3", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_row_va_675f94da9aa43460b48f2aad1d157a15.sql", "original_file_path": "models/artemis/gold/artemis__active_users.yml", "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_artemis__active_users_BLOCK_DATE__day__3.e4b3cfa665", "fqn": ["external_models", "artemis", "gold", "dbt_expectations_expect_row_values_to_have_recent_data_artemis__active_users_BLOCK_DATE__day__3"], "alias": "active_users_BLOCK_DATE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_675f94da9aa43460b48f2aad1d157a15", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_675f94da9aa43460b48f2aad1d157a15"}, "created_at": 1760113502.5532866, "relation_name": "EXTERNAL.dbt_expectations_expect_row_values_to_have_recent_data_artemis.active_users_BLOCK_DATE", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_675f94da9aa43460b48f2aad1d157a15\") }}", "language": "sql", "refs": [{"name": "artemis__active_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.artemis__active_users"]}, "compiled_path": "target/compiled/external_models/models/artemis/gold/artemis__active_users.yml/dbt_expectations_expect_row_va_675f94da9aa43460b48f2aad1d157a15.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_DATE as timestamp_ntz)) as max_timestamp\n from\n EXTERNAL.artemis.active_users\n where\n -- to exclude erroneous future dates\n cast(BLOCK_DATE as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -3,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_DATE", "file_key_name": "models.artemis__active_users", "attached_node": "model.external_models.artemis__active_users"}, "test.external_models.not_null_artemis__active_users_ACTIVE_USERS.450401b050": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ACTIVE_USERS", "model": "{{ get_where_subquery(ref('artemis__active_users')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_artemis", "name": "not_null_artemis__active_users_ACTIVE_USERS", "resource_type": "test", "package_name": "external_models", "path": "not_null_artemis__active_users_ACTIVE_USERS.sql", "original_file_path": "models/artemis/gold/artemis__active_users.yml", "unique_id": "test.external_models.not_null_artemis__active_users_ACTIVE_USERS.450401b050", "fqn": ["external_models", "artemis", "gold", "not_null_artemis__active_users_ACTIVE_USERS"], "alias": "active_users_ACTIVE_USERS", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.559102, "relation_name": "EXTERNAL.not_null_artemis.active_users_ACTIVE_USERS", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "artemis__active_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.artemis__active_users"]}, "compiled_path": "target/compiled/external_models/models/artemis/gold/artemis__active_users.yml/not_null_artemis__active_users_ACTIVE_USERS.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.artemis.active_users\nwhere ACTIVE_USERS is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ACTIVE_USERS", "file_key_name": "models.artemis__active_users", "attached_node": "model.external_models.artemis__active_users"}, "test.external_models.unique_artemis__active_users_ACTIVE_USERS_ID.0ba8dead1c": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "ACTIVE_USERS_ID", "model": "{{ get_where_subquery(ref('artemis__active_users')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "unique_artemis", "name": "unique_artemis__active_users_ACTIVE_USERS_ID", "resource_type": "test", "package_name": "external_models", "path": "unique_artemis__active_users_ACTIVE_USERS_ID.sql", "original_file_path": "models/artemis/gold/artemis__active_users.yml", "unique_id": "test.external_models.unique_artemis__active_users_ACTIVE_USERS_ID.0ba8dead1c", "fqn": ["external_models", "artemis", "gold", "unique_artemis__active_users_ACTIVE_USERS_ID"], "alias": "active_users_ACTIVE_USERS_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.5608926, "relation_name": "EXTERNAL.unique_artemis.active_users_ACTIVE_USERS_ID", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "artemis__active_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.artemis__active_users"]}, "compiled_path": "target/compiled/external_models/models/artemis/gold/artemis__active_users.yml/unique_artemis__active_users_ACTIVE_USERS_ID.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n ACTIVE_USERS_ID as unique_field,\n count(*) as n_records\n\nfrom EXTERNAL.artemis.active_users\nwhere ACTIVE_USERS_ID is not null\ngroup by ACTIVE_USERS_ID\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ACTIVE_USERS_ID", "file_key_name": "models.artemis__active_users", "attached_node": "model.external_models.artemis__active_users"}, "test.external_models.not_null_artemis__tx_count_BLOCKCHAIN.d0c8a33dfe": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCKCHAIN", "model": "{{ get_where_subquery(ref('artemis__tx_count')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_artemis", "name": "not_null_artemis__tx_count_BLOCKCHAIN", "resource_type": "test", "package_name": "external_models", "path": "not_null_artemis__tx_count_BLOCKCHAIN.sql", "original_file_path": "models/artemis/gold/artemis__tx_count.yml", "unique_id": "test.external_models.not_null_artemis__tx_count_BLOCKCHAIN.d0c8a33dfe", "fqn": ["external_models", "artemis", "gold", "not_null_artemis__tx_count_BLOCKCHAIN"], "alias": "tx_count_BLOCKCHAIN", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.563892, "relation_name": "EXTERNAL.not_null_artemis.tx_count_BLOCKCHAIN", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "artemis__tx_count", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.artemis__tx_count"]}, "compiled_path": "target/compiled/external_models/models/artemis/gold/artemis__tx_count.yml/not_null_artemis__tx_count_BLOCKCHAIN.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.artemis.tx_count\nwhere BLOCKCHAIN is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCKCHAIN", "file_key_name": "models.artemis__tx_count", "attached_node": "model.external_models.artemis__tx_count"}, "test.external_models.not_null_artemis__tx_count_BLOCK_DATE.dbafcdce9a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_DATE", "model": "{{ get_where_subquery(ref('artemis__tx_count')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_artemis", "name": "not_null_artemis__tx_count_BLOCK_DATE", "resource_type": "test", "package_name": "external_models", "path": "not_null_artemis__tx_count_BLOCK_DATE.sql", "original_file_path": "models/artemis/gold/artemis__tx_count.yml", "unique_id": "test.external_models.not_null_artemis__tx_count_BLOCK_DATE.dbafcdce9a", "fqn": ["external_models", "artemis", "gold", "not_null_artemis__tx_count_BLOCK_DATE"], "alias": "tx_count_BLOCK_DATE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.56571, "relation_name": "EXTERNAL.not_null_artemis.tx_count_BLOCK_DATE", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "artemis__tx_count", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.artemis__tx_count"]}, "compiled_path": "target/compiled/external_models/models/artemis/gold/artemis__tx_count.yml/not_null_artemis__tx_count_BLOCK_DATE.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.artemis.tx_count\nwhere BLOCK_DATE is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_DATE", "file_key_name": "models.artemis__tx_count", "attached_node": "model.external_models.artemis__tx_count"}, "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_artemis__tx_count_BLOCK_DATE__day__3.9e9badb9b2": {"test_metadata": {"name": "expect_row_values_to_have_recent_data", "kwargs": {"datepart": "day", "interval": 3, "column_name": "BLOCK_DATE", "model": "{{ get_where_subquery(ref('artemis__tx_count')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_row_values_to_have_recent_data_artemis", "name": "dbt_expectations_expect_row_values_to_have_recent_data_artemis__tx_count_BLOCK_DATE__day__3", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_row_va_e2ec17c2ce5330456058722c7640f13b.sql", "original_file_path": "models/artemis/gold/artemis__tx_count.yml", "unique_id": "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_artemis__tx_count_BLOCK_DATE__day__3.9e9badb9b2", "fqn": ["external_models", "artemis", "gold", "dbt_expectations_expect_row_values_to_have_recent_data_artemis__tx_count_BLOCK_DATE__day__3"], "alias": "tx_count_BLOCK_DATE", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_row_va_e2ec17c2ce5330456058722c7640f13b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_row_va_e2ec17c2ce5330456058722c7640f13b"}, "created_at": 1760113502.5674899, "relation_name": "EXTERNAL.dbt_expectations_expect_row_values_to_have_recent_data_artemis.tx_count_BLOCK_DATE", "raw_code": "{{ dbt_expectations.test_expect_row_values_to_have_recent_data(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_row_va_e2ec17c2ce5330456058722c7640f13b\") }}", "language": "sql", "refs": [{"name": "artemis__tx_count", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.artemis__tx_count"]}, "compiled_path": "target/compiled/external_models/models/artemis/gold/artemis__tx_count.yml/dbt_expectations_expect_row_va_e2ec17c2ce5330456058722c7640f13b.sql", "compiled": true, "compiled_code": "\n\n with max_recency as (\n\n select max(cast(BLOCK_DATE as timestamp_ntz)) as max_timestamp\n from\n EXTERNAL.artemis.tx_count\n where\n -- to exclude erroneous future dates\n cast(BLOCK_DATE as timestamp_ntz) <= convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n \n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('1970-01-01' as timestamp_ntz))\n <\n cast(\n\n dateadd(\n day,\n -3,\n convert_timezone('UTC', 'GMT',\n cast(convert_timezone('UTC', current_timestamp()) as timestamp)\n)\n )\n\n as timestamp_ntz)\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_DATE", "file_key_name": "models.artemis__tx_count", "attached_node": "model.external_models.artemis__tx_count"}, "test.external_models.not_null_artemis__tx_count_TX_COUNT.f3522b67b1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "TX_COUNT", "model": "{{ get_where_subquery(ref('artemis__tx_count')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_artemis", "name": "not_null_artemis__tx_count_TX_COUNT", "resource_type": "test", "package_name": "external_models", "path": "not_null_artemis__tx_count_TX_COUNT.sql", "original_file_path": "models/artemis/gold/artemis__tx_count.yml", "unique_id": "test.external_models.not_null_artemis__tx_count_TX_COUNT.f3522b67b1", "fqn": ["external_models", "artemis", "gold", "not_null_artemis__tx_count_TX_COUNT"], "alias": "tx_count_TX_COUNT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.573683, "relation_name": "EXTERNAL.not_null_artemis.tx_count_TX_COUNT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "artemis__tx_count", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.artemis__tx_count"]}, "compiled_path": "target/compiled/external_models/models/artemis/gold/artemis__tx_count.yml/not_null_artemis__tx_count_TX_COUNT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.artemis.tx_count\nwhere TX_COUNT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_COUNT", "file_key_name": "models.artemis__tx_count", "attached_node": "model.external_models.artemis__tx_count"}, "test.external_models.unique_artemis__tx_count_TX_COUNT_ID.3fc82084e9": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "TX_COUNT_ID", "model": "{{ get_where_subquery(ref('artemis__tx_count')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "unique_artemis", "name": "unique_artemis__tx_count_TX_COUNT_ID", "resource_type": "test", "package_name": "external_models", "path": "unique_artemis__tx_count_TX_COUNT_ID.sql", "original_file_path": "models/artemis/gold/artemis__tx_count.yml", "unique_id": "test.external_models.unique_artemis__tx_count_TX_COUNT_ID.3fc82084e9", "fqn": ["external_models", "artemis", "gold", "unique_artemis__tx_count_TX_COUNT_ID"], "alias": "tx_count_TX_COUNT_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.5754588, "relation_name": "EXTERNAL.unique_artemis.tx_count_TX_COUNT_ID", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "artemis__tx_count", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.artemis__tx_count"]}, "compiled_path": "target/compiled/external_models/models/artemis/gold/artemis__tx_count.yml/unique_artemis__tx_count_TX_COUNT_ID.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n TX_COUNT_ID as unique_field,\n count(*) as n_records\n\nfrom EXTERNAL.artemis.tx_count\nwhere TX_COUNT_ID is not null\ngroup by TX_COUNT_ID\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "TX_COUNT_ID", "file_key_name": "models.artemis__tx_count", "attached_node": "model.external_models.artemis__tx_count"}, "test.external_models.not_null_bronze__blast_leaderboard_RANK.367c836ca7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "RANK", "model": "{{ get_where_subquery(ref('bronze__blast_leaderboard')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__blast_leaderboard_RANK", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__blast_leaderboard_RANK.sql", "original_file_path": "models/blast/bronze__blast_leaderboard.yml", "unique_id": "test.external_models.not_null_bronze__blast_leaderboard_RANK.367c836ca7", "fqn": ["external_models", "blast", "not_null_bronze__blast_leaderboard_RANK"], "alias": "blast_leaderboard_RANK", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.5786593, "relation_name": "EXTERNAL.not_null_bronze.blast_leaderboard_RANK", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__blast_leaderboard", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__blast_leaderboard"]}, "compiled_path": "target/compiled/external_models/models/blast/bronze__blast_leaderboard.yml/not_null_bronze__blast_leaderboard_RANK.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.blast_leaderboard\nwhere RANK is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "RANK", "file_key_name": "models.bronze__blast_leaderboard", "attached_node": "model.external_models.bronze__blast_leaderboard"}, "test.external_models.not_null_bronze__blast_leaderboard__INSERTED_TIMESTAMP.04332ff14b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze__blast_leaderboard')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__blast_leaderboard__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__blast_leaderboard__INSERTED_TIMESTAMP.sql", "original_file_path": "models/blast/bronze__blast_leaderboard.yml", "unique_id": "test.external_models.not_null_bronze__blast_leaderboard__INSERTED_TIMESTAMP.04332ff14b", "fqn": ["external_models", "blast", "not_null_bronze__blast_leaderboard__INSERTED_TIMESTAMP"], "alias": "blast_leaderboard", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.5804784, "relation_name": "EXTERNAL.not_null_bronze.blast_leaderboard", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__blast_leaderboard", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__blast_leaderboard"]}, "compiled_path": "target/compiled/external_models/models/blast/bronze__blast_leaderboard.yml/not_null_bronze__blast_leaderboard__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.blast_leaderboard\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze__blast_leaderboard", "attached_node": "model.external_models.bronze__blast_leaderboard"}, "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__blast_leaderboard__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.d51e63d1b6": {"test_metadata": {"name": "expect_column_values_to_be_in_type_list", "kwargs": {"column_type_list": ["TIMESTAMP_NTZ"], "column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('bronze__blast_leaderboard')) }}"}, "namespace": "dbt_expectations"}, "database": "EXTERNAL", "schema": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze", "name": "dbt_expectations_expect_column_values_to_be_in_type_list_bronze__blast_leaderboard__INSERTED_TIMESTAMP__TIMESTAMP_NTZ", "resource_type": "test", "package_name": "external_models", "path": "dbt_expectations_expect_column_15a0092c75d3aa440a43c49ea209fadc.sql", "original_file_path": "models/blast/bronze__blast_leaderboard.yml", "unique_id": "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__blast_leaderboard__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.d51e63d1b6", "fqn": ["external_models", "blast", "dbt_expectations_expect_column_values_to_be_in_type_list_bronze__blast_leaderboard__INSERTED_TIMESTAMP__TIMESTAMP_NTZ"], "alias": "blast_leaderboard", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_expectations_expect_column_15a0092c75d3aa440a43c49ea209fadc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_expectations_expect_column_15a0092c75d3aa440a43c49ea209fadc"}, "created_at": 1760113502.5822496, "relation_name": "EXTERNAL.dbt_expectations_expect_column_values_to_be_in_type_list_bronze.blast_leaderboard", "raw_code": "{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_expectations_expect_column_15a0092c75d3aa440a43c49ea209fadc\") }}", "language": "sql", "refs": [{"name": "bronze__blast_leaderboard", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__blast_leaderboard"]}, "compiled_path": "target/compiled/external_models/models/blast/bronze__blast_leaderboard.yml/dbt_expectations_expect_column_15a0092c75d3aa440a43c49ea209fadc.sql", "compiled": true, "compiled_code": "with relation_columns as (\n\n \n select\n cast('DATE' as TEXT) as relation_column,\n cast('DATE' as TEXT) as relation_column_type\n union all\n \n select\n cast('LEADERBOARD_TYPE' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('RANK' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('NAME' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('POINTS_AMOUNT' as TEXT) as relation_column,\n cast('NUMBER' as TEXT) as relation_column_type\n union all\n \n select\n cast('GOLD_AMOUNT' as TEXT) as relation_column,\n cast('FLOAT' as TEXT) as relation_column_type\n union all\n \n select\n cast('INVITED_BY' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('ID' as TEXT) as relation_column,\n cast('VARCHAR' as TEXT) as relation_column_type\n union all\n \n select\n cast('_INSERTED_TIMESTAMP' as TEXT) as relation_column,\n cast('TIMESTAMP_NTZ' as TEXT) as relation_column_type\n \n \n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '_INSERTED_TIMESTAMP'\n and\n relation_column_type not in ('TIMESTAMP_NTZ')\n\n )\n select *\n from test_data", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.bronze__blast_leaderboard", "attached_node": "model.external_models.bronze__blast_leaderboard"}, "test.external_models.not_null_bronze__blast_leaderboard_ID.bb6f4cfb18": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ID", "model": "{{ get_where_subquery(ref('bronze__blast_leaderboard')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_bronze", "name": "not_null_bronze__blast_leaderboard_ID", "resource_type": "test", "package_name": "external_models", "path": "not_null_bronze__blast_leaderboard_ID.sql", "original_file_path": "models/blast/bronze__blast_leaderboard.yml", "unique_id": "test.external_models.not_null_bronze__blast_leaderboard_ID.bb6f4cfb18", "fqn": ["external_models", "blast", "not_null_bronze__blast_leaderboard_ID"], "alias": "blast_leaderboard_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.5867982, "relation_name": "EXTERNAL.not_null_bronze.blast_leaderboard_ID", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bronze__blast_leaderboard", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__blast_leaderboard"]}, "compiled_path": "target/compiled/external_models/models/blast/bronze__blast_leaderboard.yml/not_null_bronze__blast_leaderboard_ID.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.bronze.blast_leaderboard\nwhere ID is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ID", "file_key_name": "models.bronze__blast_leaderboard", "attached_node": "model.external_models.bronze__blast_leaderboard"}, "test.external_models.dbt_utils_unique_combination_of_columns_bronze__blast_leaderboard_ID.c3d87330d2": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ID"], "model": "{{ get_where_subquery(ref('bronze__blast_leaderboard')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_bronze", "name": "dbt_utils_unique_combination_of_columns_bronze__blast_leaderboard_ID", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_ab28c31c88c09ad1ed7a6de1f94ce17c.sql", "original_file_path": "models/blast/bronze__blast_leaderboard.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_bronze__blast_leaderboard_ID.c3d87330d2", "fqn": ["external_models", "blast", "dbt_utils_unique_combination_of_columns_bronze__blast_leaderboard_ID"], "alias": "blast_leaderboard_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ab28c31c88c09ad1ed7a6de1f94ce17c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_ab28c31c88c09ad1ed7a6de1f94ce17c"}, "created_at": 1760113502.588601, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_bronze.blast_leaderboard_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ab28c31c88c09ad1ed7a6de1f94ce17c\") }}", "language": "sql", "refs": [{"name": "bronze__blast_leaderboard", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.bronze__blast_leaderboard"]}, "compiled_path": "target/compiled/external_models/models/blast/bronze__blast_leaderboard.yml/dbt_utils_unique_combination_o_ab28c31c88c09ad1ed7a6de1f94ce17c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ID\n from EXTERNAL.bronze.blast_leaderboard\n group by ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.bronze__blast_leaderboard", "attached_node": "model.external_models.bronze__blast_leaderboard"}, "test.external_models.not_null_farcaster__fact_storage_UPDATED_AT.b84533d887": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "UPDATED_AT", "model": "{{ get_where_subquery(ref('farcaster__fact_storage')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_farcaster", "name": "not_null_farcaster__fact_storage_UPDATED_AT", "resource_type": "test", "package_name": "external_models", "path": "not_null_farcaster__fact_storage_UPDATED_AT.sql", "original_file_path": "models/farcaster/gold/farcaster__fact_storage.yml", "unique_id": "test.external_models.not_null_farcaster__fact_storage_UPDATED_AT.b84533d887", "fqn": ["external_models", "farcaster", "gold", "not_null_farcaster__fact_storage_UPDATED_AT"], "alias": "fact_storage_UPDATED_AT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.621232, "relation_name": "EXTERNAL.not_null_farcaster.fact_storage_UPDATED_AT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "farcaster__fact_storage", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.farcaster__fact_storage"]}, "compiled_path": "target/compiled/external_models/models/farcaster/gold/farcaster__fact_storage.yml/not_null_farcaster__fact_storage_UPDATED_AT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.farcaster.fact_storage\nwhere UPDATED_AT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "UPDATED_AT", "file_key_name": "models.farcaster__fact_storage", "attached_node": "model.external_models.farcaster__fact_storage"}, "test.external_models.not_null_farcaster__fact_blocks_CREATED_AT.3347167eb8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "CREATED_AT", "model": "{{ get_where_subquery(ref('farcaster__fact_blocks')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_farcaster", "name": "not_null_farcaster__fact_blocks_CREATED_AT", "resource_type": "test", "package_name": "external_models", "path": "not_null_farcaster__fact_blocks_CREATED_AT.sql", "original_file_path": "models/farcaster/gold/farcaster__fact_blocks.yml", "unique_id": "test.external_models.not_null_farcaster__fact_blocks_CREATED_AT.3347167eb8", "fqn": ["external_models", "farcaster", "gold", "not_null_farcaster__fact_blocks_CREATED_AT"], "alias": "fact_blocks_CREATED_AT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.6251416, "relation_name": "EXTERNAL.not_null_farcaster.fact_blocks_CREATED_AT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "farcaster__fact_blocks", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.farcaster__fact_blocks"]}, "compiled_path": "target/compiled/external_models/models/farcaster/gold/farcaster__fact_blocks.yml/not_null_farcaster__fact_blocks_CREATED_AT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.farcaster.fact_blocks\nwhere CREATED_AT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "CREATED_AT", "file_key_name": "models.farcaster__fact_blocks", "attached_node": "model.external_models.farcaster__fact_blocks"}, "test.external_models.not_null_farcaster__fact_channel_follows_UPDATED_AT.da206c58b8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "UPDATED_AT", "model": "{{ get_where_subquery(ref('farcaster__fact_channel_follows')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_farcaster", "name": "not_null_farcaster__fact_channel_follows_UPDATED_AT", "resource_type": "test", "package_name": "external_models", "path": "not_null_farcaster__fact_channel_follows_UPDATED_AT.sql", "original_file_path": "models/farcaster/gold/farcaster__fact_channel_follows.yml", "unique_id": "test.external_models.not_null_farcaster__fact_channel_follows_UPDATED_AT.da206c58b8", "fqn": ["external_models", "farcaster", "gold", "not_null_farcaster__fact_channel_follows_UPDATED_AT"], "alias": "fact_channel_follows_UPDATED_AT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.6284106, "relation_name": "EXTERNAL.not_null_farcaster.fact_channel_follows_UPDATED_AT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "farcaster__fact_channel_follows", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.farcaster__fact_channel_follows"]}, "compiled_path": "target/compiled/external_models/models/farcaster/gold/farcaster__fact_channel_follows.yml/not_null_farcaster__fact_channel_follows_UPDATED_AT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.farcaster.fact_channel_follows\nwhere UPDATED_AT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "UPDATED_AT", "file_key_name": "models.farcaster__fact_channel_follows", "attached_node": "model.external_models.farcaster__fact_channel_follows"}, "test.external_models.not_null_farcaster__fact_signers_UPDATED_AT.2a27e46c6b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "UPDATED_AT", "model": "{{ get_where_subquery(ref('farcaster__fact_signers')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_farcaster", "name": "not_null_farcaster__fact_signers_UPDATED_AT", "resource_type": "test", "package_name": "external_models", "path": "not_null_farcaster__fact_signers_UPDATED_AT.sql", "original_file_path": "models/farcaster/gold/farcaster__fact_signers.yml", "unique_id": "test.external_models.not_null_farcaster__fact_signers_UPDATED_AT.2a27e46c6b", "fqn": ["external_models", "farcaster", "gold", "not_null_farcaster__fact_signers_UPDATED_AT"], "alias": "fact_signers_UPDATED_AT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.6320355, "relation_name": "EXTERNAL.not_null_farcaster.fact_signers_UPDATED_AT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "farcaster__fact_signers", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.farcaster__fact_signers"]}, "compiled_path": "target/compiled/external_models/models/farcaster/gold/farcaster__fact_signers.yml/not_null_farcaster__fact_signers_UPDATED_AT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.farcaster.fact_signers\nwhere UPDATED_AT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "UPDATED_AT", "file_key_name": "models.farcaster__fact_signers", "attached_node": "model.external_models.farcaster__fact_signers"}, "test.external_models.not_null_farcaster__fact_casts_UPDATED_AT.5d8dd8bd95": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "UPDATED_AT", "model": "{{ get_where_subquery(ref('farcaster__fact_casts')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_farcaster", "name": "not_null_farcaster__fact_casts_UPDATED_AT", "resource_type": "test", "package_name": "external_models", "path": "not_null_farcaster__fact_casts_UPDATED_AT.sql", "original_file_path": "models/farcaster/gold/farcaster__fact_casts.yml", "unique_id": "test.external_models.not_null_farcaster__fact_casts_UPDATED_AT.5d8dd8bd95", "fqn": ["external_models", "farcaster", "gold", "not_null_farcaster__fact_casts_UPDATED_AT"], "alias": "fact_casts_UPDATED_AT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.6391382, "relation_name": "EXTERNAL.not_null_farcaster.fact_casts_UPDATED_AT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "farcaster__fact_casts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.farcaster__fact_casts"]}, "compiled_path": "target/compiled/external_models/models/farcaster/gold/farcaster__fact_casts.yml/not_null_farcaster__fact_casts_UPDATED_AT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.farcaster.fact_casts\nwhere UPDATED_AT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "UPDATED_AT", "file_key_name": "models.farcaster__fact_casts", "attached_node": "model.external_models.farcaster__fact_casts"}, "test.external_models.not_null_farcaster__fact_reactions_UPDATED_AT.9a07cc8175": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "UPDATED_AT", "model": "{{ get_where_subquery(ref('farcaster__fact_reactions')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_farcaster", "name": "not_null_farcaster__fact_reactions_UPDATED_AT", "resource_type": "test", "package_name": "external_models", "path": "not_null_farcaster__fact_reactions_UPDATED_AT.sql", "original_file_path": "models/farcaster/gold/farcaster__fact_reactions.yml", "unique_id": "test.external_models.not_null_farcaster__fact_reactions_UPDATED_AT.9a07cc8175", "fqn": ["external_models", "farcaster", "gold", "not_null_farcaster__fact_reactions_UPDATED_AT"], "alias": "fact_reactions_UPDATED_AT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.6438124, "relation_name": "EXTERNAL.not_null_farcaster.fact_reactions_UPDATED_AT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "farcaster__fact_reactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.farcaster__fact_reactions"]}, "compiled_path": "target/compiled/external_models/models/farcaster/gold/farcaster__fact_reactions.yml/not_null_farcaster__fact_reactions_UPDATED_AT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.farcaster.fact_reactions\nwhere UPDATED_AT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "UPDATED_AT", "file_key_name": "models.farcaster__fact_reactions", "attached_node": "model.external_models.farcaster__fact_reactions"}, "test.external_models.not_null_farcaster__dim_fnames_UPDATED_AT.724d9bd760": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "UPDATED_AT", "model": "{{ get_where_subquery(ref('farcaster__dim_fnames')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_farcaster", "name": "not_null_farcaster__dim_fnames_UPDATED_AT", "resource_type": "test", "package_name": "external_models", "path": "not_null_farcaster__dim_fnames_UPDATED_AT.sql", "original_file_path": "models/farcaster/gold/farcaster__dim_fnames.yml", "unique_id": "test.external_models.not_null_farcaster__dim_fnames_UPDATED_AT.724d9bd760", "fqn": ["external_models", "farcaster", "gold", "not_null_farcaster__dim_fnames_UPDATED_AT"], "alias": "dim_fnames_UPDATED_AT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.647773, "relation_name": "EXTERNAL.not_null_farcaster.dim_fnames_UPDATED_AT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "farcaster__dim_fnames", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.farcaster__dim_fnames"]}, "compiled_path": "target/compiled/external_models/models/farcaster/gold/farcaster__dim_fnames.yml/not_null_farcaster__dim_fnames_UPDATED_AT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.farcaster.dim_fnames\nwhere UPDATED_AT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "UPDATED_AT", "file_key_name": "models.farcaster__dim_fnames", "attached_node": "model.external_models.farcaster__dim_fnames"}, "test.external_models.not_null_farcaster__fact_warpcast_power_users_UPDATED_AT.8008850037": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "UPDATED_AT", "model": "{{ get_where_subquery(ref('farcaster__fact_warpcast_power_users')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_farcaster", "name": "not_null_farcaster__fact_warpcast_power_users_UPDATED_AT", "resource_type": "test", "package_name": "external_models", "path": "not_null_farcaster__fact_warpcast_power_users_UPDATED_AT.sql", "original_file_path": "models/farcaster/gold/farcaster__fact_warpcast_power_users.yml", "unique_id": "test.external_models.not_null_farcaster__fact_warpcast_power_users_UPDATED_AT.8008850037", "fqn": ["external_models", "farcaster", "gold", "not_null_farcaster__fact_warpcast_power_users_UPDATED_AT"], "alias": "fact_warpcast_power_users_UPDATED_AT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.650524, "relation_name": "EXTERNAL.not_null_farcaster.fact_warpcast_power_users_UPDATED_AT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "farcaster__fact_warpcast_power_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.farcaster__fact_warpcast_power_users"]}, "compiled_path": "target/compiled/external_models/models/farcaster/gold/farcaster__fact_warpcast_power_users.yml/not_null_farcaster__fact_warpcast_power_users_UPDATED_AT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.farcaster.fact_warpcast_power_users\nwhere UPDATED_AT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "UPDATED_AT", "file_key_name": "models.farcaster__fact_warpcast_power_users", "attached_node": "model.external_models.farcaster__fact_warpcast_power_users"}, "test.external_models.not_null_farcaster__dim_profile_with_addresses_UPDATED_AT.f3f9b1c1b0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "UPDATED_AT", "model": "{{ get_where_subquery(ref('farcaster__dim_profile_with_addresses')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_farcaster", "name": "not_null_farcaster__dim_profile_with_addresses_UPDATED_AT", "resource_type": "test", "package_name": "external_models", "path": "not_null_farcaster__dim_profile_with_addresses_UPDATED_AT.sql", "original_file_path": "models/farcaster/gold/farcaster__dim_profile_with_addresses.yml", "unique_id": "test.external_models.not_null_farcaster__dim_profile_with_addresses_UPDATED_AT.f3f9b1c1b0", "fqn": ["external_models", "farcaster", "gold", "not_null_farcaster__dim_profile_with_addresses_UPDATED_AT"], "alias": "dim_profile_with_addresses_UPDATED_AT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.6549685, "relation_name": "EXTERNAL.not_null_farcaster.dim_profile_with_addresses_UPDATED_AT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "farcaster__dim_profile_with_addresses", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.farcaster__dim_profile_with_addresses"]}, "compiled_path": "target/compiled/external_models/models/farcaster/gold/farcaster__dim_profile_with_addresses.yml/not_null_farcaster__dim_profile_with_addresses_UPDATED_AT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.farcaster.dim_profile_with_addresses\nwhere UPDATED_AT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "UPDATED_AT", "file_key_name": "models.farcaster__dim_profile_with_addresses", "attached_node": "model.external_models.farcaster__dim_profile_with_addresses"}, "test.external_models.not_null_farcaster__fact_user_data_UPDATED_AT.c07d179892": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "UPDATED_AT", "model": "{{ get_where_subquery(ref('farcaster__fact_user_data')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_farcaster", "name": "not_null_farcaster__fact_user_data_UPDATED_AT", "resource_type": "test", "package_name": "external_models", "path": "not_null_farcaster__fact_user_data_UPDATED_AT.sql", "original_file_path": "models/farcaster/gold/farcaster__fact_user_data.yml", "unique_id": "test.external_models.not_null_farcaster__fact_user_data_UPDATED_AT.c07d179892", "fqn": ["external_models", "farcaster", "gold", "not_null_farcaster__fact_user_data_UPDATED_AT"], "alias": "fact_user_data_UPDATED_AT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.65797, "relation_name": "EXTERNAL.not_null_farcaster.fact_user_data_UPDATED_AT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "farcaster__fact_user_data", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.farcaster__fact_user_data"]}, "compiled_path": "target/compiled/external_models/models/farcaster/gold/farcaster__fact_user_data.yml/not_null_farcaster__fact_user_data_UPDATED_AT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.farcaster.fact_user_data\nwhere UPDATED_AT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "UPDATED_AT", "file_key_name": "models.farcaster__fact_user_data", "attached_node": "model.external_models.farcaster__fact_user_data"}, "test.external_models.not_null_farcaster__fact_links_UPDATED_AT.ea41f8a298": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "UPDATED_AT", "model": "{{ get_where_subquery(ref('farcaster__fact_links')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_farcaster", "name": "not_null_farcaster__fact_links_UPDATED_AT", "resource_type": "test", "package_name": "external_models", "path": "not_null_farcaster__fact_links_UPDATED_AT.sql", "original_file_path": "models/farcaster/gold/farcaster__fact_links.yml", "unique_id": "test.external_models.not_null_farcaster__fact_links_UPDATED_AT.ea41f8a298", "fqn": ["external_models", "farcaster", "gold", "not_null_farcaster__fact_links_UPDATED_AT"], "alias": "fact_links_UPDATED_AT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.6612914, "relation_name": "EXTERNAL.not_null_farcaster.fact_links_UPDATED_AT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "farcaster__fact_links", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.farcaster__fact_links"]}, "compiled_path": "target/compiled/external_models/models/farcaster/gold/farcaster__fact_links.yml/not_null_farcaster__fact_links_UPDATED_AT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.farcaster.fact_links\nwhere UPDATED_AT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "UPDATED_AT", "file_key_name": "models.farcaster__fact_links", "attached_node": "model.external_models.farcaster__fact_links"}, "test.external_models.not_null_farcaster__dim_fids_UPDATED_AT.da0373fe59": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "UPDATED_AT", "model": "{{ get_where_subquery(ref('farcaster__dim_fids')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_farcaster", "name": "not_null_farcaster__dim_fids_UPDATED_AT", "resource_type": "test", "package_name": "external_models", "path": "not_null_farcaster__dim_fids_UPDATED_AT.sql", "original_file_path": "models/farcaster/gold/farcaster__dim_fids.yml", "unique_id": "test.external_models.not_null_farcaster__dim_fids_UPDATED_AT.da0373fe59", "fqn": ["external_models", "farcaster", "gold", "not_null_farcaster__dim_fids_UPDATED_AT"], "alias": "dim_fids_UPDATED_AT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.6646311, "relation_name": "EXTERNAL.not_null_farcaster.dim_fids_UPDATED_AT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "farcaster__dim_fids", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.farcaster__dim_fids"]}, "compiled_path": "target/compiled/external_models/models/farcaster/gold/farcaster__dim_fids.yml/not_null_farcaster__dim_fids_UPDATED_AT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.farcaster.dim_fids\nwhere UPDATED_AT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "UPDATED_AT", "file_key_name": "models.farcaster__dim_fids", "attached_node": "model.external_models.farcaster__dim_fids"}, "test.external_models.not_null_farcaster__fact_verifications_UPDATED_AT.8ec3d8c803": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "UPDATED_AT", "model": "{{ get_where_subquery(ref('farcaster__fact_verifications')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_farcaster", "name": "not_null_farcaster__fact_verifications_UPDATED_AT", "resource_type": "test", "package_name": "external_models", "path": "not_null_farcaster__fact_verifications_UPDATED_AT.sql", "original_file_path": "models/farcaster/gold/farcaster__fact_verifications.yml", "unique_id": "test.external_models.not_null_farcaster__fact_verifications_UPDATED_AT.8ec3d8c803", "fqn": ["external_models", "farcaster", "gold", "not_null_farcaster__fact_verifications_UPDATED_AT"], "alias": "fact_verifications_UPDATED_AT", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.6679394, "relation_name": "EXTERNAL.not_null_farcaster.fact_verifications_UPDATED_AT", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "farcaster__fact_verifications", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.farcaster__fact_verifications"]}, "compiled_path": "target/compiled/external_models/models/farcaster/gold/farcaster__fact_verifications.yml/not_null_farcaster__fact_verifications_UPDATED_AT.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.farcaster.fact_verifications\nwhere UPDATED_AT is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "UPDATED_AT", "file_key_name": "models.farcaster__fact_verifications", "attached_node": "model.external_models.farcaster__fact_verifications"}, "test.external_models.not_null_silver__layerzero_txs_snapshot_SOURCE_TRANSACTION_HASH.a657c2b14d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "SOURCE_TRANSACTION_HASH", "model": "{{ get_where_subquery(ref('silver__layerzero_txs_snapshot')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__layerzero_txs_snapshot_SOURCE_TRANSACTION_HASH", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__layerzero_txs_snapshot_SOURCE_TRANSACTION_HASH.sql", "original_file_path": "models/layerzero/silver/silver__layerzero_txs_snapshot.yml", "unique_id": "test.external_models.not_null_silver__layerzero_txs_snapshot_SOURCE_TRANSACTION_HASH.a657c2b14d", "fqn": ["external_models", "layerzero", "silver", "not_null_silver__layerzero_txs_snapshot_SOURCE_TRANSACTION_HASH"], "alias": "layerzero_txs_snapshot_SOURCE_TRANSACTION_HASH", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.671556, "relation_name": "EXTERNAL.not_null_silver.layerzero_txs_snapshot_SOURCE_TRANSACTION_HASH", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__layerzero_txs_snapshot", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__layerzero_txs_snapshot"]}, "compiled_path": "target/compiled/external_models/models/layerzero/silver/silver__layerzero_txs_snapshot.yml/not_null_silver__layerzero_txs_snapshot_SOURCE_TRANSACTION_HASH.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.layerzero_txs_snapshot\nwhere SOURCE_TRANSACTION_HASH is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "SOURCE_TRANSACTION_HASH", "file_key_name": "models.silver__layerzero_txs_snapshot", "attached_node": "model.external_models.silver__layerzero_txs_snapshot"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__layerzero_txs_snapshot_LAYERZERO_TXS_SNAPSHOT_ID.e37099fee0": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["LAYERZERO_TXS_SNAPSHOT_ID"], "model": "{{ get_where_subquery(ref('silver__layerzero_txs_snapshot')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__layerzero_txs_snapshot_LAYERZERO_TXS_SNAPSHOT_ID", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_e1baa1691d9704253255bdc055fee231.sql", "original_file_path": "models/layerzero/silver/silver__layerzero_txs_snapshot.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__layerzero_txs_snapshot_LAYERZERO_TXS_SNAPSHOT_ID.e37099fee0", "fqn": ["external_models", "layerzero", "silver", "dbt_utils_unique_combination_of_columns_silver__layerzero_txs_snapshot_LAYERZERO_TXS_SNAPSHOT_ID"], "alias": "layerzero_txs_snapshot_LAYERZERO_TXS_SNAPSHOT_ID", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e1baa1691d9704253255bdc055fee231", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_e1baa1691d9704253255bdc055fee231"}, "created_at": 1760113502.67367, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_silver.layerzero_txs_snapshot_LAYERZERO_TXS_SNAPSHOT_ID", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e1baa1691d9704253255bdc055fee231\") }}", "language": "sql", "refs": [{"name": "silver__layerzero_txs_snapshot", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__layerzero_txs_snapshot"]}, "compiled_path": "target/compiled/external_models/models/layerzero/silver/silver__layerzero_txs_snapshot.yml/dbt_utils_unique_combination_o_e1baa1691d9704253255bdc055fee231.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n LAYERZERO_TXS_SNAPSHOT_ID\n from EXTERNAL.silver.layerzero_txs_snapshot\n group by LAYERZERO_TXS_SNAPSHOT_ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__layerzero_txs_snapshot", "attached_node": "model.external_models.silver__layerzero_txs_snapshot"}, "test.external_models.not_null_silver__flashbots_mev_txs__INSERTED_TIMESTAMP.6abaa9d8f7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__flashbots_mev_txs')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__flashbots_mev_txs__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__flashbots_mev_txs__INSERTED_TIMESTAMP.sql", "original_file_path": "models/flashbots/silver/silver__flashbots_mev_txs.yml", "unique_id": "test.external_models.not_null_silver__flashbots_mev_txs__INSERTED_TIMESTAMP.6abaa9d8f7", "fqn": ["external_models", "flashbots", "silver", "not_null_silver__flashbots_mev_txs__INSERTED_TIMESTAMP"], "alias": "flashbots_mev_txs", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.6842842, "relation_name": "EXTERNAL.not_null_silver.flashbots_mev_txs", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__flashbots_mev_txs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__flashbots_mev_txs"]}, "compiled_path": "target/compiled/external_models/models/flashbots/silver/silver__flashbots_mev_txs.yml/not_null_silver__flashbots_mev_txs__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.flashbots_mev_txs\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__flashbots_mev_txs", "attached_node": "model.external_models.silver__flashbots_mev_txs"}, "test.external_models.not_null_silver__flashbots_mev_txs_BLOCK_TIME.43b2a3dd1c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "BLOCK_TIME", "model": "{{ get_where_subquery(ref('silver__flashbots_mev_txs')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__flashbots_mev_txs_BLOCK_TIME", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__flashbots_mev_txs_BLOCK_TIME.sql", "original_file_path": "models/flashbots/silver/silver__flashbots_mev_txs.yml", "unique_id": "test.external_models.not_null_silver__flashbots_mev_txs_BLOCK_TIME.43b2a3dd1c", "fqn": ["external_models", "flashbots", "silver", "not_null_silver__flashbots_mev_txs_BLOCK_TIME"], "alias": "flashbots_mev_txs_BLOCK_TIME", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.686116, "relation_name": "EXTERNAL.not_null_silver.flashbots_mev_txs_BLOCK_TIME", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__flashbots_mev_txs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__flashbots_mev_txs"]}, "compiled_path": "target/compiled/external_models/models/flashbots/silver/silver__flashbots_mev_txs.yml/not_null_silver__flashbots_mev_txs_BLOCK_TIME.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.flashbots_mev_txs\nwhere BLOCK_TIME is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "BLOCK_TIME", "file_key_name": "models.silver__flashbots_mev_txs", "attached_node": "model.external_models.silver__flashbots_mev_txs"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__flashbots_mev_txs__ID.a3773be3b5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["_ID"], "model": "{{ get_where_subquery(ref('silver__flashbots_mev_txs')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__flashbots_mev_txs__ID", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_84d90c4c4c63b98a1048434a211661a6.sql", "original_file_path": "models/flashbots/silver/silver__flashbots_mev_txs.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__flashbots_mev_txs__ID.a3773be3b5", "fqn": ["external_models", "flashbots", "silver", "dbt_utils_unique_combination_of_columns_silver__flashbots_mev_txs__ID"], "alias": "flashbots_mev_txs", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_84d90c4c4c63b98a1048434a211661a6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_84d90c4c4c63b98a1048434a211661a6"}, "created_at": 1760113502.6879697, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_silver.flashbots_mev_txs", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_84d90c4c4c63b98a1048434a211661a6\") }}", "language": "sql", "refs": [{"name": "silver__flashbots_mev_txs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__flashbots_mev_txs"]}, "compiled_path": "target/compiled/external_models/models/flashbots/silver/silver__flashbots_mev_txs.yml/dbt_utils_unique_combination_o_84d90c4c4c63b98a1048434a211661a6.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _ID\n from EXTERNAL.silver.flashbots_mev_txs\n group by _ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__flashbots_mev_txs", "attached_node": "model.external_models.silver__flashbots_mev_txs"}, "test.external_models.not_null_silver__flashbots_protect_txs__INSERTED_TIMESTAMP.730aafbaf5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_INSERTED_TIMESTAMP", "model": "{{ get_where_subquery(ref('silver__flashbots_protect_txs')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "not_null_silver", "name": "not_null_silver__flashbots_protect_txs__INSERTED_TIMESTAMP", "resource_type": "test", "package_name": "external_models", "path": "not_null_silver__flashbots_protect_txs__INSERTED_TIMESTAMP.sql", "original_file_path": "models/flashbots/silver/silver__flashbots_protect_txs.yml", "unique_id": "test.external_models.not_null_silver__flashbots_protect_txs__INSERTED_TIMESTAMP.730aafbaf5", "fqn": ["external_models", "flashbots", "silver", "not_null_silver__flashbots_protect_txs__INSERTED_TIMESTAMP"], "alias": "flashbots_protect_txs", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.693752, "relation_name": "EXTERNAL.not_null_silver.flashbots_protect_txs", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "silver__flashbots_protect_txs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__flashbots_protect_txs"]}, "compiled_path": "target/compiled/external_models/models/flashbots/silver/silver__flashbots_protect_txs.yml/not_null_silver__flashbots_protect_txs__INSERTED_TIMESTAMP.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect *\nfrom EXTERNAL.silver.flashbots_protect_txs\nwhere _INSERTED_TIMESTAMP is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "_INSERTED_TIMESTAMP", "file_key_name": "models.silver__flashbots_protect_txs", "attached_node": "model.external_models.silver__flashbots_protect_txs"}, "test.external_models.dbt_utils_unique_combination_of_columns_silver__flashbots_protect_txs__ID.cea004070b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["_ID"], "model": "{{ get_where_subquery(ref('silver__flashbots_protect_txs')) }}"}, "namespace": "dbt_utils"}, "database": "EXTERNAL", "schema": "dbt_utils_unique_combination_of_columns_silver", "name": "dbt_utils_unique_combination_of_columns_silver__flashbots_protect_txs__ID", "resource_type": "test", "package_name": "external_models", "path": "dbt_utils_unique_combination_o_8ffbc07687e2ae37fcd111d918dbe1c6.sql", "original_file_path": "models/flashbots/silver/silver__flashbots_protect_txs.yml", "unique_id": "test.external_models.dbt_utils_unique_combination_of_columns_silver__flashbots_protect_txs__ID.cea004070b", "fqn": ["external_models", "flashbots", "silver", "dbt_utils_unique_combination_of_columns_silver__flashbots_protect_txs__ID"], "alias": "flashbots_protect_txs", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8ffbc07687e2ae37fcd111d918dbe1c6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "alias": "dbt_utils_unique_combination_o_8ffbc07687e2ae37fcd111d918dbe1c6"}, "created_at": 1760113502.6955972, "relation_name": "EXTERNAL.dbt_utils_unique_combination_of_columns_silver.flashbots_protect_txs", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8ffbc07687e2ae37fcd111d918dbe1c6\") }}", "language": "sql", "refs": [{"name": "silver__flashbots_protect_txs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.external_models.silver__flashbots_protect_txs"]}, "compiled_path": "target/compiled/external_models/models/flashbots/silver/silver__flashbots_protect_txs.yml/dbt_utils_unique_combination_o_8ffbc07687e2ae37fcd111d918dbe1c6.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _ID\n from EXTERNAL.silver.flashbots_protect_txs\n group by _ID\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.silver__flashbots_protect_txs", "attached_node": "model.external_models.silver__flashbots_protect_txs"}, "test.livequery_models.test_transpose__get_status_200.8721d94682": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'/ens/ens-records-by-name' , {'chain_id': 'ethereum','ens_names': 'vitalik.eth'}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get", "model": "{{ get_where_subquery(ref('transpose__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_transpose", "name": "test_transpose__get_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_transpose__get_status_200.sql", "original_file_path": "models/deploy/marketplace/transpose/transpose__.yml", "unique_id": "test.livequery_models.test_transpose__get_status_200.8721d94682", "fqn": ["livequery_models", "deploy", "marketplace", "transpose", "test_transpose__get_status_200"], "alias": "get_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.8395548, "relation_name": "EXTERNAL.test_transpose.get_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "transpose__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.transpose__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/transpose/transpose__.yml/test_transpose__get_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__transpose__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'transpose' as schema_\n) ,\ntest AS\n(\n SELECT\n 'get.get' AS test_name\n ,['/ens/ens-records-by-name' , {'chain_id': 'ethereum','ens_names': 'vitalik.eth'}] as parameters\n ,EXTERNAL.get.get('/ens/ens-records-by-name' , {'chain_id': 'ethereum','ens_names': 'vitalik.eth'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get('/ens/ens-records-by-name' , {'chain_id': 'ethereum','ens_names': 'vitalik.eth'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get('/ens/ens-records-by-name' , {'chain_id': 'ethereum','ens_names': 'vitalik.eth'})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.transpose__", "sql": " __dbt__cte__transpose__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'transpose' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get", "file_key_name": "models.transpose__", "attached_node": "model.livequery_models.transpose__"}, "test.livequery_models.test_credmark_utils__get_status_200.d1548e1f6e": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'/v1/tokens/1/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48' , { 'blockNumber': 17767007 }\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get", "model": "{{ get_where_subquery(ref('credmark_utils__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_credmark_utils", "name": "test_credmark_utils__get_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_credmark_utils__get_status_200.sql", "original_file_path": "models/deploy/marketplace/credmark/credmark_utils__.yml", "unique_id": "test.livequery_models.test_credmark_utils__get_status_200.d1548e1f6e", "fqn": ["livequery_models", "deploy", "marketplace", "credmark", "test_credmark_utils__get_status_200"], "alias": "get_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.8590684, "relation_name": "EXTERNAL.test_credmark_utils.get_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "credmark_utils__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.credmark_utils__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/credmark/credmark_utils__.yml/test_credmark_utils__get_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__credmark_utils__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'credmark_utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'get.get' AS test_name\n ,['/v1/tokens/1/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48' , { 'blockNumber': 17767007 }] as parameters\n ,EXTERNAL.get.get('/v1/tokens/1/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48' , { 'blockNumber': 17767007 }) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get('/v1/tokens/1/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48' , { 'blockNumber': 17767007 })\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get('/v1/tokens/1/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48' , { 'blockNumber': 17767007 })\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.credmark_utils__", "sql": " __dbt__cte__credmark_utils__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'credmark_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get", "file_key_name": "models.credmark_utils__", "attached_node": "model.livequery_models.credmark_utils__"}, "test.livequery_models.test_opensea__get_status_200.5de63cfbb1": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'/health' , {}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get", "model": "{{ get_where_subquery(ref('opensea__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_opensea", "name": "test_opensea__get_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_opensea__get_status_200.sql", "original_file_path": "models/deploy/marketplace/opensea/opensea__.yml", "unique_id": "test.livequery_models.test_opensea__get_status_200.5de63cfbb1", "fqn": ["livequery_models", "deploy", "marketplace", "opensea", "test_opensea__get_status_200"], "alias": "get_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.8662207, "relation_name": "EXTERNAL.test_opensea.get_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "opensea__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.opensea__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/opensea/opensea__.yml/test_opensea__get_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__opensea__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'opensea' as schema_\n) ,\ntest AS\n(\n SELECT\n 'get.get' AS test_name\n ,['/health' , {}] as parameters\n ,EXTERNAL.get.get('/health' , {}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get('/health' , {})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get('/health' , {})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.opensea__", "sql": " __dbt__cte__opensea__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'opensea' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get", "file_key_name": "models.opensea__", "attached_node": "model.livequery_models.opensea__"}, "test.livequery_models.test_stakingrewards__query_status_200.144a35304b": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'query': '{\n assets(where: {symbols: [\"ETH\"]}, limit: 1) {\n name\n slug\n description\n symbol\n }\n }',\n 'variables': {}\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "query", "model": "{{ get_where_subquery(ref('stakingrewards__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_stakingrewards", "name": "test_stakingrewards__query_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_stakingrewards__query_status_200.sql", "original_file_path": "models/deploy/marketplace/stakingrewards/stakingrewards__ .yml", "unique_id": "test.livequery_models.test_stakingrewards__query_status_200.144a35304b", "fqn": ["livequery_models", "deploy", "marketplace", "stakingrewards", "test_stakingrewards__query_status_200"], "alias": "query_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.873375, "relation_name": "EXTERNAL.test_stakingrewards.query_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stakingrewards__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.stakingrewards__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/stakingrewards/stakingrewards__ .yml/test_stakingrewards__query_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__stakingrewards__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'stakingrewards' as schema_\n) ,\ntest AS\n(\n SELECT\n 'query.query' AS test_name\n ,[{\n 'query': '{\n assets(where: {symbols: [\"ETH\"]}, limit: 1) {\n name\n slug\n description\n symbol\n }\n }',\n 'variables': {}\n}] as parameters\n ,EXTERNAL.query.query({\n 'query': '{\n assets(where: {symbols: [\"ETH\"]}, limit: 1) {\n name\n slug\n description\n symbol\n }\n }',\n 'variables': {}\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.query.query({\n 'query': '{\n assets(where: {symbols: [\"ETH\"]}, limit: 1) {\n name\n slug\n description\n symbol\n }\n }',\n 'variables': {}\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.query.query({\n 'query': '{\n assets(where: {symbols: [\"ETH\"]}, limit: 1) {\n name\n slug\n description\n symbol\n }\n }',\n 'variables': {}\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.stakingrewards__", "sql": " __dbt__cte__stakingrewards__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'stakingrewards' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "query", "file_key_name": "models.stakingrewards__", "attached_node": "model.livequery_models.stakingrewards__"}, "test.livequery_models.test_subquery__graphql_status_200.b25433a976": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'subquery-mainnet', {\n 'query': '{\n _pois(first: 5) {\n nodes {\n id\n chainBlockHash\n hash\n parentHash\n createdAt\n operationHashRoot\n nodeId\n updatedAt\n }\n }\n }'\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "graphql", "model": "{{ get_where_subquery(ref('subquery__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_subquery", "name": "test_subquery__graphql_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_subquery__graphql_status_200.sql", "original_file_path": "models/deploy/marketplace/subquery/subquery__.yml", "unique_id": "test.livequery_models.test_subquery__graphql_status_200.b25433a976", "fqn": ["livequery_models", "deploy", "marketplace", "subquery", "test_subquery__graphql_status_200"], "alias": "graphql_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.880838, "relation_name": "EXTERNAL.test_subquery.graphql_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "subquery__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.subquery__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/subquery/subquery__.yml/test_subquery__graphql_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__subquery__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'subquery' as schema_\n) ,\ntest AS\n(\n SELECT\n 'graphql.graphql' AS test_name\n ,['subquery-mainnet', {\n 'query': '{\n _pois(first: 5) {\n nodes {\n id\n chainBlockHash\n hash\n parentHash\n createdAt\n operationHashRoot\n nodeId\n updatedAt\n }\n }\n }'\n}] as parameters\n ,EXTERNAL.graphql.graphql('subquery-mainnet', {\n 'query': '{\n _pois(first: 5) {\n nodes {\n id\n chainBlockHash\n hash\n parentHash\n createdAt\n operationHashRoot\n nodeId\n updatedAt\n }\n }\n }'\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.graphql.graphql('subquery-mainnet', {\n 'query': '{\n _pois(first: 5) {\n nodes {\n id\n chainBlockHash\n hash\n parentHash\n createdAt\n operationHashRoot\n nodeId\n updatedAt\n }\n }\n }'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.graphql.graphql('subquery-mainnet', {\n 'query': '{\n _pois(first: 5) {\n nodes {\n id\n chainBlockHash\n hash\n parentHash\n createdAt\n operationHashRoot\n nodeId\n updatedAt\n }\n }\n }'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.subquery__", "sql": " __dbt__cte__subquery__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'subquery' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "graphql", "file_key_name": "models.subquery__", "attached_node": "model.livequery_models.subquery__"}, "test.livequery_models.test_topshot__graphql_status_200.fb93e3b220": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'query': '\n query {\n getMintedMoment (momentId: 5) {\n data {\n id\n }\n }\n }\n}',\n 'variables': '{}'\n}\n", "assertions": ["result:status_code = 200"], "column_name": "graphql", "model": "{{ get_where_subquery(ref('topshot__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_topshot", "name": "test_topshot__graphql_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_topshot__graphql_status_200.sql", "original_file_path": "models/deploy/marketplace/topshot/topshot__.yml", "unique_id": "test.livequery_models.test_topshot__graphql_status_200.fb93e3b220", "fqn": ["livequery_models", "deploy", "marketplace", "topshot", "test_topshot__graphql_status_200"], "alias": "graphql_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.8880324, "relation_name": "EXTERNAL.test_topshot.graphql_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "topshot__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.topshot__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/topshot/topshot__.yml/test_topshot__graphql_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__topshot__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'topshot' as schema_\n) ,\ntest AS\n(\n SELECT\n 'graphql.graphql' AS test_name\n ,[{\n 'query': '\n query {\n getMintedMoment (momentId: 5) {\n data {\n id\n }\n }\n }\n}',\n 'variables': '{}'\n}] as parameters\n ,EXTERNAL.graphql.graphql({\n 'query': '\n query {\n getMintedMoment (momentId: 5) {\n data {\n id\n }\n }\n }\n}',\n 'variables': '{}'\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.graphql.graphql({\n 'query': '\n query {\n getMintedMoment (momentId: 5) {\n data {\n id\n }\n }\n }\n}',\n 'variables': '{}'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.topshot__", "sql": " __dbt__cte__topshot__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'topshot' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "graphql", "file_key_name": "models.topshot__", "attached_node": "model.livequery_models.topshot__"}, "test.livequery_models.test_allday__graphql_status_200.8cfd62f9a1": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'query': '{\n searchPlays(input: {filters: {byFlowIDs: [\"1666\"]}}){\n plays {\n id\n flowID\n metadata {\n description\n playerID\n playTypeV2\n classification\n week\n season\n playerFullName\n playerPosition\n playerDraftTeam\n gameDate\n teamName\n }\n }\n }',\n 'variables': '{}'\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "graphql", "model": "{{ get_where_subquery(ref('allday__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_allday", "name": "test_allday__graphql_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_allday__graphql_status_200.sql", "original_file_path": "models/deploy/marketplace/allday/allday__.yml", "unique_id": "test.livequery_models.test_allday__graphql_status_200.8cfd62f9a1", "fqn": ["livequery_models", "deploy", "marketplace", "allday", "test_allday__graphql_status_200"], "alias": "graphql_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.894762, "relation_name": "EXTERNAL.test_allday.graphql_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "allday__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.allday__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/allday/allday__.yml/test_allday__graphql_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__allday__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'allday' as schema_\n) ,\ntest AS\n(\n SELECT\n 'graphql.graphql' AS test_name\n ,[{\n 'query': '{\n searchPlays(input: {filters: {byFlowIDs: [\"1666\"]}}){\n plays {\n id\n flowID\n metadata {\n description\n playerID\n playTypeV2\n classification\n week\n season\n playerFullName\n playerPosition\n playerDraftTeam\n gameDate\n teamName\n }\n }\n }',\n 'variables': '{}'\n}] as parameters\n ,EXTERNAL.graphql.graphql({\n 'query': '{\n searchPlays(input: {filters: {byFlowIDs: [\"1666\"]}}){\n plays {\n id\n flowID\n metadata {\n description\n playerID\n playTypeV2\n classification\n week\n season\n playerFullName\n playerPosition\n playerDraftTeam\n gameDate\n teamName\n }\n }\n }',\n 'variables': '{}'\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.graphql.graphql({\n 'query': '{\n searchPlays(input: {filters: {byFlowIDs: [\"1666\"]}}){\n plays {\n id\n flowID\n metadata {\n description\n playerID\n playTypeV2\n classification\n week\n season\n playerFullName\n playerPosition\n playerDraftTeam\n gameDate\n teamName\n }\n }\n }',\n 'variables': '{}'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.graphql.graphql({\n 'query': '{\n searchPlays(input: {filters: {byFlowIDs: [\"1666\"]}}){\n plays {\n id\n flowID\n metadata {\n description\n playerID\n playTypeV2\n classification\n week\n season\n playerFullName\n playerPosition\n playerDraftTeam\n gameDate\n teamName\n }\n }\n }',\n 'variables': '{}'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.allday__", "sql": " __dbt__cte__allday__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'allday' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "graphql", "file_key_name": "models.allday__", "attached_node": "model.livequery_models.allday__"}, "test.livequery_models.test_coingecko__get_status_200.047f15c956": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'/api/v3/simple/price' , {'ids': '0x', 'vs_currencies': 'btc,usd,eth'}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get", "model": "{{ get_where_subquery(ref('coingecko__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_coingecko", "name": "test_coingecko__get_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_coingecko__get_status_200.sql", "original_file_path": "models/deploy/marketplace/coingecko/coingecko__.yml", "unique_id": "test.livequery_models.test_coingecko__get_status_200.047f15c956", "fqn": ["livequery_models", "deploy", "marketplace", "coingecko", "test_coingecko__get_status_200"], "alias": "get_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.9030614, "relation_name": "EXTERNAL.test_coingecko.get_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "coingecko__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.coingecko__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/coingecko/coingecko__.yml/test_coingecko__get_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__coingecko__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'coingecko' as schema_\n) ,\ntest AS\n(\n SELECT\n 'get.get' AS test_name\n ,['/api/v3/simple/price' , {'ids': '0x', 'vs_currencies': 'btc,usd,eth'}] as parameters\n ,EXTERNAL.get.get('/api/v3/simple/price' , {'ids': '0x', 'vs_currencies': 'btc,usd,eth'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get('/api/v3/simple/price' , {'ids': '0x', 'vs_currencies': 'btc,usd,eth'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get('/api/v3/simple/price' , {'ids': '0x', 'vs_currencies': 'btc,usd,eth'})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.coingecko__", "sql": " __dbt__cte__coingecko__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'coingecko' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get", "file_key_name": "models.coingecko__", "attached_node": "model.livequery_models.coingecko__"}, "test.livequery_models.test_dapplooker__get_chart_status_202.4fedf28822": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'a68cc6dd-1bc1-40ca-aaf8-b5155785f0b4'\n", "assertions": ["result:status_code between 200 and 299"], "column_name": "get_chart", "model": "{{ get_where_subquery(ref('dapplooker__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_dapplooker", "name": "test_dapplooker__get_chart_status_202", "resource_type": "test", "package_name": "livequery_models", "path": "test_dapplooker__get_chart_status_202.sql", "original_file_path": "models/deploy/marketplace/dapplooker/dapplooker__.yml", "unique_id": "test.livequery_models.test_dapplooker__get_chart_status_202.4fedf28822", "fqn": ["livequery_models", "deploy", "marketplace", "dapplooker", "test_dapplooker__get_chart_status_202"], "alias": "get_chart_status_202", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.9105728, "relation_name": "EXTERNAL.test_dapplooker.get_chart_status_202", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "dapplooker__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.dapplooker__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/dapplooker/dapplooker__.yml/test_dapplooker__get_chart_status_202.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__dapplooker__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'dapplooker' as schema_\n) ,\ntest AS\n(\n SELECT\n 'get.get_chart' AS test_name\n ,['a68cc6dd-1bc1-40ca-aaf8-b5155785f0b4'] as parameters\n ,EXTERNAL.get.get_chart('a68cc6dd-1bc1-40ca-aaf8-b5155785f0b4') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code between 200 and 299$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_chart('a68cc6dd-1bc1-40ca-aaf8-b5155785f0b4')\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code between 200 and 299\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.dapplooker__", "sql": " __dbt__cte__dapplooker__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'dapplooker' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_chart", "file_key_name": "models.dapplooker__", "attached_node": "model.livequery_models.dapplooker__"}, "test.livequery_models.test_claude__post_messages_only_one_message.ff8a12fc1b": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "[{'role': 'user', 'content': 'Hello, how are you?'}]\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "post_messages", "model": "{{ get_where_subquery(ref('claude__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_claude", "name": "test_claude__post_messages_only_one_message", "resource_type": "test", "package_name": "livequery_models", "path": "test_claude__post_messages_only_one_message.sql", "original_file_path": "models/deploy/marketplace/claude/claude__.yml", "unique_id": "test.livequery_models.test_claude__post_messages_only_one_message.ff8a12fc1b", "fqn": ["livequery_models", "deploy", "marketplace", "claude", "test_claude__post_messages_only_one_message"], "alias": "post_messages_only_one_message", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.9211586, "relation_name": "EXTERNAL.test_claude.post_messages_only_one_message", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "claude__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.claude__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/claude/claude__.yml/test_claude__post_messages_only_one_message.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude' as schema_\n) ,\ntest AS\n(\n SELECT\n 'post.post_messages' AS test_name\n ,[[{'role': 'user', 'content': 'Hello, how are you?'}]] as parameters\n ,EXTERNAL.post.post_messages([{'role': 'user', 'content': 'Hello, how are you?'}]) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.post.post_messages([{'role': 'user', 'content': 'Hello, how are you?'}])\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.post.post_messages([{'role': 'user', 'content': 'Hello, how are you?'}])\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.claude__", "sql": " __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "post_messages", "file_key_name": "models.claude__", "attached_node": "model.livequery_models.claude__"}, "test.livequery_models.test_claude__post_messages_with_model.7b5774fbf2": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'claude-3-5-sonnet-20241022', [{'role': 'user', 'content': 'Hello, how are you?'}], 1024\n", "assertions": ["result:status_code = 200"], "column_name": "post_messages", "model": "{{ get_where_subquery(ref('claude__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_claude", "name": "test_claude__post_messages_with_model", "resource_type": "test", "package_name": "livequery_models", "path": "test_claude__post_messages_with_model.sql", "original_file_path": "models/deploy/marketplace/claude/claude__.yml", "unique_id": "test.livequery_models.test_claude__post_messages_with_model.7b5774fbf2", "fqn": ["livequery_models", "deploy", "marketplace", "claude", "test_claude__post_messages_with_model"], "alias": "post_messages_with_model", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.927221, "relation_name": "EXTERNAL.test_claude.post_messages_with_model", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "claude__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.claude__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/claude/claude__.yml/test_claude__post_messages_with_model.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude' as schema_\n) ,\ntest AS\n(\n SELECT\n 'post.post_messages' AS test_name\n ,['claude-3-5-sonnet-20241022', [{'role': 'user', 'content': 'Hello, how are you?'}], 1024] as parameters\n ,EXTERNAL.post.post_messages('claude-3-5-sonnet-20241022', [{'role': 'user', 'content': 'Hello, how are you?'}], 1024) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.post.post_messages('claude-3-5-sonnet-20241022', [{'role': 'user', 'content': 'Hello, how are you?'}], 1024)\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.claude__", "sql": " __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "post_messages", "file_key_name": "models.claude__", "attached_node": "model.livequery_models.claude__"}, "test.livequery_models.test_claude__post_messages_with_all_params.0917a032d2": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'claude-3-5-sonnet-20241022', [{'role': 'user', 'content': 'Hello, how are you?'}], 1024, 0.5, 10, 0.95, 'You are a helpful assistant.'\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "post_messages", "model": "{{ get_where_subquery(ref('claude__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_claude", "name": "test_claude__post_messages_with_all_params", "resource_type": "test", "package_name": "livequery_models", "path": "test_claude__post_messages_with_all_params.sql", "original_file_path": "models/deploy/marketplace/claude/claude__.yml", "unique_id": "test.livequery_models.test_claude__post_messages_with_all_params.0917a032d2", "fqn": ["livequery_models", "deploy", "marketplace", "claude", "test_claude__post_messages_with_all_params"], "alias": "post_messages_with_all_params", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.9327197, "relation_name": "EXTERNAL.test_claude.post_messages_with_all_params", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "claude__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.claude__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/claude/claude__.yml/test_claude__post_messages_with_all_params.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude' as schema_\n) ,\ntest AS\n(\n SELECT\n 'post.post_messages' AS test_name\n ,['claude-3-5-sonnet-20241022', [{'role': 'user', 'content': 'Hello, how are you?'}], 1024, 0.5, 10, 0.95, 'You are a helpful assistant.'] as parameters\n ,EXTERNAL.post.post_messages('claude-3-5-sonnet-20241022', [{'role': 'user', 'content': 'Hello, how are you?'}], 1024, 0.5, 10, 0.95, 'You are a helpful assistant.') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.post.post_messages('claude-3-5-sonnet-20241022', [{'role': 'user', 'content': 'Hello, how are you?'}], 1024, 0.5, 10, 0.95, 'You are a helpful assistant.')\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.post.post_messages('claude-3-5-sonnet-20241022', [{'role': 'user', 'content': 'Hello, how are you?'}], 1024, 0.5, 10, 0.95, 'You are a helpful assistant.')\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.claude__", "sql": " __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "post_messages", "file_key_name": "models.claude__", "attached_node": "model.livequery_models.claude__"}, "test.livequery_models.test_claude__count_message_tokens.f5bafb2bce": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'claude-3-5-sonnet-20241022', [{'role': 'user', 'content': 'Hello, how are you?'}]\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "count_message_tokens", "model": "{{ get_where_subquery(ref('claude__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_claude", "name": "test_claude__count_message_tokens", "resource_type": "test", "package_name": "livequery_models", "path": "test_claude__count_message_tokens.sql", "original_file_path": "models/deploy/marketplace/claude/claude__.yml", "unique_id": "test.livequery_models.test_claude__count_message_tokens.f5bafb2bce", "fqn": ["livequery_models", "deploy", "marketplace", "claude", "test_claude__count_message_tokens"], "alias": "count_message_tokens", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.938645, "relation_name": "EXTERNAL.test_claude.count_message_tokens", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "claude__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.claude__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/claude/claude__.yml/test_claude__count_message_tokens.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude' as schema_\n) ,\ntest AS\n(\n SELECT\n 'count.count_message_tokens' AS test_name\n ,['claude-3-5-sonnet-20241022', [{'role': 'user', 'content': 'Hello, how are you?'}]] as parameters\n ,EXTERNAL.count.count_message_tokens('claude-3-5-sonnet-20241022', [{'role': 'user', 'content': 'Hello, how are you?'}]) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.count.count_message_tokens('claude-3-5-sonnet-20241022', [{'role': 'user', 'content': 'Hello, how are you?'}])\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.count.count_message_tokens('claude-3-5-sonnet-20241022', [{'role': 'user', 'content': 'Hello, how are you?'}])\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.claude__", "sql": " __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "count_message_tokens", "file_key_name": "models.claude__", "attached_node": "model.livequery_models.claude__"}, "test.livequery_models.test_claude__list_models.8516d777c7": {"test_metadata": {"name": "test_udf", "kwargs": {"assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "list_models", "model": "{{ get_where_subquery(ref('claude__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_claude", "name": "test_claude__list_models", "resource_type": "test", "package_name": "livequery_models", "path": "test_claude__list_models.sql", "original_file_path": "models/deploy/marketplace/claude/claude__.yml", "unique_id": "test.livequery_models.test_claude__list_models.8516d777c7", "fqn": ["livequery_models", "deploy", "marketplace", "claude", "test_claude__list_models"], "alias": "list_models", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.9448218, "relation_name": "EXTERNAL.test_claude.list_models", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "claude__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.claude__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/claude/claude__.yml/test_claude__list_models.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude' as schema_\n) ,\ntest AS\n(\n SELECT\n 'list.list_models' AS test_name\n ,[] as parameters\n ,EXTERNAL.list.list_models() AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.list.list_models()\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.list.list_models()\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.claude__", "sql": " __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "list_models", "file_key_name": "models.claude__", "attached_node": "model.livequery_models.claude__"}, "test.livequery_models.test_claude__get_model.1f65c29a92": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'claude-3-5-sonnet-20241022'\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_model", "model": "{{ get_where_subquery(ref('claude__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_claude", "name": "test_claude__get_model", "resource_type": "test", "package_name": "livequery_models", "path": "test_claude__get_model.sql", "original_file_path": "models/deploy/marketplace/claude/claude__.yml", "unique_id": "test.livequery_models.test_claude__get_model.1f65c29a92", "fqn": ["livequery_models", "deploy", "marketplace", "claude", "test_claude__get_model"], "alias": "get_model", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.950609, "relation_name": "EXTERNAL.test_claude.get_model", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "claude__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.claude__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/claude/claude__.yml/test_claude__get_model.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude' as schema_\n) ,\ntest AS\n(\n SELECT\n 'get.get_model' AS test_name\n ,['claude-3-5-sonnet-20241022'] as parameters\n ,EXTERNAL.get.get_model('claude-3-5-sonnet-20241022') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_model('claude-3-5-sonnet-20241022')\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_model('claude-3-5-sonnet-20241022')\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.claude__", "sql": " __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_model", "file_key_name": "models.claude__", "attached_node": "model.livequery_models.claude__"}, "test.livequery_models.test_claude__post_messages_batch.e4ee537ae3": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'requests': [\n {\n 'custom_id': '1',\n 'params': {\n 'model': 'claude-3-5-sonnet-20241022',\n 'max_tokens': 1024,\n 'messages': [{'role': 'user', 'content': 'Hello, how are you?'}]\n }\n },\n {\n 'custom_id': '2',\n 'params': {\n 'model': 'claude-3-5-sonnet-20241022',\n 'max_tokens': 1024,\n 'messages': [{'role': 'user', 'content': 'What time is it?'}]\n }\n }\n ]\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "post_messages_batch", "model": "{{ get_where_subquery(ref('claude__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_claude", "name": "test_claude__post_messages_batch", "resource_type": "test", "package_name": "livequery_models", "path": "test_claude__post_messages_batch.sql", "original_file_path": "models/deploy/marketplace/claude/claude__.yml", "unique_id": "test.livequery_models.test_claude__post_messages_batch.e4ee537ae3", "fqn": ["livequery_models", "deploy", "marketplace", "claude", "test_claude__post_messages_batch"], "alias": "post_messages_batch", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.956491, "relation_name": "EXTERNAL.test_claude.post_messages_batch", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "claude__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.claude__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/claude/claude__.yml/test_claude__post_messages_batch.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude' as schema_\n) ,\ntest AS\n(\n SELECT\n 'post.post_messages_batch' AS test_name\n ,[{\n 'requests': [\n {\n 'custom_id': '1',\n 'params': {\n 'model': 'claude-3-5-sonnet-20241022',\n 'max_tokens': 1024,\n 'messages': [{'role': 'user', 'content': 'Hello, how are you?'}]\n }\n },\n {\n 'custom_id': '2',\n 'params': {\n 'model': 'claude-3-5-sonnet-20241022',\n 'max_tokens': 1024,\n 'messages': [{'role': 'user', 'content': 'What time is it?'}]\n }\n }\n ]\n}] as parameters\n ,EXTERNAL.post.post_messages_batch({\n 'requests': [\n {\n 'custom_id': '1',\n 'params': {\n 'model': 'claude-3-5-sonnet-20241022',\n 'max_tokens': 1024,\n 'messages': [{'role': 'user', 'content': 'Hello, how are you?'}]\n }\n },\n {\n 'custom_id': '2',\n 'params': {\n 'model': 'claude-3-5-sonnet-20241022',\n 'max_tokens': 1024,\n 'messages': [{'role': 'user', 'content': 'What time is it?'}]\n }\n }\n ]\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.post.post_messages_batch({\n 'requests': [\n {\n 'custom_id': '1',\n 'params': {\n 'model': 'claude-3-5-sonnet-20241022',\n 'max_tokens': 1024,\n 'messages': [{'role': 'user', 'content': 'Hello, how are you?'}]\n }\n },\n {\n 'custom_id': '2',\n 'params': {\n 'model': 'claude-3-5-sonnet-20241022',\n 'max_tokens': 1024,\n 'messages': [{'role': 'user', 'content': 'What time is it?'}]\n }\n }\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.post.post_messages_batch({\n 'requests': [\n {\n 'custom_id': '1',\n 'params': {\n 'model': 'claude-3-5-sonnet-20241022',\n 'max_tokens': 1024,\n 'messages': [{'role': 'user', 'content': 'Hello, how are you?'}]\n }\n },\n {\n 'custom_id': '2',\n 'params': {\n 'model': 'claude-3-5-sonnet-20241022',\n 'max_tokens': 1024,\n 'messages': [{'role': 'user', 'content': 'What time is it?'}]\n }\n }\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.claude__", "sql": " __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "post_messages_batch", "file_key_name": "models.claude__", "attached_node": "model.livequery_models.claude__"}, "test.livequery_models.test_claude__list_message_batches.f5d6c40b59": {"test_metadata": {"name": "test_udf", "kwargs": {"assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "list_message_batches", "model": "{{ get_where_subquery(ref('claude__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_claude", "name": "test_claude__list_message_batches", "resource_type": "test", "package_name": "livequery_models", "path": "test_claude__list_message_batches.sql", "original_file_path": "models/deploy/marketplace/claude/claude__.yml", "unique_id": "test.livequery_models.test_claude__list_message_batches.f5d6c40b59", "fqn": ["livequery_models", "deploy", "marketplace", "claude", "test_claude__list_message_batches"], "alias": "list_message_batches", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.9626732, "relation_name": "EXTERNAL.test_claude.list_message_batches", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "claude__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.claude__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/claude/claude__.yml/test_claude__list_message_batches.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude' as schema_\n) ,\ntest AS\n(\n SELECT\n 'list.list_message_batches' AS test_name\n ,[] as parameters\n ,EXTERNAL.list.list_message_batches() AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.list.list_message_batches()\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.list.list_message_batches()\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.claude__", "sql": " __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "list_message_batches", "file_key_name": "models.claude__", "attached_node": "model.livequery_models.claude__"}, "test.livequery_models.test_claude__list_message_batches_with_before.aae86d2911": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'msgbatch_01R8HDAhnozagFWe466yECsz', 1\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "list_message_batches_with_before", "model": "{{ get_where_subquery(ref('claude__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_claude", "name": "test_claude__list_message_batches_with_before", "resource_type": "test", "package_name": "livequery_models", "path": "test_claude__list_message_batches_with_before.sql", "original_file_path": "models/deploy/marketplace/claude/claude__.yml", "unique_id": "test.livequery_models.test_claude__list_message_batches_with_before.aae86d2911", "fqn": ["livequery_models", "deploy", "marketplace", "claude", "test_claude__list_message_batches_with_before"], "alias": "list_message_batches_with_before", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.96846, "relation_name": "EXTERNAL.test_claude.list_message_batches_with_before", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "claude__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.claude__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/claude/claude__.yml/test_claude__list_message_batches_with_before.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude' as schema_\n) ,\ntest AS\n(\n SELECT\n 'list.list_message_batches_with_before' AS test_name\n ,['msgbatch_01R8HDAhnozagFWe466yECsz', 1] as parameters\n ,EXTERNAL.list.list_message_batches_with_before('msgbatch_01R8HDAhnozagFWe466yECsz', 1) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.list.list_message_batches_with_before('msgbatch_01R8HDAhnozagFWe466yECsz', 1)\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.list.list_message_batches_with_before('msgbatch_01R8HDAhnozagFWe466yECsz', 1)\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.claude__", "sql": " __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "list_message_batches_with_before", "file_key_name": "models.claude__", "attached_node": "model.livequery_models.claude__"}, "test.livequery_models.test_claude__list_message_batches_with_after.0e42b728e7": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'msgbatch_019gz7y3oXnLxgemRP4D7qnQ', 1\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "list_message_batches_with_after", "model": "{{ get_where_subquery(ref('claude__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_claude", "name": "test_claude__list_message_batches_with_after", "resource_type": "test", "package_name": "livequery_models", "path": "test_claude__list_message_batches_with_after.sql", "original_file_path": "models/deploy/marketplace/claude/claude__.yml", "unique_id": "test.livequery_models.test_claude__list_message_batches_with_after.0e42b728e7", "fqn": ["livequery_models", "deploy", "marketplace", "claude", "test_claude__list_message_batches_with_after"], "alias": "list_message_batches_with_after", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.9743776, "relation_name": "EXTERNAL.test_claude.list_message_batches_with_after", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "claude__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.claude__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/claude/claude__.yml/test_claude__list_message_batches_with_after.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude' as schema_\n) ,\ntest AS\n(\n SELECT\n 'list.list_message_batches_with_after' AS test_name\n ,['msgbatch_019gz7y3oXnLxgemRP4D7qnQ', 1] as parameters\n ,EXTERNAL.list.list_message_batches_with_after('msgbatch_019gz7y3oXnLxgemRP4D7qnQ', 1) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.list.list_message_batches_with_after('msgbatch_019gz7y3oXnLxgemRP4D7qnQ', 1)\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.list.list_message_batches_with_after('msgbatch_019gz7y3oXnLxgemRP4D7qnQ', 1)\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.claude__", "sql": " __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "list_message_batches_with_after", "file_key_name": "models.claude__", "attached_node": "model.livequery_models.claude__"}, "test.livequery_models.test_claude__get_message_batch.b52b8b8d04": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'msgbatch_019gz7y3oXnLxgemRP4D7qnQ'\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_message_batch", "model": "{{ get_where_subquery(ref('claude__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_claude", "name": "test_claude__get_message_batch", "resource_type": "test", "package_name": "livequery_models", "path": "test_claude__get_message_batch.sql", "original_file_path": "models/deploy/marketplace/claude/claude__.yml", "unique_id": "test.livequery_models.test_claude__get_message_batch.b52b8b8d04", "fqn": ["livequery_models", "deploy", "marketplace", "claude", "test_claude__get_message_batch"], "alias": "get_message_batch", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.9805455, "relation_name": "EXTERNAL.test_claude.get_message_batch", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "claude__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.claude__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/claude/claude__.yml/test_claude__get_message_batch.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude' as schema_\n) ,\ntest AS\n(\n SELECT\n 'get.get_message_batch' AS test_name\n ,['msgbatch_019gz7y3oXnLxgemRP4D7qnQ'] as parameters\n ,EXTERNAL.get.get_message_batch('msgbatch_019gz7y3oXnLxgemRP4D7qnQ') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_message_batch('msgbatch_019gz7y3oXnLxgemRP4D7qnQ')\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_message_batch('msgbatch_019gz7y3oXnLxgemRP4D7qnQ')\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.claude__", "sql": " __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_message_batch", "file_key_name": "models.claude__", "attached_node": "model.livequery_models.claude__"}, "test.livequery_models.test_claude__get_message_batch_results.ecc8ad465c": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'msgbatch_019gz7y3oXnLxgemRP4D7qnQ'\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_message_batch_results", "model": "{{ get_where_subquery(ref('claude__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_claude", "name": "test_claude__get_message_batch_results", "resource_type": "test", "package_name": "livequery_models", "path": "test_claude__get_message_batch_results.sql", "original_file_path": "models/deploy/marketplace/claude/claude__.yml", "unique_id": "test.livequery_models.test_claude__get_message_batch_results.ecc8ad465c", "fqn": ["livequery_models", "deploy", "marketplace", "claude", "test_claude__get_message_batch_results"], "alias": "get_message_batch_results", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.9866405, "relation_name": "EXTERNAL.test_claude.get_message_batch_results", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "claude__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.claude__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/claude/claude__.yml/test_claude__get_message_batch_results.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude' as schema_\n) ,\ntest AS\n(\n SELECT\n 'get.get_message_batch_results' AS test_name\n ,['msgbatch_019gz7y3oXnLxgemRP4D7qnQ'] as parameters\n ,EXTERNAL.get.get_message_batch_results('msgbatch_019gz7y3oXnLxgemRP4D7qnQ') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_message_batch_results('msgbatch_019gz7y3oXnLxgemRP4D7qnQ')\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_message_batch_results('msgbatch_019gz7y3oXnLxgemRP4D7qnQ')\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.claude__", "sql": " __dbt__cte__claude__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_message_batch_results", "file_key_name": "models.claude__", "attached_node": "model.livequery_models.claude__"}, "test.livequery_models.test_claude_utils__post_status_200.a32a62cfdf": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'/v1/messages' , {\n 'model': 'claude-3-5-sonnet-20241022',\n 'max_tokens': 1024,\n 'messages': [{'role': 'user', 'content': 'Hello, how are you?'}]\n }\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "post", "model": "{{ get_where_subquery(ref('claude_utils__claude_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_claude_utils", "name": "test_claude_utils__post_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_claude_utils__post_status_200.sql", "original_file_path": "models/deploy/marketplace/claude/claude_utils__claude_utils.yml", "unique_id": "test.livequery_models.test_claude_utils__post_status_200.a32a62cfdf", "fqn": ["livequery_models", "deploy", "marketplace", "claude", "test_claude_utils__post_status_200"], "alias": "post_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113502.9935076, "relation_name": "EXTERNAL.test_claude_utils.post_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "claude_utils__claude_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.claude_utils__claude_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/claude/claude_utils__claude_utils.yml/test_claude_utils__post_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__claude_utils__claude_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude_utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'post.post' AS test_name\n ,['/v1/messages' , {\n 'model': 'claude-3-5-sonnet-20241022',\n 'max_tokens': 1024,\n 'messages': [{'role': 'user', 'content': 'Hello, how are you?'}]\n }] as parameters\n ,EXTERNAL.post.post('/v1/messages' , {\n 'model': 'claude-3-5-sonnet-20241022',\n 'max_tokens': 1024,\n 'messages': [{'role': 'user', 'content': 'Hello, how are you?'}]\n }) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.post.post('/v1/messages' , {\n 'model': 'claude-3-5-sonnet-20241022',\n 'max_tokens': 1024,\n 'messages': [{'role': 'user', 'content': 'Hello, how are you?'}]\n })\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.post.post('/v1/messages' , {\n 'model': 'claude-3-5-sonnet-20241022',\n 'max_tokens': 1024,\n 'messages': [{'role': 'user', 'content': 'Hello, how are you?'}]\n })\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.claude_utils__claude_utils", "sql": " __dbt__cte__claude_utils__claude_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'claude_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "post", "file_key_name": "models.claude_utils__claude_utils", "attached_node": "model.livequery_models.claude_utils__claude_utils"}, "test.livequery_models.test_strangelove__get_status_200.0a58865924": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'https://api.strange.love/cosmoshub/mainnet/rpc/block_by_hash' , {\n 'blockHash': '0xD70952032620CC4E2737EB8AC379806359D8E0B17B0488F627997A0B043ABDED'\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get", "model": "{{ get_where_subquery(ref('strangelove__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_strangelove", "name": "test_strangelove__get_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_strangelove__get_status_200.sql", "original_file_path": "models/deploy/marketplace/strangelove/strangelove__.yml", "unique_id": "test.livequery_models.test_strangelove__get_status_200.0a58865924", "fqn": ["livequery_models", "deploy", "marketplace", "strangelove", "test_strangelove__get_status_200"], "alias": "get_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.0008762, "relation_name": "EXTERNAL.test_strangelove.get_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "strangelove__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.strangelove__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/strangelove/strangelove__.yml/test_strangelove__get_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__strangelove__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'strangelove' as schema_\n) ,\ntest AS\n(\n SELECT\n 'get.get' AS test_name\n ,['https://api.strange.love/cosmoshub/mainnet/rpc/block_by_hash' , {\n 'blockHash': '0xD70952032620CC4E2737EB8AC379806359D8E0B17B0488F627997A0B043ABDED'\n}] as parameters\n ,EXTERNAL.get.get('https://api.strange.love/cosmoshub/mainnet/rpc/block_by_hash' , {\n 'blockHash': '0xD70952032620CC4E2737EB8AC379806359D8E0B17B0488F627997A0B043ABDED'\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get('https://api.strange.love/cosmoshub/mainnet/rpc/block_by_hash' , {\n 'blockHash': '0xD70952032620CC4E2737EB8AC379806359D8E0B17B0488F627997A0B043ABDED'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get('https://api.strange.love/cosmoshub/mainnet/rpc/block_by_hash' , {\n 'blockHash': '0xD70952032620CC4E2737EB8AC379806359D8E0B17B0488F627997A0B043ABDED'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.strangelove__", "sql": " __dbt__cte__strangelove__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'strangelove' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get", "file_key_name": "models.strangelove__", "attached_node": "model.livequery_models.strangelove__"}, "test.livequery_models.test_fred__get_series_status_200.51822e30ca": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'series_id': 'CORESTICKM679SFRBATL',\n 'file_type': 'json'\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_series", "model": "{{ get_where_subquery(ref('fred__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_fred", "name": "test_fred__get_series_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_fred__get_series_status_200.sql", "original_file_path": "models/deploy/marketplace/fred/fred__.yml", "unique_id": "test.livequery_models.test_fred__get_series_status_200.51822e30ca", "fqn": ["livequery_models", "deploy", "marketplace", "fred", "test_fred__get_series_status_200"], "alias": "get_series_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.0079284, "relation_name": "EXTERNAL.test_fred.get_series_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "fred__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.fred__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/fred/fred__.yml/test_fred__get_series_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__fred__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'fred' as schema_\n) ,\ntest AS\n(\n SELECT\n 'get.get_series' AS test_name\n ,[{\n 'series_id': 'CORESTICKM679SFRBATL',\n 'file_type': 'json'\n}] as parameters\n ,EXTERNAL.get.get_series({\n 'series_id': 'CORESTICKM679SFRBATL',\n 'file_type': 'json'\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_series({\n 'series_id': 'CORESTICKM679SFRBATL',\n 'file_type': 'json'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_series({\n 'series_id': 'CORESTICKM679SFRBATL',\n 'file_type': 'json'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.fred__", "sql": " __dbt__cte__fred__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'fred' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_series", "file_key_name": "models.fred__", "attached_node": "model.livequery_models.fred__"}, "test.livequery_models.test_espn__get_status_200.b4f84cc829": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard' , {}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get", "model": "{{ get_where_subquery(ref('espn__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_espn", "name": "test_espn__get_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_espn__get_status_200.sql", "original_file_path": "models/deploy/marketplace/espn/espn__.yml", "unique_id": "test.livequery_models.test_espn__get_status_200.b4f84cc829", "fqn": ["livequery_models", "deploy", "marketplace", "espn", "test_espn__get_status_200"], "alias": "get_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.0148222, "relation_name": "EXTERNAL.test_espn.get_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "espn__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.espn__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/espn/espn__.yml/test_espn__get_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__espn__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'espn' as schema_\n) ,\ntest AS\n(\n SELECT\n 'get.get' AS test_name\n ,['http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard' , {}] as parameters\n ,EXTERNAL.get.get('http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard' , {}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get('http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard' , {})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get('http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard' , {})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.espn__", "sql": " __dbt__cte__espn__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'espn' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get", "file_key_name": "models.espn__", "attached_node": "model.livequery_models.espn__"}, "test.livequery_models.test_solscan_public_api_get__get_status_200.388381be71": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'/chaininfo' , {}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "public_api_get", "model": "{{ get_where_subquery(ref('solscan__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_solscan_public_api_get", "name": "test_solscan_public_api_get__get_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_solscan_public_api_get__get_status_200.sql", "original_file_path": "models/deploy/marketplace/solscan/solscan__.yml", "unique_id": "test.livequery_models.test_solscan_public_api_get__get_status_200.388381be71", "fqn": ["livequery_models", "deploy", "marketplace", "solscan", "test_solscan_public_api_get__get_status_200"], "alias": "get_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.0221167, "relation_name": "EXTERNAL.test_solscan_public_api_get.get_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "solscan__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.solscan__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/solscan/solscan__.yml/test_solscan_public_api_get__get_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__solscan__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'solscan' as schema_\n) ,\ntest AS\n(\n SELECT\n 'get.public_api_get' AS test_name\n ,['/chaininfo' , {}] as parameters\n ,EXTERNAL.get.public_api_get('/chaininfo' , {}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.public_api_get('/chaininfo' , {})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.public_api_get('/chaininfo' , {})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.solscan__", "sql": " __dbt__cte__solscan__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'solscan' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "public_api_get", "file_key_name": "models.solscan__", "attached_node": "model.livequery_models.solscan__"}, "test.livequery_models.test_dappradar__get_status_200.979ea475dc": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'/v2/defi/chains' , {}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get", "model": "{{ get_where_subquery(ref('dappradar__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_dappradar", "name": "test_dappradar__get_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_dappradar__get_status_200.sql", "original_file_path": "models/deploy/marketplace/dappradar/dappradar__.yml", "unique_id": "test.livequery_models.test_dappradar__get_status_200.979ea475dc", "fqn": ["livequery_models", "deploy", "marketplace", "dappradar", "test_dappradar__get_status_200"], "alias": "get_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.0291278, "relation_name": "EXTERNAL.test_dappradar.get_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "dappradar__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.dappradar__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/dappradar/dappradar__.yml/test_dappradar__get_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__dappradar__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'dappradar' as schema_\n) ,\ntest AS\n(\n SELECT\n 'get.get' AS test_name\n ,['/v2/defi/chains' , {}] as parameters\n ,EXTERNAL.get.get('/v2/defi/chains' , {}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get('/v2/defi/chains' , {})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get('/v2/defi/chains' , {})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.dappradar__", "sql": " __dbt__cte__dappradar__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'dappradar' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get", "file_key_name": "models.dappradar__", "attached_node": "model.livequery_models.dappradar__"}, "test.livequery_models.test_covalent__get_status_200.bb43bb7f69": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'/v1/1/block_v2/5000000/' , {}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get", "model": "{{ get_where_subquery(ref('covalent__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_covalent", "name": "test_covalent__get_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_covalent__get_status_200.sql", "original_file_path": "models/deploy/marketplace/covalent/covalent__.yml", "unique_id": "test.livequery_models.test_covalent__get_status_200.bb43bb7f69", "fqn": ["livequery_models", "deploy", "marketplace", "covalent", "test_covalent__get_status_200"], "alias": "get_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.0360806, "relation_name": "EXTERNAL.test_covalent.get_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "covalent__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.covalent__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/covalent/covalent__.yml/test_covalent__get_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__covalent__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'covalent' as schema_\n) ,\ntest AS\n(\n SELECT\n 'get.get' AS test_name\n ,['/v1/1/block_v2/5000000/' , {}] as parameters\n ,EXTERNAL.get.get('/v1/1/block_v2/5000000/' , {}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get('/v1/1/block_v2/5000000/' , {})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get('/v1/1/block_v2/5000000/' , {})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.covalent__", "sql": " __dbt__cte__covalent__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'covalent' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get", "file_key_name": "models.covalent__", "attached_node": "model.livequery_models.covalent__"}, "test.livequery_models.test_deepnftvalue__get_status_200.49fba544bb": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'/v1/collections' , {'limit': 5}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get", "model": "{{ get_where_subquery(ref('deepnftvalue__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_deepnftvalue", "name": "test_deepnftvalue__get_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_deepnftvalue__get_status_200.sql", "original_file_path": "models/deploy/marketplace/deepnftvalue/deepnftvalue__.yml", "unique_id": "test.livequery_models.test_deepnftvalue__get_status_200.49fba544bb", "fqn": ["livequery_models", "deploy", "marketplace", "deepnftvalue", "test_deepnftvalue__get_status_200"], "alias": "get_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.0427232, "relation_name": "EXTERNAL.test_deepnftvalue.get_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "deepnftvalue__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.deepnftvalue__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/deepnftvalue/deepnftvalue__.yml/test_deepnftvalue__get_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__deepnftvalue__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'deepnftvalue' as schema_\n) ,\ntest AS\n(\n SELECT\n 'get.get' AS test_name\n ,['/v1/collections' , {'limit': 5}] as parameters\n ,EXTERNAL.get.get('/v1/collections' , {'limit': 5}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get('/v1/collections' , {'limit': 5})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get('/v1/collections' , {'limit': 5})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.deepnftvalue__", "sql": " __dbt__cte__deepnftvalue__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'deepnftvalue' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get", "file_key_name": "models.deepnftvalue__", "attached_node": "model.livequery_models.deepnftvalue__"}, "test.livequery_models.test_github_utils__octocat_status_200.3573395088": {"test_metadata": {"name": "test_udf", "kwargs": {"assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "octocat", "model": "{{ get_where_subquery(ref('github_utils__github_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_github_utils", "name": "test_github_utils__octocat_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_github_utils__octocat_status_200.sql", "original_file_path": "models/deploy/marketplace/github/github_utils__github_utils.yml", "unique_id": "test.livequery_models.test_github_utils__octocat_status_200.3573395088", "fqn": ["livequery_models", "deploy", "marketplace", "github", "test_github_utils__octocat_status_200"], "alias": "octocat_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.05, "relation_name": "EXTERNAL.test_github_utils.octocat_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "github_utils__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.github_utils__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_utils__github_utils.yml/test_github_utils__octocat_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'octocat.octocat' AS test_name\n ,[] as parameters\n ,EXTERNAL.octocat.octocat() AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.octocat.octocat()\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.octocat.octocat()\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "octocat", "file_key_name": "models.github_utils__github_utils", "attached_node": "model.livequery_models.github_utils__github_utils"}, "test.livequery_models.test_github_actions__workflows_status_200.1cc531bd94": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'FlipsideCrypto', 'admin-models'\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "workflows", "model": "{{ get_where_subquery(ref('github_actions__github_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_github_actions", "name": "test_github_actions__workflows_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_github_actions__workflows_status_200.sql", "original_file_path": "models/deploy/marketplace/github/github_actions__github_utils.yml", "unique_id": "test.livequery_models.test_github_actions__workflows_status_200.1cc531bd94", "fqn": ["livequery_models", "deploy", "marketplace", "github", "test_github_actions__workflows_status_200"], "alias": "workflows_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.05768, "relation_name": "EXTERNAL.test_github_actions.workflows_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "github_actions__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.github_actions__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_actions__github_utils.yml/test_github_actions__workflows_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n), __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n) ,\ntest AS\n(\n SELECT\n 'workflows.workflows' AS test_name\n ,['FlipsideCrypto', 'admin-models'] as parameters\n ,EXTERNAL.workflows.workflows('FlipsideCrypto', 'admin-models') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.workflows.workflows('FlipsideCrypto', 'admin-models')\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.workflows.workflows('FlipsideCrypto', 'admin-models')\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}, {"id": "model.livequery_models.github_actions__github_utils", "sql": " __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "workflows", "file_key_name": "models.github_actions__github_utils", "attached_node": "model.livequery_models.github_actions__github_utils"}, "test.livequery_models.test_github_actions__runs_status_200.2d145a41cb": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'FlipsideCrypto', 'admin-models', {}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "runs", "model": "{{ get_where_subquery(ref('github_actions__github_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_github_actions", "name": "test_github_actions__runs_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_github_actions__runs_status_200.sql", "original_file_path": "models/deploy/marketplace/github/github_actions__github_utils.yml", "unique_id": "test.livequery_models.test_github_actions__runs_status_200.2d145a41cb", "fqn": ["livequery_models", "deploy", "marketplace", "github", "test_github_actions__runs_status_200"], "alias": "runs_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.0638325, "relation_name": "EXTERNAL.test_github_actions.runs_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "github_actions__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.github_actions__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_actions__github_utils.yml/test_github_actions__runs_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n), __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n) ,\ntest AS\n(\n SELECT\n 'runs.runs' AS test_name\n ,['FlipsideCrypto', 'admin-models', {}] as parameters\n ,EXTERNAL.runs.runs('FlipsideCrypto', 'admin-models', {}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.runs.runs('FlipsideCrypto', 'admin-models', {})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.runs.runs('FlipsideCrypto', 'admin-models', {})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}, {"id": "model.livequery_models.github_actions__github_utils", "sql": " __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "runs", "file_key_name": "models.github_actions__github_utils", "attached_node": "model.livequery_models.github_actions__github_utils"}, "test.livequery_models.test_github_actions__workflow_runs_status_200.abcfd5d553": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'FlipsideCrypto', 'admin-models', 'dbt_run_dev_refresh.yml', {}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "workflow_runs", "model": "{{ get_where_subquery(ref('github_actions__github_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_github_actions", "name": "test_github_actions__workflow_runs_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_github_actions__workflow_runs_status_200.sql", "original_file_path": "models/deploy/marketplace/github/github_actions__github_utils.yml", "unique_id": "test.livequery_models.test_github_actions__workflow_runs_status_200.abcfd5d553", "fqn": ["livequery_models", "deploy", "marketplace", "github", "test_github_actions__workflow_runs_status_200"], "alias": "workflow_runs_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.070011, "relation_name": "EXTERNAL.test_github_actions.workflow_runs_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "github_actions__github_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.github_actions__github_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/github/github_actions__github_utils.yml/test_github_actions__workflow_runs_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n), __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n) ,\ntest AS\n(\n SELECT\n 'workflow.workflow_runs' AS test_name\n ,['FlipsideCrypto', 'admin-models', 'dbt_run_dev_refresh.yml', {}] as parameters\n ,EXTERNAL.workflow.workflow_runs('FlipsideCrypto', 'admin-models', 'dbt_run_dev_refresh.yml', {}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.workflow.workflow_runs('FlipsideCrypto', 'admin-models', 'dbt_run_dev_refresh.yml', {})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.workflow.workflow_runs('FlipsideCrypto', 'admin-models', 'dbt_run_dev_refresh.yml', {})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.github_utils__github_utils", "sql": " __dbt__cte__github_utils__github_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'github_utils' as schema_\n)"}, {"id": "model.livequery_models.github_actions__github_utils", "sql": " __dbt__cte__github_actions__github_utils as (\n-- depends_on: __dbt__cte__live\n-- depends_on: __dbt__cte__github_utils__github_utils\nSELECT 'github_actions' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "workflow_runs", "file_key_name": "models.github_actions__github_utils", "attached_node": "model.livequery_models.github_actions__github_utils"}, "test.livequery_models.test_nftscan__get_status_200.33868e0f0d": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'https://restapi.nftscan.com/api/v2/account/own/0xca1257ade6f4fa6c6834fdc42e030be6c0f5a813' , {'erc_type': 'erc721'}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get", "model": "{{ get_where_subquery(ref('nftscan__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_nftscan", "name": "test_nftscan__get_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_nftscan__get_status_200.sql", "original_file_path": "models/deploy/marketplace/nftscan/nftscan__.yml", "unique_id": "test.livequery_models.test_nftscan__get_status_200.33868e0f0d", "fqn": ["livequery_models", "deploy", "marketplace", "nftscan", "test_nftscan__get_status_200"], "alias": "get_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.0767124, "relation_name": "EXTERNAL.test_nftscan.get_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "nftscan__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.nftscan__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/nftscan/nftscan__.yml/test_nftscan__get_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__nftscan__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'nftscan' as schema_\n) ,\ntest AS\n(\n SELECT\n 'get.get' AS test_name\n ,['https://restapi.nftscan.com/api/v2/account/own/0xca1257ade6f4fa6c6834fdc42e030be6c0f5a813' , {'erc_type': 'erc721'}] as parameters\n ,EXTERNAL.get.get('https://restapi.nftscan.com/api/v2/account/own/0xca1257ade6f4fa6c6834fdc42e030be6c0f5a813' , {'erc_type': 'erc721'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get('https://restapi.nftscan.com/api/v2/account/own/0xca1257ade6f4fa6c6834fdc42e030be6c0f5a813' , {'erc_type': 'erc721'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get('https://restapi.nftscan.com/api/v2/account/own/0xca1257ade6f4fa6c6834fdc42e030be6c0f5a813' , {'erc_type': 'erc721'})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.nftscan__", "sql": " __dbt__cte__nftscan__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'nftscan' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get", "file_key_name": "models.nftscan__", "attached_node": "model.livequery_models.nftscan__"}, "test.livequery_models.test_chainbase_utils__get_status_200.07b6733652": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'/v1/nft/metadata' , {\n 'chain_id': 1,\n 'contract_address': '0xed5af388653567af2f388e6224dc7c4b3241c544',\n 'token_id': 1\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get", "model": "{{ get_where_subquery(ref('chainbase_utils__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_chainbase_utils", "name": "test_chainbase_utils__get_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_chainbase_utils__get_status_200.sql", "original_file_path": "models/deploy/marketplace/chainbase/chainbase_utils__.yml", "unique_id": "test.livequery_models.test_chainbase_utils__get_status_200.07b6733652", "fqn": ["livequery_models", "deploy", "marketplace", "chainbase", "test_chainbase_utils__get_status_200"], "alias": "get_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.0837204, "relation_name": "EXTERNAL.test_chainbase_utils.get_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "chainbase_utils__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.chainbase_utils__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/chainbase/chainbase_utils__.yml/test_chainbase_utils__get_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__chainbase_utils__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'chainbase_utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'get.get' AS test_name\n ,['/v1/nft/metadata' , {\n 'chain_id': 1,\n 'contract_address': '0xed5af388653567af2f388e6224dc7c4b3241c544',\n 'token_id': 1\n}] as parameters\n ,EXTERNAL.get.get('/v1/nft/metadata' , {\n 'chain_id': 1,\n 'contract_address': '0xed5af388653567af2f388e6224dc7c4b3241c544',\n 'token_id': 1\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get('/v1/nft/metadata' , {\n 'chain_id': 1,\n 'contract_address': '0xed5af388653567af2f388e6224dc7c4b3241c544',\n 'token_id': 1\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get('/v1/nft/metadata' , {\n 'chain_id': 1,\n 'contract_address': '0xed5af388653567af2f388e6224dc7c4b3241c544',\n 'token_id': 1\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.chainbase_utils__", "sql": " __dbt__cte__chainbase_utils__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'chainbase_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get", "file_key_name": "models.chainbase_utils__", "attached_node": "model.livequery_models.chainbase_utils__"}, "test.livequery_models.test_snapshot__query_status_200.35a2cffb40": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'query': '{\n space(id: \"snapshot.dcl.eth\") {\n id\n name\n members\n }\n }',\n 'variables': {}\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "query", "model": "{{ get_where_subquery(ref('snapshot__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_snapshot", "name": "test_snapshot__query_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_snapshot__query_status_200.sql", "original_file_path": "models/deploy/marketplace/snapshot/snapshot__ .yml", "unique_id": "test.livequery_models.test_snapshot__query_status_200.35a2cffb40", "fqn": ["livequery_models", "deploy", "marketplace", "snapshot", "test_snapshot__query_status_200"], "alias": "query_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.0906699, "relation_name": "EXTERNAL.test_snapshot.query_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snapshot__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.snapshot__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/snapshot/snapshot__ .yml/test_snapshot__query_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__snapshot__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'snapshot' as schema_\n) ,\ntest AS\n(\n SELECT\n 'query.query' AS test_name\n ,[{\n 'query': '{\n space(id: \"snapshot.dcl.eth\") {\n id\n name\n members\n }\n }',\n 'variables': {}\n}] as parameters\n ,EXTERNAL.query.query({\n 'query': '{\n space(id: \"snapshot.dcl.eth\") {\n id\n name\n members\n }\n }',\n 'variables': {}\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.query.query({\n 'query': '{\n space(id: \"snapshot.dcl.eth\") {\n id\n name\n members\n }\n }',\n 'variables': {}\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.query.query({\n 'query': '{\n space(id: \"snapshot.dcl.eth\") {\n id\n name\n members\n }\n }',\n 'variables': {}\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.snapshot__", "sql": " __dbt__cte__snapshot__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'snapshot' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "query", "file_key_name": "models.snapshot__", "attached_node": "model.livequery_models.snapshot__"}, "test.livequery_models.test_reservoir__get_status_200.cb905ea233": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'/tokens/floor/v1' , {'collection': '0x8d04a8c79ceb0889bdd12acdf3fa9d207ed3ff63'}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get", "model": "{{ get_where_subquery(ref('reservoir__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_reservoir", "name": "test_reservoir__get_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_reservoir__get_status_200.sql", "original_file_path": "models/deploy/marketplace/reservoir/reservoir__.yml", "unique_id": "test.livequery_models.test_reservoir__get_status_200.cb905ea233", "fqn": ["livequery_models", "deploy", "marketplace", "reservoir", "test_reservoir__get_status_200"], "alias": "get_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.0975685, "relation_name": "EXTERNAL.test_reservoir.get_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "reservoir__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.reservoir__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/reservoir/reservoir__.yml/test_reservoir__get_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__reservoir__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'reservoir' as schema_\n) ,\ntest AS\n(\n SELECT\n 'get.get' AS test_name\n ,['/tokens/floor/v1' , {'collection': '0x8d04a8c79ceb0889bdd12acdf3fa9d207ed3ff63'}] as parameters\n ,EXTERNAL.get.get('/tokens/floor/v1' , {'collection': '0x8d04a8c79ceb0889bdd12acdf3fa9d207ed3ff63'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get('/tokens/floor/v1' , {'collection': '0x8d04a8c79ceb0889bdd12acdf3fa9d207ed3ff63'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get('/tokens/floor/v1' , {'collection': '0x8d04a8c79ceb0889bdd12acdf3fa9d207ed3ff63'})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.reservoir__", "sql": " __dbt__cte__reservoir__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'reservoir' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get", "file_key_name": "models.reservoir__", "attached_node": "model.livequery_models.reservoir__"}, "test.livequery_models.test_defillama__get_status_200.90864f8f89": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'/protocols' , {}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get", "model": "{{ get_where_subquery(ref('defillama__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_defillama", "name": "test_defillama__get_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_defillama__get_status_200.sql", "original_file_path": "models/deploy/marketplace/defillama/defillama__.yml", "unique_id": "test.livequery_models.test_defillama__get_status_200.90864f8f89", "fqn": ["livequery_models", "deploy", "marketplace", "defillama", "test_defillama__get_status_200"], "alias": "get_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.1050375, "relation_name": "EXTERNAL.test_defillama.get_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "defillama__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.defillama__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/defillama/defillama__.yml/test_defillama__get_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__defillama__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'defillama' as schema_\n) ,\ntest AS\n(\n SELECT\n 'get.get' AS test_name\n ,['/protocols' , {}] as parameters\n ,EXTERNAL.get.get('/protocols' , {}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get('/protocols' , {})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get('/protocols' , {})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.defillama__", "sql": " __dbt__cte__defillama__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'defillama' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get", "file_key_name": "models.defillama__", "attached_node": "model.livequery_models.defillama__"}, "test.livequery_models.test_bitquery__graphql_status_200.11917beb18": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'query': '{\n ethereum( network: bsc ) {\n dexTrades(\n options: {limit: 1}\n baseCurrency: {is: \"0x6679eB24F59dFe111864AEc72B443d1Da666B360\"}\n quoteCurrency: {is: \"0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c\"}\n ) {\n buyAmount\n buyAmountInUsd: buyAmount(in: USD)\n buyCurrency {\n symbol\n address\n }\n sellAmount\n sellCurrency {\n symbol\n address\n }\n tradeAmount(in: USD)\n }\n }\n }',\n 'variables': '{}'\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "graphql", "model": "{{ get_where_subquery(ref('bitquery__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_bitquery", "name": "test_bitquery__graphql_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_bitquery__graphql_status_200.sql", "original_file_path": "models/deploy/marketplace/bitquery/bitquery__.yml", "unique_id": "test.livequery_models.test_bitquery__graphql_status_200.11917beb18", "fqn": ["livequery_models", "deploy", "marketplace", "bitquery", "test_bitquery__graphql_status_200"], "alias": "graphql_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.1117356, "relation_name": "EXTERNAL.test_bitquery.graphql_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "bitquery__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.bitquery__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/bitquery/bitquery__.yml/test_bitquery__graphql_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__bitquery__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'bitquery' as schema_\n) ,\ntest AS\n(\n SELECT\n 'graphql.graphql' AS test_name\n ,[{\n 'query': '{\n ethereum( network: bsc ) {\n dexTrades(\n options: {limit: 1}\n baseCurrency: {is: \"0x6679eB24F59dFe111864AEc72B443d1Da666B360\"}\n quoteCurrency: {is: \"0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c\"}\n ) {\n buyAmount\n buyAmountInUsd: buyAmount(in: USD)\n buyCurrency {\n symbol\n address\n }\n sellAmount\n sellCurrency {\n symbol\n address\n }\n tradeAmount(in: USD)\n }\n }\n }',\n 'variables': '{}'\n}] as parameters\n ,EXTERNAL.graphql.graphql({\n 'query': '{\n ethereum( network: bsc ) {\n dexTrades(\n options: {limit: 1}\n baseCurrency: {is: \"0x6679eB24F59dFe111864AEc72B443d1Da666B360\"}\n quoteCurrency: {is: \"0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c\"}\n ) {\n buyAmount\n buyAmountInUsd: buyAmount(in: USD)\n buyCurrency {\n symbol\n address\n }\n sellAmount\n sellCurrency {\n symbol\n address\n }\n tradeAmount(in: USD)\n }\n }\n }',\n 'variables': '{}'\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.graphql.graphql({\n 'query': '{\n ethereum( network: bsc ) {\n dexTrades(\n options: {limit: 1}\n baseCurrency: {is: \"0x6679eB24F59dFe111864AEc72B443d1Da666B360\"}\n quoteCurrency: {is: \"0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c\"}\n ) {\n buyAmount\n buyAmountInUsd: buyAmount(in: USD)\n buyCurrency {\n symbol\n address\n }\n sellAmount\n sellCurrency {\n symbol\n address\n }\n tradeAmount(in: USD)\n }\n }\n }',\n 'variables': '{}'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.graphql.graphql({\n 'query': '{\n ethereum( network: bsc ) {\n dexTrades(\n options: {limit: 1}\n baseCurrency: {is: \"0x6679eB24F59dFe111864AEc72B443d1Da666B360\"}\n quoteCurrency: {is: \"0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c\"}\n ) {\n buyAmount\n buyAmountInUsd: buyAmount(in: USD)\n buyCurrency {\n symbol\n address\n }\n sellAmount\n sellCurrency {\n symbol\n address\n }\n tradeAmount(in: USD)\n }\n }\n }',\n 'variables': '{}'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.bitquery__", "sql": " __dbt__cte__bitquery__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'bitquery' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "graphql", "file_key_name": "models.bitquery__", "attached_node": "model.livequery_models.bitquery__"}, "test.livequery_models.test_helius_apis__token_metadata_status_200.c2bafa3fb0": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'mainnet' , {\n 'mintAccounts': [\n 'BAAzgRGWY2v5AJBNZNFd2abiRXAUo56UxywKEjoCZW2',\n '8s6kQUZfdm7GSaThAcsmSs56wMinXrbk6SdNVngutrz5'\n ],\n 'includeOffChain': true\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "token_metadata", "model": "{{ get_where_subquery(ref('helius_apis__helius_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_helius_apis", "name": "test_helius_apis__token_metadata_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_helius_apis__token_metadata_status_200.sql", "original_file_path": "models/deploy/marketplace/helius/helius_apis__helius_utils.yml", "unique_id": "test.livequery_models.test_helius_apis__token_metadata_status_200.c2bafa3fb0", "fqn": ["livequery_models", "deploy", "marketplace", "helius", "test_helius_apis__token_metadata_status_200"], "alias": "token_metadata_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.1198833, "relation_name": "EXTERNAL.test_helius_apis.token_metadata_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "helius_apis__helius_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.helius_apis__helius_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/helius/helius_apis__helius_utils.yml/test_helius_apis__token_metadata_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n), __dbt__cte__helius_apis__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_apis' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n) ,\ntest AS\n(\n SELECT\n 'token.token_metadata' AS test_name\n ,['mainnet' , {\n 'mintAccounts': [\n 'BAAzgRGWY2v5AJBNZNFd2abiRXAUo56UxywKEjoCZW2',\n '8s6kQUZfdm7GSaThAcsmSs56wMinXrbk6SdNVngutrz5'\n ],\n 'includeOffChain': true\n}] as parameters\n ,EXTERNAL.token.token_metadata('mainnet' , {\n 'mintAccounts': [\n 'BAAzgRGWY2v5AJBNZNFd2abiRXAUo56UxywKEjoCZW2',\n '8s6kQUZfdm7GSaThAcsmSs56wMinXrbk6SdNVngutrz5'\n ],\n 'includeOffChain': true\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.token.token_metadata('mainnet' , {\n 'mintAccounts': [\n 'BAAzgRGWY2v5AJBNZNFd2abiRXAUo56UxywKEjoCZW2',\n '8s6kQUZfdm7GSaThAcsmSs56wMinXrbk6SdNVngutrz5'\n ],\n 'includeOffChain': true\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.token.token_metadata('mainnet' , {\n 'mintAccounts': [\n 'BAAzgRGWY2v5AJBNZNFd2abiRXAUo56UxywKEjoCZW2',\n '8s6kQUZfdm7GSaThAcsmSs56wMinXrbk6SdNVngutrz5'\n ],\n 'includeOffChain': true\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.helius_utils__helius_utils", "sql": " __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n)"}, {"id": "model.livequery_models.helius_apis__helius_utils", "sql": " __dbt__cte__helius_apis__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_apis' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "token_metadata", "file_key_name": "models.helius_apis__helius_utils", "attached_node": "model.livequery_models.helius_apis__helius_utils"}, "test.livequery_models.test_helius_apis__balances_status_200.d668884644": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'mainnet' , '231B38ZpsbtrWbsBEjSXfjVj9JT2XyuNXy4f98V5NXxg'\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "balances", "model": "{{ get_where_subquery(ref('helius_apis__helius_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_helius_apis", "name": "test_helius_apis__balances_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_helius_apis__balances_status_200.sql", "original_file_path": "models/deploy/marketplace/helius/helius_apis__helius_utils.yml", "unique_id": "test.livequery_models.test_helius_apis__balances_status_200.d668884644", "fqn": ["livequery_models", "deploy", "marketplace", "helius", "test_helius_apis__balances_status_200"], "alias": "balances_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.126054, "relation_name": "EXTERNAL.test_helius_apis.balances_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "helius_apis__helius_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.helius_apis__helius_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/helius/helius_apis__helius_utils.yml/test_helius_apis__balances_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n), __dbt__cte__helius_apis__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_apis' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n) ,\ntest AS\n(\n SELECT\n 'balances.balances' AS test_name\n ,['mainnet' , '231B38ZpsbtrWbsBEjSXfjVj9JT2XyuNXy4f98V5NXxg'] as parameters\n ,EXTERNAL.balances.balances('mainnet' , '231B38ZpsbtrWbsBEjSXfjVj9JT2XyuNXy4f98V5NXxg') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.balances.balances('mainnet' , '231B38ZpsbtrWbsBEjSXfjVj9JT2XyuNXy4f98V5NXxg')\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.balances.balances('mainnet' , '231B38ZpsbtrWbsBEjSXfjVj9JT2XyuNXy4f98V5NXxg')\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.helius_utils__helius_utils", "sql": " __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n)"}, {"id": "model.livequery_models.helius_apis__helius_utils", "sql": " __dbt__cte__helius_apis__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_apis' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "balances", "file_key_name": "models.helius_apis__helius_utils", "attached_node": "model.livequery_models.helius_apis__helius_utils"}, "test.livequery_models.test_helius_apis__parse_transactions_status_200.71053900da": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'mainnet' , [\n '5u5S6yWN5wJkEDr3hKeqF3Y8nWcyWaZDboEnpfUuAw1zcvbvevs58rEfCpN6VkfxaS4N8RCMkBcyhxBFs3eoL4U4',\n '2bWLiRSA8GCh7UNEpiZdgsh2BMxZwKawk8ND4Z3iWrqDZE6JQk69n9WoCU9rKDrgWHw6qV25g8UBMJYddRJRHR9v'\n]\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "parse_transactions", "model": "{{ get_where_subquery(ref('helius_apis__helius_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_helius_apis", "name": "test_helius_apis__parse_transactions_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_helius_apis__parse_transactions_status_200.sql", "original_file_path": "models/deploy/marketplace/helius/helius_apis__helius_utils.yml", "unique_id": "test.livequery_models.test_helius_apis__parse_transactions_status_200.71053900da", "fqn": ["livequery_models", "deploy", "marketplace", "helius", "test_helius_apis__parse_transactions_status_200"], "alias": "parse_transactions_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.13225, "relation_name": "EXTERNAL.test_helius_apis.parse_transactions_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "helius_apis__helius_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.helius_apis__helius_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/helius/helius_apis__helius_utils.yml/test_helius_apis__parse_transactions_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n), __dbt__cte__helius_apis__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_apis' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n) ,\ntest AS\n(\n SELECT\n 'parse.parse_transactions' AS test_name\n ,['mainnet' , [\n '5u5S6yWN5wJkEDr3hKeqF3Y8nWcyWaZDboEnpfUuAw1zcvbvevs58rEfCpN6VkfxaS4N8RCMkBcyhxBFs3eoL4U4',\n '2bWLiRSA8GCh7UNEpiZdgsh2BMxZwKawk8ND4Z3iWrqDZE6JQk69n9WoCU9rKDrgWHw6qV25g8UBMJYddRJRHR9v'\n]] as parameters\n ,EXTERNAL.parse.parse_transactions('mainnet' , [\n '5u5S6yWN5wJkEDr3hKeqF3Y8nWcyWaZDboEnpfUuAw1zcvbvevs58rEfCpN6VkfxaS4N8RCMkBcyhxBFs3eoL4U4',\n '2bWLiRSA8GCh7UNEpiZdgsh2BMxZwKawk8ND4Z3iWrqDZE6JQk69n9WoCU9rKDrgWHw6qV25g8UBMJYddRJRHR9v'\n]) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.parse.parse_transactions('mainnet' , [\n '5u5S6yWN5wJkEDr3hKeqF3Y8nWcyWaZDboEnpfUuAw1zcvbvevs58rEfCpN6VkfxaS4N8RCMkBcyhxBFs3eoL4U4',\n '2bWLiRSA8GCh7UNEpiZdgsh2BMxZwKawk8ND4Z3iWrqDZE6JQk69n9WoCU9rKDrgWHw6qV25g8UBMJYddRJRHR9v'\n])\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.parse.parse_transactions('mainnet' , [\n '5u5S6yWN5wJkEDr3hKeqF3Y8nWcyWaZDboEnpfUuAw1zcvbvevs58rEfCpN6VkfxaS4N8RCMkBcyhxBFs3eoL4U4',\n '2bWLiRSA8GCh7UNEpiZdgsh2BMxZwKawk8ND4Z3iWrqDZE6JQk69n9WoCU9rKDrgWHw6qV25g8UBMJYddRJRHR9v'\n])\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.helius_utils__helius_utils", "sql": " __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n)"}, {"id": "model.livequery_models.helius_apis__helius_utils", "sql": " __dbt__cte__helius_apis__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_apis' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "parse_transactions", "file_key_name": "models.helius_apis__helius_utils", "attached_node": "model.livequery_models.helius_apis__helius_utils"}, "test.livequery_models.test_helius_das__get_asset_status_200.3e65208714": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'mainnet' , {\n 'id': 'F9Lw3ki3hJ7PF9HQXsBzoY8GyE6sPoEZZdXJBsTTD2rk'\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_asset", "model": "{{ get_where_subquery(ref('helius_das__helius_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_helius_das", "name": "test_helius_das__get_asset_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_helius_das__get_asset_status_200.sql", "original_file_path": "models/deploy/marketplace/helius/helius_das__helius_utils.yml", "unique_id": "test.livequery_models.test_helius_das__get_asset_status_200.3e65208714", "fqn": ["livequery_models", "deploy", "marketplace", "helius", "test_helius_das__get_asset_status_200"], "alias": "get_asset_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.142469, "relation_name": "EXTERNAL.test_helius_das.get_asset_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "helius_das__helius_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.helius_das__helius_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/helius/helius_das__helius_utils.yml/test_helius_das__get_asset_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n), __dbt__cte__helius_das__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_das' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n) ,\ntest AS\n(\n SELECT\n 'get.get_asset' AS test_name\n ,['mainnet' , {\n 'id': 'F9Lw3ki3hJ7PF9HQXsBzoY8GyE6sPoEZZdXJBsTTD2rk'\n}] as parameters\n ,EXTERNAL.get.get_asset('mainnet' , {\n 'id': 'F9Lw3ki3hJ7PF9HQXsBzoY8GyE6sPoEZZdXJBsTTD2rk'\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_asset('mainnet' , {\n 'id': 'F9Lw3ki3hJ7PF9HQXsBzoY8GyE6sPoEZZdXJBsTTD2rk'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_asset('mainnet' , {\n 'id': 'F9Lw3ki3hJ7PF9HQXsBzoY8GyE6sPoEZZdXJBsTTD2rk'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.helius_utils__helius_utils", "sql": " __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n)"}, {"id": "model.livequery_models.helius_das__helius_utils", "sql": " __dbt__cte__helius_das__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_das' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_asset", "file_key_name": "models.helius_das__helius_utils", "attached_node": "model.livequery_models.helius_das__helius_utils"}, "test.livequery_models.test_helius_das__get_signatures_for_asset_status_200.529a6b605d": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'mainnet' , {\n 'id': 'FNt6A9Mfnqbwc1tY7uwAguKQ1JcpBrxmhczDgbdJy5AC',\n 'page': 1, -- Starts at 1\n 'limit': 1000 -- Limit 1000 per request.\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_signatures_for_asset", "model": "{{ get_where_subquery(ref('helius_das__helius_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_helius_das", "name": "test_helius_das__get_signatures_for_asset_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_helius_das__get_signatures_for_asset_status_200.sql", "original_file_path": "models/deploy/marketplace/helius/helius_das__helius_utils.yml", "unique_id": "test.livequery_models.test_helius_das__get_signatures_for_asset_status_200.529a6b605d", "fqn": ["livequery_models", "deploy", "marketplace", "helius", "test_helius_das__get_signatures_for_asset_status_200"], "alias": "get_signatures_for_asset_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.1486282, "relation_name": "EXTERNAL.test_helius_das.get_signatures_for_asset_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "helius_das__helius_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.helius_das__helius_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/helius/helius_das__helius_utils.yml/test_helius_das__get_signatures_for_asset_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n), __dbt__cte__helius_das__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_das' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n) ,\ntest AS\n(\n SELECT\n 'get.get_signatures_for_asset' AS test_name\n ,['mainnet' , {\n 'id': 'FNt6A9Mfnqbwc1tY7uwAguKQ1JcpBrxmhczDgbdJy5AC',\n 'page': 1, -- Starts at 1\n 'limit': 1000 -- Limit 1000 per request.\n}] as parameters\n ,EXTERNAL.get.get_signatures_for_asset('mainnet' , {\n 'id': 'FNt6A9Mfnqbwc1tY7uwAguKQ1JcpBrxmhczDgbdJy5AC',\n 'page': 1, -- Starts at 1\n 'limit': 1000 -- Limit 1000 per request.\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_signatures_for_asset('mainnet' , {\n 'id': 'FNt6A9Mfnqbwc1tY7uwAguKQ1JcpBrxmhczDgbdJy5AC',\n 'page': 1, -- Starts at 1\n 'limit': 1000 -- Limit 1000 per request.\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_signatures_for_asset('mainnet' , {\n 'id': 'FNt6A9Mfnqbwc1tY7uwAguKQ1JcpBrxmhczDgbdJy5AC',\n 'page': 1, -- Starts at 1\n 'limit': 1000 -- Limit 1000 per request.\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.helius_utils__helius_utils", "sql": " __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n)"}, {"id": "model.livequery_models.helius_das__helius_utils", "sql": " __dbt__cte__helius_das__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_das' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_signatures_for_asset", "file_key_name": "models.helius_das__helius_utils", "attached_node": "model.livequery_models.helius_das__helius_utils"}, "test.livequery_models.test_helius_das__search_assets_status_200.2373c30616": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'mainnet' , {\n 'ownerAddress': '2k5AXX4guW9XwRQ1AKCpAuUqgWDpQpwFfpVFh3hnm2Ha',\n 'compressed': true,\n 'page': 1, -- Starts at 1\n 'limit': 1000\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "search_assets", "model": "{{ get_where_subquery(ref('helius_das__helius_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_helius_das", "name": "test_helius_das__search_assets_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_helius_das__search_assets_status_200.sql", "original_file_path": "models/deploy/marketplace/helius/helius_das__helius_utils.yml", "unique_id": "test.livequery_models.test_helius_das__search_assets_status_200.2373c30616", "fqn": ["livequery_models", "deploy", "marketplace", "helius", "test_helius_das__search_assets_status_200"], "alias": "search_assets_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.1548774, "relation_name": "EXTERNAL.test_helius_das.search_assets_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "helius_das__helius_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.helius_das__helius_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/helius/helius_das__helius_utils.yml/test_helius_das__search_assets_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n), __dbt__cte__helius_das__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_das' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n) ,\ntest AS\n(\n SELECT\n 'search.search_assets' AS test_name\n ,['mainnet' , {\n 'ownerAddress': '2k5AXX4guW9XwRQ1AKCpAuUqgWDpQpwFfpVFh3hnm2Ha',\n 'compressed': true,\n 'page': 1, -- Starts at 1\n 'limit': 1000\n}] as parameters\n ,EXTERNAL.search.search_assets('mainnet' , {\n 'ownerAddress': '2k5AXX4guW9XwRQ1AKCpAuUqgWDpQpwFfpVFh3hnm2Ha',\n 'compressed': true,\n 'page': 1, -- Starts at 1\n 'limit': 1000\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.search.search_assets('mainnet' , {\n 'ownerAddress': '2k5AXX4guW9XwRQ1AKCpAuUqgWDpQpwFfpVFh3hnm2Ha',\n 'compressed': true,\n 'page': 1, -- Starts at 1\n 'limit': 1000\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.search.search_assets('mainnet' , {\n 'ownerAddress': '2k5AXX4guW9XwRQ1AKCpAuUqgWDpQpwFfpVFh3hnm2Ha',\n 'compressed': true,\n 'page': 1, -- Starts at 1\n 'limit': 1000\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.helius_utils__helius_utils", "sql": " __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n)"}, {"id": "model.livequery_models.helius_das__helius_utils", "sql": " __dbt__cte__helius_das__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_das' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "search_assets", "file_key_name": "models.helius_das__helius_utils", "attached_node": "model.livequery_models.helius_das__helius_utils"}, "test.livequery_models.test_helius_das__get_asset_proof_status_200.2ed48f9fe3": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'mainnet' , {\n 'id': 'Bu1DEKeawy7txbnCEJE4BU3BKLXaNAKCYcHR4XhndGss'\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_asset_proof", "model": "{{ get_where_subquery(ref('helius_das__helius_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_helius_das", "name": "test_helius_das__get_asset_proof_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_helius_das__get_asset_proof_status_200.sql", "original_file_path": "models/deploy/marketplace/helius/helius_das__helius_utils.yml", "unique_id": "test.livequery_models.test_helius_das__get_asset_proof_status_200.2ed48f9fe3", "fqn": ["livequery_models", "deploy", "marketplace", "helius", "test_helius_das__get_asset_proof_status_200"], "alias": "get_asset_proof_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.1609688, "relation_name": "EXTERNAL.test_helius_das.get_asset_proof_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "helius_das__helius_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.helius_das__helius_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/helius/helius_das__helius_utils.yml/test_helius_das__get_asset_proof_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n), __dbt__cte__helius_das__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_das' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n) ,\ntest AS\n(\n SELECT\n 'get.get_asset_proof' AS test_name\n ,['mainnet' , {\n 'id': 'Bu1DEKeawy7txbnCEJE4BU3BKLXaNAKCYcHR4XhndGss'\n}] as parameters\n ,EXTERNAL.get.get_asset_proof('mainnet' , {\n 'id': 'Bu1DEKeawy7txbnCEJE4BU3BKLXaNAKCYcHR4XhndGss'\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_asset_proof('mainnet' , {\n 'id': 'Bu1DEKeawy7txbnCEJE4BU3BKLXaNAKCYcHR4XhndGss'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_asset_proof('mainnet' , {\n 'id': 'Bu1DEKeawy7txbnCEJE4BU3BKLXaNAKCYcHR4XhndGss'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.helius_utils__helius_utils", "sql": " __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n)"}, {"id": "model.livequery_models.helius_das__helius_utils", "sql": " __dbt__cte__helius_das__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_das' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_asset_proof", "file_key_name": "models.helius_das__helius_utils", "attached_node": "model.livequery_models.helius_das__helius_utils"}, "test.livequery_models.test_helius_das__get_assets_by_owner_status_200.6f2f1ef95c": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'mainnet' , {\n 'ownerAddress': '86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY',\n 'page': 1, -- Starts at 1\n 'limit': 1000\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_assets_by_owner", "model": "{{ get_where_subquery(ref('helius_das__helius_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_helius_das", "name": "test_helius_das__get_assets_by_owner_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_helius_das__get_assets_by_owner_status_200.sql", "original_file_path": "models/deploy/marketplace/helius/helius_das__helius_utils.yml", "unique_id": "test.livequery_models.test_helius_das__get_assets_by_owner_status_200.6f2f1ef95c", "fqn": ["livequery_models", "deploy", "marketplace", "helius", "test_helius_das__get_assets_by_owner_status_200"], "alias": "get_assets_by_owner_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.1671352, "relation_name": "EXTERNAL.test_helius_das.get_assets_by_owner_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "helius_das__helius_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.helius_das__helius_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/helius/helius_das__helius_utils.yml/test_helius_das__get_assets_by_owner_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n), __dbt__cte__helius_das__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_das' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n) ,\ntest AS\n(\n SELECT\n 'get.get_assets_by_owner' AS test_name\n ,['mainnet' , {\n 'ownerAddress': '86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY',\n 'page': 1, -- Starts at 1\n 'limit': 1000\n}] as parameters\n ,EXTERNAL.get.get_assets_by_owner('mainnet' , {\n 'ownerAddress': '86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY',\n 'page': 1, -- Starts at 1\n 'limit': 1000\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_assets_by_owner('mainnet' , {\n 'ownerAddress': '86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY',\n 'page': 1, -- Starts at 1\n 'limit': 1000\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_assets_by_owner('mainnet' , {\n 'ownerAddress': '86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY',\n 'page': 1, -- Starts at 1\n 'limit': 1000\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.helius_utils__helius_utils", "sql": " __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n)"}, {"id": "model.livequery_models.helius_das__helius_utils", "sql": " __dbt__cte__helius_das__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_das' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_assets_by_owner", "file_key_name": "models.helius_das__helius_utils", "attached_node": "model.livequery_models.helius_das__helius_utils"}, "test.livequery_models.test_helius_das__get_assets_by_authority_status_200.c9ac02b165": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'mainnet' , {\n 'authorityAddress': '2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW',\n 'page': 1, -- Starts at 1\n 'limit': 1000\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_assets_by_authority", "model": "{{ get_where_subquery(ref('helius_das__helius_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_helius_das", "name": "test_helius_das__get_assets_by_authority_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_helius_das__get_assets_by_authority_status_200.sql", "original_file_path": "models/deploy/marketplace/helius/helius_das__helius_utils.yml", "unique_id": "test.livequery_models.test_helius_das__get_assets_by_authority_status_200.c9ac02b165", "fqn": ["livequery_models", "deploy", "marketplace", "helius", "test_helius_das__get_assets_by_authority_status_200"], "alias": "get_assets_by_authority_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.1733186, "relation_name": "EXTERNAL.test_helius_das.get_assets_by_authority_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "helius_das__helius_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.helius_das__helius_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/helius/helius_das__helius_utils.yml/test_helius_das__get_assets_by_authority_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n), __dbt__cte__helius_das__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_das' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n) ,\ntest AS\n(\n SELECT\n 'get.get_assets_by_authority' AS test_name\n ,['mainnet' , {\n 'authorityAddress': '2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW',\n 'page': 1, -- Starts at 1\n 'limit': 1000\n}] as parameters\n ,EXTERNAL.get.get_assets_by_authority('mainnet' , {\n 'authorityAddress': '2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW',\n 'page': 1, -- Starts at 1\n 'limit': 1000\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_assets_by_authority('mainnet' , {\n 'authorityAddress': '2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW',\n 'page': 1, -- Starts at 1\n 'limit': 1000\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_assets_by_authority('mainnet' , {\n 'authorityAddress': '2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW',\n 'page': 1, -- Starts at 1\n 'limit': 1000\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.helius_utils__helius_utils", "sql": " __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n)"}, {"id": "model.livequery_models.helius_das__helius_utils", "sql": " __dbt__cte__helius_das__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_das' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_assets_by_authority", "file_key_name": "models.helius_das__helius_utils", "attached_node": "model.livequery_models.helius_das__helius_utils"}, "test.livequery_models.test_helius_das__get_assets_by_creator_status_200.e8cb071d3a": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'mainnet' , {\n 'creatorAddress': 'D3XrkNZz6wx6cofot7Zohsf2KSsu2ArngNk8VqU9cTY3',\n 'onlyVerified': true,\n 'page': 1, -- Starts at 1\n 'limit': 1000\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_assets_by_creator", "model": "{{ get_where_subquery(ref('helius_das__helius_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_helius_das", "name": "test_helius_das__get_assets_by_creator_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_helius_das__get_assets_by_creator_status_200.sql", "original_file_path": "models/deploy/marketplace/helius/helius_das__helius_utils.yml", "unique_id": "test.livequery_models.test_helius_das__get_assets_by_creator_status_200.e8cb071d3a", "fqn": ["livequery_models", "deploy", "marketplace", "helius", "test_helius_das__get_assets_by_creator_status_200"], "alias": "get_assets_by_creator_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.1792812, "relation_name": "EXTERNAL.test_helius_das.get_assets_by_creator_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "helius_das__helius_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.helius_das__helius_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/helius/helius_das__helius_utils.yml/test_helius_das__get_assets_by_creator_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n), __dbt__cte__helius_das__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_das' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n) ,\ntest AS\n(\n SELECT\n 'get.get_assets_by_creator' AS test_name\n ,['mainnet' , {\n 'creatorAddress': 'D3XrkNZz6wx6cofot7Zohsf2KSsu2ArngNk8VqU9cTY3',\n 'onlyVerified': true,\n 'page': 1, -- Starts at 1\n 'limit': 1000\n}] as parameters\n ,EXTERNAL.get.get_assets_by_creator('mainnet' , {\n 'creatorAddress': 'D3XrkNZz6wx6cofot7Zohsf2KSsu2ArngNk8VqU9cTY3',\n 'onlyVerified': true,\n 'page': 1, -- Starts at 1\n 'limit': 1000\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_assets_by_creator('mainnet' , {\n 'creatorAddress': 'D3XrkNZz6wx6cofot7Zohsf2KSsu2ArngNk8VqU9cTY3',\n 'onlyVerified': true,\n 'page': 1, -- Starts at 1\n 'limit': 1000\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_assets_by_creator('mainnet' , {\n 'creatorAddress': 'D3XrkNZz6wx6cofot7Zohsf2KSsu2ArngNk8VqU9cTY3',\n 'onlyVerified': true,\n 'page': 1, -- Starts at 1\n 'limit': 1000\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.helius_utils__helius_utils", "sql": " __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n)"}, {"id": "model.livequery_models.helius_das__helius_utils", "sql": " __dbt__cte__helius_das__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_das' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_assets_by_creator", "file_key_name": "models.helius_das__helius_utils", "attached_node": "model.livequery_models.helius_das__helius_utils"}, "test.livequery_models.test_helius_das__get_assets_by_group_status_200.fe5813195d": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'mainnet' , {\n 'groupKey': 'collection',\n 'groupValue': 'J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w',\n 'page': 1,\n 'limit': 1000\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_assets_by_group", "model": "{{ get_where_subquery(ref('helius_das__helius_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_helius_das", "name": "test_helius_das__get_assets_by_group_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_helius_das__get_assets_by_group_status_200.sql", "original_file_path": "models/deploy/marketplace/helius/helius_das__helius_utils.yml", "unique_id": "test.livequery_models.test_helius_das__get_assets_by_group_status_200.fe5813195d", "fqn": ["livequery_models", "deploy", "marketplace", "helius", "test_helius_das__get_assets_by_group_status_200"], "alias": "get_assets_by_group_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.1855109, "relation_name": "EXTERNAL.test_helius_das.get_assets_by_group_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "helius_das__helius_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.helius_das__helius_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/helius/helius_das__helius_utils.yml/test_helius_das__get_assets_by_group_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n), __dbt__cte__helius_das__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_das' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n) ,\ntest AS\n(\n SELECT\n 'get.get_assets_by_group' AS test_name\n ,['mainnet' , {\n 'groupKey': 'collection',\n 'groupValue': 'J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w',\n 'page': 1,\n 'limit': 1000\n}] as parameters\n ,EXTERNAL.get.get_assets_by_group('mainnet' , {\n 'groupKey': 'collection',\n 'groupValue': 'J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w',\n 'page': 1,\n 'limit': 1000\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_assets_by_group('mainnet' , {\n 'groupKey': 'collection',\n 'groupValue': 'J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w',\n 'page': 1,\n 'limit': 1000\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_assets_by_group('mainnet' , {\n 'groupKey': 'collection',\n 'groupValue': 'J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w',\n 'page': 1,\n 'limit': 1000\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.helius_utils__helius_utils", "sql": " __dbt__cte__helius_utils__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_utils' as schema_\n)"}, {"id": "model.livequery_models.helius_das__helius_utils", "sql": " __dbt__cte__helius_das__helius_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'helius_das' as schema_-- depends_on: __dbt__cte__helius_utils__helius_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_assets_by_group", "file_key_name": "models.helius_das__helius_utils", "attached_node": "model.livequery_models.helius_das__helius_utils"}, "test.livequery_models.test_playgrounds__query_subgraph_status_200_liquidity_pools.dfcb23f707": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'ELUcwgpm14LKPLrBRuVvPvNKHQ9HvwmtKgKSH6123cr7' , {\n 'query': '{\n liquidityPools(first: 200, orderBy: totalValueLockedUSD, orderDirection: desc) {\n id\n totalLiquidity\n name\n inputTokens {\n id\n symbol\n }\n }\n }',\n 'variables': {}\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "query_subgraph", "model": "{{ get_where_subquery(ref('playgrounds__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_playgrounds", "name": "test_playgrounds__query_subgraph_status_200_liquidity_pools", "resource_type": "test", "package_name": "livequery_models", "path": "test_playgrounds__query_subgraph_status_200_liquidity_pools.sql", "original_file_path": "models/deploy/marketplace/playgrounds/playgrounds__.yml", "unique_id": "test.livequery_models.test_playgrounds__query_subgraph_status_200_liquidity_pools.dfcb23f707", "fqn": ["livequery_models", "deploy", "marketplace", "playgrounds", "test_playgrounds__query_subgraph_status_200_liquidity_pools"], "alias": "query_subgraph_status_200_liquidity_pools", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.1929042, "relation_name": "EXTERNAL.test_playgrounds.query_subgraph_status_200_liquidity_pools", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "playgrounds__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.playgrounds__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/playgrounds/playgrounds__.yml/test_playgrounds__query_subgraph_status_200_liquidity_pools.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__playgrounds__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'playgrounds' as schema_\n) ,\ntest AS\n(\n SELECT\n 'query.query_subgraph' AS test_name\n ,['ELUcwgpm14LKPLrBRuVvPvNKHQ9HvwmtKgKSH6123cr7' , {\n 'query': '{\n liquidityPools(first: 200, orderBy: totalValueLockedUSD, orderDirection: desc) {\n id\n totalLiquidity\n name\n inputTokens {\n id\n symbol\n }\n }\n }',\n 'variables': {}\n}] as parameters\n ,EXTERNAL.query.query_subgraph('ELUcwgpm14LKPLrBRuVvPvNKHQ9HvwmtKgKSH6123cr7' , {\n 'query': '{\n liquidityPools(first: 200, orderBy: totalValueLockedUSD, orderDirection: desc) {\n id\n totalLiquidity\n name\n inputTokens {\n id\n symbol\n }\n }\n }',\n 'variables': {}\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.query.query_subgraph('ELUcwgpm14LKPLrBRuVvPvNKHQ9HvwmtKgKSH6123cr7' , {\n 'query': '{\n liquidityPools(first: 200, orderBy: totalValueLockedUSD, orderDirection: desc) {\n id\n totalLiquidity\n name\n inputTokens {\n id\n symbol\n }\n }\n }',\n 'variables': {}\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.query.query_subgraph('ELUcwgpm14LKPLrBRuVvPvNKHQ9HvwmtKgKSH6123cr7' , {\n 'query': '{\n liquidityPools(first: 200, orderBy: totalValueLockedUSD, orderDirection: desc) {\n id\n totalLiquidity\n name\n inputTokens {\n id\n symbol\n }\n }\n }',\n 'variables': {}\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.playgrounds__", "sql": " __dbt__cte__playgrounds__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'playgrounds' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "query_subgraph", "file_key_name": "models.playgrounds__", "attached_node": "model.livequery_models.playgrounds__"}, "test.livequery_models.test_playgrounds__query_subgraph_status_200_total_pool_count.86c8b9c6ee": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'ELUcwgpm14LKPLrBRuVvPvNKHQ9HvwmtKgKSH6123cr7' , {\n 'query': '{\n protocols {\n name\n totalPoolCount\n }\n }',\n 'variables': {}\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "query_subgraph", "model": "{{ get_where_subquery(ref('playgrounds__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_playgrounds", "name": "test_playgrounds__query_subgraph_status_200_total_pool_count", "resource_type": "test", "package_name": "livequery_models", "path": "test_playgrounds__query_subgraph_status_200_total_pool_count.sql", "original_file_path": "models/deploy/marketplace/playgrounds/playgrounds__.yml", "unique_id": "test.livequery_models.test_playgrounds__query_subgraph_status_200_total_pool_count.86c8b9c6ee", "fqn": ["livequery_models", "deploy", "marketplace", "playgrounds", "test_playgrounds__query_subgraph_status_200_total_pool_count"], "alias": "query_subgraph_status_200_total_pool_count", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.1991389, "relation_name": "EXTERNAL.test_playgrounds.query_subgraph_status_200_total_pool_count", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "playgrounds__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.playgrounds__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/playgrounds/playgrounds__.yml/test_playgrounds__query_subgraph_status_200_total_pool_count.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__playgrounds__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'playgrounds' as schema_\n) ,\ntest AS\n(\n SELECT\n 'query.query_subgraph' AS test_name\n ,['ELUcwgpm14LKPLrBRuVvPvNKHQ9HvwmtKgKSH6123cr7' , {\n 'query': '{\n protocols {\n name\n totalPoolCount\n }\n }',\n 'variables': {}\n}] as parameters\n ,EXTERNAL.query.query_subgraph('ELUcwgpm14LKPLrBRuVvPvNKHQ9HvwmtKgKSH6123cr7' , {\n 'query': '{\n protocols {\n name\n totalPoolCount\n }\n }',\n 'variables': {}\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.query.query_subgraph('ELUcwgpm14LKPLrBRuVvPvNKHQ9HvwmtKgKSH6123cr7' , {\n 'query': '{\n protocols {\n name\n totalPoolCount\n }\n }',\n 'variables': {}\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.query.query_subgraph('ELUcwgpm14LKPLrBRuVvPvNKHQ9HvwmtKgKSH6123cr7' , {\n 'query': '{\n protocols {\n name\n totalPoolCount\n }\n }',\n 'variables': {}\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.playgrounds__", "sql": " __dbt__cte__playgrounds__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'playgrounds' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "query_subgraph", "file_key_name": "models.playgrounds__", "attached_node": "model.livequery_models.playgrounds__"}, "test.livequery_models.test_quicknode_solana_nfts__fetch_nfts_status_200.94f0e0082e": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'wallet': 'DcTmx4VLcf5euAB17nynax7g55xuB3XKBDyz1pudMcjW',\n 'omitFields': [\n 'provenance',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "fetch_nfts", "model": "{{ get_where_subquery(ref('quicknode_solana_nfts__quicknode_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_quicknode_solana_nfts", "name": "test_quicknode_solana_nfts__fetch_nfts_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_solana_nfts__fetch_nfts_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_solana_nfts__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_solana_nfts__fetch_nfts_status_200.94f0e0082e", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_solana_nfts__fetch_nfts_status_200"], "alias": "fetch_nfts_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.2065818, "relation_name": "EXTERNAL.test_quicknode_solana_nfts.fetch_nfts_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_solana_nfts__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_solana_nfts__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_solana_nfts__quicknode_utils.yml/test_quicknode_solana_nfts__fetch_nfts_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_solana_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_solana_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'fetch.fetch_nfts' AS test_name\n ,[{\n 'wallet': 'DcTmx4VLcf5euAB17nynax7g55xuB3XKBDyz1pudMcjW',\n 'omitFields': [\n 'provenance',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10\n}] as parameters\n ,EXTERNAL.fetch.fetch_nfts({\n 'wallet': 'DcTmx4VLcf5euAB17nynax7g55xuB3XKBDyz1pudMcjW',\n 'omitFields': [\n 'provenance',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.fetch.fetch_nfts({\n 'wallet': 'DcTmx4VLcf5euAB17nynax7g55xuB3XKBDyz1pudMcjW',\n 'omitFields': [\n 'provenance',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.fetch.fetch_nfts({\n 'wallet': 'DcTmx4VLcf5euAB17nynax7g55xuB3XKBDyz1pudMcjW',\n 'omitFields': [\n 'provenance',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_solana_nfts__quicknode_utils", "sql": " __dbt__cte__quicknode_solana_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_solana_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "fetch_nfts", "file_key_name": "models.quicknode_solana_nfts__quicknode_utils", "attached_node": "model.livequery_models.quicknode_solana_nfts__quicknode_utils"}, "test.livequery_models.test_quicknode_solana_nfts__fetch_nfts_by_creator_status_200.70f38f0e31": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'creator': 'DznU28LgherhU2JwC2db3KmAeWPqoF9Yx2aVtNUudW6R',\n 'page': 1,\n 'perPage': 3\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "fetch_nfts_by_creator", "model": "{{ get_where_subquery(ref('quicknode_solana_nfts__quicknode_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_quicknode_solana_nfts", "name": "test_quicknode_solana_nfts__fetch_nfts_by_creator_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_solana_nfts__fetch_nfts_by_creator_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_solana_nfts__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_solana_nfts__fetch_nfts_by_creator_status_200.70f38f0e31", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_solana_nfts__fetch_nfts_by_creator_status_200"], "alias": "fetch_nfts_by_creator_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.2132926, "relation_name": "EXTERNAL.test_quicknode_solana_nfts.fetch_nfts_by_creator_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_solana_nfts__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_solana_nfts__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_solana_nfts__quicknode_utils.yml/test_quicknode_solana_nfts__fetch_nfts_by_creator_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_solana_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_solana_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'fetch.fetch_nfts_by_creator' AS test_name\n ,[{\n 'creator': 'DznU28LgherhU2JwC2db3KmAeWPqoF9Yx2aVtNUudW6R',\n 'page': 1,\n 'perPage': 3\n}] as parameters\n ,EXTERNAL.fetch.fetch_nfts_by_creator({\n 'creator': 'DznU28LgherhU2JwC2db3KmAeWPqoF9Yx2aVtNUudW6R',\n 'page': 1,\n 'perPage': 3\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.fetch.fetch_nfts_by_creator({\n 'creator': 'DznU28LgherhU2JwC2db3KmAeWPqoF9Yx2aVtNUudW6R',\n 'page': 1,\n 'perPage': 3\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.fetch.fetch_nfts_by_creator({\n 'creator': 'DznU28LgherhU2JwC2db3KmAeWPqoF9Yx2aVtNUudW6R',\n 'page': 1,\n 'perPage': 3\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_solana_nfts__quicknode_utils", "sql": " __dbt__cte__quicknode_solana_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_solana_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "fetch_nfts_by_creator", "file_key_name": "models.quicknode_solana_nfts__quicknode_utils", "attached_node": "model.livequery_models.quicknode_solana_nfts__quicknode_utils"}, "test.livequery_models.test_quicknode_polygon_tokens__get_token_metadata_by_contract_address_status_200.529daa7446": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'contract': '0x4d224452801ACEd8B2F0aebE155379bb5D594381'\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_token_metadata_by_contract_address", "model": "{{ get_where_subquery(ref('quicknode_polygon_tokens__quicknode_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_quicknode_polygon_tokens", "name": "test_quicknode_polygon_tokens__get_token_metadata_by_contract_address_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_polygon_tokens__get_token_metadata_by_contract_address_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_polygon_tokens__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_polygon_tokens__get_token_metadata_by_contract_address_status_200.529daa7446", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_polygon_tokens__get_token_metadata_by_contract_address_status_200"], "alias": "get_token_metadata_by_contract_address_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.2220762, "relation_name": "EXTERNAL.test_quicknode_polygon_tokens.get_token_metadata_by_contract_address_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_polygon_tokens__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_polygon_tokens__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_polygon_tokens__quicknode_utils.yml/test_quicknode_polygon_tokens__get_token_metadata_by_contract_address_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_polygon_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'get.get_token_metadata_by_contract_address' AS test_name\n ,[{\n 'contract': '0x4d224452801ACEd8B2F0aebE155379bb5D594381'\n}] as parameters\n ,EXTERNAL.get.get_token_metadata_by_contract_address({\n 'contract': '0x4d224452801ACEd8B2F0aebE155379bb5D594381'\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_token_metadata_by_contract_address({\n 'contract': '0x4d224452801ACEd8B2F0aebE155379bb5D594381'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_token_metadata_by_contract_address({\n 'contract': '0x4d224452801ACEd8B2F0aebE155379bb5D594381'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_polygon_tokens__quicknode_utils", "sql": " __dbt__cte__quicknode_polygon_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_token_metadata_by_contract_address", "file_key_name": "models.quicknode_polygon_tokens__quicknode_utils", "attached_node": "model.livequery_models.quicknode_polygon_tokens__quicknode_utils"}, "test.livequery_models.test_quicknode_polygon_tokens__get_token_metadata_by_symbol_status_200.d60e37734e": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'symbol': 'USDC'\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_token_metadata_by_symbol", "model": "{{ get_where_subquery(ref('quicknode_polygon_tokens__quicknode_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_quicknode_polygon_tokens", "name": "test_quicknode_polygon_tokens__get_token_metadata_by_symbol_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_polygon_tokens__get_token_metadata_by_symbol_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_polygon_tokens__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_polygon_tokens__get_token_metadata_by_symbol_status_200.d60e37734e", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_polygon_tokens__get_token_metadata_by_symbol_status_200"], "alias": "get_token_metadata_by_symbol_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.2283032, "relation_name": "EXTERNAL.test_quicknode_polygon_tokens.get_token_metadata_by_symbol_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_polygon_tokens__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_polygon_tokens__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_polygon_tokens__quicknode_utils.yml/test_quicknode_polygon_tokens__get_token_metadata_by_symbol_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_polygon_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'get.get_token_metadata_by_symbol' AS test_name\n ,[{\n 'symbol': 'USDC'\n}] as parameters\n ,EXTERNAL.get.get_token_metadata_by_symbol({\n 'symbol': 'USDC'\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_token_metadata_by_symbol({\n 'symbol': 'USDC'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_token_metadata_by_symbol({\n 'symbol': 'USDC'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_polygon_tokens__quicknode_utils", "sql": " __dbt__cte__quicknode_polygon_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_token_metadata_by_symbol", "file_key_name": "models.quicknode_polygon_tokens__quicknode_utils", "attached_node": "model.livequery_models.quicknode_polygon_tokens__quicknode_utils"}, "test.livequery_models.test_quicknode_polygon_tokens__get_transactions_by_address_status_200.194093aade": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'page': 1,\n 'perPage': 10\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_transactions_by_address", "model": "{{ get_where_subquery(ref('quicknode_polygon_tokens__quicknode_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_quicknode_polygon_tokens", "name": "test_quicknode_polygon_tokens__get_transactions_by_address_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_polygon_tokens__get_transactions_by_address_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_polygon_tokens__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_polygon_tokens__get_transactions_by_address_status_200.194093aade", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_polygon_tokens__get_transactions_by_address_status_200"], "alias": "get_transactions_by_address_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.2344909, "relation_name": "EXTERNAL.test_quicknode_polygon_tokens.get_transactions_by_address_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_polygon_tokens__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_polygon_tokens__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_polygon_tokens__quicknode_utils.yml/test_quicknode_polygon_tokens__get_transactions_by_address_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_polygon_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'get.get_transactions_by_address' AS test_name\n ,[{\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'page': 1,\n 'perPage': 10\n}] as parameters\n ,EXTERNAL.get.get_transactions_by_address({\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'page': 1,\n 'perPage': 10\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_transactions_by_address({\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'page': 1,\n 'perPage': 10\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_transactions_by_address({\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'page': 1,\n 'perPage': 10\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_polygon_tokens__quicknode_utils", "sql": " __dbt__cte__quicknode_polygon_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_transactions_by_address", "file_key_name": "models.quicknode_polygon_tokens__quicknode_utils", "attached_node": "model.livequery_models.quicknode_polygon_tokens__quicknode_utils"}, "test.livequery_models.test_quicknode_polygon_tokens__get_wallet_token_balance_status_200.2bffddb733": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'wallet': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_wallet_token_balance", "model": "{{ get_where_subquery(ref('quicknode_polygon_tokens__quicknode_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_quicknode_polygon_tokens", "name": "test_quicknode_polygon_tokens__get_wallet_token_balance_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_polygon_tokens__get_wallet_token_balance_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_polygon_tokens__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_polygon_tokens__get_wallet_token_balance_status_200.2bffddb733", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_polygon_tokens__get_wallet_token_balance_status_200"], "alias": "get_wallet_token_balance_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.2404826, "relation_name": "EXTERNAL.test_quicknode_polygon_tokens.get_wallet_token_balance_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_polygon_tokens__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_polygon_tokens__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_polygon_tokens__quicknode_utils.yml/test_quicknode_polygon_tokens__get_wallet_token_balance_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_polygon_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'get.get_wallet_token_balance' AS test_name\n ,[{\n 'wallet': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'\n}] as parameters\n ,EXTERNAL.get.get_wallet_token_balance({\n 'wallet': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_wallet_token_balance({\n 'wallet': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_wallet_token_balance({\n 'wallet': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_polygon_tokens__quicknode_utils", "sql": " __dbt__cte__quicknode_polygon_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_wallet_token_balance", "file_key_name": "models.quicknode_polygon_tokens__quicknode_utils", "attached_node": "model.livequery_models.quicknode_polygon_tokens__quicknode_utils"}, "test.livequery_models.test_quicknode_polygon_tokens__get_wallet_token_transactions_status_200.57669f1a96": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'contract': '0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE',\n 'page': 1,\n 'perPage': 10\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_wallet_token_transactions", "model": "{{ get_where_subquery(ref('quicknode_polygon_tokens__quicknode_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_quicknode_polygon_tokens", "name": "test_quicknode_polygon_tokens__get_wallet_token_transactions_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_polygon_tokens__get_wallet_token_transactions_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_polygon_tokens__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_polygon_tokens__get_wallet_token_transactions_status_200.57669f1a96", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_polygon_tokens__get_wallet_token_transactions_status_200"], "alias": "get_wallet_token_transactions_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.246767, "relation_name": "EXTERNAL.test_quicknode_polygon_tokens.get_wallet_token_transactions_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_polygon_tokens__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_polygon_tokens__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_polygon_tokens__quicknode_utils.yml/test_quicknode_polygon_tokens__get_wallet_token_transactions_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_polygon_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'get.get_wallet_token_transactions' AS test_name\n ,[{\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'contract': '0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE',\n 'page': 1,\n 'perPage': 10\n}] as parameters\n ,EXTERNAL.get.get_wallet_token_transactions({\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'contract': '0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE',\n 'page': 1,\n 'perPage': 10\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_wallet_token_transactions({\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'contract': '0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE',\n 'page': 1,\n 'perPage': 10\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_wallet_token_transactions({\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'contract': '0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE',\n 'page': 1,\n 'perPage': 10\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_polygon_tokens__quicknode_utils", "sql": " __dbt__cte__quicknode_polygon_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_wallet_token_transactions", "file_key_name": "models.quicknode_polygon_tokens__quicknode_utils", "attached_node": "model.livequery_models.quicknode_polygon_tokens__quicknode_utils"}, "test.livequery_models.test_quicknode_ethereum_nfts__fetch_nft_collection_details_status_200.5a3e5bd53e": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'contracts': [\n '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n '0x7Bd29408f11D2bFC23c34f18275bBf23bB716Bc7'\n ]\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "fetch_nft_collection_details", "model": "{{ get_where_subquery(ref('quicknode_ethereum_nfts__quicknode_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_quicknode_ethereum_nfts", "name": "test_quicknode_ethereum_nfts__fetch_nft_collection_details_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_ethereum_nfts__fetch_nft_collection_details_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_ethereum_nfts__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_ethereum_nfts__fetch_nft_collection_details_status_200.5a3e5bd53e", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_ethereum_nfts__fetch_nft_collection_details_status_200"], "alias": "fetch_nft_collection_details_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.2553399, "relation_name": "EXTERNAL.test_quicknode_ethereum_nfts.fetch_nft_collection_details_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_ethereum_nfts__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_ethereum_nfts__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_ethereum_nfts__quicknode_utils.yml/test_quicknode_ethereum_nfts__fetch_nft_collection_details_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_ethereum_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'fetch.fetch_nft_collection_details' AS test_name\n ,[{\n 'contracts': [\n '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n '0x7Bd29408f11D2bFC23c34f18275bBf23bB716Bc7'\n ]\n}] as parameters\n ,EXTERNAL.fetch.fetch_nft_collection_details({\n 'contracts': [\n '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n '0x7Bd29408f11D2bFC23c34f18275bBf23bB716Bc7'\n ]\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.fetch.fetch_nft_collection_details({\n 'contracts': [\n '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n '0x7Bd29408f11D2bFC23c34f18275bBf23bB716Bc7'\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.fetch.fetch_nft_collection_details({\n 'contracts': [\n '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n '0x7Bd29408f11D2bFC23c34f18275bBf23bB716Bc7'\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_ethereum_nfts__quicknode_utils", "sql": " __dbt__cte__quicknode_ethereum_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "fetch_nft_collection_details", "file_key_name": "models.quicknode_ethereum_nfts__quicknode_utils", "attached_node": "model.livequery_models.quicknode_ethereum_nfts__quicknode_utils"}, "test.livequery_models.test_quicknode_ethereum_nfts__fetch_nfts_status_200.e34b6fbe64": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740',\n 'omitFields': [\n 'provenance',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10,\n 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa',\n '0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D'\n ]\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "fetch_nfts", "model": "{{ get_where_subquery(ref('quicknode_ethereum_nfts__quicknode_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_quicknode_ethereum_nfts", "name": "test_quicknode_ethereum_nfts__fetch_nfts_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_ethereum_nfts__fetch_nfts_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_ethereum_nfts__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_ethereum_nfts__fetch_nfts_status_200.e34b6fbe64", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_ethereum_nfts__fetch_nfts_status_200"], "alias": "fetch_nfts_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.2615001, "relation_name": "EXTERNAL.test_quicknode_ethereum_nfts.fetch_nfts_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_ethereum_nfts__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_ethereum_nfts__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_ethereum_nfts__quicknode_utils.yml/test_quicknode_ethereum_nfts__fetch_nfts_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_ethereum_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'fetch.fetch_nfts' AS test_name\n ,[{\n 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740',\n 'omitFields': [\n 'provenance',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10,\n 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa',\n '0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D'\n ]\n}] as parameters\n ,EXTERNAL.fetch.fetch_nfts({\n 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740',\n 'omitFields': [\n 'provenance',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10,\n 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa',\n '0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D'\n ]\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.fetch.fetch_nfts({\n 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740',\n 'omitFields': [\n 'provenance',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10,\n 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa',\n '0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D'\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.fetch.fetch_nfts({\n 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740',\n 'omitFields': [\n 'provenance',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10,\n 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa',\n '0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D'\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_ethereum_nfts__quicknode_utils", "sql": " __dbt__cte__quicknode_ethereum_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "fetch_nfts", "file_key_name": "models.quicknode_ethereum_nfts__quicknode_utils", "attached_node": "model.livequery_models.quicknode_ethereum_nfts__quicknode_utils"}, "test.livequery_models.test_quicknode_ethereum_nfts__fetch_nfts_by_collection_status_200.ba7f5aeceb": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n 'omitFields': [\n 'imageUrl',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "fetch_nfts_by_collection", "model": "{{ get_where_subquery(ref('quicknode_ethereum_nfts__quicknode_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_quicknode_ethereum_nfts", "name": "test_quicknode_ethereum_nfts__fetch_nfts_by_collection_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_ethereum_nfts__fetch_nfts_by_collection_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_ethereum_nfts__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_ethereum_nfts__fetch_nfts_by_collection_status_200.ba7f5aeceb", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_ethereum_nfts__fetch_nfts_by_collection_status_200"], "alias": "fetch_nfts_by_collection_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.2676723, "relation_name": "EXTERNAL.test_quicknode_ethereum_nfts.fetch_nfts_by_collection_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_ethereum_nfts__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_ethereum_nfts__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_ethereum_nfts__quicknode_utils.yml/test_quicknode_ethereum_nfts__fetch_nfts_by_collection_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_ethereum_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'fetch.fetch_nfts_by_collection' AS test_name\n ,[{\n 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n 'omitFields': [\n 'imageUrl',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10\n}] as parameters\n ,EXTERNAL.fetch.fetch_nfts_by_collection({\n 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n 'omitFields': [\n 'imageUrl',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.fetch.fetch_nfts_by_collection({\n 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n 'omitFields': [\n 'imageUrl',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.fetch.fetch_nfts_by_collection({\n 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n 'omitFields': [\n 'imageUrl',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_ethereum_nfts__quicknode_utils", "sql": " __dbt__cte__quicknode_ethereum_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "fetch_nfts_by_collection", "file_key_name": "models.quicknode_ethereum_nfts__quicknode_utils", "attached_node": "model.livequery_models.quicknode_ethereum_nfts__quicknode_utils"}, "test.livequery_models.test_quicknode_ethereum_nfts__get_transfers_by_nft_status_200.2e5143d642": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{ 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6', 'collectionTokenId': '1', 'page': 1, 'perPage': 10 }\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_transfers_by_nft", "model": "{{ get_where_subquery(ref('quicknode_ethereum_nfts__quicknode_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_quicknode_ethereum_nfts", "name": "test_quicknode_ethereum_nfts__get_transfers_by_nft_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_ethereum_nfts__get_transfers_by_nft_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_ethereum_nfts__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_ethereum_nfts__get_transfers_by_nft_status_200.2e5143d642", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_ethereum_nfts__get_transfers_by_nft_status_200"], "alias": "get_transfers_by_nft_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.2737207, "relation_name": "EXTERNAL.test_quicknode_ethereum_nfts.get_transfers_by_nft_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_ethereum_nfts__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_ethereum_nfts__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_ethereum_nfts__quicknode_utils.yml/test_quicknode_ethereum_nfts__get_transfers_by_nft_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_ethereum_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'get.get_transfers_by_nft' AS test_name\n ,[{ 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6', 'collectionTokenId': '1', 'page': 1, 'perPage': 10 }] as parameters\n ,EXTERNAL.get.get_transfers_by_nft({ 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6', 'collectionTokenId': '1', 'page': 1, 'perPage': 10 }) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_transfers_by_nft({ 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6', 'collectionTokenId': '1', 'page': 1, 'perPage': 10 })\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_transfers_by_nft({ 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6', 'collectionTokenId': '1', 'page': 1, 'perPage': 10 })\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_ethereum_nfts__quicknode_utils", "sql": " __dbt__cte__quicknode_ethereum_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_transfers_by_nft", "file_key_name": "models.quicknode_ethereum_nfts__quicknode_utils", "attached_node": "model.livequery_models.quicknode_ethereum_nfts__quicknode_utils"}, "test.livequery_models.test_quicknode_ethereum_nfts__verify_nfts_owner_status_200.34afbca510": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{ 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740', 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa:3643',\n '0xd07dc4262bcdbf85190c01c996b4c06a461d2430:133803'\n ]\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "verify_nfts_owner", "model": "{{ get_where_subquery(ref('quicknode_ethereum_nfts__quicknode_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_quicknode_ethereum_nfts", "name": "test_quicknode_ethereum_nfts__verify_nfts_owner_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_ethereum_nfts__verify_nfts_owner_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_ethereum_nfts__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_ethereum_nfts__verify_nfts_owner_status_200.34afbca510", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_ethereum_nfts__verify_nfts_owner_status_200"], "alias": "verify_nfts_owner_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.2799547, "relation_name": "EXTERNAL.test_quicknode_ethereum_nfts.verify_nfts_owner_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_ethereum_nfts__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_ethereum_nfts__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_ethereum_nfts__quicknode_utils.yml/test_quicknode_ethereum_nfts__verify_nfts_owner_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_ethereum_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'verify.verify_nfts_owner' AS test_name\n ,[{ 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740', 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa:3643',\n '0xd07dc4262bcdbf85190c01c996b4c06a461d2430:133803'\n ]\n}] as parameters\n ,EXTERNAL.verify.verify_nfts_owner({ 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740', 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa:3643',\n '0xd07dc4262bcdbf85190c01c996b4c06a461d2430:133803'\n ]\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.verify.verify_nfts_owner({ 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740', 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa:3643',\n '0xd07dc4262bcdbf85190c01c996b4c06a461d2430:133803'\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.verify.verify_nfts_owner({ 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740', 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa:3643',\n '0xd07dc4262bcdbf85190c01c996b4c06a461d2430:133803'\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_ethereum_nfts__quicknode_utils", "sql": " __dbt__cte__quicknode_ethereum_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "verify_nfts_owner", "file_key_name": "models.quicknode_ethereum_nfts__quicknode_utils", "attached_node": "model.livequery_models.quicknode_ethereum_nfts__quicknode_utils"}, "test.livequery_models.test_quicknode_polygon_nfts__fetch_nft_collection_details_status_200.b69737052b": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{ 'contracts': [\n '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n '0x7Bd29408f11D2bFC23c34f18275bBf23bB716Bc7'\n ]\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "fetch_nft_collection_details", "model": "{{ get_where_subquery(ref('quicknode_polygon_nfts__quicknode_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_quicknode_polygon_nfts", "name": "test_quicknode_polygon_nfts__fetch_nft_collection_details_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_polygon_nfts__fetch_nft_collection_details_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_polygon_nfts__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_polygon_nfts__fetch_nft_collection_details_status_200.b69737052b", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_polygon_nfts__fetch_nft_collection_details_status_200"], "alias": "fetch_nft_collection_details_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.2872717, "relation_name": "EXTERNAL.test_quicknode_polygon_nfts.fetch_nft_collection_details_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_polygon_nfts__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_polygon_nfts__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_polygon_nfts__quicknode_utils.yml/test_quicknode_polygon_nfts__fetch_nft_collection_details_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_polygon_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'fetch.fetch_nft_collection_details' AS test_name\n ,[{ 'contracts': [\n '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n '0x7Bd29408f11D2bFC23c34f18275bBf23bB716Bc7'\n ]\n}] as parameters\n ,EXTERNAL.fetch.fetch_nft_collection_details({ 'contracts': [\n '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n '0x7Bd29408f11D2bFC23c34f18275bBf23bB716Bc7'\n ]\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.fetch.fetch_nft_collection_details({ 'contracts': [\n '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n '0x7Bd29408f11D2bFC23c34f18275bBf23bB716Bc7'\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.fetch.fetch_nft_collection_details({ 'contracts': [\n '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n '0x7Bd29408f11D2bFC23c34f18275bBf23bB716Bc7'\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_polygon_nfts__quicknode_utils", "sql": " __dbt__cte__quicknode_polygon_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "fetch_nft_collection_details", "file_key_name": "models.quicknode_polygon_nfts__quicknode_utils", "attached_node": "model.livequery_models.quicknode_polygon_nfts__quicknode_utils"}, "test.livequery_models.test_quicknode_polygon_nfts__fetch_nfts_status_200.2d1f2ae9d6": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740',\n 'omitFields': [\n 'provenance',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10,\n 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa',\n '0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D'\n ]\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "fetch_nfts", "model": "{{ get_where_subquery(ref('quicknode_polygon_nfts__quicknode_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_quicknode_polygon_nfts", "name": "test_quicknode_polygon_nfts__fetch_nfts_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_polygon_nfts__fetch_nfts_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_polygon_nfts__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_polygon_nfts__fetch_nfts_status_200.2d1f2ae9d6", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_polygon_nfts__fetch_nfts_status_200"], "alias": "fetch_nfts_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.2934916, "relation_name": "EXTERNAL.test_quicknode_polygon_nfts.fetch_nfts_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_polygon_nfts__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_polygon_nfts__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_polygon_nfts__quicknode_utils.yml/test_quicknode_polygon_nfts__fetch_nfts_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_polygon_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'fetch.fetch_nfts' AS test_name\n ,[{\n 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740',\n 'omitFields': [\n 'provenance',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10,\n 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa',\n '0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D'\n ]\n}] as parameters\n ,EXTERNAL.fetch.fetch_nfts({\n 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740',\n 'omitFields': [\n 'provenance',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10,\n 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa',\n '0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D'\n ]\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.fetch.fetch_nfts({\n 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740',\n 'omitFields': [\n 'provenance',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10,\n 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa',\n '0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D'\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.fetch.fetch_nfts({\n 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740',\n 'omitFields': [\n 'provenance',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10,\n 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa',\n '0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D'\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_polygon_nfts__quicknode_utils", "sql": " __dbt__cte__quicknode_polygon_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "fetch_nfts", "file_key_name": "models.quicknode_polygon_nfts__quicknode_utils", "attached_node": "model.livequery_models.quicknode_polygon_nfts__quicknode_utils"}, "test.livequery_models.test_quicknode_polygon_nfts__fetch_nfts_by_collection_status_200.8286191e06": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n 'omitFields': [\n 'imageUrl',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "fetch_nfts_by_collection", "model": "{{ get_where_subquery(ref('quicknode_polygon_nfts__quicknode_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_quicknode_polygon_nfts", "name": "test_quicknode_polygon_nfts__fetch_nfts_by_collection_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_polygon_nfts__fetch_nfts_by_collection_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_polygon_nfts__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_polygon_nfts__fetch_nfts_by_collection_status_200.8286191e06", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_polygon_nfts__fetch_nfts_by_collection_status_200"], "alias": "fetch_nfts_by_collection_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.299087, "relation_name": "EXTERNAL.test_quicknode_polygon_nfts.fetch_nfts_by_collection_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_polygon_nfts__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_polygon_nfts__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_polygon_nfts__quicknode_utils.yml/test_quicknode_polygon_nfts__fetch_nfts_by_collection_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_polygon_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'fetch.fetch_nfts_by_collection' AS test_name\n ,[{\n 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n 'omitFields': [\n 'imageUrl',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10\n}] as parameters\n ,EXTERNAL.fetch.fetch_nfts_by_collection({\n 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n 'omitFields': [\n 'imageUrl',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.fetch.fetch_nfts_by_collection({\n 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n 'omitFields': [\n 'imageUrl',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.fetch.fetch_nfts_by_collection({\n 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6',\n 'omitFields': [\n 'imageUrl',\n 'traits'\n ],\n 'page': 1,\n 'perPage': 10\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_polygon_nfts__quicknode_utils", "sql": " __dbt__cte__quicknode_polygon_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "fetch_nfts_by_collection", "file_key_name": "models.quicknode_polygon_nfts__quicknode_utils", "attached_node": "model.livequery_models.quicknode_polygon_nfts__quicknode_utils"}, "test.livequery_models.test_quicknode_polygon_nfts__get_transfers_by_nft_status_200.2f6ba1e185": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{ 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6', 'collectionTokenId': '1', 'page': 1, 'perPage': 10 }\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_transfers_by_nft", "model": "{{ get_where_subquery(ref('quicknode_polygon_nfts__quicknode_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_quicknode_polygon_nfts", "name": "test_quicknode_polygon_nfts__get_transfers_by_nft_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_polygon_nfts__get_transfers_by_nft_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_polygon_nfts__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_polygon_nfts__get_transfers_by_nft_status_200.2f6ba1e185", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_polygon_nfts__get_transfers_by_nft_status_200"], "alias": "get_transfers_by_nft_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.3048844, "relation_name": "EXTERNAL.test_quicknode_polygon_nfts.get_transfers_by_nft_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_polygon_nfts__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_polygon_nfts__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_polygon_nfts__quicknode_utils.yml/test_quicknode_polygon_nfts__get_transfers_by_nft_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_polygon_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'get.get_transfers_by_nft' AS test_name\n ,[{ 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6', 'collectionTokenId': '1', 'page': 1, 'perPage': 10 }] as parameters\n ,EXTERNAL.get.get_transfers_by_nft({ 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6', 'collectionTokenId': '1', 'page': 1, 'perPage': 10 }) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_transfers_by_nft({ 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6', 'collectionTokenId': '1', 'page': 1, 'perPage': 10 })\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_transfers_by_nft({ 'collection': '0x60E4d786628Fea6478F785A6d7e704777c86a7c6', 'collectionTokenId': '1', 'page': 1, 'perPage': 10 })\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_polygon_nfts__quicknode_utils", "sql": " __dbt__cte__quicknode_polygon_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_transfers_by_nft", "file_key_name": "models.quicknode_polygon_nfts__quicknode_utils", "attached_node": "model.livequery_models.quicknode_polygon_nfts__quicknode_utils"}, "test.livequery_models.test_quicknode_polygon_nfts__verify_nfts_owner_status_200.e87bb12c13": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{ 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740', 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa:3643',\n '0xd07dc4262bcdbf85190c01c996b4c06a461d2430:133803'\n ]\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "verify_nfts_owner", "model": "{{ get_where_subquery(ref('quicknode_polygon_nfts__quicknode_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_quicknode_polygon_nfts", "name": "test_quicknode_polygon_nfts__verify_nfts_owner_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_polygon_nfts__verify_nfts_owner_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_polygon_nfts__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_polygon_nfts__verify_nfts_owner_status_200.e87bb12c13", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_polygon_nfts__verify_nfts_owner_status_200"], "alias": "verify_nfts_owner_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.3113265, "relation_name": "EXTERNAL.test_quicknode_polygon_nfts.verify_nfts_owner_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_polygon_nfts__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_polygon_nfts__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_polygon_nfts__quicknode_utils.yml/test_quicknode_polygon_nfts__verify_nfts_owner_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_polygon_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'verify.verify_nfts_owner' AS test_name\n ,[{ 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740', 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa:3643',\n '0xd07dc4262bcdbf85190c01c996b4c06a461d2430:133803'\n ]\n}] as parameters\n ,EXTERNAL.verify.verify_nfts_owner({ 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740', 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa:3643',\n '0xd07dc4262bcdbf85190c01c996b4c06a461d2430:133803'\n ]\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.verify.verify_nfts_owner({ 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740', 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa:3643',\n '0xd07dc4262bcdbf85190c01c996b4c06a461d2430:133803'\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.verify.verify_nfts_owner({ 'wallet': '0x91b51c173a4bdaa1a60e234fc3f705a16d228740', 'contracts': [\n '0x2106c00ac7da0a3430ae667879139e832307aeaa:3643',\n '0xd07dc4262bcdbf85190c01c996b4c06a461d2430:133803'\n ]\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_polygon_nfts__quicknode_utils", "sql": " __dbt__cte__quicknode_polygon_nfts__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_polygon_nfts' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "verify_nfts_owner", "file_key_name": "models.quicknode_polygon_nfts__quicknode_utils", "attached_node": "model.livequery_models.quicknode_polygon_nfts__quicknode_utils"}, "test.livequery_models.test_quicknode_ethereum_tokens__get_token_metadata_by_contract_address_status_200.3d5c91f8e2": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'contract': '0x4d224452801ACEd8B2F0aebE155379bb5D594381'\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_token_metadata_by_contract_address", "model": "{{ get_where_subquery(ref('quicknode_ethereum_tokens__quicknode_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_quicknode_ethereum_tokens", "name": "test_quicknode_ethereum_tokens__get_token_metadata_by_contract_address_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_ethereum_tokens__get_token_metadata_by_contract_address_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_ethereum_tokens__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_ethereum_tokens__get_token_metadata_by_contract_address_status_200.3d5c91f8e2", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_ethereum_tokens__get_token_metadata_by_contract_address_status_200"], "alias": "get_token_metadata_by_contract_address_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.3179233, "relation_name": "EXTERNAL.test_quicknode_ethereum_tokens.get_token_metadata_by_contract_address_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_ethereum_tokens__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_ethereum_tokens__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_ethereum_tokens__quicknode_utils.yml/test_quicknode_ethereum_tokens__get_token_metadata_by_contract_address_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_ethereum_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'get.get_token_metadata_by_contract_address' AS test_name\n ,[{\n 'contract': '0x4d224452801ACEd8B2F0aebE155379bb5D594381'\n}] as parameters\n ,EXTERNAL.get.get_token_metadata_by_contract_address({\n 'contract': '0x4d224452801ACEd8B2F0aebE155379bb5D594381'\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_token_metadata_by_contract_address({\n 'contract': '0x4d224452801ACEd8B2F0aebE155379bb5D594381'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_token_metadata_by_contract_address({\n 'contract': '0x4d224452801ACEd8B2F0aebE155379bb5D594381'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_ethereum_tokens__quicknode_utils", "sql": " __dbt__cte__quicknode_ethereum_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_token_metadata_by_contract_address", "file_key_name": "models.quicknode_ethereum_tokens__quicknode_utils", "attached_node": "model.livequery_models.quicknode_ethereum_tokens__quicknode_utils"}, "test.livequery_models.test_quicknode_ethereum_tokens__get_token_metadata_by_symbol_status_200.c34c43a92d": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'symbol': 'USDC'\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_token_metadata_by_symbol", "model": "{{ get_where_subquery(ref('quicknode_ethereum_tokens__quicknode_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_quicknode_ethereum_tokens", "name": "test_quicknode_ethereum_tokens__get_token_metadata_by_symbol_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_ethereum_tokens__get_token_metadata_by_symbol_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_ethereum_tokens__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_ethereum_tokens__get_token_metadata_by_symbol_status_200.c34c43a92d", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_ethereum_tokens__get_token_metadata_by_symbol_status_200"], "alias": "get_token_metadata_by_symbol_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.323701, "relation_name": "EXTERNAL.test_quicknode_ethereum_tokens.get_token_metadata_by_symbol_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_ethereum_tokens__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_ethereum_tokens__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_ethereum_tokens__quicknode_utils.yml/test_quicknode_ethereum_tokens__get_token_metadata_by_symbol_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_ethereum_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'get.get_token_metadata_by_symbol' AS test_name\n ,[{\n 'symbol': 'USDC'\n}] as parameters\n ,EXTERNAL.get.get_token_metadata_by_symbol({\n 'symbol': 'USDC'\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_token_metadata_by_symbol({\n 'symbol': 'USDC'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_token_metadata_by_symbol({\n 'symbol': 'USDC'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_ethereum_tokens__quicknode_utils", "sql": " __dbt__cte__quicknode_ethereum_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_token_metadata_by_symbol", "file_key_name": "models.quicknode_ethereum_tokens__quicknode_utils", "attached_node": "model.livequery_models.quicknode_ethereum_tokens__quicknode_utils"}, "test.livequery_models.test_quicknode_ethereum_tokens__get_transactions_by_address_status_200.29d4ecb431": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'page': 1,\n 'perPage': 10\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_transactions_by_address", "model": "{{ get_where_subquery(ref('quicknode_ethereum_tokens__quicknode_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_quicknode_ethereum_tokens", "name": "test_quicknode_ethereum_tokens__get_transactions_by_address_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_ethereum_tokens__get_transactions_by_address_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_ethereum_tokens__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_ethereum_tokens__get_transactions_by_address_status_200.29d4ecb431", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_ethereum_tokens__get_transactions_by_address_status_200"], "alias": "get_transactions_by_address_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.3295183, "relation_name": "EXTERNAL.test_quicknode_ethereum_tokens.get_transactions_by_address_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_ethereum_tokens__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_ethereum_tokens__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_ethereum_tokens__quicknode_utils.yml/test_quicknode_ethereum_tokens__get_transactions_by_address_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_ethereum_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'get.get_transactions_by_address' AS test_name\n ,[{\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'page': 1,\n 'perPage': 10\n}] as parameters\n ,EXTERNAL.get.get_transactions_by_address({\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'page': 1,\n 'perPage': 10\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_transactions_by_address({\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'page': 1,\n 'perPage': 10\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_transactions_by_address({\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'page': 1,\n 'perPage': 10\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_ethereum_tokens__quicknode_utils", "sql": " __dbt__cte__quicknode_ethereum_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_transactions_by_address", "file_key_name": "models.quicknode_ethereum_tokens__quicknode_utils", "attached_node": "model.livequery_models.quicknode_ethereum_tokens__quicknode_utils"}, "test.livequery_models.test_quicknode_ethereum_tokens__get_wallet_token_balance_status_200.9cda095850": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'wallet': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_wallet_token_balance", "model": "{{ get_where_subquery(ref('quicknode_ethereum_tokens__quicknode_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_quicknode_ethereum_tokens", "name": "test_quicknode_ethereum_tokens__get_wallet_token_balance_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_ethereum_tokens__get_wallet_token_balance_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_ethereum_tokens__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_ethereum_tokens__get_wallet_token_balance_status_200.9cda095850", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_ethereum_tokens__get_wallet_token_balance_status_200"], "alias": "get_wallet_token_balance_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.3351061, "relation_name": "EXTERNAL.test_quicknode_ethereum_tokens.get_wallet_token_balance_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_ethereum_tokens__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_ethereum_tokens__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_ethereum_tokens__quicknode_utils.yml/test_quicknode_ethereum_tokens__get_wallet_token_balance_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_ethereum_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'get.get_wallet_token_balance' AS test_name\n ,[{\n 'wallet': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'\n}] as parameters\n ,EXTERNAL.get.get_wallet_token_balance({\n 'wallet': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_wallet_token_balance({\n 'wallet': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_wallet_token_balance({\n 'wallet': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_ethereum_tokens__quicknode_utils", "sql": " __dbt__cte__quicknode_ethereum_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_wallet_token_balance", "file_key_name": "models.quicknode_ethereum_tokens__quicknode_utils", "attached_node": "model.livequery_models.quicknode_ethereum_tokens__quicknode_utils"}, "test.livequery_models.test_quicknode_ethereum_tokens__get_wallet_token_transactions_status_200.990e59cd6c": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'contract': '0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE',\n 'page': 1,\n 'perPage': 10\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_wallet_token_transactions", "model": "{{ get_where_subquery(ref('quicknode_ethereum_tokens__quicknode_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_quicknode_ethereum_tokens", "name": "test_quicknode_ethereum_tokens__get_wallet_token_transactions_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_quicknode_ethereum_tokens__get_wallet_token_transactions_status_200.sql", "original_file_path": "models/deploy/marketplace/quicknode/quicknode_ethereum_tokens__quicknode_utils.yml", "unique_id": "test.livequery_models.test_quicknode_ethereum_tokens__get_wallet_token_transactions_status_200.990e59cd6c", "fqn": ["livequery_models", "deploy", "marketplace", "quicknode", "test_quicknode_ethereum_tokens__get_wallet_token_transactions_status_200"], "alias": "get_wallet_token_transactions_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.3409438, "relation_name": "EXTERNAL.test_quicknode_ethereum_tokens.get_wallet_token_transactions_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "quicknode_ethereum_tokens__quicknode_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.quicknode_ethereum_tokens__quicknode_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/quicknode/quicknode_ethereum_tokens__quicknode_utils.yml/test_quicknode_ethereum_tokens__get_wallet_token_transactions_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n), __dbt__cte__quicknode_ethereum_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n) ,\ntest AS\n(\n SELECT\n 'get.get_wallet_token_transactions' AS test_name\n ,[{\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'contract': '0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE',\n 'page': 1,\n 'perPage': 10\n}] as parameters\n ,EXTERNAL.get.get_wallet_token_transactions({\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'contract': '0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE',\n 'page': 1,\n 'perPage': 10\n}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_wallet_token_transactions({\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'contract': '0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE',\n 'page': 1,\n 'perPage': 10\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_wallet_token_transactions({\n 'address': '0xd8da6bf26964af9d7eed9e03e53415d37aa96045',\n 'contract': '0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE',\n 'page': 1,\n 'perPage': 10\n})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.quicknode_utils__quicknode_utils", "sql": " __dbt__cte__quicknode_utils__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_utils' as schema_\n)"}, {"id": "model.livequery_models.quicknode_ethereum_tokens__quicknode_utils", "sql": " __dbt__cte__quicknode_ethereum_tokens__quicknode_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'quicknode_ethereum_tokens' as schema_-- depends_on: __dbt__cte__quicknode_utils__quicknode_utils\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_wallet_token_transactions", "file_key_name": "models.quicknode_ethereum_tokens__quicknode_utils", "attached_node": "model.livequery_models.quicknode_ethereum_tokens__quicknode_utils"}, "test.livequery_models.test_footprint_utils__get_status_200_v2_protocol_info.4d260facf4": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'/v3/protocol/getProtocolStatsHistory' , {\n 'chain': 'Polygon',\n 'protocol_slug': 'planet-ix',\n 'start_time': '2023-07-01',\n 'end_time': '2023-07-25'\n }\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get", "model": "{{ get_where_subquery(ref('footprint_utils__footprint_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_footprint_utils", "name": "test_footprint_utils__get_status_200_v2_protocol_info", "resource_type": "test", "package_name": "livequery_models", "path": "test_footprint_utils__get_status_200_v2_protocol_info.sql", "original_file_path": "models/deploy/marketplace/footprint/footprint_utils__footprint_utils.yml", "unique_id": "test.livequery_models.test_footprint_utils__get_status_200_v2_protocol_info.4d260facf4", "fqn": ["livequery_models", "deploy", "marketplace", "footprint", "test_footprint_utils__get_status_200_v2_protocol_info"], "alias": "get_status_200_v2_protocol_info", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.3475916, "relation_name": "EXTERNAL.test_footprint_utils.get_status_200_v2_protocol_info", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "footprint_utils__footprint_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.footprint_utils__footprint_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/footprint/footprint_utils__footprint_utils.yml/test_footprint_utils__get_status_200_v2_protocol_info.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__footprint_utils__footprint_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'footprint_utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'get.get' AS test_name\n ,['/v3/protocol/getProtocolStatsHistory' , {\n 'chain': 'Polygon',\n 'protocol_slug': 'planet-ix',\n 'start_time': '2023-07-01',\n 'end_time': '2023-07-25'\n }] as parameters\n ,EXTERNAL.get.get('/v3/protocol/getProtocolStatsHistory' , {\n 'chain': 'Polygon',\n 'protocol_slug': 'planet-ix',\n 'start_time': '2023-07-01',\n 'end_time': '2023-07-25'\n }) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get('/v3/protocol/getProtocolStatsHistory' , {\n 'chain': 'Polygon',\n 'protocol_slug': 'planet-ix',\n 'start_time': '2023-07-01',\n 'end_time': '2023-07-25'\n })\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get('/v3/protocol/getProtocolStatsHistory' , {\n 'chain': 'Polygon',\n 'protocol_slug': 'planet-ix',\n 'start_time': '2023-07-01',\n 'end_time': '2023-07-25'\n })\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.footprint_utils__footprint_utils", "sql": " __dbt__cte__footprint_utils__footprint_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'footprint_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get", "file_key_name": "models.footprint_utils__footprint_utils", "attached_node": "model.livequery_models.footprint_utils__footprint_utils"}, "test.livequery_models.test_cmc__get_status_200.1e44de8c9e": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'/v2/cryptocurrency/ohlcv/historical' , {'interval': 'hourly', 'time_period': 'hourly', 'time_start': DATE_PART('EPOCH_SECOND', DATEADD('hour', -2, CURRENT_TIMESTAMP())), 'time_end': DATE_PART('EPOCH_SECOND', DATEADD('hour', -1, CURRENT_TIMESTAMP())), 'id': '15478,15479'}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get", "model": "{{ get_where_subquery(ref('cmc__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_cmc", "name": "test_cmc__get_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_cmc__get_status_200.sql", "original_file_path": "models/deploy/marketplace/cmc/cmc__.yml", "unique_id": "test.livequery_models.test_cmc__get_status_200.1e44de8c9e", "fqn": ["livequery_models", "deploy", "marketplace", "cmc", "test_cmc__get_status_200"], "alias": "get_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.3543162, "relation_name": "EXTERNAL.test_cmc.get_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "cmc__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.cmc__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/cmc/cmc__.yml/test_cmc__get_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__cmc__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'cmc' as schema_\n) ,\ntest AS\n(\n SELECT\n 'get.get' AS test_name\n ,['/v2/cryptocurrency/ohlcv/historical' , {'interval': 'hourly', 'time_period': 'hourly', 'time_start': DATE_PART('EPOCH_SECOND', DATEADD('hour', -2, CURRENT_TIMESTAMP())), 'time_end': DATE_PART('EPOCH_SECOND', DATEADD('hour', -1, CURRENT_TIMESTAMP())), 'id': '15478,15479'}] as parameters\n ,EXTERNAL.get.get('/v2/cryptocurrency/ohlcv/historical' , {'interval': 'hourly', 'time_period': 'hourly', 'time_start': DATE_PART('EPOCH_SECOND', DATEADD('hour', -2, CURRENT_TIMESTAMP())), 'time_end': DATE_PART('EPOCH_SECOND', DATEADD('hour', -1, CURRENT_TIMESTAMP())), 'id': '15478,15479'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get('/v2/cryptocurrency/ohlcv/historical' , {'interval': 'hourly', 'time_period': 'hourly', 'time_start': DATE_PART('EPOCH_SECOND', DATEADD('hour', -2, CURRENT_TIMESTAMP())), 'time_end': DATE_PART('EPOCH_SECOND', DATEADD('hour', -1, CURRENT_TIMESTAMP())), 'id': '15478,15479'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get('/v2/cryptocurrency/ohlcv/historical' , {'interval': 'hourly', 'time_period': 'hourly', 'time_start': DATE_PART('EPOCH_SECOND', DATEADD('hour', -2, CURRENT_TIMESTAMP())), 'time_end': DATE_PART('EPOCH_SECOND', DATEADD('hour', -1, CURRENT_TIMESTAMP())), 'id': '15478,15479'})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.cmc__", "sql": " __dbt__cte__cmc__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'cmc' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get", "file_key_name": "models.cmc__", "attached_node": "model.livequery_models.cmc__"}, "test.livequery_models.test_apilayer__get_status_200.f739b0d36b": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'/odds/sports' , {'all': 'true'}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get", "model": "{{ get_where_subquery(ref('apilayer__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_apilayer", "name": "test_apilayer__get_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_apilayer__get_status_200.sql", "original_file_path": "models/deploy/marketplace/apilayer/apilayer__.yml", "unique_id": "test.livequery_models.test_apilayer__get_status_200.f739b0d36b", "fqn": ["livequery_models", "deploy", "marketplace", "apilayer", "test_apilayer__get_status_200"], "alias": "get_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.3613951, "relation_name": "EXTERNAL.test_apilayer.get_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "apilayer__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.apilayer__"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/apilayer/apilayer__.yml/test_apilayer__get_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__apilayer__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'apilayer' as schema_\n) ,\ntest AS\n(\n SELECT\n 'get.get' AS test_name\n ,['/odds/sports' , {'all': 'true'}] as parameters\n ,EXTERNAL.get.get('/odds/sports' , {'all': 'true'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get('/odds/sports' , {'all': 'true'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get('/odds/sports' , {'all': 'true'})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.apilayer__", "sql": " __dbt__cte__apilayer__ as (\n-- depends_on: __dbt__cte__live\nSELECT 'apilayer' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get", "file_key_name": "models.apilayer__", "attached_node": "model.livequery_models.apilayer__"}, "test.livequery_models.test_alchemy_tokens__get_token_allowance_status_200.65ce803e24": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', [{'contract': '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270', 'owner': '0xf1a726210550c306a9964b251cbcd3fa5ecb275d', 'spender': '0xdef1c0ded9bec7f1a1670819833240f027b25eff'}]\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_token_allowance", "model": "{{ get_where_subquery(ref('alchemy_tokens__alchemy_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_alchemy_tokens", "name": "test_alchemy_tokens__get_token_allowance_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_tokens__get_token_allowance_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_tokens__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_tokens__get_token_allowance_status_200.65ce803e24", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_tokens__get_token_allowance_status_200"], "alias": "get_token_allowance_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.3695588, "relation_name": "EXTERNAL.test_alchemy_tokens.get_token_allowance_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_tokens__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_tokens__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_tokens__alchemy_utils.yml/test_alchemy_tokens__get_token_allowance_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_tokens__alchemy_utils as (\n\nSELECT 'alchemy_tokens' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'get.get_token_allowance' AS test_name\n ,['eth-mainnet', [{'contract': '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270', 'owner': '0xf1a726210550c306a9964b251cbcd3fa5ecb275d', 'spender': '0xdef1c0ded9bec7f1a1670819833240f027b25eff'}]] as parameters\n ,EXTERNAL.get.get_token_allowance('eth-mainnet', [{'contract': '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270', 'owner': '0xf1a726210550c306a9964b251cbcd3fa5ecb275d', 'spender': '0xdef1c0ded9bec7f1a1670819833240f027b25eff'}]) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_token_allowance('eth-mainnet', [{'contract': '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270', 'owner': '0xf1a726210550c306a9964b251cbcd3fa5ecb275d', 'spender': '0xdef1c0ded9bec7f1a1670819833240f027b25eff'}])\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_token_allowance('eth-mainnet', [{'contract': '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270', 'owner': '0xf1a726210550c306a9964b251cbcd3fa5ecb275d', 'spender': '0xdef1c0ded9bec7f1a1670819833240f027b25eff'}])\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_tokens__alchemy_utils", "sql": " __dbt__cte__alchemy_tokens__alchemy_utils as (\n\nSELECT 'alchemy_tokens' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_token_allowance", "file_key_name": "models.alchemy_tokens__alchemy_utils", "attached_node": "model.livequery_models.alchemy_tokens__alchemy_utils"}, "test.livequery_models.test_alchemy_tokens__get_token_balances_status_200.bdaa3fdabb": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', ['0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5', 'erc20']\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_token_balances", "model": "{{ get_where_subquery(ref('alchemy_tokens__alchemy_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_alchemy_tokens", "name": "test_alchemy_tokens__get_token_balances_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_tokens__get_token_balances_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_tokens__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_tokens__get_token_balances_status_200.bdaa3fdabb", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_tokens__get_token_balances_status_200"], "alias": "get_token_balances_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.3760087, "relation_name": "EXTERNAL.test_alchemy_tokens.get_token_balances_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_tokens__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_tokens__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_tokens__alchemy_utils.yml/test_alchemy_tokens__get_token_balances_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_tokens__alchemy_utils as (\n\nSELECT 'alchemy_tokens' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'get.get_token_balances' AS test_name\n ,['eth-mainnet', ['0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5', 'erc20']] as parameters\n ,EXTERNAL.get.get_token_balances('eth-mainnet', ['0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5', 'erc20']) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_token_balances('eth-mainnet', ['0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5', 'erc20'])\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_token_balances('eth-mainnet', ['0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5', 'erc20'])\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_tokens__alchemy_utils", "sql": " __dbt__cte__alchemy_tokens__alchemy_utils as (\n\nSELECT 'alchemy_tokens' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_token_balances", "file_key_name": "models.alchemy_tokens__alchemy_utils", "attached_node": "model.livequery_models.alchemy_tokens__alchemy_utils"}, "test.livequery_models.test_alchemy_tokens__get_token_metadata_status_200.ff08820c76": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', ['0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48']\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_token_metadata", "model": "{{ get_where_subquery(ref('alchemy_tokens__alchemy_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_alchemy_tokens", "name": "test_alchemy_tokens__get_token_metadata_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_tokens__get_token_metadata_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_tokens__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_tokens__get_token_metadata_status_200.ff08820c76", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_tokens__get_token_metadata_status_200"], "alias": "get_token_metadata_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.3826134, "relation_name": "EXTERNAL.test_alchemy_tokens.get_token_metadata_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_tokens__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_tokens__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_tokens__alchemy_utils.yml/test_alchemy_tokens__get_token_metadata_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_tokens__alchemy_utils as (\n\nSELECT 'alchemy_tokens' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'get.get_token_metadata' AS test_name\n ,['eth-mainnet', ['0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48']] as parameters\n ,EXTERNAL.get.get_token_metadata('eth-mainnet', ['0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48']) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_token_metadata('eth-mainnet', ['0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48'])\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_token_metadata('eth-mainnet', ['0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48'])\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_tokens__alchemy_utils", "sql": " __dbt__cte__alchemy_tokens__alchemy_utils as (\n\nSELECT 'alchemy_tokens' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_token_metadata", "file_key_name": "models.alchemy_tokens__alchemy_utils", "attached_node": "model.livequery_models.alchemy_tokens__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__get_nfts_status_200.34e3001576": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'owner': '0x4a9318F375937B56045E5a548e7E66AEA61Dd610'}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_nfts", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__get_nfts_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__get_nfts_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__get_nfts_status_200.34e3001576", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__get_nfts_status_200"], "alias": "get_nfts_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.3985393, "relation_name": "EXTERNAL.test_alchemy_nfts.get_nfts_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__get_nfts_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'get.get_nfts' AS test_name\n ,['eth-mainnet', {'owner': '0x4a9318F375937B56045E5a548e7E66AEA61Dd610'}] as parameters\n ,EXTERNAL.get.get_nfts('eth-mainnet', {'owner': '0x4a9318F375937B56045E5a548e7E66AEA61Dd610'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_nfts('eth-mainnet', {'owner': '0x4a9318F375937B56045E5a548e7E66AEA61Dd610'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_nfts('eth-mainnet', {'owner': '0x4a9318F375937B56045E5a548e7E66AEA61Dd610'})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_nfts", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__get_owners_for_token_status_200.c534c2579d": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_owners_for_token", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__get_owners_for_token_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__get_owners_for_token_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__get_owners_for_token_status_200.c534c2579d", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__get_owners_for_token_status_200"], "alias": "get_owners_for_token_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.40514, "relation_name": "EXTERNAL.test_alchemy_nfts.get_owners_for_token_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__get_owners_for_token_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'get.get_owners_for_token' AS test_name\n ,['eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44}] as parameters\n ,EXTERNAL.get.get_owners_for_token('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_owners_for_token('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_owners_for_token('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_owners_for_token", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__get_owners_for_collection_status_200.3cdb9f0962": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'withTokenBalances': True}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_owners_for_collection", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__get_owners_for_collection_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__get_owners_for_collection_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__get_owners_for_collection_status_200.3cdb9f0962", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__get_owners_for_collection_status_200"], "alias": "get_owners_for_collection_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.411152, "relation_name": "EXTERNAL.test_alchemy_nfts.get_owners_for_collection_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__get_owners_for_collection_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'get.get_owners_for_collection' AS test_name\n ,['eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'withTokenBalances': True}] as parameters\n ,EXTERNAL.get.get_owners_for_collection('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'withTokenBalances': True}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_owners_for_collection('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'withTokenBalances': True})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_owners_for_collection('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'withTokenBalances': True})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_owners_for_collection", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__is_holder_of_collection_status_200.d94f7ae355": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'wallet': '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045', 'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "is_holder_of_collection", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__is_holder_of_collection_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__is_holder_of_collection_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__is_holder_of_collection_status_200.d94f7ae355", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__is_holder_of_collection_status_200"], "alias": "is_holder_of_collection_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.4179263, "relation_name": "EXTERNAL.test_alchemy_nfts.is_holder_of_collection_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__is_holder_of_collection_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'is.is_holder_of_collection' AS test_name\n ,['eth-mainnet', {'wallet': '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045', 'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'}] as parameters\n ,EXTERNAL.is.is_holder_of_collection('eth-mainnet', {'wallet': '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045', 'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.is.is_holder_of_collection('eth-mainnet', {'wallet': '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045', 'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.is.is_holder_of_collection('eth-mainnet', {'wallet': '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045', 'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "is_holder_of_collection", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__get_contracts_for_owner_status_200.29e9e60296": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'owner': 'vitalik.eth', 'pageSize': 100, 'page': 1}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_contracts_for_owner", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__get_contracts_for_owner_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__get_contracts_for_owner_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__get_contracts_for_owner_status_200.29e9e60296", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__get_contracts_for_owner_status_200"], "alias": "get_contracts_for_owner_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.424112, "relation_name": "EXTERNAL.test_alchemy_nfts.get_contracts_for_owner_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__get_contracts_for_owner_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'get.get_contracts_for_owner' AS test_name\n ,['eth-mainnet', {'owner': 'vitalik.eth', 'pageSize': 100, 'page': 1}] as parameters\n ,EXTERNAL.get.get_contracts_for_owner('eth-mainnet', {'owner': 'vitalik.eth', 'pageSize': 100, 'page': 1}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_contracts_for_owner('eth-mainnet', {'owner': 'vitalik.eth', 'pageSize': 100, 'page': 1})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_contracts_for_owner('eth-mainnet', {'owner': 'vitalik.eth', 'pageSize': 100, 'page': 1})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_contracts_for_owner", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__get_nft_metadata_status_200.aad531a83a": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_nft_metadata", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__get_nft_metadata_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__get_nft_metadata_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__get_nft_metadata_status_200.aad531a83a", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__get_nft_metadata_status_200"], "alias": "get_nft_metadata_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.4303458, "relation_name": "EXTERNAL.test_alchemy_nfts.get_nft_metadata_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__get_nft_metadata_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'get.get_nft_metadata' AS test_name\n ,['eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44}] as parameters\n ,EXTERNAL.get.get_nft_metadata('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_nft_metadata('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_nft_metadata('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_nft_metadata", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__get_nft_metadata_batch_status_200.44d0ef0140": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'tokens': [{'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44}, {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 43}]}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_nft_metadata_batch", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__get_nft_metadata_batch_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__get_nft_metadata_batch_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__get_nft_metadata_batch_status_200.44d0ef0140", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__get_nft_metadata_batch_status_200"], "alias": "get_nft_metadata_batch_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.4359727, "relation_name": "EXTERNAL.test_alchemy_nfts.get_nft_metadata_batch_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__get_nft_metadata_batch_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'get.get_nft_metadata_batch' AS test_name\n ,['eth-mainnet', {'tokens': [{'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44}, {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 43}]}] as parameters\n ,EXTERNAL.get.get_nft_metadata_batch('eth-mainnet', {'tokens': [{'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44}, {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 43}]}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_nft_metadata_batch('eth-mainnet', {'tokens': [{'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44}, {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 43}]})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_nft_metadata_batch('eth-mainnet', {'tokens': [{'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44}, {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 43}]})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_nft_metadata_batch", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__get_contract_metadata_status_200.0a9337a17a": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_contract_metadata", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__get_contract_metadata_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__get_contract_metadata_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__get_contract_metadata_status_200.0a9337a17a", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__get_contract_metadata_status_200"], "alias": "get_contract_metadata_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.442458, "relation_name": "EXTERNAL.test_alchemy_nfts.get_contract_metadata_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__get_contract_metadata_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'get.get_contract_metadata' AS test_name\n ,['eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'}] as parameters\n ,EXTERNAL.get.get_contract_metadata('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_contract_metadata('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_contract_metadata('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_contract_metadata", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__get_contract_metadata_batch_status_200.78a02ffe28": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'contractAddresses': ['0xe785E82358879F061BC3dcAC6f0444462D4b5330', '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d']}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_contract_metadata_batch", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__get_contract_metadata_batch_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__get_contract_metadata_batch_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__get_contract_metadata_batch_status_200.78a02ffe28", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__get_contract_metadata_batch_status_200"], "alias": "get_contract_metadata_batch_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.448707, "relation_name": "EXTERNAL.test_alchemy_nfts.get_contract_metadata_batch_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__get_contract_metadata_batch_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'get.get_contract_metadata_batch' AS test_name\n ,['eth-mainnet', {'contractAddresses': ['0xe785E82358879F061BC3dcAC6f0444462D4b5330', '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d']}] as parameters\n ,EXTERNAL.get.get_contract_metadata_batch('eth-mainnet', {'contractAddresses': ['0xe785E82358879F061BC3dcAC6f0444462D4b5330', '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d']}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_contract_metadata_batch('eth-mainnet', {'contractAddresses': ['0xe785E82358879F061BC3dcAC6f0444462D4b5330', '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d']})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_contract_metadata_batch('eth-mainnet', {'contractAddresses': ['0xe785E82358879F061BC3dcAC6f0444462D4b5330', '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d']})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_contract_metadata_batch", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__invalidate_contract_status_200.1ac32b4945": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "invalidate_contract", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__invalidate_contract_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__invalidate_contract_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__invalidate_contract_status_200.1ac32b4945", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__invalidate_contract_status_200"], "alias": "invalidate_contract_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.4547045, "relation_name": "EXTERNAL.test_alchemy_nfts.invalidate_contract_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__invalidate_contract_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'invalidate.invalidate_contract' AS test_name\n ,['eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'}] as parameters\n ,EXTERNAL.invalidate.invalidate_contract('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.invalidate.invalidate_contract('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.invalidate.invalidate_contract('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "invalidate_contract", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__reingest_contract_status_200.3c2c45fd00": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "reingest_contract", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__reingest_contract_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__reingest_contract_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__reingest_contract_status_200.3c2c45fd00", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__reingest_contract_status_200"], "alias": "reingest_contract_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.4605432, "relation_name": "EXTERNAL.test_alchemy_nfts.reingest_contract_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__reingest_contract_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'reingest.reingest_contract' AS test_name\n ,['eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'}] as parameters\n ,EXTERNAL.reingest.reingest_contract('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.reingest.reingest_contract('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.reingest.reingest_contract('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "reingest_contract", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__search_contract_metadata_status_200.1e97937b32": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'query': 'bored'}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "search_contract_metadata", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__search_contract_metadata_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__search_contract_metadata_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__search_contract_metadata_status_200.1e97937b32", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__search_contract_metadata_status_200"], "alias": "search_contract_metadata_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.4664054, "relation_name": "EXTERNAL.test_alchemy_nfts.search_contract_metadata_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__search_contract_metadata_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'search.search_contract_metadata' AS test_name\n ,['eth-mainnet', {'query': 'bored'}] as parameters\n ,EXTERNAL.search.search_contract_metadata('eth-mainnet', {'query': 'bored'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.search.search_contract_metadata('eth-mainnet', {'query': 'bored'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.search.search_contract_metadata('eth-mainnet', {'query': 'bored'})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "search_contract_metadata", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__get_nfts_for_collection_status_200.f7ff9b5ee5": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'withMetadata': True}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_nfts_for_collection", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__get_nfts_for_collection_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__get_nfts_for_collection_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__get_nfts_for_collection_status_200.f7ff9b5ee5", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__get_nfts_for_collection_status_200"], "alias": "get_nfts_for_collection_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.472349, "relation_name": "EXTERNAL.test_alchemy_nfts.get_nfts_for_collection_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__get_nfts_for_collection_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'get.get_nfts_for_collection' AS test_name\n ,['eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'withMetadata': True}] as parameters\n ,EXTERNAL.get.get_nfts_for_collection('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'withMetadata': True}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_nfts_for_collection('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'withMetadata': True})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_nfts_for_collection('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'withMetadata': True})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_nfts_for_collection", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__get_spam_contracts_status_200.b9dfb4e306": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_spam_contracts", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__get_spam_contracts_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__get_spam_contracts_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__get_spam_contracts_status_200.b9dfb4e306", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__get_spam_contracts_status_200"], "alias": "get_spam_contracts_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.4785228, "relation_name": "EXTERNAL.test_alchemy_nfts.get_spam_contracts_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__get_spam_contracts_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'get.get_spam_contracts' AS test_name\n ,['eth-mainnet', {}] as parameters\n ,EXTERNAL.get.get_spam_contracts('eth-mainnet', {}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_spam_contracts('eth-mainnet', {})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_spam_contracts('eth-mainnet', {})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_spam_contracts", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__is_spam_contract_status_200.91af21989f": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "is_spam_contract", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__is_spam_contract_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__is_spam_contract_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__is_spam_contract_status_200.91af21989f", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__is_spam_contract_status_200"], "alias": "is_spam_contract_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.4846742, "relation_name": "EXTERNAL.test_alchemy_nfts.is_spam_contract_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__is_spam_contract_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'is.is_spam_contract' AS test_name\n ,['eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'}] as parameters\n ,EXTERNAL.is.is_spam_contract('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.is.is_spam_contract('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.is.is_spam_contract('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "is_spam_contract", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__is_airdrop_status_200.58ce4f1bdc": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "is_airdrop", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__is_airdrop_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__is_airdrop_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__is_airdrop_status_200.58ce4f1bdc", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__is_airdrop_status_200"], "alias": "is_airdrop_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.4902496, "relation_name": "EXTERNAL.test_alchemy_nfts.is_airdrop_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__is_airdrop_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'is.is_airdrop' AS test_name\n ,['eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44}] as parameters\n ,EXTERNAL.is.is_airdrop('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.is.is_airdrop('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.is.is_airdrop('eth-mainnet', {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "is_airdrop", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__get_floor_price_status_200.f2125d71e4": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'contractAddress': '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d'}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_floor_price", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__get_floor_price_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__get_floor_price_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__get_floor_price_status_200.f2125d71e4", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__get_floor_price_status_200"], "alias": "get_floor_price_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.5020876, "relation_name": "EXTERNAL.test_alchemy_nfts.get_floor_price_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__get_floor_price_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'get.get_floor_price' AS test_name\n ,['eth-mainnet', {'contractAddress': '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d'}] as parameters\n ,EXTERNAL.get.get_floor_price('eth-mainnet', {'contractAddress': '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_floor_price('eth-mainnet', {'contractAddress': '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_floor_price('eth-mainnet', {'contractAddress': '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d'})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_floor_price", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__get_nft_sales_status_200.223f727f9f": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'fromBlock': 0, 'toBlock': 'latest', 'order': 'asc', 'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_nft_sales", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__get_nft_sales_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__get_nft_sales_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__get_nft_sales_status_200.223f727f9f", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__get_nft_sales_status_200"], "alias": "get_nft_sales_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.5080128, "relation_name": "EXTERNAL.test_alchemy_nfts.get_nft_sales_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__get_nft_sales_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'get.get_nft_sales' AS test_name\n ,['eth-mainnet', {'fromBlock': 0, 'toBlock': 'latest', 'order': 'asc', 'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44}] as parameters\n ,EXTERNAL.get.get_nft_sales('eth-mainnet', {'fromBlock': 0, 'toBlock': 'latest', 'order': 'asc', 'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_nft_sales('eth-mainnet', {'fromBlock': 0, 'toBlock': 'latest', 'order': 'asc', 'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_nft_sales('eth-mainnet', {'fromBlock': 0, 'toBlock': 'latest', 'order': 'asc', 'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': 44})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_nft_sales", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__compute_rarity_status_200.942425aa31": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'tokenId': 3603, 'contractAddress': '0xb6a37b5d14d502c3ab0ae6f3a0e058bc9517786e'}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "compute_rarity", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__compute_rarity_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__compute_rarity_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__compute_rarity_status_200.942425aa31", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__compute_rarity_status_200"], "alias": "compute_rarity_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.5141995, "relation_name": "EXTERNAL.test_alchemy_nfts.compute_rarity_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__compute_rarity_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'compute.compute_rarity' AS test_name\n ,['eth-mainnet', {'tokenId': 3603, 'contractAddress': '0xb6a37b5d14d502c3ab0ae6f3a0e058bc9517786e'}] as parameters\n ,EXTERNAL.compute.compute_rarity('eth-mainnet', {'tokenId': 3603, 'contractAddress': '0xb6a37b5d14d502c3ab0ae6f3a0e058bc9517786e'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.compute.compute_rarity('eth-mainnet', {'tokenId': 3603, 'contractAddress': '0xb6a37b5d14d502c3ab0ae6f3a0e058bc9517786e'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.compute.compute_rarity('eth-mainnet', {'tokenId': 3603, 'contractAddress': '0xb6a37b5d14d502c3ab0ae6f3a0e058bc9517786e'})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "compute_rarity", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_nfts__summarize_nft_attributes_status_200.99d7f57e35": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', {'contractAddress': '0xb6a37b5d14d502c3ab0ae6f3a0e058bc9517786e'}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "summarize_nft_attributes", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__summarize_nft_attributes_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__summarize_nft_attributes_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__summarize_nft_attributes_status_200.99d7f57e35", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__summarize_nft_attributes_status_200"], "alias": "summarize_nft_attributes_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.520899, "relation_name": "EXTERNAL.test_alchemy_nfts.summarize_nft_attributes_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_nfts__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml/test_alchemy_nfts__summarize_nft_attributes_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'summarize.summarize_nft_attributes' AS test_name\n ,['eth-mainnet', {'contractAddress': '0xb6a37b5d14d502c3ab0ae6f3a0e058bc9517786e'}] as parameters\n ,EXTERNAL.summarize.summarize_nft_attributes('eth-mainnet', {'contractAddress': '0xb6a37b5d14d502c3ab0ae6f3a0e058bc9517786e'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.summarize.summarize_nft_attributes('eth-mainnet', {'contractAddress': '0xb6a37b5d14d502c3ab0ae6f3a0e058bc9517786e'})\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.summarize.summarize_nft_attributes('eth-mainnet', {'contractAddress': '0xb6a37b5d14d502c3ab0ae6f3a0e058bc9517786e'})\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_nfts__alchemy_utils", "sql": " __dbt__cte__alchemy_nfts__alchemy_utils as (\n\nSELECT 'alchemy_nfts' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "summarize_nft_attributes", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}, "test.livequery_models.test_alchemy_transfers__get_asset_transfers_status_200.f1f3f416e4": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'eth-mainnet', [{'fromBlock': '0x0', 'toBlock': 'latest', 'toAddress': '0x5c43B1eD97e52d009611D89b74fA829FE4ac56b1', 'category': ['external'], 'withMetadata': True, 'excludeZeroValue': True}]\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get_asset_transfers", "model": "{{ get_where_subquery(ref('alchemy_transfers__alchemy_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_alchemy_transfers", "name": "test_alchemy_transfers__get_asset_transfers_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_transfers__get_asset_transfers_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_transfers__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_transfers__get_asset_transfers_status_200.f1f3f416e4", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_transfers__get_asset_transfers_status_200"], "alias": "get_asset_transfers_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.528419, "relation_name": "EXTERNAL.test_alchemy_transfers.get_asset_transfers_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "alchemy_transfers__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.alchemy_transfers__alchemy_utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/marketplace/alchemy/alchemy_transfers__alchemy_utils.yml/test_alchemy_transfers__get_asset_transfers_status_200.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n), __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n), __dbt__cte__alchemy_transfers__alchemy_utils as (\n\nSELECT 'alchemy_transfers' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n) ,\ntest AS\n(\n SELECT\n 'get.get_asset_transfers' AS test_name\n ,['eth-mainnet', [{'fromBlock': '0x0', 'toBlock': 'latest', 'toAddress': '0x5c43B1eD97e52d009611D89b74fA829FE4ac56b1', 'category': ['external'], 'withMetadata': True, 'excludeZeroValue': True}]] as parameters\n ,EXTERNAL.get.get_asset_transfers('eth-mainnet', [{'fromBlock': '0x0', 'toBlock': 'latest', 'toAddress': '0x5c43B1eD97e52d009611D89b74fA829FE4ac56b1', 'category': ['external'], 'withMetadata': True, 'excludeZeroValue': True}]) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:status_code = 200$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_asset_transfers('eth-mainnet', [{'fromBlock': '0x0', 'toBlock': 'latest', 'toAddress': '0x5c43B1eD97e52d009611D89b74fA829FE4ac56b1', 'category': ['external'], 'withMetadata': True, 'excludeZeroValue': True}])\n;$$ AS sql\n FROM test\n WHERE NOT result:status_code = 200\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:error IS NULL$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.get.get_asset_transfers('eth-mainnet', [{'fromBlock': '0x0', 'toBlock': 'latest', 'toAddress': '0x5c43B1eD97e52d009611D89b74fA829FE4ac56b1', 'category': ['external'], 'withMetadata': True, 'excludeZeroValue': True}])\n;$$ AS sql\n FROM test\n WHERE NOT result:error IS NULL\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}, {"id": "model.livequery_models.alchemy_utils__alchemy_utils", "sql": " __dbt__cte__alchemy_utils__alchemy_utils as (\n-- depends_on: __dbt__cte__live\nSELECT 'alchemy_utils' as schema_\n)"}, {"id": "model.livequery_models.alchemy_transfers__alchemy_utils", "sql": " __dbt__cte__alchemy_transfers__alchemy_utils as (\n\nSELECT 'alchemy_transfers' as schema_-- depends_on: __dbt__cte__alchemy_utils__alchemy_utils\n-- depends_on: __dbt__cte__live\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get_asset_transfers", "file_key_name": "models.alchemy_transfers__alchemy_utils", "attached_node": "model.livequery_models.alchemy_transfers__alchemy_utils"}, "test.livequery_models.test__live_udf_api_post_data_object.208f9d5456": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'https://httpbin.org/post', {'foo': 'bar'}\n", "assertions": ["result:data.json is not null", "result:data.json = OBJECT_CONSTRUCT('foo', 'bar')"], "column_name": "udf_api", "model": "{{ get_where_subquery(ref('live')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__live_udf_api_post_data_object", "resource_type": "test", "package_name": "livequery_models", "path": "test__live_udf_api_post_data_object.sql", "original_file_path": "models/deploy/core/live.yml", "unique_id": "test.livequery_models.test__live_udf_api_post_data_object.208f9d5456", "fqn": ["livequery_models", "deploy", "core", "test__live_udf_api_post_data_object"], "alias": "live_udf_api_post_data_object", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.5488932, "relation_name": "EXTERNAL.test.live_udf_api_post_data_object", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.yml/test__live_udf_api_post_data_object.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) ,\ntest AS\n(\n SELECT\n 'live.udf_api' AS test_name\n ,['https://httpbin.org/post', {'foo': 'bar'}] as parameters\n ,EXTERNAL.live.udf_api('https://httpbin.org/post', {'foo': 'bar'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:data.json is not null$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.live.udf_api('https://httpbin.org/post', {'foo': 'bar'})\n;$$ AS sql\n FROM test\n WHERE NOT result:data.json is not null\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:data.json = OBJECT_CONSTRUCT('foo', 'bar')$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.live.udf_api('https://httpbin.org/post', {'foo': 'bar'})\n;$$ AS sql\n FROM test\n WHERE NOT result:data.json = OBJECT_CONSTRUCT('foo', 'bar')\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_api", "file_key_name": "models.live", "attached_node": "model.livequery_models.live"}, "test.livequery_models.test__live_udf_api_post_data_array.f30e6de8c8": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'https://httpbin.org/post', ['foo', 'bar']\n", "assertions": ["result:data.json is not null", "result:data.json = ARRAY_CONSTRUCT('foo', 'bar')"], "column_name": "udf_api", "model": "{{ get_where_subquery(ref('live')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__live_udf_api_post_data_array", "resource_type": "test", "package_name": "livequery_models", "path": "test__live_udf_api_post_data_array.sql", "original_file_path": "models/deploy/core/live.yml", "unique_id": "test.livequery_models.test__live_udf_api_post_data_array.f30e6de8c8", "fqn": ["livequery_models", "deploy", "core", "test__live_udf_api_post_data_array"], "alias": "live_udf_api_post_data_array", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.5558572, "relation_name": "EXTERNAL.test.live_udf_api_post_data_array", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.yml/test__live_udf_api_post_data_array.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) ,\ntest AS\n(\n SELECT\n 'live.udf_api' AS test_name\n ,['https://httpbin.org/post', ['foo', 'bar']] as parameters\n ,EXTERNAL.live.udf_api('https://httpbin.org/post', ['foo', 'bar']) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:data.json is not null$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.live.udf_api('https://httpbin.org/post', ['foo', 'bar'])\n;$$ AS sql\n FROM test\n WHERE NOT result:data.json is not null\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:data.json = ARRAY_CONSTRUCT('foo', 'bar')$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.live.udf_api('https://httpbin.org/post', ['foo', 'bar'])\n;$$ AS sql\n FROM test\n WHERE NOT result:data.json = ARRAY_CONSTRUCT('foo', 'bar')\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_api", "file_key_name": "models.live", "attached_node": "model.livequery_models.live"}, "test.livequery_models.test__live_udf_api_post_data_string.e2159319bb": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'https://httpbin.org/post', 'foo'::VARIANT\n", "assertions": ["result:data.json is not null", "result:data.json = 'foo'"], "column_name": "udf_api", "model": "{{ get_where_subquery(ref('live')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__live_udf_api_post_data_string", "resource_type": "test", "package_name": "livequery_models", "path": "test__live_udf_api_post_data_string.sql", "original_file_path": "models/deploy/core/live.yml", "unique_id": "test.livequery_models.test__live_udf_api_post_data_string.e2159319bb", "fqn": ["livequery_models", "deploy", "core", "test__live_udf_api_post_data_string"], "alias": "live_udf_api_post_data_string", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.562422, "relation_name": "EXTERNAL.test.live_udf_api_post_data_string", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "live", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.live"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/live.yml/test__live_udf_api_post_data_string.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n), __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n), __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n) ,\ntest AS\n(\n SELECT\n 'live.udf_api' AS test_name\n ,['https://httpbin.org/post', 'foo'::VARIANT] as parameters\n ,EXTERNAL.live.udf_api('https://httpbin.org/post', 'foo'::VARIANT) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result:data.json is not null$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.live.udf_api('https://httpbin.org/post', 'foo'::VARIANT)\n;$$ AS sql\n FROM test\n WHERE NOT result:data.json is not null\n UNION ALL\n SELECT\n test_name,\n parameters,\n result,\n $$result:data.json = 'foo'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.live.udf_api('https://httpbin.org/post', 'foo'::VARIANT)\n;$$ AS sql\n FROM test\n WHERE NOT result:data.json = 'foo'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}, {"id": "model.livequery_models._live", "sql": " __dbt__cte___live as (\n\n\n\n SELECT '_live' as schema_\n)"}, {"id": "model.livequery_models.live", "sql": " __dbt__cte__live as (\n-- depends_on: __dbt__cte___utils\n-- depends_on: __dbt__cte__utils\n-- depends_on: __dbt__cte___live\n\n\n\n SELECT 'live' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_api", "file_key_name": "models.live", "attached_node": "model.livequery_models.live"}, "test.livequery_models.test___utils_udf_introspect.79bd27a18b": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'hello'", "assertions": ["result = 'hello'"], "column_name": "udf_introspect", "model": "{{ get_where_subquery(ref('_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test___utils_udf_introspect", "resource_type": "test", "package_name": "livequery_models", "path": "test___utils_udf_introspect.sql", "original_file_path": "models/deploy/core/_utils.yml", "unique_id": "test.livequery_models.test___utils_udf_introspect.79bd27a18b", "fqn": ["livequery_models", "deploy", "core", "test___utils_udf_introspect"], "alias": "_utils_udf_introspect", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.5701046, "relation_name": "EXTERNAL.test._utils_udf_introspect", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models._utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/_utils.yml/test___utils_udf_introspect.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n) ,\ntest AS\n(\n SELECT\n '_utils.udf_introspect' AS test_name\n ,['hello'] as parameters\n ,EXTERNAL._utils.udf_introspect('hello') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'hello'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL._utils.udf_introspect('hello')\n;$$ AS sql\n FROM test\n WHERE NOT result = 'hello'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_introspect", "file_key_name": "models._utils", "attached_node": "model.livequery_models._utils"}, "test.livequery_models.test__utils_udf_json_rpc_call.0b87c6050e": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'foo', [], 1", "assertions": ["result = {\n 'jsonrpc': '2.0',\n 'method': 'foo',\n 'params': [],\n 'id': '1'\n}\n"], "column_name": "udf_json_rpc_call", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_json_rpc_call", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_json_rpc_call.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_json_rpc_call.0b87c6050e", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_json_rpc_call"], "alias": "utils_udf_json_rpc_call", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.579659, "relation_name": "EXTERNAL.test.utils_udf_json_rpc_call", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_json_rpc_call.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_json_rpc_call' AS test_name\n ,['foo', [], 1] as parameters\n ,EXTERNAL.utils.udf_json_rpc_call('foo', [], 1) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = {\n 'jsonrpc': '2.0',\n 'method': 'foo',\n 'params': [],\n 'id': '1'\n}$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_json_rpc_call('foo', [], 1)\n;$$ AS sql\n FROM test\n WHERE NOT result = {\n 'jsonrpc': '2.0',\n 'method': 'foo',\n 'params': [],\n 'id': '1'\n}\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_json_rpc_call", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_dict_true_1.3bf42c4e1b": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{'a':'b'}, TRUE\n", "assertions": ["result = 'a=b'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_urlencode_dict_true_1", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_dict_true_1.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_dict_true_1.3bf42c4e1b", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_dict_true_1"], "alias": "utils_udf_urlencode_dict_true_1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.5854712, "relation_name": "EXTERNAL.test.utils_udf_urlencode_dict_true_1", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_dict_true_1.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[{'a':'b'}, TRUE] as parameters\n ,EXTERNAL.utils.udf_urlencode({'a':'b'}, TRUE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'a=b'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_urlencode({'a':'b'}, TRUE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'a=b'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_dict_true_2.764afd6db8": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{'a':'a', 'b':'b'}, TRUE\n", "assertions": ["result = 'a=a&b=b'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_urlencode_dict_true_2", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_dict_true_2.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_dict_true_2.764afd6db8", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_dict_true_2"], "alias": "utils_udf_urlencode_dict_true_2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.5913653, "relation_name": "EXTERNAL.test.utils_udf_urlencode_dict_true_2", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_dict_true_2.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[{'a':'a', 'b':'b'}, TRUE] as parameters\n ,EXTERNAL.utils.udf_urlencode({'a':'a', 'b':'b'}, TRUE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'a=a&b=b'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_urlencode({'a':'a', 'b':'b'}, TRUE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'a=a&b=b'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_dict_true_space.11f0932fc3": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{'space': 'abc 123'}, TRUE\n", "assertions": ["result = 'space=abc+123'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_urlencode_dict_true_space", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_dict_true_space.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_dict_true_space.11f0932fc3", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_dict_true_space"], "alias": "utils_udf_urlencode_dict_true_space", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.5970263, "relation_name": "EXTERNAL.test.utils_udf_urlencode_dict_true_space", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_dict_true_space.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[{'space': 'abc 123'}, TRUE] as parameters\n ,EXTERNAL.utils.udf_urlencode({'space': 'abc 123'}, TRUE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'space=abc+123'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_urlencode({'space': 'abc 123'}, TRUE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'space=abc+123'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_dict_true_special.4eef6cb355": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{'special!': ' !@#$,+\"'}, TRUE\n", "assertions": ["result = 'special%21=+%21%40%23%24%2C%2B%22'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_urlencode_dict_true_special", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_dict_true_special.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_dict_true_special.4eef6cb355", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_dict_true_special"], "alias": "utils_udf_urlencode_dict_true_special", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.6029851, "relation_name": "EXTERNAL.test.utils_udf_urlencode_dict_true_special", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_dict_true_special.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[{'special!': ' !@#$,+\"'}, TRUE] as parameters\n ,EXTERNAL.utils.udf_urlencode({'special!': ' !@#$,+\"'}, TRUE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'special%21=+%21%40%23%24%2C%2B%22'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_urlencode({'special!': ' !@#$,+\"'}, TRUE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'special%21=+%21%40%23%24%2C%2B%22'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_dict_true_array.614d53ca8a": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{'array': [0, 1, 2]}, TRUE\n", "assertions": ["result = 'array=0&array=1&array=2'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_urlencode_dict_true_array", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_dict_true_array.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_dict_true_array.614d53ca8a", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_dict_true_array"], "alias": "utils_udf_urlencode_dict_true_array", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.6088479, "relation_name": "EXTERNAL.test.utils_udf_urlencode_dict_true_array", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_dict_true_array.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[{'array': [0, 1, 2]}, TRUE] as parameters\n ,EXTERNAL.utils.udf_urlencode({'array': [0, 1, 2]}, TRUE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'array=0&array=1&array=2'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_urlencode({'array': [0, 1, 2]}, TRUE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'array=0&array=1&array=2'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_dict_false_1.e2e07ad77a": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{'a':'b'}, FALSE\n", "assertions": ["result = 'a=b'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_urlencode_dict_false_1", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_dict_false_1.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_dict_false_1.e2e07ad77a", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_dict_false_1"], "alias": "utils_udf_urlencode_dict_false_1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.6153398, "relation_name": "EXTERNAL.test.utils_udf_urlencode_dict_false_1", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_dict_false_1.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[{'a':'b'}, FALSE] as parameters\n ,EXTERNAL.utils.udf_urlencode({'a':'b'}, FALSE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'a=b'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_urlencode({'a':'b'}, FALSE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'a=b'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_dict_false_2.58739709ab": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{'a':'b', 'b':'b'}, FALSE\n", "assertions": ["result = 'a=b&b=b'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_urlencode_dict_false_2", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_dict_false_2.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_dict_false_2.58739709ab", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_dict_false_2"], "alias": "utils_udf_urlencode_dict_false_2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.6206365, "relation_name": "EXTERNAL.test.utils_udf_urlencode_dict_false_2", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_dict_false_2.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[{'a':'b', 'b':'b'}, FALSE] as parameters\n ,EXTERNAL.utils.udf_urlencode({'a':'b', 'b':'b'}, FALSE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'a=b&b=b'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_urlencode({'a':'b', 'b':'b'}, FALSE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'a=b&b=b'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_dict_false_space.1167d3f089": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{'space': 'abc 123'}, FALSE\n", "assertions": ["result = 'space=abc+123'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_urlencode_dict_false_space", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_dict_false_space.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_dict_false_space.1167d3f089", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_dict_false_space"], "alias": "utils_udf_urlencode_dict_false_space", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.6266387, "relation_name": "EXTERNAL.test.utils_udf_urlencode_dict_false_space", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_dict_false_space.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[{'space': 'abc 123'}, FALSE] as parameters\n ,EXTERNAL.utils.udf_urlencode({'space': 'abc 123'}, FALSE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'space=abc+123'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_urlencode({'space': 'abc 123'}, FALSE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'space=abc+123'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_dict_false_special.0cd3cb5826": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{'special!': ' !@#$,+\"'}, FALSE\n", "assertions": ["result = 'special%21=+%21%40%23%24%2C%2B%22'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_urlencode_dict_false_special", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_dict_false_special.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_dict_false_special.0cd3cb5826", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_dict_false_special"], "alias": "utils_udf_urlencode_dict_false_special", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.632159, "relation_name": "EXTERNAL.test.utils_udf_urlencode_dict_false_special", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_dict_false_special.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[{'special!': ' !@#$,+\"'}, FALSE] as parameters\n ,EXTERNAL.utils.udf_urlencode({'special!': ' !@#$,+\"'}, FALSE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'special%21=+%21%40%23%24%2C%2B%22'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_urlencode({'special!': ' !@#$,+\"'}, FALSE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'special%21=+%21%40%23%24%2C%2B%22'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_dict_false_array.9524cea2e8": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{'array': [0, 1, 2]}, FALSE\n", "assertions": ["result = 'array=%5B0%2C+1%2C+2%5D'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_urlencode_dict_false_array", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_dict_false_array.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_dict_false_array.9524cea2e8", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_dict_false_array"], "alias": "utils_udf_urlencode_dict_false_array", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.637707, "relation_name": "EXTERNAL.test.utils_udf_urlencode_dict_false_array", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_dict_false_array.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[{'array': [0, 1, 2]}, FALSE] as parameters\n ,EXTERNAL.utils.udf_urlencode({'array': [0, 1, 2]}, FALSE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'array=%5B0%2C+1%2C+2%5D'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_urlencode({'array': [0, 1, 2]}, FALSE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'array=%5B0%2C+1%2C+2%5D'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_dict_1.1d75f92e0e": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{'a':'b'}\n", "assertions": ["result = 'a=b'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_urlencode_dict_1", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_dict_1.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_dict_1.1d75f92e0e", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_dict_1"], "alias": "utils_udf_urlencode_dict_1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.643436, "relation_name": "EXTERNAL.test.utils_udf_urlencode_dict_1", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_dict_1.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[{'a':'b'}] as parameters\n ,EXTERNAL.utils.udf_urlencode({'a':'b'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'a=b'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_urlencode({'a':'b'})\n;$$ AS sql\n FROM test\n WHERE NOT result = 'a=b'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_dict_2.60da312d8c": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{'a':'b', 'b':'b'}\n", "assertions": ["result = 'a=b&b=b'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_urlencode_dict_2", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_dict_2.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_dict_2.60da312d8c", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_dict_2"], "alias": "utils_udf_urlencode_dict_2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.6489856, "relation_name": "EXTERNAL.test.utils_udf_urlencode_dict_2", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_dict_2.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[{'a':'b', 'b':'b'}] as parameters\n ,EXTERNAL.utils.udf_urlencode({'a':'b', 'b':'b'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'a=b&b=b'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_urlencode({'a':'b', 'b':'b'})\n;$$ AS sql\n FROM test\n WHERE NOT result = 'a=b&b=b'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_dict_space.d5e1917fd6": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{'space': 'abc 123'}\n", "assertions": ["result = 'space=abc+123'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_urlencode_dict_space", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_dict_space.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_dict_space.d5e1917fd6", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_dict_space"], "alias": "utils_udf_urlencode_dict_space", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.6545258, "relation_name": "EXTERNAL.test.utils_udf_urlencode_dict_space", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_dict_space.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[{'space': 'abc 123'}] as parameters\n ,EXTERNAL.utils.udf_urlencode({'space': 'abc 123'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'space=abc+123'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_urlencode({'space': 'abc 123'})\n;$$ AS sql\n FROM test\n WHERE NOT result = 'space=abc+123'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_dict_special.6f25d30fd9": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{'special!': ' !@#$,+\"'}\n", "assertions": ["result = 'special%21=+%21%40%23%24%2C%2B%22'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_urlencode_dict_special", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_dict_special.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_dict_special.6f25d30fd9", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_dict_special"], "alias": "utils_udf_urlencode_dict_special", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.6600819, "relation_name": "EXTERNAL.test.utils_udf_urlencode_dict_special", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_dict_special.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[{'special!': ' !@#$,+\"'}] as parameters\n ,EXTERNAL.utils.udf_urlencode({'special!': ' !@#$,+\"'}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'special%21=+%21%40%23%24%2C%2B%22'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_urlencode({'special!': ' !@#$,+\"'})\n;$$ AS sql\n FROM test\n WHERE NOT result = 'special%21=+%21%40%23%24%2C%2B%22'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_dict_array.25f6af5cf8": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{'array': [0, 1, 2]}\n", "assertions": ["result = 'array=%5B0%2C+1%2C+2%5D'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_urlencode_dict_array", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_dict_array.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_dict_array.25f6af5cf8", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_dict_array"], "alias": "utils_udf_urlencode_dict_array", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.6654038, "relation_name": "EXTERNAL.test.utils_udf_urlencode_dict_array", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_dict_array.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[{'array': [0, 1, 2]}] as parameters\n ,EXTERNAL.utils.udf_urlencode({'array': [0, 1, 2]}) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'array=%5B0%2C+1%2C+2%5D'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_urlencode({'array': [0, 1, 2]})\n;$$ AS sql\n FROM test\n WHERE NOT result = 'array=%5B0%2C+1%2C+2%5D'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_array_true_1.f1dc90fd5d": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "[['a', 'b']], TRUE\n", "assertions": ["result = 'a=b'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_urlencode_array_true_1", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_array_true_1.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_array_true_1.f1dc90fd5d", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_array_true_1"], "alias": "utils_udf_urlencode_array_true_1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.6711504, "relation_name": "EXTERNAL.test.utils_udf_urlencode_array_true_1", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_array_true_1.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[[['a', 'b']], TRUE] as parameters\n ,EXTERNAL.utils.udf_urlencode([['a', 'b']], TRUE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'a=b'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_urlencode([['a', 'b']], TRUE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'a=b'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_array_true_2.4c09ca3de2": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "[['a', 'a'], ['b', 'b']], TRUE\n", "assertions": ["result = 'a=a&b=b'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_urlencode_array_true_2", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_array_true_2.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_array_true_2.4c09ca3de2", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_array_true_2"], "alias": "utils_udf_urlencode_array_true_2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.6766758, "relation_name": "EXTERNAL.test.utils_udf_urlencode_array_true_2", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_array_true_2.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[[['a', 'a'], ['b', 'b']], TRUE] as parameters\n ,EXTERNAL.utils.udf_urlencode([['a', 'a'], ['b', 'b']], TRUE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'a=a&b=b'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_urlencode([['a', 'a'], ['b', 'b']], TRUE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'a=a&b=b'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_array_true_space.c150fa3544": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "[['space', 'abc 123']], TRUE\n", "assertions": ["result = 'space=abc+123'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_urlencode_array_true_space", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_array_true_space.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_array_true_space.c150fa3544", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_array_true_space"], "alias": "utils_udf_urlencode_array_true_space", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.6819272, "relation_name": "EXTERNAL.test.utils_udf_urlencode_array_true_space", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_array_true_space.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[[['space', 'abc 123']], TRUE] as parameters\n ,EXTERNAL.utils.udf_urlencode([['space', 'abc 123']], TRUE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'space=abc+123'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_urlencode([['space', 'abc 123']], TRUE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'space=abc+123'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_array_true_special.14abbd82f3": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "[['special!', ' !@#$,+\"']], TRUE\n", "assertions": ["result = 'special%21=+%21%40%23%24%2C%2B%22'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_urlencode_array_true_special", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_array_true_special.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_array_true_special.14abbd82f3", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_array_true_special"], "alias": "utils_udf_urlencode_array_true_special", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.687517, "relation_name": "EXTERNAL.test.utils_udf_urlencode_array_true_special", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_array_true_special.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[[['special!', ' !@#$,+\"']], TRUE] as parameters\n ,EXTERNAL.utils.udf_urlencode([['special!', ' !@#$,+\"']], TRUE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'special%21=+%21%40%23%24%2C%2B%22'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_urlencode([['special!', ' !@#$,+\"']], TRUE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'special%21=+%21%40%23%24%2C%2B%22'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_array_true_array.559475a80a": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "[['array', [0, 1, 2]]], TRUE\n", "assertions": ["result = 'array=0&array=1&array=2'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_urlencode_array_true_array", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_array_true_array.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_array_true_array.559475a80a", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_array_true_array"], "alias": "utils_udf_urlencode_array_true_array", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.693012, "relation_name": "EXTERNAL.test.utils_udf_urlencode_array_true_array", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_array_true_array.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[[['array', [0, 1, 2]]], TRUE] as parameters\n ,EXTERNAL.utils.udf_urlencode([['array', [0, 1, 2]]], TRUE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'array=0&array=1&array=2'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_urlencode([['array', [0, 1, 2]]], TRUE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'array=0&array=1&array=2'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_array_false_1.ffe0d93235": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "[['a', 'b']], FALSE\n", "assertions": ["result = 'a=b'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_urlencode_array_false_1", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_array_false_1.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_array_false_1.ffe0d93235", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_array_false_1"], "alias": "utils_udf_urlencode_array_false_1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.6985106, "relation_name": "EXTERNAL.test.utils_udf_urlencode_array_false_1", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_array_false_1.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[[['a', 'b']], FALSE] as parameters\n ,EXTERNAL.utils.udf_urlencode([['a', 'b']], FALSE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'a=b'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_urlencode([['a', 'b']], FALSE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'a=b'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_array_false_2.f6e4d9a06a": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "[['a', 'a'], ['b', 'b']], FALSE\n", "assertions": ["result = 'a=a&b=b'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_urlencode_array_false_2", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_array_false_2.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_array_false_2.f6e4d9a06a", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_array_false_2"], "alias": "utils_udf_urlencode_array_false_2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.703892, "relation_name": "EXTERNAL.test.utils_udf_urlencode_array_false_2", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_array_false_2.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[[['a', 'a'], ['b', 'b']], FALSE] as parameters\n ,EXTERNAL.utils.udf_urlencode([['a', 'a'], ['b', 'b']], FALSE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'a=a&b=b'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_urlencode([['a', 'a'], ['b', 'b']], FALSE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'a=a&b=b'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_array_false_space.c46a422a10": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "[['space', 'abc 123']], FALSE\n", "assertions": ["result = 'space=abc+123'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_urlencode_array_false_space", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_array_false_space.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_array_false_space.c46a422a10", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_array_false_space"], "alias": "utils_udf_urlencode_array_false_space", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.7100458, "relation_name": "EXTERNAL.test.utils_udf_urlencode_array_false_space", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_array_false_space.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[[['space', 'abc 123']], FALSE] as parameters\n ,EXTERNAL.utils.udf_urlencode([['space', 'abc 123']], FALSE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'space=abc+123'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_urlencode([['space', 'abc 123']], FALSE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'space=abc+123'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_array_false_special.ad3b4ce496": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "[['special!', ' !@#$,+\"']], FALSE\n", "assertions": ["result = 'special%21=+%21%40%23%24%2C%2B%22'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_urlencode_array_false_special", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_array_false_special.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_array_false_special.ad3b4ce496", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_array_false_special"], "alias": "utils_udf_urlencode_array_false_special", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.7155406, "relation_name": "EXTERNAL.test.utils_udf_urlencode_array_false_special", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_array_false_special.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[[['special!', ' !@#$,+\"']], FALSE] as parameters\n ,EXTERNAL.utils.udf_urlencode([['special!', ' !@#$,+\"']], FALSE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'special%21=+%21%40%23%24%2C%2B%22'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_urlencode([['special!', ' !@#$,+\"']], FALSE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'special%21=+%21%40%23%24%2C%2B%22'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_array_false_array.979bfafd11": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "[['array', [0, 1, 2]]], FALSE\n", "assertions": ["result = 'array=%5B0%2C+1%2C+2%5D'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_urlencode_array_false_array", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_array_false_array.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_array_false_array.979bfafd11", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_array_false_array"], "alias": "utils_udf_urlencode_array_false_array", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.7208529, "relation_name": "EXTERNAL.test.utils_udf_urlencode_array_false_array", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_array_false_array.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[[['array', [0, 1, 2]]], FALSE] as parameters\n ,EXTERNAL.utils.udf_urlencode([['array', [0, 1, 2]]], FALSE) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'array=%5B0%2C+1%2C+2%5D'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_urlencode([['array', [0, 1, 2]]], FALSE)\n;$$ AS sql\n FROM test\n WHERE NOT result = 'array=%5B0%2C+1%2C+2%5D'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_array_1.bae96ece17": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "[['a', 'b']]\n", "assertions": ["result = 'a=b'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_urlencode_array_1", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_array_1.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_array_1.bae96ece17", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_array_1"], "alias": "utils_udf_urlencode_array_1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.7264056, "relation_name": "EXTERNAL.test.utils_udf_urlencode_array_1", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_array_1.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[[['a', 'b']]] as parameters\n ,EXTERNAL.utils.udf_urlencode([['a', 'b']]) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'a=b'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_urlencode([['a', 'b']])\n;$$ AS sql\n FROM test\n WHERE NOT result = 'a=b'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_array_2.ff2898d4a2": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "[['a', 'a'], ['b', 'b']]\n", "assertions": ["result = 'a=a&b=b'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_urlencode_array_2", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_array_2.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_array_2.ff2898d4a2", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_array_2"], "alias": "utils_udf_urlencode_array_2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.7319503, "relation_name": "EXTERNAL.test.utils_udf_urlencode_array_2", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_array_2.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[[['a', 'a'], ['b', 'b']]] as parameters\n ,EXTERNAL.utils.udf_urlencode([['a', 'a'], ['b', 'b']]) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'a=a&b=b'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_urlencode([['a', 'a'], ['b', 'b']])\n;$$ AS sql\n FROM test\n WHERE NOT result = 'a=a&b=b'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_array_space.67b6f51498": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "[['space', 'abc 123']]\n", "assertions": ["result = 'space=abc+123'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_urlencode_array_space", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_array_space.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_array_space.67b6f51498", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_array_space"], "alias": "utils_udf_urlencode_array_space", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.7375734, "relation_name": "EXTERNAL.test.utils_udf_urlencode_array_space", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_array_space.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[[['space', 'abc 123']]] as parameters\n ,EXTERNAL.utils.udf_urlencode([['space', 'abc 123']]) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'space=abc+123'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_urlencode([['space', 'abc 123']])\n;$$ AS sql\n FROM test\n WHERE NOT result = 'space=abc+123'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_array_special.746423269a": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "[['special!', ' !@#$,+\"']]\n", "assertions": ["result = 'special%21=+%21%40%23%24%2C%2B%22'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_urlencode_array_special", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_array_special.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_array_special.746423269a", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_array_special"], "alias": "utils_udf_urlencode_array_special", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.7428837, "relation_name": "EXTERNAL.test.utils_udf_urlencode_array_special", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_array_special.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[[['special!', ' !@#$,+\"']]] as parameters\n ,EXTERNAL.utils.udf_urlencode([['special!', ' !@#$,+\"']]) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'special%21=+%21%40%23%24%2C%2B%22'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_urlencode([['special!', ' !@#$,+\"']])\n;$$ AS sql\n FROM test\n WHERE NOT result = 'special%21=+%21%40%23%24%2C%2B%22'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_urlencode_array_array.3d05dcb6a9": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "[['array', [0, 1, 2]]]\n", "assertions": ["result = 'array=%5B0%2C+1%2C+2%5D'"], "column_name": "udf_urlencode", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_urlencode_array_array", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_urlencode_array_array.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_urlencode_array_array.3d05dcb6a9", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_urlencode_array_array"], "alias": "utils_udf_urlencode_array_array", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.7484267, "relation_name": "EXTERNAL.test.utils_udf_urlencode_array_array", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_urlencode_array_array.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_urlencode' AS test_name\n ,[[['array', [0, 1, 2]]]] as parameters\n ,EXTERNAL.utils.udf_urlencode([['array', [0, 1, 2]]]) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = 'array=%5B0%2C+1%2C+2%5D'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_urlencode([['array', [0, 1, 2]]])\n;$$ AS sql\n FROM test\n WHERE NOT result = 'array=%5B0%2C+1%2C+2%5D'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_urlencode", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_int_to_binary.46856460db": {"test_metadata": {"name": "test_udf", "kwargs": {"args": 123456789, "assertions": ["result = '111010110111100110100010101'"], "column_name": "udf_int_to_binary", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_int_to_binary", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_int_to_binary.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_int_to_binary.46856460db", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_int_to_binary"], "alias": "utils_udf_int_to_binary", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.753937, "relation_name": "EXTERNAL.test.utils_udf_int_to_binary", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_int_to_binary.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_int_to_binary' AS test_name\n ,[123456789] as parameters\n ,EXTERNAL.utils.udf_int_to_binary(123456789) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = '111010110111100110100010101'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_int_to_binary(123456789)\n;$$ AS sql\n FROM test\n WHERE NOT result = '111010110111100110100010101'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_int_to_binary", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_int_to_binary_large_number.feba996e3b": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'123456789123456789123456789123456789123456789'", "assertions": ["result = '101100010010011011011100101001111010001001110011010111111101111101010111011001001101000001111110001010100001011011010000100000001000101111100010101'"], "column_name": "udf_int_to_binary", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_int_to_binary_large_number", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_int_to_binary_large_number.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_int_to_binary_large_number.feba996e3b", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_int_to_binary_large_number"], "alias": "utils_udf_int_to_binary_large_number", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.7592704, "relation_name": "EXTERNAL.test.utils_udf_int_to_binary_large_number", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_int_to_binary_large_number.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_int_to_binary' AS test_name\n ,['123456789123456789123456789123456789123456789'] as parameters\n ,EXTERNAL.utils.udf_int_to_binary('123456789123456789123456789123456789123456789') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = '101100010010011011011100101001111010001001110011010111111101111101010111011001001101000001111110001010100001011011010000100000001000101111100010101'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_int_to_binary('123456789123456789123456789123456789123456789')\n;$$ AS sql\n FROM test\n WHERE NOT result = '101100010010011011011100101001111010001001110011010111111101111101010111011001001101000001111110001010100001011011010000100000001000101111100010101'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_int_to_binary", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_binary_to_int.907b20f381": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "111010110111100110100010101", "assertions": ["result = '123456789'"], "column_name": "udf_binary_to_int", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_binary_to_int", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_binary_to_int.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_binary_to_int.907b20f381", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_binary_to_int"], "alias": "utils_udf_binary_to_int", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.7651718, "relation_name": "EXTERNAL.test.utils_udf_binary_to_int", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_binary_to_int.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_binary_to_int' AS test_name\n ,[111010110111100110100010101] as parameters\n ,EXTERNAL.utils.udf_binary_to_int(111010110111100110100010101) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = '123456789'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_binary_to_int(111010110111100110100010101)\n;$$ AS sql\n FROM test\n WHERE NOT result = '123456789'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_binary_to_int", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_binary_to_int_large_number.926bff44e9": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "'110110110100110110100101110101100110100000101111100010101'", "assertions": ["result = '123456789123456789'"], "column_name": "udf_binary_to_int", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_binary_to_int_large_number", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_binary_to_int_large_number.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_binary_to_int_large_number.926bff44e9", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_binary_to_int_large_number"], "alias": "utils_udf_binary_to_int_large_number", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.7710595, "relation_name": "EXTERNAL.test.utils_udf_binary_to_int_large_number", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_binary_to_int_large_number.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_binary_to_int' AS test_name\n ,['110110110100110110100101110101100110100000101111100010101'] as parameters\n ,EXTERNAL.utils.udf_binary_to_int('110110110100110110100101110101100110100000101111100010101') AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = '123456789123456789'$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_binary_to_int('110110110100110110100101110101100110100000101111100010101')\n;$$ AS sql\n FROM test\n WHERE NOT result = '123456789123456789'\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_binary_to_int", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}, "test.livequery_models.test__utils_udf_evm_decode_log.b6fedb07e9": {"test_metadata": {"name": "test_udf", "kwargs": {"args": "{\n 'anonymous': false,\n 'inputs': [\n {\n 'indexed': false,\n 'name': 'nonce',\n 'type': 'uint256'\n }\n ],\n 'name': 'NonceChanged',\n 'type': 'event'\n}::variant, {\n 'address': '0x55032650b14df07b85bf18a3a3ec8e0af2e028d5',\n 'data': '0x000000000000000000000000000000000000000000000000000000000000279c',\n 'topics': [\n '0x7220970e1f1f12864ecccd8942690a837c7a8dd45d158cb891eb45a8a69134aa'\n ]\n}::variant\n", "assertions": ["result = [\n {\n 'address': '0x55032650b14df07b85bF18A3a3eC8E0Af2e028d5',\n 'data': [\n {\n 'decoded': true,\n 'name': 'nonce',\n 'type': 'uint256',\n 'value': 10140\n }\n ],\n 'decoded': true,\n 'name': 'NonceChanged'\n }\n]"], "column_name": "udf_evm_decode_log", "model": "{{ get_where_subquery(ref('utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test", "name": "test__utils_udf_evm_decode_log", "resource_type": "test", "package_name": "livequery_models", "path": "test__utils_udf_evm_decode_log.sql", "original_file_path": "models/deploy/core/utils.yml", "unique_id": "test.livequery_models.test__utils_udf_evm_decode_log.b6fedb07e9", "fqn": ["livequery_models", "deploy", "core", "test__utils_udf_evm_decode_log"], "alias": "utils_udf_evm_decode_log", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true}, "created_at": 1760113503.777008, "relation_name": "EXTERNAL.test.utils_udf_evm_decode_log", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": ["model.livequery_models.utils"]}, "compiled_path": "target/compiled/livequery_models/models/deploy/core/utils.yml/test__utils_udf_evm_decode_log.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\nwith __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n), __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n) ,\ntest AS\n(\n SELECT\n 'utils.udf_evm_decode_log' AS test_name\n ,[{\n 'anonymous': false,\n 'inputs': [\n {\n 'indexed': false,\n 'name': 'nonce',\n 'type': 'uint256'\n }\n ],\n 'name': 'NonceChanged',\n 'type': 'event'\n}::variant, {\n 'address': '0x55032650b14df07b85bf18a3a3ec8e0af2e028d5',\n 'data': '0x000000000000000000000000000000000000000000000000000000000000279c',\n 'topics': [\n '0x7220970e1f1f12864ecccd8942690a837c7a8dd45d158cb891eb45a8a69134aa'\n ]\n}::variant] as parameters\n ,EXTERNAL.utils.udf_evm_decode_log({\n 'anonymous': false,\n 'inputs': [\n {\n 'indexed': false,\n 'name': 'nonce',\n 'type': 'uint256'\n }\n ],\n 'name': 'NonceChanged',\n 'type': 'event'\n}::variant, {\n 'address': '0x55032650b14df07b85bf18a3a3ec8e0af2e028d5',\n 'data': '0x000000000000000000000000000000000000000000000000000000000000279c',\n 'topics': [\n '0x7220970e1f1f12864ecccd8942690a837c7a8dd45d158cb891eb45a8a69134aa'\n ]\n}::variant) AS result\n)\n \n SELECT\n test_name,\n parameters,\n result,\n $$result = [\n {\n 'address': '0x55032650b14df07b85bF18A3a3eC8E0Af2e028d5',\n 'data': [\n {\n 'decoded': true,\n 'name': 'nonce',\n 'type': 'uint256',\n 'value': 10140\n }\n ],\n 'decoded': true,\n 'name': 'NonceChanged'\n }\n]$$ AS assertion,\n $$SET LIVEQUERY_CONTEXT = '{\"userId\":\"98d15c30-9fa5-43cd-9c69-3d4c0bb269f5\"}';\nSELECT EXTERNAL.utils.udf_evm_decode_log({\n 'anonymous': false,\n 'inputs': [\n {\n 'indexed': false,\n 'name': 'nonce',\n 'type': 'uint256'\n }\n ],\n 'name': 'NonceChanged',\n 'type': 'event'\n}::variant, {\n 'address': '0x55032650b14df07b85bf18a3a3ec8e0af2e028d5',\n 'data': '0x000000000000000000000000000000000000000000000000000000000000279c',\n 'topics': [\n '0x7220970e1f1f12864ecccd8942690a837c7a8dd45d158cb891eb45a8a69134aa'\n ]\n}::variant)\n;$$ AS sql\n FROM test\n WHERE NOT result = [\n {\n 'address': '0x55032650b14df07b85bF18A3a3eC8E0Af2e028d5',\n 'data': [\n {\n 'decoded': true,\n 'name': 'nonce',\n 'type': 'uint256',\n 'value': 10140\n }\n ],\n 'decoded': true,\n 'name': 'NonceChanged'\n }\n]\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.livequery_models._utils", "sql": " __dbt__cte___utils as (\n\n\n\n SELECT '_utils' as schema_\n)"}, {"id": "model.livequery_models.utils", "sql": " __dbt__cte__utils as (\n-- depends_on: __dbt__cte___utils\n\n\n\n SELECT 'utils' as schema_\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "udf_evm_decode_log", "file_key_name": "models.utils", "attached_node": "model.livequery_models.utils"}}, "sources": {"source.external_models.bronze_streamline.bitquery": {"database": "streamline", "schema": "external", "name": "bitquery", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.bronze_streamline.bitquery", "fqn": ["external_models", "bronze_streamline", "bitquery"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "bitquery", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "streamline.external.bitquery", "created_at": 1760113503.7867174}, "source.external_models.bronze_streamline.oklink": {"database": "streamline", "schema": "external", "name": "oklink", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.bronze_streamline.oklink", "fqn": ["external_models", "bronze_streamline", "oklink"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "oklink", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "streamline.external.oklink", "created_at": 1760113503.7869256}, "source.external_models.bronze_streamline.artemis": {"database": "streamline", "schema": "external", "name": "artemis", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.bronze_streamline.artemis", "fqn": ["external_models", "bronze_streamline", "artemis"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "artemis", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "streamline.external.artemis", "created_at": 1760113503.7870977}, "source.external_models.bronze_streamline.defillama_protocol_historical": {"database": "streamline", "schema": "external", "name": "defillama_protocol_historical", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.bronze_streamline.defillama_protocol_historical", "fqn": ["external_models", "bronze_streamline", "defillama_protocol_historical"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "defillama_protocol_historical", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "streamline.external.defillama_protocol_historical", "created_at": 1760113503.7872837}, "source.external_models.bronze_streamline.valuations_parquet": {"database": "streamline", "schema": "external", "name": "valuations_parquet", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.bronze_streamline.valuations_parquet", "fqn": ["external_models", "bronze_streamline", "valuations_parquet"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "valuations_parquet", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "streamline.external.valuations_parquet", "created_at": 1760113503.787447}, "source.external_models.bronze_streamline.defillama_stablecoin_metrics": {"database": "streamline", "schema": "external", "name": "defillama_stablecoin_metrics", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.bronze_streamline.defillama_stablecoin_metrics", "fqn": ["external_models", "bronze_streamline", "defillama_stablecoin_metrics"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "defillama_stablecoin_metrics", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "streamline.external.defillama_stablecoin_metrics", "created_at": 1760113503.787605}, "source.external_models.bronze_streamline.defillama_protocols": {"database": "streamline", "schema": "external", "name": "defillama_protocols", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.bronze_streamline.defillama_protocols", "fqn": ["external_models", "bronze_streamline", "defillama_protocols"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "defillama_protocols", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "streamline.external.defillama_protocols", "created_at": 1760113503.7877605}, "source.external_models.bronze_streamline.defillama_perp_metrics": {"database": "streamline", "schema": "external", "name": "defillama_perp_metrics", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.bronze_streamline.defillama_perp_metrics", "fqn": ["external_models", "bronze_streamline", "defillama_perp_metrics"], "source_name": "bronze_streamline", "source_description": "", "loader": "", "identifier": "defillama_perp_metrics", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "streamline.external.defillama_perp_metrics", "created_at": 1760113503.7879148}, "source.external_models.tokenflow_eth.blocks": {"database": "flipside_prod_db", "schema": "tokenflow_eth", "name": "blocks", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.tokenflow_eth.blocks", "fqn": ["external_models", "tokenflow_eth", "blocks"], "source_name": "tokenflow_eth", "source_description": "", "loader": "", "identifier": "blocks", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "flipside_prod_db.tokenflow_eth.blocks", "created_at": 1760113503.7880702}, "source.external_models.tokenflow_eth.calls": {"database": "flipside_prod_db", "schema": "tokenflow_eth", "name": "calls", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.tokenflow_eth.calls", "fqn": ["external_models", "tokenflow_eth", "calls"], "source_name": "tokenflow_eth", "source_description": "", "loader": "", "identifier": "calls", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "flipside_prod_db.tokenflow_eth.calls", "created_at": 1760113503.788239}, "source.external_models.tokenflow_eth.events": {"database": "flipside_prod_db", "schema": "tokenflow_eth", "name": "events", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.tokenflow_eth.events", "fqn": ["external_models", "tokenflow_eth", "events"], "source_name": "tokenflow_eth", "source_description": "", "loader": "", "identifier": "events", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "flipside_prod_db.tokenflow_eth.events", "created_at": 1760113503.7883992}, "source.external_models.tokenflow_eth.state_diffs": {"database": "flipside_prod_db", "schema": "tokenflow_eth", "name": "state_diffs", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.tokenflow_eth.state_diffs", "fqn": ["external_models", "tokenflow_eth", "state_diffs"], "source_name": "tokenflow_eth", "source_description": "", "loader": "", "identifier": "state_diffs", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "flipside_prod_db.tokenflow_eth.state_diffs", "created_at": 1760113503.7885547}, "source.external_models.tokenflow_eth.storage_diffs": {"database": "flipside_prod_db", "schema": "tokenflow_eth", "name": "storage_diffs", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.tokenflow_eth.storage_diffs", "fqn": ["external_models", "tokenflow_eth", "storage_diffs"], "source_name": "tokenflow_eth", "source_description": "", "loader": "", "identifier": "storage_diffs", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "flipside_prod_db.tokenflow_eth.storage_diffs", "created_at": 1760113503.788707}, "source.external_models.tokenflow_eth.storage_reads": {"database": "flipside_prod_db", "schema": "tokenflow_eth", "name": "storage_reads", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.tokenflow_eth.storage_reads", "fqn": ["external_models", "tokenflow_eth", "storage_reads"], "source_name": "tokenflow_eth", "source_description": "", "loader": "", "identifier": "storage_reads", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "flipside_prod_db.tokenflow_eth.storage_reads", "created_at": 1760113503.7888577}, "source.external_models.tokenflow_eth.tokens_allowance_diffs": {"database": "flipside_prod_db", "schema": "tokenflow_eth", "name": "tokens_allowance_diffs", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.tokenflow_eth.tokens_allowance_diffs", "fqn": ["external_models", "tokenflow_eth", "tokens_allowance_diffs"], "source_name": "tokenflow_eth", "source_description": "", "loader": "", "identifier": "tokens_allowance_diffs", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "flipside_prod_db.tokenflow_eth.tokens_allowance_diffs", "created_at": 1760113503.7890086}, "source.external_models.tokenflow_eth.tokens_balance_diffs": {"database": "flipside_prod_db", "schema": "tokenflow_eth", "name": "tokens_balance_diffs", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.tokenflow_eth.tokens_balance_diffs", "fqn": ["external_models", "tokenflow_eth", "tokens_balance_diffs"], "source_name": "tokenflow_eth", "source_description": "", "loader": "", "identifier": "tokens_balance_diffs", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "flipside_prod_db.tokenflow_eth.tokens_balance_diffs", "created_at": 1760113503.7891583}, "source.external_models.tokenflow_eth.tokens_metadata": {"database": "flipside_prod_db", "schema": "tokenflow_eth", "name": "tokens_metadata", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.tokenflow_eth.tokens_metadata", "fqn": ["external_models", "tokenflow_eth", "tokens_metadata"], "source_name": "tokenflow_eth", "source_description": "", "loader": "", "identifier": "tokens_metadata", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "flipside_prod_db.tokenflow_eth.tokens_metadata", "created_at": 1760113503.7893283}, "source.external_models.tokenflow_eth.transactions": {"database": "flipside_prod_db", "schema": "tokenflow_eth", "name": "transactions", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.tokenflow_eth.transactions", "fqn": ["external_models", "tokenflow_eth", "transactions"], "source_name": "tokenflow_eth", "source_description": "", "loader": "", "identifier": "transactions", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "flipside_prod_db.tokenflow_eth.transactions", "created_at": 1760113503.7894802}, "source.external_models.crosschain_silver.apis_keys": {"database": "crosschain", "schema": "silver", "name": "apis_keys", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.crosschain_silver.apis_keys", "fqn": ["external_models", "crosschain_silver", "apis_keys"], "source_name": "crosschain_silver", "source_description": "", "loader": "", "identifier": "apis_keys", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.silver.apis_keys", "created_at": 1760113503.7896345}, "source.external_models.crosschain_core.dim_dates": {"database": "crosschain", "schema": "core", "name": "dim_dates", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.crosschain_core.dim_dates", "fqn": ["external_models", "crosschain_core", "dim_dates"], "source_name": "crosschain_core", "source_description": "", "loader": "", "identifier": "dim_dates", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.core.dim_dates", "created_at": 1760113503.7897863}, "source.external_models.crosschain_defi.ez_bridge_activity": {"database": "crosschain", "schema": "defi", "name": "ez_bridge_activity", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.crosschain_defi.ez_bridge_activity", "fqn": ["external_models", "crosschain_defi", "ez_bridge_activity"], "source_name": "crosschain_defi", "source_description": "", "loader": "", "identifier": "ez_bridge_activity", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain.defi.ez_bridge_activity", "created_at": 1760113503.789948}, "source.external_models.ethereum_silver.nft_transfers": {"database": "ethereum", "schema": "silver", "name": "nft_transfers", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.ethereum_silver.nft_transfers", "fqn": ["external_models", "ethereum_silver", "nft_transfers"], "source_name": "ethereum_silver", "source_description": "", "loader": "", "identifier": "nft_transfers", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "ethereum.silver.nft_transfers", "created_at": 1760113503.7901022}, "source.external_models.starknet_snapshot.blocks": {"database": "tokenflow", "schema": "starknet", "name": "blocks", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.starknet_snapshot.blocks", "fqn": ["external_models", "starknet_snapshot", "blocks"], "source_name": "starknet_snapshot", "source_description": "", "loader": "", "identifier": "blocks", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "tokenflow.starknet.blocks", "created_at": 1760113503.7902749}, "source.external_models.starknet_snapshot.events": {"database": "tokenflow", "schema": "starknet", "name": "events", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.starknet_snapshot.events", "fqn": ["external_models", "starknet_snapshot", "events"], "source_name": "starknet_snapshot", "source_description": "", "loader": "", "identifier": "events", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "tokenflow.starknet.events", "created_at": 1760113503.7904327}, "source.external_models.starknet_snapshot.messages": {"database": "tokenflow", "schema": "starknet", "name": "messages", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.starknet_snapshot.messages", "fqn": ["external_models", "starknet_snapshot", "messages"], "source_name": "starknet_snapshot", "source_description": "", "loader": "", "identifier": "messages", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "tokenflow.starknet.messages", "created_at": 1760113503.7905867}, "source.external_models.starknet_snapshot.traces": {"database": "tokenflow", "schema": "starknet", "name": "traces", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.starknet_snapshot.traces", "fqn": ["external_models", "starknet_snapshot", "traces"], "source_name": "starknet_snapshot", "source_description": "", "loader": "", "identifier": "traces", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "tokenflow.starknet.traces", "created_at": 1760113503.7907386}, "source.external_models.starknet_snapshot.transactions": {"database": "tokenflow", "schema": "starknet", "name": "transactions", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.starknet_snapshot.transactions", "fqn": ["external_models", "starknet_snapshot", "transactions"], "source_name": "starknet_snapshot", "source_description": "", "loader": "", "identifier": "transactions", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "tokenflow.starknet.transactions", "created_at": 1760113503.790887}, "source.external_models.starknet_snapshot.l1_blocks": {"database": "tokenflow", "schema": "starknet", "name": "l1_blocks", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.starknet_snapshot.l1_blocks", "fqn": ["external_models", "starknet_snapshot", "l1_blocks"], "source_name": "starknet_snapshot", "source_description": "", "loader": "", "identifier": "l1_blocks", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "tokenflow.starknet.l1_blocks", "created_at": 1760113503.7910357}, "source.external_models.starknet_snapshot.l1_contracts": {"database": "tokenflow", "schema": "starknet", "name": "l1_contracts", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.starknet_snapshot.l1_contracts", "fqn": ["external_models", "starknet_snapshot", "l1_contracts"], "source_name": "starknet_snapshot", "source_description": "", "loader": "", "identifier": "l1_contracts", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "tokenflow.starknet.l1_contracts", "created_at": 1760113503.7911973}, "source.external_models.starknet_snapshot.l1_messages": {"database": "tokenflow", "schema": "starknet", "name": "l1_messages", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.starknet_snapshot.l1_messages", "fqn": ["external_models", "starknet_snapshot", "l1_messages"], "source_name": "starknet_snapshot", "source_description": "", "loader": "", "identifier": "l1_messages", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "tokenflow.starknet.l1_messages", "created_at": 1760113503.791356}, "source.external_models.starknet_snapshot.l1_storage_diffs": {"database": "tokenflow", "schema": "starknet", "name": "l1_storage_diffs", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.starknet_snapshot.l1_storage_diffs", "fqn": ["external_models", "starknet_snapshot", "l1_storage_diffs"], "source_name": "starknet_snapshot", "source_description": "", "loader": "", "identifier": "l1_storage_diffs", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "tokenflow.starknet.l1_storage_diffs", "created_at": 1760113503.7915068}, "source.external_models.flashbots.mev": {"database": "streamline", "schema": "flashbots", "name": "mev", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.flashbots.mev", "fqn": ["external_models", "flashbots", "mev"], "source_name": "flashbots", "source_description": "", "loader": "", "identifier": "mev", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "streamline.flashbots.mev", "created_at": 1760113503.7916582}, "source.external_models.flashbots.protect": {"database": "streamline", "schema": "flashbots", "name": "protect", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.flashbots.protect", "fqn": ["external_models", "flashbots", "protect"], "source_name": "flashbots", "source_description": "", "loader": "", "identifier": "protect", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "streamline.flashbots.protect", "created_at": 1760113503.791808}, "source.external_models.layerzero.transactions": {"database": "external", "schema": "layerzero", "name": "transactions", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.layerzero.transactions", "fqn": ["external_models", "layerzero", "transactions"], "source_name": "layerzero", "source_description": "", "loader": "", "identifier": "transactions", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "external.layerzero.transactions", "created_at": 1760113503.7919567}, "source.external_models.external_bronze.farcaster_blocks": {"database": "external", "schema": "bronze", "name": "farcaster_blocks", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.external_bronze.farcaster_blocks", "fqn": ["external_models", "external_bronze", "farcaster_blocks"], "source_name": "external_bronze", "source_description": "", "loader": "", "identifier": "farcaster_blocks", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "external.bronze.farcaster_blocks", "created_at": 1760113503.7921052}, "source.external_models.external_bronze.farcaster_casts": {"database": "external", "schema": "bronze", "name": "farcaster_casts", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.external_bronze.farcaster_casts", "fqn": ["external_models", "external_bronze", "farcaster_casts"], "source_name": "external_bronze", "source_description": "", "loader": "", "identifier": "farcaster_casts", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "external.bronze.farcaster_casts", "created_at": 1760113503.7922807}, "source.external_models.external_bronze.farcaster_fids": {"database": "external", "schema": "bronze", "name": "farcaster_fids", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.external_bronze.farcaster_fids", "fqn": ["external_models", "external_bronze", "farcaster_fids"], "source_name": "external_bronze", "source_description": "", "loader": "", "identifier": "farcaster_fids", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "external.bronze.farcaster_fids", "created_at": 1760113503.7925165}, "source.external_models.external_bronze.farcaster_fnames": {"database": "external", "schema": "bronze", "name": "farcaster_fnames", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.external_bronze.farcaster_fnames", "fqn": ["external_models", "external_bronze", "farcaster_fnames"], "source_name": "external_bronze", "source_description": "", "loader": "", "identifier": "farcaster_fnames", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "external.bronze.farcaster_fnames", "created_at": 1760113503.7926753}, "source.external_models.external_bronze.farcaster_links": {"database": "external", "schema": "bronze", "name": "farcaster_links", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.external_bronze.farcaster_links", "fqn": ["external_models", "external_bronze", "farcaster_links"], "source_name": "external_bronze", "source_description": "", "loader": "", "identifier": "farcaster_links", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "external.bronze.farcaster_links", "created_at": 1760113503.792828}, "source.external_models.external_bronze.farcaster_signers": {"database": "external", "schema": "bronze", "name": "farcaster_signers", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.external_bronze.farcaster_signers", "fqn": ["external_models", "external_bronze", "farcaster_signers"], "source_name": "external_bronze", "source_description": "", "loader": "", "identifier": "farcaster_signers", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "external.bronze.farcaster_signers", "created_at": 1760113503.7929826}, "source.external_models.external_bronze.farcaster_storage": {"database": "external", "schema": "bronze", "name": "farcaster_storage", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.external_bronze.farcaster_storage", "fqn": ["external_models", "external_bronze", "farcaster_storage"], "source_name": "external_bronze", "source_description": "", "loader": "", "identifier": "farcaster_storage", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "external.bronze.farcaster_storage", "created_at": 1760113503.793139}, "source.external_models.external_bronze.farcaster_reactions": {"database": "external", "schema": "bronze", "name": "farcaster_reactions", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.external_bronze.farcaster_reactions", "fqn": ["external_models", "external_bronze", "farcaster_reactions"], "source_name": "external_bronze", "source_description": "", "loader": "", "identifier": "farcaster_reactions", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "external.bronze.farcaster_reactions", "created_at": 1760113503.7933125}, "source.external_models.external_bronze.farcaster_user_data": {"database": "external", "schema": "bronze", "name": "farcaster_user_data", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.external_bronze.farcaster_user_data", "fqn": ["external_models", "external_bronze", "farcaster_user_data"], "source_name": "external_bronze", "source_description": "", "loader": "", "identifier": "farcaster_user_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "external.bronze.farcaster_user_data", "created_at": 1760113503.7934704}, "source.external_models.external_bronze.farcaster_verifications": {"database": "external", "schema": "bronze", "name": "farcaster_verifications", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.external_bronze.farcaster_verifications", "fqn": ["external_models", "external_bronze", "farcaster_verifications"], "source_name": "external_bronze", "source_description": "", "loader": "", "identifier": "farcaster_verifications", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "external.bronze.farcaster_verifications", "created_at": 1760113503.7936244}, "source.external_models.external_bronze.farcaster_channel_follows": {"database": "external", "schema": "bronze", "name": "farcaster_channel_follows", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.external_bronze.farcaster_channel_follows", "fqn": ["external_models", "external_bronze", "farcaster_channel_follows"], "source_name": "external_bronze", "source_description": "", "loader": "", "identifier": "farcaster_channel_follows", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "external.bronze.farcaster_channel_follows", "created_at": 1760113503.7937758}, "source.external_models.external_bronze.farcaster_profile_with_addresses": {"database": "external", "schema": "bronze", "name": "farcaster_profile_with_addresses", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.external_bronze.farcaster_profile_with_addresses", "fqn": ["external_models", "external_bronze", "farcaster_profile_with_addresses"], "source_name": "external_bronze", "source_description": "", "loader": "", "identifier": "farcaster_profile_with_addresses", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "external.bronze.farcaster_profile_with_addresses", "created_at": 1760113503.793924}, "source.external_models.external_bronze.farcaster_warpcast_power_users": {"database": "external", "schema": "bronze", "name": "farcaster_warpcast_power_users", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.external_bronze.farcaster_warpcast_power_users", "fqn": ["external_models", "external_bronze", "farcaster_warpcast_power_users"], "source_name": "external_bronze", "source_description": "", "loader": "", "identifier": "farcaster_warpcast_power_users", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "external.bronze.farcaster_warpcast_power_users", "created_at": 1760113503.7940707}, "source.external_models.external_bronze.aptos_shinam": {"database": "external", "schema": "bronze", "name": "aptos_shinam", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.external_bronze.aptos_shinam", "fqn": ["external_models", "external_bronze", "aptos_shinam"], "source_name": "external_bronze", "source_description": "", "loader": "", "identifier": "aptos_shinam", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "external.bronze.aptos_shinam", "created_at": 1760113503.7942371}, "source.external_models.avalanche_share.c_blocks": {"database": "ava_labs_share", "schema": "primary", "name": "c_blocks", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.avalanche_share.c_blocks", "fqn": ["external_models", "avalanche_share", "c_blocks"], "source_name": "avalanche_share", "source_description": "", "loader": "", "identifier": "c_blocks", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "ava_labs_share.primary.c_blocks", "created_at": 1760113503.7943914}, "source.external_models.avalanche_share.c_messages": {"database": "ava_labs_share", "schema": "primary", "name": "c_messages", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.avalanche_share.c_messages", "fqn": ["external_models", "avalanche_share", "c_messages"], "source_name": "avalanche_share", "source_description": "", "loader": "", "identifier": "c_messages", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "ava_labs_share.primary.c_messages", "created_at": 1760113503.7945404}, "source.external_models.avalanche_share.c_transactions": {"database": "ava_labs_share", "schema": "primary", "name": "c_transactions", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.avalanche_share.c_transactions", "fqn": ["external_models", "avalanche_share", "c_transactions"], "source_name": "avalanche_share", "source_description": "", "loader": "", "identifier": "c_transactions", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "ava_labs_share.primary.c_transactions", "created_at": 1760113503.7946863}, "source.external_models.avalanche_share.c_internal_transactions": {"database": "ava_labs_share", "schema": "primary", "name": "c_internal_transactions", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.avalanche_share.c_internal_transactions", "fqn": ["external_models", "avalanche_share", "c_internal_transactions"], "source_name": "avalanche_share", "source_description": "", "loader": "", "identifier": "c_internal_transactions", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "ava_labs_share.primary.c_internal_transactions", "created_at": 1760113503.7948325}, "source.external_models.avalanche_share.c_receipts": {"database": "ava_labs_share", "schema": "primary", "name": "c_receipts", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.avalanche_share.c_receipts", "fqn": ["external_models", "avalanche_share", "c_receipts"], "source_name": "avalanche_share", "source_description": "", "loader": "", "identifier": "c_receipts", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "ava_labs_share.primary.c_receipts", "created_at": 1760113503.7949803}, "source.external_models.avalanche_share.data_dictionary": {"database": "ava_labs_share", "schema": "primary", "name": "data_dictionary", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.avalanche_share.data_dictionary", "fqn": ["external_models", "avalanche_share", "data_dictionary"], "source_name": "avalanche_share", "source_description": "", "loader": "", "identifier": "data_dictionary", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "ava_labs_share.primary.data_dictionary", "created_at": 1760113503.7951276}, "source.external_models.avalanche_share.p_blocks": {"database": "ava_labs_share", "schema": "primary", "name": "p_blocks", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.avalanche_share.p_blocks", "fqn": ["external_models", "avalanche_share", "p_blocks"], "source_name": "avalanche_share", "source_description": "", "loader": "", "identifier": "p_blocks", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "ava_labs_share.primary.p_blocks", "created_at": 1760113503.7952924}, "source.external_models.avalanche_share.p_transactions": {"database": "ava_labs_share", "schema": "primary", "name": "p_transactions", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.avalanche_share.p_transactions", "fqn": ["external_models", "avalanche_share", "p_transactions"], "source_name": "avalanche_share", "source_description": "", "loader": "", "identifier": "p_transactions", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "ava_labs_share.primary.p_transactions", "created_at": 1760113503.7954412}, "source.external_models.avalanche_share.utxos": {"database": "ava_labs_share", "schema": "primary", "name": "utxos", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.avalanche_share.utxos", "fqn": ["external_models", "avalanche_share", "utxos"], "source_name": "avalanche_share", "source_description": "", "loader": "", "identifier": "utxos", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "ava_labs_share.primary.utxos", "created_at": 1760113503.7955878}, "source.external_models.avalanche_share.vertices": {"database": "ava_labs_share", "schema": "primary", "name": "vertices", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.avalanche_share.vertices", "fqn": ["external_models", "avalanche_share", "vertices"], "source_name": "avalanche_share", "source_description": "", "loader": "", "identifier": "vertices", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "ava_labs_share.primary.vertices", "created_at": 1760113503.7957354}, "source.external_models.avalanche_share.x_blocks": {"database": "ava_labs_share", "schema": "primary", "name": "x_blocks", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.avalanche_share.x_blocks", "fqn": ["external_models", "avalanche_share", "x_blocks"], "source_name": "avalanche_share", "source_description": "", "loader": "", "identifier": "x_blocks", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "ava_labs_share.primary.x_blocks", "created_at": 1760113503.7958844}, "source.external_models.avalanche_share.x_transactions": {"database": "ava_labs_share", "schema": "primary", "name": "x_transactions", "resource_type": "source", "package_name": "external_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.external_models.avalanche_share.x_transactions", "fqn": ["external_models", "avalanche_share", "x_transactions"], "source_name": "avalanche_share", "source_description": "", "loader": "", "identifier": "x_transactions", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "ava_labs_share.primary.x_transactions", "created_at": 1760113503.7960339}, "source.livequery_models.crosschain.dim_date_hours": {"database": "crosschain_dev", "schema": "core", "name": "dim_date_hours", "resource_type": "source", "package_name": "livequery_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.livequery_models.crosschain.dim_date_hours", "fqn": ["livequery_models", "crosschain", "dim_date_hours"], "source_name": "crosschain", "source_description": "", "loader": "", "identifier": "dim_date_hours", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain_dev.core.dim_date_hours", "created_at": 1760113503.796215}, "source.livequery_models.crosschain.dim_contracts": {"database": "crosschain_dev", "schema": "core", "name": "dim_contracts", "resource_type": "source", "package_name": "livequery_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.livequery_models.crosschain.dim_contracts", "fqn": ["livequery_models", "crosschain", "dim_contracts"], "source_name": "crosschain", "source_description": "", "loader": "", "identifier": "dim_contracts", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain_dev.core.dim_contracts", "created_at": 1760113503.7963839}, "source.livequery_models.crosschain.dim_evm_event_abis": {"database": "crosschain_dev", "schema": "core", "name": "dim_evm_event_abis", "resource_type": "source", "package_name": "livequery_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.livequery_models.crosschain.dim_evm_event_abis", "fqn": ["livequery_models", "crosschain", "dim_evm_event_abis"], "source_name": "crosschain", "source_description": "", "loader": "", "identifier": "dim_evm_event_abis", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "crosschain_dev.core.dim_evm_event_abis", "created_at": 1760113503.7965496}, "source.livequery_models.ethereum_core.fact_event_logs": {"database": "ethereum_dev", "schema": "core", "name": "fact_event_logs", "resource_type": "source", "package_name": "livequery_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.livequery_models.ethereum_core.fact_event_logs", "fqn": ["livequery_models", "ethereum_core", "fact_event_logs"], "source_name": "ethereum_core", "source_description": "", "loader": "", "identifier": "fact_event_logs", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "ethereum_dev.core.fact_event_logs", "created_at": 1760113503.796714}, "source.livequery_models.ethereum_core.ez_decoded_event_logs": {"database": "ethereum_dev", "schema": "core", "name": "ez_decoded_event_logs", "resource_type": "source", "package_name": "livequery_models", "path": "models/sources.yml", "original_file_path": "models/sources.yml", "unique_id": "source.livequery_models.ethereum_core.ez_decoded_event_logs", "fqn": ["livequery_models", "ethereum_core", "ez_decoded_event_logs"], "source_name": "ethereum_core", "source_description": "", "loader": "", "identifier": "ez_decoded_event_logs", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "ethereum_dev.core.ez_decoded_event_logs", "created_at": 1760113503.7968755}}, "macros": {"macro.external_models.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "external_models", "path": "macros/custom_naming_macros.sql", "original_file_path": "macros/custom_naming_macros.sql", "unique_id": "macro.external_models.generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {% set node_name = node.name %}\n {% set split_name = node_name.split('__') %}\n {{ split_name[0] | trim }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9147866, "supported_languages": null}, "macro.external_models.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "external_models", "path": "macros/custom_naming_macros.sql", "original_file_path": "macros/custom_naming_macros.sql", "unique_id": "macro.external_models.generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% set node_name = node.name %}\n {% set split_name = node_name.split('__') %}\n {{ split_name[1] | trim }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9154153, "supported_languages": null}, "macro.external_models.create_udfs": {"name": "create_udfs", "resource_type": "macro", "package_name": "external_models", "path": "macros/create_udfs.sql", "original_file_path": "macros/create_udfs.sql", "unique_id": "macro.external_models.create_udfs", "macro_sql": "{% macro create_udfs() %}\n {% if var(\"UPDATE_UDFS_AND_SPS\") %}\n {% set sql %}\n {{ create_udf_bulk_rest_api_v2() }};\n{% endset %}\n {% do run_query(sql) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.external_models.create_udf_bulk_rest_api_v2", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9161768, "supported_languages": null}, "macro.external_models.run_sp_create_prod_clone": {"name": "run_sp_create_prod_clone", "resource_type": "macro", "package_name": "external_models", "path": "macros/run_sp_create_prod_clone.sql", "original_file_path": "macros/run_sp_create_prod_clone.sql", "unique_id": "macro.external_models.run_sp_create_prod_clone", "macro_sql": "{% macro run_sp_create_prod_clone() %}\n {% set clone_query %}\n call external._internal.create_prod_clone(\n 'external',\n 'external_dev',\n 'external_dev_owner'\n );\n{% endset %}\n {% do run_query(clone_query) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9166882, "supported_languages": null}, "macro.external_models.create_sps": {"name": "create_sps", "resource_type": "macro", "package_name": "external_models", "path": "macros/create_sps.sql", "original_file_path": "macros/create_sps.sql", "unique_id": "macro.external_models.create_sps", "macro_sql": "{% macro create_sps() %}\n {% if var(\"UPDATE_UDFS_AND_SPS\") %}\n {% if target.database == 'EXTERNAL' %}\n CREATE schema IF NOT EXISTS _internal;\n {{ sp_create_prod_clone('_internal') }};\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.external_models.sp_create_prod_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9174142, "supported_languages": null}, "macro.external_models.sp_create_prod_clone": {"name": "sp_create_prod_clone", "resource_type": "macro", "package_name": "external_models", "path": "macros/sp_create_prod_clone.sql", "original_file_path": "macros/sp_create_prod_clone.sql", "unique_id": "macro.external_models.sp_create_prod_clone", "macro_sql": "{% macro sp_create_prod_clone(target_schema) -%}\n\ncreate or replace procedure {{ target_schema }}.create_prod_clone(source_db_name string, destination_db_name string, role_name string)\nreturns boolean \nlanguage javascript\nexecute as caller\nas\n$$\n snowflake.execute({sqlText: `BEGIN TRANSACTION;`});\n try {\n snowflake.execute({sqlText: `CREATE OR REPLACE DATABASE ${DESTINATION_DB_NAME} CLONE ${SOURCE_DB_NAME}`});\n snowflake.execute({sqlText: `DROP SCHEMA IF EXISTS ${DESTINATION_DB_NAME}._INTERNAL`}); /* this only needs to be in prod */\n snowflake.execute({sqlText: `GRANT USAGE ON DATABASE ${DESTINATION_DB_NAME} TO AWS_LAMBDA_EXTERNAL_API`});\n\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL SCHEMAS IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL FUNCTIONS IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL PROCEDURES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL VIEWS IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL STAGES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL TABLES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON FUTURE FUNCTIONS IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME};`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON FUTURE PROCEDURES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME};`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON FUTURE VIEWS IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME};`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON FUTURE STAGES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME};`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON FUTURE TABLES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME};`});\n snowflake.execute({sqlText: `GRANT USAGE ON ALL STAGES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE AWS_LAMBDA_EXTERNAL_API;`}); \n\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`})\n\n var existing_tags = snowflake.execute({sqlText: `SHOW TAGS IN DATABASE ${DESTINATION_DB_NAME};`});\n while (existing_tags.next()) {\n var schema = existing_tags.getColumnValue(4);\n var tag_name = existing_tags.getColumnValue(2)\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON TAG ${DESTINATION_DB_NAME}.${schema}.${tag_name} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`});\n }\n\n snowflake.execute({sqlText: `COMMIT;`});\n } catch (err) {\n snowflake.execute({sqlText: `ROLLBACK;`});\n throw(err);\n }\n\n return true\n$$\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9184358, "supported_languages": null}, "macro.external_models.set_query_tag": {"name": "set_query_tag", "resource_type": "macro", "package_name": "external_models", "path": "macros/custom_query_tag.sql", "original_file_path": "macros/custom_query_tag.sql", "unique_id": "macro.external_models.set_query_tag", "macro_sql": "{% macro set_query_tag() -%}\n {% set new_json = {\"repo\":project_name, \"object\":this.table, \"profile\":target.profile_name, \"env\":target.name, \"existing_tag\":get_current_query_tag() } %}\n{% set new_query_tag = tojson(new_json) | as_text %}\n {% if new_query_tag %}\n {% set original_query_tag = get_current_query_tag() %}\n {{ log(\"Setting query_tag to '\" ~ new_query_tag ~ \"'. Will reset to '\" ~ original_query_tag ~ \"' after materialization.\") }}\n {% do run_query(\"alter session set query_tag = '{}'\".format(new_query_tag)) %}\n {{ return(original_query_tag)}}\n {% endif %}\n {{ return(none)}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.get_current_query_tag", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9202094, "supported_languages": null}, "macro.external_models.apply_meta_as_tags": {"name": "apply_meta_as_tags", "resource_type": "macro", "package_name": "external_models", "path": "macros/tags/snowflake_tagging.sql", "original_file_path": "macros/tags/snowflake_tagging.sql", "unique_id": "macro.external_models.apply_meta_as_tags", "macro_sql": "{% macro apply_meta_as_tags(results) %}\n {% if var(\"UPDATE_SNOWFLAKE_TAGS\") %}\n {{ log('apply_meta_as_tags', info=False) }}\n {{ log(results, info=False) }}\n {% if execute %}\n\n {%- set tags_by_schema = {} -%}\n {% for res in results -%}\n {% if res.node.meta.database_tags %}\n\n {%- set model_database = res.node.database -%}\n {%- set model_schema = res.node.schema -%}\n {%- set model_schema_full = model_database+'.'+model_schema -%}\n {%- set model_alias = res.node.alias -%}\n\n {% if model_schema_full not in tags_by_schema.keys() %}\n {{ log('need to fetch tags for schema '+model_schema_full, info=False) }}\n {%- call statement('main', fetch_result=True) -%}\n show tags in {{model_database}}.{{model_schema}}\n {%- endcall -%}\n {%- set _ = tags_by_schema.update({model_schema_full: load_result('main')['table'].columns.get('name').values()|list}) -%}\n {{ log('Added tags to cache', info=False) }}\n {% else %}\n {{ log('already have tag info for schema', info=False) }}\n {% endif %}\n\n {%- set current_tags_in_schema = tags_by_schema[model_schema_full] -%}\n {{ log('current_tags_in_schema:', info=False) }}\n {{ log(current_tags_in_schema, info=False) }}\n {{ log(\"========== Processing tags for \"+model_schema_full+\".\"+model_alias+\" ==========\", info=False) }}\n\n {% set line -%}\n node: {{ res.node.unique_id }}; status: {{ res.status }} (message: {{ res.message }})\n node full: {{ res.node}}\n meta: {{ res.node.meta}}\n materialized: {{ res.node.config.materialized }}\n {%- endset %}\n {{ log(line, info=False) }}\n\n {%- call statement('main', fetch_result=True) -%}\n select LEVEL,UPPER(TAG_NAME) as TAG_NAME,TAG_VALUE from table(information_schema.tag_references_all_columns('{{model_schema}}.{{model_alias}}', 'table'))\n {%- endcall -%}\n {%- set existing_tags_for_table = load_result('main')['data'] -%}\n {{ log('Existing tags for table:', info=False) }}\n {{ log(existing_tags_for_table, info=False) }}\n\n {{ log('--', info=False) }}\n {% for table_tag in res.node.meta.database_tags.table %}\n\n {{ create_tag_if_missing(current_tags_in_schema,table_tag|upper) }}\n {% set desired_tag_value = res.node.meta.database_tags.table[table_tag] %}\n\n {{set_table_tag_value_if_different(model_schema,model_alias,table_tag,desired_tag_value,existing_tags_for_table)}}\n {% endfor %}\n {{ log(\"========== Finished processing tags for \"+model_alias+\" ==========\", info=False) }}\n {% endif %}\n {% endfor %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.external_models.create_tag_if_missing", "macro.external_models.set_table_tag_value_if_different"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.939559, "supported_languages": null}, "macro.external_models.create_tag_if_missing": {"name": "create_tag_if_missing", "resource_type": "macro", "package_name": "external_models", "path": "macros/tags/snowflake_tagging.sql", "original_file_path": "macros/tags/snowflake_tagging.sql", "unique_id": "macro.external_models.create_tag_if_missing", "macro_sql": "{% macro create_tag_if_missing(all_tag_names,table_tag) %}\n\t{% if table_tag not in all_tag_names %}\n\t\t{{ log('Creating missing tag '+table_tag, info=False) }}\n {%- call statement('main', fetch_result=True) -%}\n create tag if not exists silver.{{table_tag}}\n {%- endcall -%}\n\t\t{{ log(load_result('main').data, info=False) }}\n\t{% else %}\n\t\t{{ log('Tag already exists: '+table_tag, info=False) }}\n\t{% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9406998, "supported_languages": null}, "macro.external_models.set_table_tag_value_if_different": {"name": "set_table_tag_value_if_different", "resource_type": "macro", "package_name": "external_models", "path": "macros/tags/snowflake_tagging.sql", "original_file_path": "macros/tags/snowflake_tagging.sql", "unique_id": "macro.external_models.set_table_tag_value_if_different", "macro_sql": "{% macro set_table_tag_value_if_different(model_schema,table_name,tag_name,desired_tag_value,existing_tags) %}\n {{ log('Ensuring tag '+tag_name+' has value '+desired_tag_value+' at table level', info=False) }}\n {%- set existing_tag_for_table = existing_tags|selectattr('0','equalto','TABLE')|selectattr('1','equalto',tag_name|upper)|list -%}\n {{ log('Filtered tags for table:', info=False) }}\n {{ log(existing_tag_for_table[0], info=False) }}\n {% if existing_tag_for_table|length > 0 and existing_tag_for_table[0][2]==desired_tag_value %}\n {{ log('Correct tag value already exists', info=False) }}\n {% else %}\n {{ log('Setting tag value for '+tag_name+' to value '+desired_tag_value, info=False) }}\n {%- call statement('main', fetch_result=True) -%}\n alter table {{model_schema}}.{{table_name}} set tag {{tag_name}} = '{{desired_tag_value}}'\n {%- endcall -%}\n {{ log(load_result('main').data, info=False) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9429138, "supported_languages": null}, "macro.external_models.set_column_tag_value_if_different": {"name": "set_column_tag_value_if_different", "resource_type": "macro", "package_name": "external_models", "path": "macros/tags/snowflake_tagging.sql", "original_file_path": "macros/tags/snowflake_tagging.sql", "unique_id": "macro.external_models.set_column_tag_value_if_different", "macro_sql": "{% macro set_column_tag_value_if_different(table_name,column_name,tag_name,desired_tag_value,existing_tags) %}\n {{ log('Ensuring tag '+tag_name+' has value '+desired_tag_value+' at column level', info=False) }}\n {%- set existing_tag_for_column = existing_tags|selectattr('0','equalto','COLUMN')|selectattr('1','equalto',tag_name|upper)|list -%}\n {{ log('Filtered tags for column:', info=False) }}\n {{ log(existing_tag_for_column[0], info=False) }}\n {% if existing_tag_for_column|length > 0 and existing_tag_for_column[0][2]==desired_tag_value %}\n {{ log('Correct tag value already exists', info=False) }}\n {% else %}\n {{ log('Setting tag value for '+tag_name+' to value '+desired_tag_value, info=False) }}\n {%- call statement('main', fetch_result=True) -%}\n alter table {{table_name}} modify column {{column_name}} set tag {{tag_name}} = '{{desired_tag_value}}'\n {%- endcall -%}\n {{ log(load_result('main').data, info=False) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9451175, "supported_languages": null}, "macro.external_models.set_database_tag_value": {"name": "set_database_tag_value", "resource_type": "macro", "package_name": "external_models", "path": "macros/tags/snowflake_tagging.sql", "original_file_path": "macros/tags/snowflake_tagging.sql", "unique_id": "macro.external_models.set_database_tag_value", "macro_sql": "{% macro set_database_tag_value(tag_name,tag_value) %}\n {% set query %}\n create tag if not exists silver.{{tag_name}}\n {% endset %}\n {% do run_query(query) %}\n {% set query %}\n alter database {{target.database}} set tag {{target.database}}.silver.{{tag_name}} = '{{tag_value}}'\n {% endset %}\n {% do run_query(query) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9459662, "supported_languages": null}, "macro.external_models.set_schema_tag_value": {"name": "set_schema_tag_value", "resource_type": "macro", "package_name": "external_models", "path": "macros/tags/snowflake_tagging.sql", "original_file_path": "macros/tags/snowflake_tagging.sql", "unique_id": "macro.external_models.set_schema_tag_value", "macro_sql": "{% macro set_schema_tag_value(target_schema,tag_name,tag_value) %}\n {% set query %}\n create tag if not exists silver.{{tag_name}}\n {% endset %}\n {% do run_query(query) %}\n {% set query %}\n alter schema {{target.database}}.{{target_schema}} set tag {{target.database}}.silver.{{tag_name}} = '{{tag_value}}'\n {% endset %}\n {% do run_query(query) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9468496, "supported_languages": null}, "macro.external_models.add_database_or_schema_tags": {"name": "add_database_or_schema_tags", "resource_type": "macro", "package_name": "external_models", "path": "macros/tags/add_database_or_schema_tags.sql", "original_file_path": "macros/tags/add_database_or_schema_tags.sql", "unique_id": "macro.external_models.add_database_or_schema_tags", "macro_sql": "{% macro add_database_or_schema_tags() %}\n {{ set_database_tag_value('BLOCKCHAIN_NAME','EXTERNAL') }}\n{% endmacro %}", "depends_on": {"macros": ["macro.external_models.set_database_tag_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9472287, "supported_languages": null}, "macro.external_models.run_sp_refresh_external_tables_aptos": {"name": "run_sp_refresh_external_tables_aptos", "resource_type": "macro", "package_name": "external_models", "path": "macros/streamline/run_sp_refresh_external_tables_aptos.sql", "original_file_path": "macros/streamline/run_sp_refresh_external_tables_aptos.sql", "unique_id": "macro.external_models.run_sp_refresh_external_tables_aptos", "macro_sql": "{% macro run_sp_refresh_external_tables_aptos() %}\n{% set sql %}\ncall bronze.sp_refresh_external_tables_aptos();\n{% endset %}\n\n{% do run_query(sql) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9476774, "supported_languages": null}, "macro.external_models.streamline_external_table_query_v2": {"name": "streamline_external_table_query_v2", "resource_type": "macro", "package_name": "external_models", "path": "macros/streamline/models.sql", "original_file_path": "macros/streamline/models.sql", "unique_id": "macro.external_models.streamline_external_table_query_v2", "macro_sql": "{% macro streamline_external_table_query_v2(\n model,\n partition_function,\n partition_name,\n other_cols=''\n) %}\nWITH meta AS (\n SELECT\n LAST_MODIFIED::timestamp_ntz AS _inserted_timestamp,\n file_name,\n {{ partition_function }} AS {{ partition_name }}\n FROM\n TABLE(\n information_schema.external_table_file_registration_history(\n start_time => DATEADD('day', -3, CURRENT_TIMESTAMP()),\n table_name => '{{ source( \"bronze_streamline\", model) }}')\n ) A\n)\nSELECT\n {% if other_cols != '' %}{{ other_cols }},{% endif %}\n DATA,\n _inserted_timestamp,\n s.{{ partition_name }},\n s.value AS VALUE,\n file_name\nFROM\n {{ source(\n \"bronze_streamline\",\n model\n ) }}\n s\nJOIN \n meta b\n ON b.file_name = metadata$filename\n AND b.{{ partition_name }} = s.{{ partition_name }}\nWHERE\n b.{{ partition_name }} = s.{{ partition_name }}\n AND (\n data:error:code IS NULL\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9499013, "supported_languages": null}, "macro.external_models.streamline_external_table_FR_query_v2": {"name": "streamline_external_table_FR_query_v2", "resource_type": "macro", "package_name": "external_models", "path": "macros/streamline/models.sql", "original_file_path": "macros/streamline/models.sql", "unique_id": "macro.external_models.streamline_external_table_FR_query_v2", "macro_sql": "{% macro streamline_external_table_FR_query_v2(\n model,\n partition_function,\n partition_name,\n other_cols=''\n) %}\nWITH meta AS (\n SELECT\n LAST_MODIFIED::timestamp_ntz AS _inserted_timestamp,\n file_name,\n {{ partition_function }} AS {{ partition_name }}\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => '{{ source( \"bronze_streamline\", model) }}'\n )\n ) A\n)\nSELECT\n {% if other_cols != '' %}{{ other_cols }},{% endif %}\n DATA,\n _inserted_timestamp,\n s.{{ partition_name }},\n s.value AS VALUE,\n file_name\nFROM\n {{ source(\n \"bronze_streamline\",\n model\n ) }}\n s\nJOIN \n meta b\n ON b.file_name = metadata$filename\n AND b.{{ partition_name }} = s.{{ partition_name }}\nWHERE\n b.{{ partition_name }} = s.{{ partition_name }}\n AND (\n data:error:code IS NULL\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9509246, "supported_languages": null}, "macro.external_models.create_udf_bulk_rest_api_v2": {"name": "create_udf_bulk_rest_api_v2", "resource_type": "macro", "package_name": "external_models", "path": "macros/streamline/streamline_udfs.sql", "original_file_path": "macros/streamline/streamline_udfs.sql", "unique_id": "macro.external_models.create_udf_bulk_rest_api_v2", "macro_sql": "{% macro create_udf_bulk_rest_api_v2() %}\n CREATE\n OR REPLACE EXTERNAL FUNCTION streamline.udf_bulk_rest_api_v2(\n json OBJECT\n ) returns ARRAY {% if target.database == 'EXTERNAL' -%}\n api_integration = aws_external_api_prod_v2 AS 'https://zv7a5qfhv9.execute-api.us-east-1.amazonaws.com/prod/udf_bulk_rest_api'\n {% else %}\n api_integration = aws_external_api_stg_v2 AS 'https://qoupd0givh.execute-api.us-east-1.amazonaws.com/stg/udf_bulk_rest_api'\n {%- endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.951459, "supported_languages": null}, "macro.external_models.sp_refresh_external_tables_aptos": {"name": "sp_refresh_external_tables_aptos", "resource_type": "macro", "package_name": "external_models", "path": "macros/streamline/sp_refresh_external_tables_aptos.sql", "original_file_path": "macros/streamline/sp_refresh_external_tables_aptos.sql", "unique_id": "macro.external_models.sp_refresh_external_tables_aptos", "macro_sql": "{% macro sp_refresh_external_tables_aptos() %}\n{% set sql %}\ncreate or replace procedure bronze.sp_refresh_external_tables_aptos()\nreturns boolean\nlanguage sql\nexecute as caller\nas\n$$\n begin \n alter external table EXTERNAL.BRONZE.aptos_shinam refresh; \n return TRUE;\n end;\n$${% endset %}\n{% do run_query(sql) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9519467, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_catalog": {"name": "snowflake__get_catalog", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_catalog", "macro_sql": "{% macro snowflake__get_catalog(information_schema, schemas) -%}\n\n {% set query %}\n with tables as (\n {{ snowflake__get_catalog_tables_sql(information_schema) }}\n {{ snowflake__get_catalog_schemas_where_clause_sql(schemas) }}\n ),\n columns as (\n {{ snowflake__get_catalog_columns_sql(information_schema) }}\n {{ snowflake__get_catalog_schemas_where_clause_sql(schemas) }}\n )\n {{ snowflake__get_catalog_results_sql() }}\n {%- endset -%}\n\n {{ return(run_query(query)) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_catalog_tables_sql", "macro.dbt_snowflake.snowflake__get_catalog_schemas_where_clause_sql", "macro.dbt_snowflake.snowflake__get_catalog_columns_sql", "macro.dbt_snowflake.snowflake__get_catalog_results_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9566104, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_catalog_relations": {"name": "snowflake__get_catalog_relations", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_catalog_relations", "macro_sql": "{% macro snowflake__get_catalog_relations(information_schema, relations) -%}\n\n {% set query %}\n with tables as (\n {{ snowflake__get_catalog_tables_sql(information_schema) }}\n {{ snowflake__get_catalog_relations_where_clause_sql(relations) }}\n ),\n columns as (\n {{ snowflake__get_catalog_columns_sql(information_schema) }}\n {{ snowflake__get_catalog_relations_where_clause_sql(relations) }}\n )\n {{ snowflake__get_catalog_results_sql() }}\n {%- endset -%}\n\n {{ return(run_query(query)) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_catalog_tables_sql", "macro.dbt_snowflake.snowflake__get_catalog_relations_where_clause_sql", "macro.dbt_snowflake.snowflake__get_catalog_columns_sql", "macro.dbt_snowflake.snowflake__get_catalog_results_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9574015, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_catalog_tables_sql": {"name": "snowflake__get_catalog_tables_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_catalog_tables_sql", "macro_sql": "{% macro snowflake__get_catalog_tables_sql(information_schema) -%}\n select\n table_catalog as \"table_database\",\n table_schema as \"table_schema\",\n table_name as \"table_name\",\n coalesce(table_type, 'DYNAMIC TABLE') as \"table_type\",\n comment as \"table_comment\",\n\n -- note: this is the _role_ that owns the table\n table_owner as \"table_owner\",\n\n 'Clustering Key' as \"stats:clustering_key:label\",\n clustering_key as \"stats:clustering_key:value\",\n 'The key used to cluster this table' as \"stats:clustering_key:description\",\n (clustering_key is not null) as \"stats:clustering_key:include\",\n\n 'Row Count' as \"stats:row_count:label\",\n row_count as \"stats:row_count:value\",\n 'An approximate count of rows in this table' as \"stats:row_count:description\",\n (row_count is not null) as \"stats:row_count:include\",\n\n 'Approximate Size' as \"stats:bytes:label\",\n bytes as \"stats:bytes:value\",\n 'Approximate size of the table as reported by Snowflake' as \"stats:bytes:description\",\n (bytes is not null) as \"stats:bytes:include\",\n\n 'Last Modified' as \"stats:last_modified:label\",\n to_varchar(convert_timezone('UTC', last_altered), 'yyyy-mm-dd HH24:MI'||'UTC') as \"stats:last_modified:value\",\n 'The timestamp for last update/change' as \"stats:last_modified:description\",\n (last_altered is not null and table_type='BASE TABLE') as \"stats:last_modified:include\"\n from {{ information_schema }}.tables\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9577465, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_catalog_columns_sql": {"name": "snowflake__get_catalog_columns_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_catalog_columns_sql", "macro_sql": "{% macro snowflake__get_catalog_columns_sql(information_schema) -%}\n select\n table_catalog as \"table_database\",\n table_schema as \"table_schema\",\n table_name as \"table_name\",\n\n column_name as \"column_name\",\n ordinal_position as \"column_index\",\n data_type as \"column_type\",\n comment as \"column_comment\"\n from {{ information_schema }}.columns\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9579859, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_catalog_results_sql": {"name": "snowflake__get_catalog_results_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_catalog_results_sql", "macro_sql": "{% macro snowflake__get_catalog_results_sql() -%}\n select *\n from tables\n join columns using (\"table_database\", \"table_schema\", \"table_name\")\n order by \"column_index\"\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9581573, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_catalog_schemas_where_clause_sql": {"name": "snowflake__get_catalog_schemas_where_clause_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_catalog_schemas_where_clause_sql", "macro_sql": "{% macro snowflake__get_catalog_schemas_where_clause_sql(schemas) -%}\n where ({%- for schema in schemas -%}\n upper(\"table_schema\") = upper('{{ schema }}'){%- if not loop.last %} or {% endif -%}\n {%- endfor -%})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9586325, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_catalog_relations_where_clause_sql": {"name": "snowflake__get_catalog_relations_where_clause_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_catalog_relations_where_clause_sql", "macro_sql": "{% macro snowflake__get_catalog_relations_where_clause_sql(relations) -%}\n where (\n {%- for relation in relations -%}\n {% if relation.schema and relation.identifier %}\n (\n upper(\"table_schema\") = upper('{{ relation.schema }}')\n and upper(\"table_name\") = upper('{{ relation.identifier }}')\n )\n {% elif relation.schema %}\n (\n upper(\"table_schema\") = upper('{{ relation.schema }}')\n )\n {% else %}\n {% do exceptions.raise_compiler_error(\n '`get_catalog_relations` requires a list of relations, each with a schema'\n ) %}\n {% endif %}\n\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9596312, "supported_languages": null}, "macro.dbt_snowflake.get_column_comment_sql": {"name": "get_column_comment_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.get_column_comment_sql", "macro_sql": "{% macro get_column_comment_sql(column_name, column_dict) -%}\n {% if (column_name|upper in column_dict) -%}\n {% set matched_column = column_name|upper -%}\n {% elif (column_name|lower in column_dict) -%}\n {% set matched_column = column_name|lower -%}\n {% elif (column_name in column_dict) -%}\n {% set matched_column = column_name -%}\n {% else -%}\n {% set matched_column = None -%}\n {% endif -%}\n {% if matched_column -%}\n {{ adapter.quote(column_name) }} COMMENT $${{ column_dict[matched_column]['description'] | replace('$', '[$]') }}$$\n {%- else -%}\n {{ adapter.quote(column_name) }} COMMENT $$$$\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9737737, "supported_languages": null}, "macro.dbt_snowflake.get_persist_docs_column_list": {"name": "get_persist_docs_column_list", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.get_persist_docs_column_list", "macro_sql": "{% macro get_persist_docs_column_list(model_columns, query_columns) %}\n(\n {% for column_name in query_columns %}\n {{ get_column_comment_sql(column_name, model_columns) }}\n {{- \", \" if not loop.last else \"\" }}\n {% endfor %}\n)\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.get_column_comment_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9744895, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_columns_in_relation": {"name": "snowflake__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_columns_in_relation", "macro_sql": "{% macro snowflake__get_columns_in_relation(relation) -%}\n {%- set sql -%}\n describe table {{ relation }}\n {%- endset -%}\n {%- set result = run_query(sql) -%}\n\n {% set maximum = 10000 %}\n {% if (result | length) >= maximum %}\n {% set msg %}\n Too many columns in relation {{ relation }}! dbt can only get\n information about relations with fewer than {{ maximum }} columns.\n {% endset %}\n {% do exceptions.raise_compiler_error(msg) %}\n {% endif %}\n\n {% set columns = [] %}\n {% for row in result %}\n {% do columns.append(api.Column.from_description(row['name'], row['type'])) %}\n {% endfor %}\n {% do return(columns) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.976073, "supported_languages": null}, "macro.dbt_snowflake.snowflake__list_schemas": {"name": "snowflake__list_schemas", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__list_schemas", "macro_sql": "{% macro snowflake__list_schemas(database) -%}\n {# 10k limit from here: https://docs.snowflake.net/manuals/sql-reference/sql/show-schemas.html#usage-notes #}\n {% set maximum = 10000 %}\n {% set sql -%}\n show terse schemas in database {{ database }}\n limit {{ maximum }}\n {%- endset %}\n {% set result = run_query(sql) %}\n {% if (result | length) >= maximum %}\n {% set msg %}\n Too many schemas in database {{ database }}! dbt can only get\n information about databases with fewer than {{ maximum }} schemas.\n {% endset %}\n {% do exceptions.raise_compiler_error(msg) %}\n {% endif %}\n {{ return(result) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9772503, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_paginated_relations_array": {"name": "snowflake__get_paginated_relations_array", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_paginated_relations_array", "macro_sql": "{% macro snowflake__get_paginated_relations_array(max_iter, max_results_per_iter, max_total_results, schema_relation, watermark) %}\n\n {% set paginated_relations = [] %}\n\n {% for _ in range(0, max_iter) %}\n\n {%- set paginated_sql -%}\n show terse objects in {{ schema_relation }} limit {{ max_results_per_iter }} from '{{ watermark.table_name }}'\n {%- endset -%}\n\n {%- set paginated_result = run_query(paginated_sql) %}\n {%- set paginated_n = (paginated_result | length) -%}\n\n {#\n terminating condition: if there are 0 records in the result we reached\n the end exactly on the previous iteration\n #}\n {%- if paginated_n == 0 -%}\n {%- break -%}\n {%- endif -%}\n\n {#\n terminating condition: At some point the user needs to be reasonable with how\n many objects are contained in their schemas. Since there was already\n one iteration before attempting pagination, loop.index == max_iter means\n the limit has been surpassed.\n #}\n\n {%- if loop.index == max_iter -%}\n {%- set msg -%}\n dbt will list a maximum of {{ max_total_results }} objects in schema {{ schema_relation }}.\n Your schema exceeds this limit. Please contact support@getdbt.com for troubleshooting tips,\n or review and reduce the number of objects contained.\n {%- endset -%}\n\n {% do exceptions.raise_compiler_error(msg) %}\n {%- endif -%}\n\n {%- do paginated_relations.append(paginated_result) -%}\n {% set watermark.table_name = paginated_result.columns[1].values()[-1] %}\n\n {#\n terminating condition: paginated_n < max_results_per_iter means we reached the end\n #}\n {%- if paginated_n < max_results_per_iter -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n\n {{ return(paginated_relations) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9793744, "supported_languages": null}, "macro.dbt_snowflake.snowflake__list_relations_without_caching": {"name": "snowflake__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__list_relations_without_caching", "macro_sql": "{% macro snowflake__list_relations_without_caching(schema_relation, max_iter=10, max_results_per_iter=10000) %}\n\n {%- set max_total_results = max_results_per_iter * max_iter -%}\n\n {%- set sql -%}\n show terse objects in {{ schema_relation }} limit {{ max_results_per_iter }}\n {%- endset -%}\n\n {%- set result = run_query(sql) -%}\n\n {%- set n = (result | length) -%}\n {%- set watermark = namespace(table_name=result.columns[1].values()[-1]) -%}\n {%- set paginated = namespace(result=[]) -%}\n\n {% if n >= max_results_per_iter %}\n\n {% set paginated.result = snowflake__get_paginated_relations_array(\n max_iter,\n max_results_per_iter,\n max_total_results,\n schema_relation,\n watermark\n )\n %}\n\n {% endif %}\n\n {%- set all_results_array = [result] + paginated.result -%}\n {%- set result = result.merge(all_results_array) -%}\n {%- do return(result) -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt_snowflake.snowflake__get_paginated_relations_array"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9812567, "supported_languages": null}, "macro.dbt_snowflake.snowflake__check_schema_exists": {"name": "snowflake__check_schema_exists", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__check_schema_exists", "macro_sql": "{% macro snowflake__check_schema_exists(information_schema, schema) -%}\n {% call statement('check_schema_exists', fetch_result=True) -%}\n select count(*)\n from {{ information_schema }}.schemata\n where upper(schema_name) = upper('{{ schema }}')\n and upper(catalog_name) = upper('{{ information_schema.database }}')\n {%- endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9819195, "supported_languages": null}, "macro.dbt_snowflake.snowflake__alter_column_type": {"name": "snowflake__alter_column_type", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__alter_column_type", "macro_sql": "{% macro snowflake__alter_column_type(relation, column_name, new_column_type) -%}\n {% call statement('alter_column_type') %}\n alter table {{ relation }} alter {{ adapter.quote(column_name) }} set data type {{ new_column_type }};\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9824584, "supported_languages": null}, "macro.dbt_snowflake.snowflake__alter_relation_comment": {"name": "snowflake__alter_relation_comment", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__alter_relation_comment", "macro_sql": "{% macro snowflake__alter_relation_comment(relation, relation_comment) -%}\n {%- if relation.is_dynamic_table -%}\n {%- set relation_type = 'dynamic table' -%}\n {%- else -%}\n {%- set relation_type = relation.type -%}\n {%- endif -%}\n comment on {{ relation_type }} {{ relation }} IS $${{ relation_comment | replace('$', '[$]') }}$$;\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9831433, "supported_languages": null}, "macro.dbt_snowflake.snowflake__alter_column_comment": {"name": "snowflake__alter_column_comment", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__alter_column_comment", "macro_sql": "{% macro snowflake__alter_column_comment(relation, column_dict) -%}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% if relation.is_dynamic_table -%}\n {% set relation_type = \"table\" %}\n {% else -%}\n {% set relation_type = relation.type %}\n {% endif %}\n alter {{ relation_type }} {{ relation }} alter\n {% for column_name in existing_columns if (column_name in existing_columns) or (column_name|lower in existing_columns) %}\n {{ get_column_comment_sql(column_name, column_dict) }} {{- ',' if not loop.last else ';' }}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.get_column_comment_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9845293, "supported_languages": null}, "macro.dbt_snowflake.get_current_query_tag": {"name": "get_current_query_tag", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.get_current_query_tag", "macro_sql": "{% macro get_current_query_tag() -%}\n {{ return(run_query(\"show parameters like 'query_tag' in session\").rows[0]['value']) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9849014, "supported_languages": null}, "macro.dbt_snowflake.set_query_tag": {"name": "set_query_tag", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.set_query_tag", "macro_sql": "{% macro set_query_tag() -%}\n {{ return(adapter.dispatch('set_query_tag', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__set_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.985247, "supported_languages": null}, "macro.dbt_snowflake.snowflake__set_query_tag": {"name": "snowflake__set_query_tag", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__set_query_tag", "macro_sql": "{% macro snowflake__set_query_tag() -%}\n {% set new_query_tag = config.get('query_tag') %}\n {% if new_query_tag %}\n {% set original_query_tag = get_current_query_tag() %}\n {{ log(\"Setting query_tag to '\" ~ new_query_tag ~ \"'. Will reset to '\" ~ original_query_tag ~ \"' after materialization.\") }}\n {% do run_query(\"alter session set query_tag = '{}'\".format(new_query_tag)) %}\n {{ return(original_query_tag)}}\n {% endif %}\n {{ return(none)}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.get_current_query_tag", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.986229, "supported_languages": null}, "macro.dbt_snowflake.unset_query_tag": {"name": "unset_query_tag", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.unset_query_tag", "macro_sql": "{% macro unset_query_tag(original_query_tag) -%}\n {{ return(adapter.dispatch('unset_query_tag', 'dbt')(original_query_tag)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9866009, "supported_languages": null}, "macro.dbt_snowflake.snowflake__unset_query_tag": {"name": "snowflake__unset_query_tag", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__unset_query_tag", "macro_sql": "{% macro snowflake__unset_query_tag(original_query_tag) -%}\n {% set new_query_tag = config.get('query_tag') %}\n {% if new_query_tag %}\n {% if original_query_tag %}\n {{ log(\"Resetting query_tag to '\" ~ original_query_tag ~ \"'.\") }}\n {% do run_query(\"alter session set query_tag = '{}'\".format(original_query_tag)) %}\n {% else %}\n {{ log(\"No original query_tag, unsetting parameter.\") }}\n {% do run_query(\"alter session unset query_tag\") %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9876094, "supported_languages": null}, "macro.dbt_snowflake.snowflake__alter_relation_add_remove_columns": {"name": "snowflake__alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__alter_relation_add_remove_columns", "macro_sql": "{% macro snowflake__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if relation.is_dynamic_table -%}\n {% set relation_type = \"dynamic table\" %}\n {% else -%}\n {% set relation_type = relation.type %}\n {% endif %}\n\n {% if add_columns %}\n\n {% set sql -%}\n alter {{ relation_type }} {{ relation }} add column\n {% for column in add_columns %}\n {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n {% endif %}\n\n {% if remove_columns %}\n\n {% set sql -%}\n alter {{ relation_type }} {{ relation }} drop column\n {% for column in remove_columns %}\n {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.989604, "supported_languages": null}, "macro.dbt_snowflake.snowflake_dml_explicit_transaction": {"name": "snowflake_dml_explicit_transaction", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake_dml_explicit_transaction", "macro_sql": "{% macro snowflake_dml_explicit_transaction(dml) %}\n {#\n Use this macro to wrap all INSERT, MERGE, UPDATE, DELETE, and TRUNCATE\n statements before passing them into run_query(), or calling in the 'main' statement\n of a materialization\n #}\n {% set dml_transaction -%}\n begin;\n {{ dml }};\n commit;\n {%- endset %}\n\n {% do return(dml_transaction) %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9900532, "supported_languages": null}, "macro.dbt_snowflake.snowflake__truncate_relation": {"name": "snowflake__truncate_relation", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__truncate_relation", "macro_sql": "{% macro snowflake__truncate_relation(relation) -%}\n {% set truncate_dml %}\n truncate table {{ relation }}\n {% endset %}\n {% call statement('truncate_relation') -%}\n {{ snowflake_dml_explicit_transaction(truncate_dml) }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_snowflake.snowflake_dml_explicit_transaction"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9905744, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_relation_last_modified": {"name": "snowflake__get_relation_last_modified", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/metadata.sql", "original_file_path": "macros/metadata.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_relation_last_modified", "macro_sql": "{% macro snowflake__get_relation_last_modified(information_schema, relations) -%}\n\n {%- call statement('last_modified', fetch_result=True) -%}\n select table_schema as schema,\n table_name as identifier,\n last_altered as last_modified,\n {{ current_timestamp() }} as snapshotted_at\n from {{ information_schema }}.tables\n where (\n {%- for relation in relations -%}\n (upper(table_schema) = upper('{{ relation.schema }}') and\n upper(table_name) = upper('{{ relation.identifier }}')){%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n {%- endcall -%}\n\n {{ return(load_result('last_modified')) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9918551, "supported_languages": null}, "macro.dbt_snowflake.snowflake__copy_grants": {"name": "snowflake__copy_grants", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/apply_grants.sql", "original_file_path": "macros/apply_grants.sql", "unique_id": "macro.dbt_snowflake.snowflake__copy_grants", "macro_sql": "{% macro snowflake__copy_grants() %}\n {% set copy_grants = config.get('copy_grants', False) %}\n {{ return(copy_grants) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9924107, "supported_languages": null}, "macro.dbt_snowflake.snowflake__support_multiple_grantees_per_dcl_statement": {"name": "snowflake__support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/apply_grants.sql", "original_file_path": "macros/apply_grants.sql", "unique_id": "macro.dbt_snowflake.snowflake__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro snowflake__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(False) }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9926395, "supported_languages": null}, "macro.dbt_snowflake.materialization_snapshot_snowflake": {"name": "materialization_snapshot_snowflake", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "unique_id": "macro.dbt_snowflake.materialization_snapshot_snowflake", "macro_sql": "{% materialization snapshot, adapter='snowflake' %}\n {% set original_query_tag = set_query_tag() %}\n {% set relations = materialization_snapshot_default() %}\n\n {% do unset_query_tag(original_query_tag) %}\n\n {{ return(relations) }}\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt_snowflake.set_query_tag", "macro.dbt.materialization_snapshot_default", "macro.dbt_snowflake.unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9933553, "supported_languages": ["sql"]}, "macro.dbt_snowflake.materialization_table_snowflake": {"name": "materialization_table_snowflake", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "unique_id": "macro.dbt_snowflake.materialization_table_snowflake", "macro_sql": "{% materialization table, adapter='snowflake', supported_languages=['sql', 'python']%}\n\n {% set original_query_tag = set_query_tag() %}\n\n {%- set identifier = model['alias'] -%}\n {%- set language = model['language'] -%}\n\n {% set grant_config = config.get('grants') %}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set target_relation = api.Relation.create(identifier=identifier,\n schema=schema,\n database=database, type='table') -%}\n\n {{ run_hooks(pre_hooks) }}\n\n {#-- Drop the relation if it was a view to \"convert\" it in a table. This may lead to\n -- downtime, but it should be a relatively infrequent occurrence #}\n {% if old_relation is not none and not old_relation.is_table %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ drop_relation_if_exists(old_relation) }}\n {% endif %}\n\n {% call statement('main', language=language) -%}\n {{ create_table_as(False, target_relation, compiled_code, language) }}\n {%- endcall %}\n\n {{ run_hooks(post_hooks) }}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% do unset_query_tag(original_query_tag) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt_snowflake.set_query_tag", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt_snowflake.unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.997421, "supported_languages": ["sql", "python"]}, "macro.dbt_snowflake.py_write_table": {"name": "py_write_table", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "unique_id": "macro.dbt_snowflake.py_write_table", "macro_sql": "{% macro py_write_table(compiled_code, target_relation, temporary=False, table_type=none) %}\n{#- The following logic is only for backwards-compatiblity with deprecated `temporary` parameter -#}\n{% if table_type is not none %}\n {#- Just use the table_type as-is -#}\n{% elif temporary -%}\n {#- Case 1 when the deprecated `temporary` parameter is used without the replacement `table_type` parameter -#}\n {%- set table_type = \"temporary\" -%}\n{% else %}\n {#- Case 2 when the deprecated `temporary` parameter is used without the replacement `table_type` parameter -#}\n {#- Snowflake treats \"\" as meaning \"permanent\" -#}\n {%- set table_type = \"\" -%}\n{%- endif %}\n{{ compiled_code }}\ndef materialize(session, df, target_relation):\n # make sure pandas exists\n import importlib.util\n package_name = 'pandas'\n if importlib.util.find_spec(package_name):\n import pandas\n if isinstance(df, pandas.core.frame.DataFrame):\n session.use_database(target_relation.database)\n session.use_schema(target_relation.schema)\n # session.write_pandas does not have overwrite function\n df = session.createDataFrame(df)\n {% set target_relation_name = resolve_model_name(target_relation) %}\n df.write.mode(\"overwrite\").save_as_table('{{ target_relation_name }}', table_type='{{table_type}}')\n\ndef main(session):\n dbt = dbtObj(session.table)\n df = model(dbt, session)\n materialize(session, df, dbt.this)\n return \"OK\"\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9984798, "supported_languages": null}, "macro.dbt_snowflake.py_script_comment": {"name": "py_script_comment", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "unique_id": "macro.dbt_snowflake.py_script_comment", "macro_sql": "{% macro py_script_comment()%}\n# To run this in snowsight, you need to select entry point to be main\n# And you may have to modify the return type to text to get the result back\n# def main(session):\n# dbt = dbtObj(session.table)\n# df = model(dbt, session)\n# return df.collect()\n\n# to run this in local notebook, you need to create a session following examples https://github.com/Snowflake-Labs/sfguide-getting-started-snowpark-python\n# then you can do the following to run model\n# dbt = dbtObj(session.table)\n# df = model(dbt, session)\n{%endmacro%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9986987, "supported_languages": null}, "macro.dbt_snowflake.materialization_test_snowflake": {"name": "materialization_test_snowflake", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/test.sql", "original_file_path": "macros/materializations/test.sql", "unique_id": "macro.dbt_snowflake.materialization_test_snowflake", "macro_sql": "{%- materialization test, adapter='snowflake' -%}\n\n {% set original_query_tag = set_query_tag() %}\n {% set relations = materialization_test_default() %}\n {% do unset_query_tag(original_query_tag) %}\n {{ return(relations) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt_snowflake.set_query_tag", "macro.dbt.materialization_test_default", "macro.dbt_snowflake.unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113494.9994345, "supported_languages": ["sql"]}, "macro.dbt_snowflake.materialization_dynamic_table_snowflake": {"name": "materialization_dynamic_table_snowflake", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/dynamic_table.sql", "original_file_path": "macros/materializations/dynamic_table.sql", "unique_id": "macro.dbt_snowflake.materialization_dynamic_table_snowflake", "macro_sql": "{% materialization dynamic_table, adapter='snowflake' %}\n\n {% set query_tag = set_query_tag() %}\n\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.DynamicTable) %}\n\n {{ run_hooks(pre_hooks) }}\n\n {% set build_sql = dynamic_table_get_build_sql(existing_relation, target_relation) %}\n\n {% if build_sql == '' %}\n {{ dynamic_table_execute_no_op(target_relation) }}\n {% else %}\n {{ dynamic_table_execute_build_sql(build_sql, existing_relation, target_relation) }}\n {% endif %}\n\n {{ run_hooks(post_hooks) }}\n\n {% do unset_query_tag(query_tag) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt_snowflake.set_query_tag", "macro.dbt.load_cached_relation", "macro.dbt.run_hooks", "macro.dbt_snowflake.dynamic_table_get_build_sql", "macro.dbt_snowflake.dynamic_table_execute_no_op", "macro.dbt_snowflake.dynamic_table_execute_build_sql", "macro.dbt_snowflake.unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.004589, "supported_languages": ["sql"]}, "macro.dbt_snowflake.dynamic_table_get_build_sql": {"name": "dynamic_table_get_build_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/dynamic_table.sql", "original_file_path": "macros/materializations/dynamic_table.sql", "unique_id": "macro.dbt_snowflake.dynamic_table_get_build_sql", "macro_sql": "{% macro dynamic_table_get_build_sql(existing_relation, target_relation) %}\n\n {% set full_refresh_mode = should_full_refresh() %}\n\n -- determine the scenario we're in: create, full_refresh, alter, refresh data\n {% if existing_relation is none %}\n {% set build_sql = get_create_sql(target_relation, sql) %}\n {% elif full_refresh_mode or not existing_relation.is_dynamic_table %}\n {% set build_sql = get_replace_sql(existing_relation, target_relation, sql) %}\n {% else %}\n\n -- get config options\n {% set on_configuration_change = config.get('on_configuration_change') %}\n {% set configuration_changes = snowflake__get_dynamic_table_configuration_changes(existing_relation, config) %}\n\n {% if configuration_changes is none %}\n {% set build_sql = '' %}\n {{ exceptions.warn(\"No configuration changes were identified on: `\" ~ target_relation ~ \"`. Continuing.\") }}\n\n {% elif on_configuration_change == 'apply' %}\n {% set build_sql = snowflake__get_alter_dynamic_table_as_sql(existing_relation, configuration_changes, target_relation, sql) %}\n {% elif on_configuration_change == 'continue' %}\n {% set build_sql = '' %}\n {{ exceptions.warn(\"Configuration changes were identified and `on_configuration_change` was set to `continue` for `\" ~ target_relation ~ \"`\") }}\n {% elif on_configuration_change == 'fail' %}\n {{ exceptions.raise_fail_fast_error(\"Configuration changes were identified and `on_configuration_change` was set to `fail` for `\" ~ target_relation ~ \"`\") }}\n\n {% else %}\n -- this only happens if the user provides a value other than `apply`, 'continue', 'fail'\n {{ exceptions.raise_compiler_error(\"Unexpected configuration scenario: `\" ~ on_configuration_change ~ \"`\") }}\n\n {% endif %}\n\n {% endif %}\n\n {% do return(build_sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.get_create_sql", "macro.dbt.get_replace_sql", "macro.dbt_snowflake.snowflake__get_dynamic_table_configuration_changes", "macro.dbt_snowflake.snowflake__get_alter_dynamic_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0074277, "supported_languages": null}, "macro.dbt_snowflake.dynamic_table_execute_no_op": {"name": "dynamic_table_execute_no_op", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/dynamic_table.sql", "original_file_path": "macros/materializations/dynamic_table.sql", "unique_id": "macro.dbt_snowflake.dynamic_table_execute_no_op", "macro_sql": "{% macro dynamic_table_execute_no_op(relation) %}\n {% do store_raw_result(\n name=\"main\",\n message=\"skip \" ~ relation,\n code=\"skip\",\n rows_affected=\"-1\"\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0079052, "supported_languages": null}, "macro.dbt_snowflake.dynamic_table_execute_build_sql": {"name": "dynamic_table_execute_build_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/dynamic_table.sql", "original_file_path": "macros/materializations/dynamic_table.sql", "unique_id": "macro.dbt_snowflake.dynamic_table_execute_build_sql", "macro_sql": "{% macro dynamic_table_execute_build_sql(build_sql, existing_relation, target_relation) %}\n\n {% set grant_config = config.get('grants') %}\n\n {% call statement(name=\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0089257, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_dynamic_table_configuration_changes": {"name": "snowflake__get_dynamic_table_configuration_changes", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/dynamic_table.sql", "original_file_path": "macros/materializations/dynamic_table.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_dynamic_table_configuration_changes", "macro_sql": "{% macro snowflake__get_dynamic_table_configuration_changes(existing_relation, new_config) -%}\n {% set _existing_dynamic_table = snowflake__describe_dynamic_table(existing_relation) %}\n {% set _configuration_changes = existing_relation.dynamic_table_config_changeset(_existing_dynamic_table, new_config) %}\n {% do return(_configuration_changes) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__describe_dynamic_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0095098, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_merge_sql": {"name": "snowflake__get_merge_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/merge.sql", "original_file_path": "macros/materializations/merge.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_merge_sql", "macro_sql": "{% macro snowflake__get_merge_sql(target, source_sql, unique_key, dest_columns, incremental_predicates) -%}\n\n {#\n Workaround for Snowflake not being happy with a merge on a constant-false predicate.\n When no unique_key is provided, this macro will do a regular insert. If a unique_key\n is provided, then this macro will do a proper merge instead.\n #}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute='name')) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {%- set dml -%}\n {%- if unique_key is none -%}\n\n {{ sql_header if sql_header is not none }}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source_sql }}\n )\n\n {%- else -%}\n\n {{ default__get_merge_sql(target, source_sql, unique_key, dest_columns, incremental_predicates) }}\n\n {%- endif -%}\n {%- endset -%}\n\n {% do return(snowflake_dml_explicit_transaction(dml)) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.default__get_merge_sql", "macro.dbt_snowflake.snowflake_dml_explicit_transaction"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0119436, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_delete_insert_merge_sql": {"name": "snowflake__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/merge.sql", "original_file_path": "macros/materializations/merge.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_delete_insert_merge_sql", "macro_sql": "{% macro snowflake__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) %}\n {% set dml = default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) %}\n {% do return(snowflake_dml_explicit_transaction(dml)) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql", "macro.dbt_snowflake.snowflake_dml_explicit_transaction"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.01258, "supported_languages": null}, "macro.dbt_snowflake.snowflake__snapshot_merge_sql": {"name": "snowflake__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/merge.sql", "original_file_path": "macros/materializations/merge.sql", "unique_id": "macro.dbt_snowflake.snowflake__snapshot_merge_sql", "macro_sql": "{% macro snowflake__snapshot_merge_sql(target, source, insert_cols) %}\n {% set dml = default__snapshot_merge_sql(target, source, insert_cols) %}\n {% do return(snowflake_dml_explicit_transaction(dml)) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_merge_sql", "macro.dbt_snowflake.snowflake_dml_explicit_transaction"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0130994, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_incremental_append_sql": {"name": "snowflake__get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/merge.sql", "original_file_path": "macros/materializations/merge.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_incremental_append_sql", "macro_sql": "{% macro snowflake__get_incremental_append_sql(get_incremental_append_sql) %}\n {% set dml = default__get_incremental_append_sql(get_incremental_append_sql) %}\n {% do return(snowflake_dml_explicit_transaction(dml)) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql", "macro.dbt_snowflake.snowflake_dml_explicit_transaction"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0135458, "supported_languages": null}, "macro.dbt_snowflake.snowflake__can_clone_table": {"name": "snowflake__can_clone_table", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/clone.sql", "original_file_path": "macros/materializations/clone.sql", "unique_id": "macro.dbt_snowflake.snowflake__can_clone_table", "macro_sql": "{% macro snowflake__can_clone_table() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0139847, "supported_languages": null}, "macro.dbt_snowflake.snowflake__create_or_replace_clone": {"name": "snowflake__create_or_replace_clone", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/clone.sql", "original_file_path": "macros/materializations/clone.sql", "unique_id": "macro.dbt_snowflake.snowflake__create_or_replace_clone", "macro_sql": "{% macro snowflake__create_or_replace_clone(this_relation, defer_relation) %}\n create or replace\n {{ \"transient\" if config.get(\"transient\", true) }}\n table {{ this_relation }}\n clone {{ defer_relation }}\n {{ \"copy grants\" if config.get(\"copy_grants\", false) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0145988, "supported_languages": null}, "macro.dbt_snowflake.materialization_view_snowflake": {"name": "materialization_view_snowflake", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/view.sql", "original_file_path": "macros/materializations/view.sql", "unique_id": "macro.dbt_snowflake.materialization_view_snowflake", "macro_sql": "{% materialization view, adapter='snowflake' -%}\n\n {% set original_query_tag = set_query_tag() %}\n {% set to_return = snowflake__create_or_replace_view() %}\n\n {% set target_relation = this.incorporate(type='view') %}\n\n {% do persist_docs(target_relation, model, for_columns=false) %}\n\n {% do unset_query_tag(original_query_tag) %}\n\n {% do return(to_return) %}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt_snowflake.set_query_tag", "macro.dbt_snowflake.snowflake__create_or_replace_view", "macro.dbt.persist_docs", "macro.dbt_snowflake.unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.015681, "supported_languages": ["sql"]}, "macro.dbt_snowflake.dbt_snowflake_get_tmp_relation_type": {"name": "dbt_snowflake_get_tmp_relation_type", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "unique_id": "macro.dbt_snowflake.dbt_snowflake_get_tmp_relation_type", "macro_sql": "{% macro dbt_snowflake_get_tmp_relation_type(strategy, unique_key, language) %}\n{%- set tmp_relation_type = config.get('tmp_relation_type') -%}\n /* {#\n High-level principles:\n If we are running multiple statements (DELETE + INSERT),\n and we want to guarantee identical inputs to both statements,\n then we must first save the model query results as a temporary table\n (which presumably comes with a performance cost).\n If we are running a single statement (MERGE or INSERT alone),\n we _may_ save the model query definition as a view instead,\n for (presumably) faster overall incremental processing.\n\n Low-level specifics:\n If an invalid option is specified, then we will raise an\n excpetion with corresponding message.\n\n Languages other than SQL (like Python) will use a temporary table.\n With the default strategy of merge, the user may choose between a temporary\n table and view (defaulting to view).\n\n The append strategy can use a view because it will run a single INSERT statement.\n\n When unique_key is none, the delete+insert strategy can use a view beacuse a\n single INSERT statement is run with no DELETES as part of the statement.\n Otherwise, play it safe by using a temporary table.\n #} */\n\n {% if language == \"python\" and tmp_relation_type is not none %}\n {% do exceptions.raise_compiler_error(\n \"Python models currently only support 'table' for tmp_relation_type but \"\n ~ tmp_relation_type ~ \" was specified.\"\n ) %}\n {% endif %}\n\n {% if strategy == \"delete+insert\" and tmp_relation_type is not none and tmp_relation_type != \"table\" and unique_key is not none %}\n {% do exceptions.raise_compiler_error(\n \"In order to maintain consistent results when `unique_key` is not none,\n the `delete+insert` strategy only supports `table` for `tmp_relation_type` but \"\n ~ tmp_relation_type ~ \" was specified.\"\n )\n %}\n {% endif %}\n\n {% if language != \"sql\" %}\n {{ return(\"table\") }}\n {% elif tmp_relation_type == \"table\" %}\n {{ return(\"table\") }}\n {% elif tmp_relation_type == \"view\" %}\n {{ return(\"view\") }}\n {% elif strategy in (\"default\", \"merge\", \"append\") %}\n {{ return(\"view\") }}\n {% elif strategy == \"delete+insert\" and unique_key is none %}\n {{ return(\"view\") }}\n {% else %}\n {{ return(\"table\") }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.020273, "supported_languages": null}, "macro.dbt_snowflake.materialization_incremental_snowflake": {"name": "materialization_incremental_snowflake", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "unique_id": "macro.dbt_snowflake.materialization_incremental_snowflake", "macro_sql": "{% materialization incremental, adapter='snowflake', supported_languages=['sql', 'python'] -%}\n\n {% set original_query_tag = set_query_tag() %}\n\n {#-- Set vars --#}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n {%- set language = model['language'] -%}\n {% set target_relation = this %}\n {% set existing_relation = load_relation(this) %}\n\n {#-- The temp relation will be a view (faster) or temp table, depending on upsert/merge strategy --#}\n {%- set unique_key = config.get('unique_key') -%}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set tmp_relation_type = dbt_snowflake_get_tmp_relation_type(incremental_strategy, unique_key, language) %}\n {% set tmp_relation = make_temp_relation(this).incorporate(type=tmp_relation_type) %}\n\n {% set grant_config = config.get('grants') %}\n\n {% set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') %}\n\n {{ run_hooks(pre_hooks) }}\n\n {% if existing_relation is none %}\n {%- call statement('main', language=language) -%}\n {{ create_table_as(False, target_relation, compiled_code, language) }}\n {%- endcall -%}\n\n {% elif existing_relation.is_view %}\n {#-- Can't overwrite a view with a table - we must drop --#}\n {{ log(\"Dropping relation \" ~ target_relation ~ \" because it is a view and this model is a table.\") }}\n {% do adapter.drop_relation(existing_relation) %}\n {%- call statement('main', language=language) -%}\n {{ create_table_as(False, target_relation, compiled_code, language) }}\n {%- endcall -%}\n {% elif full_refresh_mode %}\n {%- call statement('main', language=language) -%}\n {{ create_table_as(False, target_relation, compiled_code, language) }}\n {%- endcall -%}\n\n {% else %}\n {#-- Create the temp relation, either as a view or as a temp table --#}\n {% if tmp_relation_type == 'view' %}\n {%- call statement('create_tmp_relation') -%}\n {{ snowflake__create_view_as_with_temp_flag(tmp_relation, compiled_code, True) }}\n {%- endcall -%}\n {% else %}\n {%- call statement('create_tmp_relation', language=language) -%}\n {{ create_table_as(True, tmp_relation, compiled_code, language) }}\n {%- endcall -%}\n {% endif %}\n\n {% do adapter.expand_target_column_types(\n from_relation=tmp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, tmp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': tmp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'incremental_predicates': incremental_predicates }) %}\n\n {%- call statement('main') -%}\n {{ strategy_sql_macro_func(strategy_arg_dict) }}\n {%- endcall -%}\n {% endif %}\n\n {% do drop_relation_if_exists(tmp_relation) %}\n\n {{ run_hooks(post_hooks) }}\n\n {% set target_relation = target_relation.incorporate(type='table') %}\n\n {% set should_revoke =\n should_revoke(existing_relation.is_table, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% do unset_query_tag(original_query_tag) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt_snowflake.set_query_tag", "macro.dbt.should_full_refresh", "macro.dbt.load_relation", "macro.dbt_snowflake.dbt_snowflake_get_tmp_relation_type", "macro.dbt.make_temp_relation", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt_snowflake.snowflake__create_view_as_with_temp_flag", "macro.dbt.process_schema_changes", "macro.dbt.drop_relation_if_exists", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt_snowflake.unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.027209, "supported_languages": ["sql", "python"]}, "macro.dbt_snowflake.snowflake__get_incremental_default_sql": {"name": "snowflake__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_incremental_default_sql", "macro_sql": "{% macro snowflake__get_incremental_default_sql(arg_dict) %}\n {{ return(get_incremental_merge_sql(arg_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0275564, "supported_languages": null}, "macro.dbt_snowflake.snowflake__load_csv_rows": {"name": "snowflake__load_csv_rows", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "unique_id": "macro.dbt_snowflake.snowflake__load_csv_rows", "macro_sql": "{% macro snowflake__load_csv_rows(model, agate_table) %}\n {% set batch_size = get_batch_size() %}\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n %s\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query('BEGIN', auto_begin=False) %}\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n {% do adapter.add_query('COMMIT', auto_begin=False) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.031531, "supported_languages": null}, "macro.dbt_snowflake.materialization_seed_snowflake": {"name": "materialization_seed_snowflake", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "unique_id": "macro.dbt_snowflake.materialization_seed_snowflake", "macro_sql": "{% materialization seed, adapter='snowflake' %}\n {% set original_query_tag = set_query_tag() %}\n\n {% set relations = materialization_seed_default() %}\n\n {% do unset_query_tag(original_query_tag) %}\n\n {{ return(relations) }}\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt_snowflake.set_query_tag", "macro.dbt.materialization_seed_default", "macro.dbt_snowflake.unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0321698, "supported_languages": ["sql"]}, "macro.dbt_snowflake.snowflake__current_timestamp": {"name": "snowflake__current_timestamp", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "unique_id": "macro.dbt_snowflake.snowflake__current_timestamp", "macro_sql": "{% macro snowflake__current_timestamp() -%}\n convert_timezone('UTC', current_timestamp())\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0327036, "supported_languages": null}, "macro.dbt_snowflake.snowflake__snapshot_string_as_time": {"name": "snowflake__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "unique_id": "macro.dbt_snowflake.snowflake__snapshot_string_as_time", "macro_sql": "{% macro snowflake__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"to_timestamp_ntz('\" ~ timestamp ~ \"')\" -%}\n {{ return(result) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0330718, "supported_languages": null}, "macro.dbt_snowflake.snowflake__snapshot_get_time": {"name": "snowflake__snapshot_get_time", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "unique_id": "macro.dbt_snowflake.snowflake__snapshot_get_time", "macro_sql": "{% macro snowflake__snapshot_get_time() -%}\n to_timestamp_ntz({{ current_timestamp() }})\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0333142, "supported_languages": null}, "macro.dbt_snowflake.snowflake__current_timestamp_backcompat": {"name": "snowflake__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "unique_id": "macro.dbt_snowflake.snowflake__current_timestamp_backcompat", "macro_sql": "{% macro snowflake__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0335345, "supported_languages": null}, "macro.dbt_snowflake.snowflake__current_timestamp_in_utc_backcompat": {"name": "snowflake__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "unique_id": "macro.dbt_snowflake.snowflake__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro snowflake__current_timestamp_in_utc_backcompat() %}\n convert_timezone('UTC', {{ snowflake__current_timestamp_backcompat() }})::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__current_timestamp_backcompat", "macro.dbt_expectations.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0338106, "supported_languages": null}, "macro.dbt_snowflake.snowflake__array_construct": {"name": "snowflake__array_construct", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt_snowflake.snowflake__array_construct", "macro_sql": "{% macro snowflake__array_construct(inputs, data_type) -%}\n array_construct( {{ inputs|join(' , ') }} )\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0341616, "supported_languages": null}, "macro.dbt_snowflake.snowflake__escape_single_quotes": {"name": "snowflake__escape_single_quotes", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt_snowflake.snowflake__escape_single_quotes", "macro_sql": "{% macro snowflake__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\", \"\\\\'\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0345364, "supported_languages": null}, "macro.dbt_snowflake.snowflake__right": {"name": "snowflake__right", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt_snowflake.snowflake__right", "macro_sql": "{% macro snowflake__right(string_text, length_expression) %}\n\n case when {{ length_expression }} = 0\n then ''\n else\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n end\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0349689, "supported_languages": null}, "macro.dbt_snowflake.snowflake__safe_cast": {"name": "snowflake__safe_cast", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt_snowflake.snowflake__safe_cast", "macro_sql": "{% macro snowflake__safe_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0353231, "supported_languages": null}, "macro.dbt_snowflake.snowflake__bool_or": {"name": "snowflake__bool_or", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt_snowflake.snowflake__bool_or", "macro_sql": "{% macro snowflake__bool_or(expression) -%}\n\n boolor_agg({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0355928, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_create_sql": {"name": "snowflake__get_create_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_create_sql", "macro_sql": "{% macro snowflake__get_create_sql(relation, sql) %}\n\n {% if relation.is_dynamic_table %}\n {{ snowflake__get_create_dynamic_table_as_sql(relation, sql) }}\n\n {% else %}\n {{ default__get_create_sql(relation, sql) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_create_dynamic_table_as_sql", "macro.dbt.default__get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0362856, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_replace_sql": {"name": "snowflake__get_replace_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_replace_sql", "macro_sql": "{% macro snowflake__get_replace_sql(existing_relation, target_relation, sql) %}\n\n {% if existing_relation.is_dynamic_table and target_relation.is_dynamic_table %}\n {{ snowflake__get_replace_dynamic_table_sql(target_relation, sql) }}\n\n {% else %}\n {{ default__get_replace_sql(existing_relation, target_relation, sql) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_replace_dynamic_table_sql", "macro.dbt.default__get_replace_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0370722, "supported_languages": null}, "macro.dbt_snowflake.snowflake__rename_relation": {"name": "snowflake__rename_relation", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt_snowflake.snowflake__rename_relation", "macro_sql": "{% macro snowflake__rename_relation(from_relation, to_relation) -%}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ to_relation }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0376546, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_drop_sql": {"name": "snowflake__get_drop_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_drop_sql", "macro_sql": "{% macro snowflake__get_drop_sql(relation) %}\n\n {% if relation.is_dynamic_table %}\n {{ snowflake__get_drop_dynamic_table_sql(relation) }}\n\n {% else %}\n {{ default__get_drop_sql(relation) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_drop_dynamic_table_sql", "macro.dbt.default__get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0382843, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_create_dynamic_table_as_sql": {"name": "snowflake__get_create_dynamic_table_as_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/dynamic_table/create.sql", "original_file_path": "macros/relations/dynamic_table/create.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_create_dynamic_table_as_sql", "macro_sql": "{% macro snowflake__get_create_dynamic_table_as_sql(relation, sql) -%}\n\n create dynamic table {{ relation }}\n target_lag = '{{ config.get(\"target_lag\") }}'\n warehouse = {{ config.get(\"snowflake_warehouse\") }}\n as (\n {{ sql }}\n )\n ;\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0388951, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_replace_dynamic_table_sql": {"name": "snowflake__get_replace_dynamic_table_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/dynamic_table/replace.sql", "original_file_path": "macros/relations/dynamic_table/replace.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_replace_dynamic_table_sql", "macro_sql": "{% macro snowflake__get_replace_dynamic_table_sql(relation, sql) %}\n\n create or replace dynamic table {{ relation }}\n target_lag = '{{ config.get(\"target_lag\") }}'\n warehouse = {{ config.get(\"snowflake_warehouse\") }}\n as (\n {{ sql }}\n )\n ;\n {{ snowflake__refresh_dynamic_table(relation) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__refresh_dynamic_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0396292, "supported_languages": null}, "macro.dbt_snowflake.snowflake__describe_dynamic_table": {"name": "snowflake__describe_dynamic_table", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/dynamic_table/describe.sql", "original_file_path": "macros/relations/dynamic_table/describe.sql", "unique_id": "macro.dbt_snowflake.snowflake__describe_dynamic_table", "macro_sql": "{% macro snowflake__describe_dynamic_table(relation) %}\n {%- set _dynamic_table_sql -%}\n show dynamic tables\n like '{{ relation.identifier }}'\n in schema {{ relation.database }}.{{ relation.schema }}\n ;\n select\n \"name\",\n \"schema_name\",\n \"database_name\",\n \"text\",\n \"target_lag\",\n \"warehouse\"\n from table(result_scan(last_query_id()))\n {%- endset %}\n {% set _dynamic_table = run_query(_dynamic_table_sql) %}\n\n {% do return({'dynamic_table': _dynamic_table}) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0407434, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_alter_dynamic_table_as_sql": {"name": "snowflake__get_alter_dynamic_table_as_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/dynamic_table/alter.sql", "original_file_path": "macros/relations/dynamic_table/alter.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_alter_dynamic_table_as_sql", "macro_sql": "{% macro snowflake__get_alter_dynamic_table_as_sql(\n existing_relation,\n configuration_changes,\n target_relation,\n sql\n) -%}\n {{- log('Applying ALTER to: ' ~ existing_relation) -}}\n\n {% if configuration_changes.requires_full_refresh %}\n {{- get_replace_sql(existing_relation, target_relation, sql) -}}\n\n {% else %}\n\n {%- set target_lag = configuration_changes.target_lag -%}\n {%- if target_lag -%}{{- log('Applying UPDATE TARGET_LAG to: ' ~ existing_relation) -}}{%- endif -%}\n {%- set snowflake_warehouse = configuration_changes.snowflake_warehouse -%}\n {%- if snowflake_warehouse -%}{{- log('Applying UPDATE WAREHOUSE to: ' ~ existing_relation) -}}{%- endif -%}\n\n alter dynamic table {{ existing_relation }} set\n {% if target_lag %}target_lag = '{{ target_lag.context }}'{% endif %}\n {% if snowflake_warehouse %}warehouse = {{ snowflake_warehouse.context }}{% endif %}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.042762, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_drop_dynamic_table_sql": {"name": "snowflake__get_drop_dynamic_table_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/dynamic_table/drop.sql", "original_file_path": "macros/relations/dynamic_table/drop.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_drop_dynamic_table_sql", "macro_sql": "{% macro snowflake__get_drop_dynamic_table_sql(relation) %}\n drop dynamic table if exists {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.043049, "supported_languages": null}, "macro.dbt_snowflake.snowflake__refresh_dynamic_table": {"name": "snowflake__refresh_dynamic_table", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/dynamic_table/refresh.sql", "original_file_path": "macros/relations/dynamic_table/refresh.sql", "unique_id": "macro.dbt_snowflake.snowflake__refresh_dynamic_table", "macro_sql": "{% macro snowflake__refresh_dynamic_table(relation) -%}\n {{- log('Applying REFRESH to: ' ~ relation) -}}\n\n alter dynamic table {{ relation }} refresh\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0434651, "supported_languages": null}, "macro.dbt_snowflake.snowflake__create_view_as_with_temp_flag": {"name": "snowflake__create_view_as_with_temp_flag", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt_snowflake.snowflake__create_view_as_with_temp_flag", "macro_sql": "{% macro snowflake__create_view_as_with_temp_flag(relation, sql, is_temporary=False) -%}\n {%- set secure = config.get('secure', default=false) -%}\n {%- set copy_grants = config.get('copy_grants', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create or replace {% if secure -%}\n secure\n {%- endif %} {% if is_temporary -%}\n temporary\n {%- endif %} view {{ relation }}\n {% if config.persist_column_docs() -%}\n {% set model_columns = model.columns %}\n {% set query_columns = get_columns_in_query(sql) %}\n {{ get_persist_docs_column_list(model_columns, query_columns) }}\n\n {%- endif %}\n {%- set contract_config = config.get('contract') -%}\n {%- if contract_config.enforced -%}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n {% if copy_grants -%} copy grants {%- endif %} as (\n {{ sql }}\n );\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query", "macro.dbt_snowflake.get_persist_docs_column_list", "macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0466392, "supported_languages": null}, "macro.dbt_snowflake.snowflake__create_view_as": {"name": "snowflake__create_view_as", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt_snowflake.snowflake__create_view_as", "macro_sql": "{% macro snowflake__create_view_as(relation, sql) -%}\n {{ snowflake__create_view_as_with_temp_flag(relation, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__create_view_as_with_temp_flag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0469666, "supported_languages": null}, "macro.dbt_snowflake.snowflake__create_or_replace_view": {"name": "snowflake__create_or_replace_view", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt_snowflake.snowflake__create_or_replace_view", "macro_sql": "{% macro snowflake__create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and not old_relation.is_view -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0492575, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_replace_view_sql": {"name": "snowflake__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_replace_view_sql", "macro_sql": "{% macro snowflake__get_replace_view_sql(relation, sql) %}\n {{ snowflake__create_view_as(relation, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0496442, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_rename_view_sql": {"name": "snowflake__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_rename_view_sql", "macro_sql": "{%- macro snowflake__get_rename_view_sql(relation, new_name) -%}\n alter view {{ relation }} rename to {{ new_name }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0499806, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_drop_view_sql": {"name": "snowflake__get_drop_view_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_drop_view_sql", "macro_sql": "{% macro snowflake__get_drop_view_sql(relation) %}\n drop view if exists {{ relation }} cascade\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0502641, "supported_languages": null}, "macro.dbt_snowflake.snowflake__create_table_as": {"name": "snowflake__create_table_as", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt_snowflake.snowflake__create_table_as", "macro_sql": "{% macro snowflake__create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {%- set transient = config.get('transient', default=true) -%}\n\n {% if temporary -%}\n {%- set table_type = \"temporary\" -%}\n {%- elif transient -%}\n {%- set table_type = \"transient\" -%}\n {%- else -%}\n {%- set table_type = \"\" -%}\n {%- endif %}\n\n {%- if language == 'sql' -%}\n {%- set cluster_by_keys = config.get('cluster_by', default=none) -%}\n {%- set enable_automatic_clustering = config.get('automatic_clustering', default=false) -%}\n {%- set copy_grants = config.get('copy_grants', default=false) -%}\n\n {%- if cluster_by_keys is not none and cluster_by_keys is string -%}\n {%- set cluster_by_keys = [cluster_by_keys] -%}\n {%- endif -%}\n {%- if cluster_by_keys is not none -%}\n {%- set cluster_by_string = cluster_by_keys|join(\", \")-%}\n {% else %}\n {%- set cluster_by_string = none -%}\n {%- endif -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create or replace {{ table_type }} table {{ relation }}\n {%- set contract_config = config.get('contract') -%}\n {%- if contract_config.enforced -%}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {% set compiled_code = get_select_subquery(compiled_code) %}\n {% endif %}\n {% if copy_grants and not temporary -%} copy grants {%- endif %} as\n (\n {%- if cluster_by_string is not none -%}\n select * from (\n {{ compiled_code }}\n ) order by ({{ cluster_by_string }})\n {%- else -%}\n {{ compiled_code }}\n {%- endif %}\n );\n {% if cluster_by_string is not none and not temporary -%}\n alter table {{relation}} cluster by ({{cluster_by_string}});\n {%- endif -%}\n {% if enable_automatic_clustering and cluster_by_string is not none and not temporary -%}\n alter table {{relation}} resume recluster;\n {%- endif -%}\n\n {%- elif language == 'python' -%}\n {{ py_write_table(compiled_code=compiled_code, target_relation=relation, table_type=table_type) }}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"snowflake__create_table_as macro didn't get supported language, it got %s\" % language) %}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery", "macro.dbt_snowflake.py_write_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.057051, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_replace_table_sql": {"name": "snowflake__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_replace_table_sql", "macro_sql": "{% macro snowflake__get_replace_table_sql(relation, sql) %}\n {{ snowflake__create_table_as(False, relation, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.057489, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_rename_table_sql": {"name": "snowflake__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_rename_table_sql", "macro_sql": "{%- macro snowflake__get_rename_table_sql(relation, new_name) -%}\n alter table {{ relation }} rename to {{ new_name }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0578282, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_drop_table_sql": {"name": "snowflake__get_drop_table_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_drop_table_sql", "macro_sql": "{% macro snowflake__get_drop_table_sql(relation) %}\n drop table if exists {{ relation }} cascade\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0580962, "supported_languages": null}, "macro.dbt.resolve_model_name": {"name": "resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.resolve_model_name", "macro_sql": "{% macro resolve_model_name(input_model_name) %}\n {{ return(adapter.dispatch('resolve_model_name', 'dbt')(input_model_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.060553, "supported_languages": null}, "macro.dbt.default__resolve_model_name": {"name": "default__resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.default__resolve_model_name", "macro_sql": "\n\n{%- macro default__resolve_model_name(input_model_name) -%}\n {{ input_model_name | string | replace('\"', '\\\"') }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0608637, "supported_languages": null}, "macro.dbt.build_ref_function": {"name": "build_ref_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {% set _ref_args = [_ref.get('package'), _ref['name']] if _ref.get('package') else [_ref['name'],] %}\n {%- set resolved = ref(*_ref_args, v=_ref.get('version')) -%}\n {%- if _ref.get('version') -%}\n {% do _ref_args.extend([\"v\" ~ _ref['version']]) %}\n {%- endif -%}\n {%- do ref_dict.update({_ref_args | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef ref(*args, **kwargs):\n refs = {{ ref_dict | tojson }}\n key = '.'.join(args)\n version = kwargs.get(\"v\") or kwargs.get(\"version\")\n if version:\n key += f\".v{version}\"\n dbt_load_df_function = kwargs.get(\"dbt_load_df_function\")\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0625203, "supported_languages": null}, "macro.dbt.build_source_function": {"name": "build_source_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = '.'.join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.063402, "supported_languages": null}, "macro.dbt.build_config_dict": {"name": "build_config_dict", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {% set config_dbt_used = zip(model.config.config_keys_used, model.config.config_keys_defaults) | list %}\n {%- for key, default in config_dbt_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == \"language\" -%}\n {%- set value = \"python\" -%}\n {%- endif -%}\n {%- set value = model.config.get(key, default) -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.064633, "supported_languages": null}, "macro.dbt.py_script_postfix": {"name": "py_script_postfix", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = \"{{ this.database }}\"\n schema = \"{{ this.schema }}\"\n identifier = \"{{ this.identifier }}\"\n {% set this_relation_name = resolve_model_name(this) %}\n def __repr__(self):\n return '{{ this_relation_name }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args, **kwargs: ref(*args, **kwargs, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.resolve_model_name", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.065602, "supported_languages": null}, "macro.dbt.py_script_comment": {"name": "py_script_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.065759, "supported_languages": null}, "macro.dbt.run_hooks": {"name": "run_hooks", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0677674, "supported_languages": null}, "macro.dbt.make_hook_config": {"name": "make_hook_config", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.068165, "supported_languages": null}, "macro.dbt.before_begin": {"name": "before_begin", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0684807, "supported_languages": null}, "macro.dbt.in_transaction": {"name": "in_transaction", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0687706, "supported_languages": null}, "macro.dbt.after_commit": {"name": "after_commit", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0690672, "supported_languages": null}, "macro.dbt.set_sql_header": {"name": "set_sql_header", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.069739, "supported_languages": null}, "macro.dbt.should_full_refresh": {"name": "should_full_refresh", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0703847, "supported_languages": null}, "macro.dbt.should_store_failures": {"name": "should_store_failures", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0711322, "supported_languages": null}, "macro.dbt.materialization_table_default": {"name": "materialization_table_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table.sql", "original_file_path": "macros/materializations/models/table.sql", "unique_id": "macro.dbt.materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0763164, "supported_languages": ["sql"]}, "macro.dbt.materialization_view_default": {"name": "materialization_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view.sql", "original_file_path": "macros/materializations/models/view.sql", "unique_id": "macro.dbt.materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0814986, "supported_languages": ["sql"]}, "macro.dbt.materialization_materialized_view_default": {"name": "materialization_materialized_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialization_materialized_view_default", "macro_sql": "{% materialization materialized_view, default %}\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.MaterializedView) %}\n {% set intermediate_relation = make_intermediate_relation(target_relation) %}\n {% set backup_relation_type = target_relation.MaterializedView if existing_relation is none else existing_relation.type %}\n {% set backup_relation = make_backup_relation(target_relation, backup_relation_type) %}\n\n {{ materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) }}\n\n {% set build_sql = materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% if build_sql == '' %}\n {{ materialized_view_execute_no_op(target_relation) }}\n {% else %}\n {{ materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) }}\n {% endif %}\n\n {{ materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.materialized_view_setup", "macro.dbt.materialized_view_get_build_sql", "macro.dbt.materialized_view_execute_no_op", "macro.dbt.materialized_view_execute_build_sql", "macro.dbt.materialized_view_teardown"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.088796, "supported_languages": ["sql"]}, "macro.dbt.materialized_view_setup": {"name": "materialized_view_setup", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_setup", "macro_sql": "{% macro materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) %}\n\n -- backup_relation and intermediate_relation should not already exist in the database\n -- it's possible these exist because of a previous run that exited unexpectedly\n {% set preexisting_backup_relation = load_cached_relation(backup_relation) %}\n {% set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0895848, "supported_languages": null}, "macro.dbt.materialized_view_teardown": {"name": "materialized_view_teardown", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_teardown", "macro_sql": "{% macro materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) %}\n\n -- drop the temp relations if they exist to leave the database clean for the next run\n {{ drop_relation_if_exists(backup_relation) }}\n {{ drop_relation_if_exists(intermediate_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.090083, "supported_languages": null}, "macro.dbt.materialized_view_get_build_sql": {"name": "materialized_view_get_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_get_build_sql", "macro_sql": "{% macro materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% set full_refresh_mode = should_full_refresh() %}\n\n -- determine the scenario we're in: create, full_refresh, alter, refresh data\n {% if existing_relation is none %}\n {% set build_sql = get_create_materialized_view_as_sql(target_relation, sql) %}\n {% elif full_refresh_mode or not existing_relation.is_materialized_view %}\n {% set build_sql = get_replace_sql(existing_relation, target_relation, sql) %}\n {% else %}\n\n -- get config options\n {% set on_configuration_change = config.get('on_configuration_change') %}\n {% set configuration_changes = get_materialized_view_configuration_changes(existing_relation, config) %}\n\n {% if configuration_changes is none %}\n {% set build_sql = refresh_materialized_view(target_relation) %}\n\n {% elif on_configuration_change == 'apply' %}\n {% set build_sql = get_alter_materialized_view_as_sql(target_relation, configuration_changes, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% elif on_configuration_change == 'continue' %}\n {% set build_sql = '' %}\n {{ exceptions.warn(\"Configuration changes were identified and `on_configuration_change` was set to `continue` for `\" ~ target_relation ~ \"`\") }}\n {% elif on_configuration_change == 'fail' %}\n {{ exceptions.raise_fail_fast_error(\"Configuration changes were identified and `on_configuration_change` was set to `fail` for `\" ~ target_relation ~ \"`\") }}\n\n {% else %}\n -- this only happens if the user provides a value other than `apply`, 'skip', 'fail'\n {{ exceptions.raise_compiler_error(\"Unexpected configuration scenario\") }}\n\n {% endif %}\n\n {% endif %}\n\n {% do return(build_sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.get_create_materialized_view_as_sql", "macro.dbt.get_replace_sql", "macro.dbt.get_materialized_view_configuration_changes", "macro.dbt.refresh_materialized_view", "macro.dbt.get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0926752, "supported_languages": null}, "macro.dbt.materialized_view_execute_no_op": {"name": "materialized_view_execute_no_op", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_no_op", "macro_sql": "{% macro materialized_view_execute_no_op(target_relation) %}\n {% do store_raw_result(\n name=\"main\",\n message=\"skip \" ~ target_relation,\n code=\"skip\",\n rows_affected=\"-1\"\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.093135, "supported_languages": null}, "macro.dbt.materialized_view_execute_build_sql": {"name": "materialized_view_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_build_sql", "macro_sql": "{% macro materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) %}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set grant_config = config.get('grants') %}\n\n {% call statement(name=\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.0944924, "supported_languages": null}, "macro.dbt.is_incremental": {"name": "is_incremental", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "unique_id": "macro.dbt.is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.095712, "supported_languages": null}, "macro.dbt.get_merge_sql": {"name": "get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n -- back compat for old kwarg name\n {% set incremental_predicates = kwargs.get('predicates', incremental_predicates) %}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1038158, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"name": "default__get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n {%- set predicates = [] if incremental_predicates is none else [] + incremental_predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{\"(\" ~ predicates | join(\") and (\") ~ \")\"}}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1071677, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"name": "get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1077127, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"name": "default__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not string %}\n delete from {{target }}\n using {{ source }}\n where (\n {% for key in unique_key %}\n {{ source }}.{{ key }} = {{ target }}.{{ key }}\n {{ \"and \" if not loop.last}}\n {% endfor %}\n {% if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {% endif %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n )\n {%- if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {%- endif -%};\n\n {% endif %}\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1097949, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"name": "get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1103466, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"name": "default__get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1116881, "supported_languages": null}, "macro.dbt.get_quoted_csv": {"name": "get_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.114254, "supported_languages": null}, "macro.dbt.diff_columns": {"name": "diff_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1153681, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"name": "diff_column_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1167119, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"name": "get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1171763, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"name": "default__get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.118639, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"name": "get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1201231, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"name": "default__get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1206205, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"name": "get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1209924, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"name": "default__get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1215944, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"name": "get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1219692, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"name": "default__get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1225672, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"name": "get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1229541, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"name": "default__get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1234932, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"name": "get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.123865, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"name": "default__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1241724, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"name": "get_insert_into_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1248612, "supported_languages": null}, "macro.dbt.incremental_validate_on_schema_change": {"name": "incremental_validate_on_schema_change", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1325471, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"name": "check_for_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1350281, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"name": "sync_column_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1375265, "supported_languages": null}, "macro.dbt.process_schema_changes": {"name": "process_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1392496, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"name": "materialization_incremental_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "unique_id": "macro.dbt.materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set incremental_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'incremental_predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %}\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% do adapter.rename_relation(intermediate_relation, target_relation) %}\n {% do to_drop.append(backup_relation) %}\n {% endif %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1486602, "supported_languages": ["sql"]}, "macro.dbt.create_or_replace_clone": {"name": "create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.create_or_replace_clone", "macro_sql": "{% macro create_or_replace_clone(this_relation, defer_relation) %}\n {{ return(adapter.dispatch('create_or_replace_clone', 'dbt')(this_relation, defer_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__create_or_replace_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1492996, "supported_languages": null}, "macro.dbt.default__create_or_replace_clone": {"name": "default__create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.default__create_or_replace_clone", "macro_sql": "{% macro default__create_or_replace_clone(this_relation, defer_relation) %}\n create or replace table {{ this_relation }} clone {{ defer_relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1495867, "supported_languages": null}, "macro.dbt.materialization_clone_default": {"name": "materialization_clone_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/clone.sql", "original_file_path": "macros/materializations/models/clone/clone.sql", "unique_id": "macro.dbt.materialization_clone_default", "macro_sql": "{%- materialization clone, default -%}\n\n {%- set relations = {'relations': []} -%}\n\n {%- if not defer_relation -%}\n -- nothing to do\n {{ log(\"No relation found in state manifest for \" ~ model.unique_id, info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n\n {%- if existing_relation and not flags.FULL_REFRESH -%}\n -- noop!\n {{ log(\"Relation \" ~ existing_relation ~ \" already exists\", info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set other_existing_relation = load_cached_relation(defer_relation) -%}\n\n -- If this is a database that can do zero-copy cloning of tables, and the other relation is a table, then this will be a table\n -- Otherwise, this will be a view\n\n {% set can_clone_table = can_clone_table() %}\n\n {%- if other_existing_relation and other_existing_relation.type == 'table' and can_clone_table -%}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {% if existing_relation is not none and not existing_relation.is_table %}\n {{ log(\"Dropping relation \" ~ existing_relation ~ \" because it is of type \" ~ existing_relation.type) }}\n {{ drop_relation_if_exists(existing_relation) }}\n {% endif %}\n\n -- as a general rule, data platforms that can clone tables can also do atomic 'create or replace'\n {% call statement('main') %}\n {% if target_relation and defer_relation and target_relation == defer_relation %}\n {{ log(\"Target relation and defer relation are the same, skipping clone for relation: \" ~ target_relation) }}\n {% else %}\n {{ create_or_replace_clone(target_relation, defer_relation) }}\n {% endif %}\n\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n {%- else -%}\n\n {%- set target_relation = this.incorporate(type='view') -%}\n\n -- reuse the view materialization\n -- TODO: support actual dispatch for materialization macros\n -- Tracking ticket: https://github.com/dbt-labs/dbt-core/issues/7799\n {% set search_name = \"materialization_view_\" ~ adapter.type() %}\n {% if not search_name in context %}\n {% set search_name = \"materialization_view_default\" %}\n {% endif %}\n {% set materialization_macro = context[search_name] %}\n {% set relations = materialization_macro() %}\n {{ return(relations) }}\n\n {%- endif -%}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.can_clone_table", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_or_replace_clone", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.155927, "supported_languages": ["sql"]}, "macro.dbt.can_clone_table": {"name": "can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.can_clone_table", "macro_sql": "{% macro can_clone_table() %}\n {{ return(adapter.dispatch('can_clone_table', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__can_clone_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1564436, "supported_languages": null}, "macro.dbt.default__can_clone_table": {"name": "default__can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.default__can_clone_table", "macro_sql": "{% macro default__can_clone_table() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1566896, "supported_languages": null}, "macro.dbt.create_csv_table": {"name": "create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1636615, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"name": "default__create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1655369, "supported_languages": null}, "macro.dbt.reset_csv_table": {"name": "reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1660109, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"name": "default__reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1670113, "supported_languages": null}, "macro.dbt.get_csv_sql": {"name": "get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.167416, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"name": "default__get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1676934, "supported_languages": null}, "macro.dbt.get_binding_char": {"name": "get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1679788, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"name": "default__get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.168233, "supported_languages": null}, "macro.dbt.get_batch_size": {"name": "get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1685672, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"name": "default__get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1688118, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"name": "get_seed_column_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.169781, "supported_languages": null}, "macro.dbt.load_csv_rows": {"name": "load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1702752, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"name": "default__load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1727998, "supported_languages": null}, "macro.dbt.materialization_seed_default": {"name": "materialization_seed_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "unique_id": "macro.dbt.materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparison later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1787224, "supported_languages": ["sql"]}, "macro.dbt.materialization_snapshot_default": {"name": "materialization_snapshot_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "unique_id": "macro.dbt.materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n {%- set config = model['config'] -%}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_code']) %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1889708, "supported_languages": ["sql"]}, "macro.dbt.create_columns": {"name": "create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1944323, "supported_languages": null}, "macro.dbt.default__create_columns": {"name": "default__create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.19502, "supported_languages": null}, "macro.dbt.post_snapshot": {"name": "post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1953762, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"name": "default__post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1955645, "supported_languages": null}, "macro.dbt.get_true_sql": {"name": "get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1958618, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"name": "default__get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1961029, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"name": "snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1965468, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"name": "default__snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where dbt_valid_to is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as dbt_scd_id\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as dbt_valid_to\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.dbt_scd_id\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.dbt_scd_id\n\n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.198322, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"name": "build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.1987123, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"name": "default__build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.199241, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"name": "build_snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2001128, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"name": "strategy_dispatch", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2058063, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"name": "snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2062638, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"name": "default__snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2067254, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"name": "snapshot_timestamp_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/dbt-labs/dbt-core/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2081516, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"name": "snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2085307, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"name": "default__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.208884, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"name": "snapshot_check_all_get_existing_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n {#-- N.B. The whitespace below is necessary to avoid edge case issue with comments --#}\n {#-- See: https://github.com/dbt-labs/dbt-core/issues/6781 --#}\n select {{ check_cols_config | join(', ') }} from (\n {{ node['compiled_code'] }}\n ) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2117374, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"name": "snapshot_check_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n {% set updated_at = config.get('updated_at', snapshot_get_time()) %}\n\n {% set column_added = false %}\n\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n {{ get_true_sql() }}\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2144706, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"name": "snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2152593, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"name": "default__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2158067, "supported_languages": null}, "macro.dbt.materialization_test_default": {"name": "materialization_test_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "unique_id": "macro.dbt.materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% set store_failures_as = config.get('store_failures_as') %}\n -- if `--store-failures` is invoked via command line and `store_failures_as` is not set,\n -- config.get('store_failures_as', 'table') returns None, not 'table'\n {% if store_failures_as == none %}{% set store_failures_as = 'table' %}{% endif %}\n {% if store_failures_as not in ['table', 'view'] %}\n {{ exceptions.raise_compiler_error(\n \"'\" ~ store_failures_as ~ \"' is not a valid value for `store_failures_as`. \"\n \"Accepted values are: ['ephemeral', 'table', 'view']\"\n ) }}\n {% endif %}\n\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type=store_failures_as) -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ get_create_sql(target_relation, sql) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {% set main_sql %}\n select *\n from {{ target_relation }}\n {% endset %}\n\n {{ adapter.commit() }}\n\n {% else %}\n\n {% set main_sql = sql %}\n\n {% endif %}\n\n {% set limit = config.get('limit') %}\n {% set fail_calc = config.get('fail_calc') %}\n {% set warn_if = config.get('warn_if') %}\n {% set error_if = config.get('error_if') %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.get_create_sql", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2207623, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"name": "get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2215903, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"name": "default__get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2222197, "supported_languages": null}, "macro.dbt.get_where_subquery": {"name": "get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2228873, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"name": "default__get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.223691, "supported_languages": null}, "macro.dbt.concat": {"name": "concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2241666, "supported_languages": null}, "macro.dbt.default__concat": {"name": "default__concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2244565, "supported_languages": null}, "macro.dbt.intersect": {"name": "intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2248876, "supported_languages": null}, "macro.dbt.default__intersect": {"name": "default__intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2250452, "supported_languages": null}, "macro.dbt.last_day": {"name": "last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.22568, "supported_languages": null}, "macro.dbt.default_last_day": {"name": "default_last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2262201, "supported_languages": null}, "macro.dbt.default__last_day": {"name": "default__last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2265227, "supported_languages": null}, "macro.dbt.replace": {"name": "replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2271218, "supported_languages": null}, "macro.dbt.default__replace": {"name": "default__replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2274735, "supported_languages": null}, "macro.dbt.length": {"name": "length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.227947, "supported_languages": null}, "macro.dbt.default__length": {"name": "default__length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2281635, "supported_languages": null}, "macro.dbt.hash": {"name": "hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2286816, "supported_languages": null}, "macro.dbt.default__hash": {"name": "default__hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.229107, "supported_languages": null}, "macro.dbt.array_append": {"name": "array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2296777, "supported_languages": null}, "macro.dbt.default__array_append": {"name": "default__array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2299507, "supported_languages": null}, "macro.dbt.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.231142, "supported_languages": null}, "macro.dbt.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2323627, "supported_languages": null}, "macro.dbt.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2328265, "supported_languages": null}, "macro.dbt.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n {# call as follows:\n\n date_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n ) #}\n\n\n with rawdata as (\n\n {{dbt.generate_series(\n dbt.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.generate_series", "macro.dbt.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2335682, "supported_languages": null}, "macro.dbt.array_concat": {"name": "array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2340982, "supported_languages": null}, "macro.dbt.default__array_concat": {"name": "default__array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2343855, "supported_languages": null}, "macro.dbt.array_construct": {"name": "array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2351005, "supported_languages": null}, "macro.dbt.default__array_construct": {"name": "default__array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.235604, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"name": "escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2361126, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"name": "default__escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2364085, "supported_languages": null}, "macro.dbt.type_string": {"name": "type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2379193, "supported_languages": null}, "macro.dbt.default__type_string": {"name": "default__type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.238247, "supported_languages": null}, "macro.dbt.type_timestamp": {"name": "type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2385833, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"name": "default__type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2388957, "supported_languages": null}, "macro.dbt.type_float": {"name": "type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2392397, "supported_languages": null}, "macro.dbt.default__type_float": {"name": "default__type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.239653, "supported_languages": null}, "macro.dbt.type_numeric": {"name": "type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2399814, "supported_languages": null}, "macro.dbt.default__type_numeric": {"name": "default__type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2404435, "supported_languages": null}, "macro.dbt.type_bigint": {"name": "type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2407835, "supported_languages": null}, "macro.dbt.default__type_bigint": {"name": "default__type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2410927, "supported_languages": null}, "macro.dbt.type_int": {"name": "type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2414517, "supported_languages": null}, "macro.dbt.default__type_int": {"name": "default__type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2417555, "supported_languages": null}, "macro.dbt.type_boolean": {"name": "type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2420762, "supported_languages": null}, "macro.dbt.default__type_boolean": {"name": "default__type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2423944, "supported_languages": null}, "macro.dbt.right": {"name": "right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2429552, "supported_languages": null}, "macro.dbt.default__right": {"name": "default__right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.243253, "supported_languages": null}, "macro.dbt.date_trunc": {"name": "date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2437887, "supported_languages": null}, "macro.dbt.default__date_trunc": {"name": "default__date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2440562, "supported_languages": null}, "macro.dbt.split_part": {"name": "split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.244959, "supported_languages": null}, "macro.dbt.default__split_part": {"name": "default__split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.245329, "supported_languages": null}, "macro.dbt._split_part_negative": {"name": "_split_part_negative", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt._split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 + {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.245785, "supported_languages": null}, "macro.dbt.position": {"name": "position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.246364, "supported_languages": null}, "macro.dbt.default__position": {"name": "default__position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2466426, "supported_languages": null}, "macro.dbt.datediff": {"name": "datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.247286, "supported_languages": null}, "macro.dbt.default__datediff": {"name": "default__datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.247626, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"name": "cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2480912, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"name": "default__cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2485785, "supported_languages": null}, "macro.dbt.safe_cast": {"name": "safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.249131, "supported_languages": null}, "macro.dbt.default__safe_cast": {"name": "default__safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2494361, "supported_languages": null}, "macro.dbt.dateadd": {"name": "dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2500603, "supported_languages": null}, "macro.dbt.default__dateadd": {"name": "default__dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2504294, "supported_languages": null}, "macro.dbt.except": {"name": "except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2508771, "supported_languages": null}, "macro.dbt.default__except": {"name": "default__except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2510362, "supported_languages": null}, "macro.dbt.bool_or": {"name": "bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2515287, "supported_languages": null}, "macro.dbt.default__bool_or": {"name": "default__bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2517452, "supported_languages": null}, "macro.dbt.listagg": {"name": "listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2528262, "supported_languages": null}, "macro.dbt.default__listagg": {"name": "default__listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2536979, "supported_languages": null}, "macro.dbt.string_literal": {"name": "string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2541792, "supported_languages": null}, "macro.dbt.default__string_literal": {"name": "default__string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.254418, "supported_languages": null}, "macro.dbt.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2557442, "supported_languages": null}, "macro.dbt.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2566164, "supported_languages": null}, "macro.dbt.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2569973, "supported_languages": null}, "macro.dbt.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2580585, "supported_languages": null}, "macro.dbt.any_value": {"name": "any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.258571, "supported_languages": null}, "macro.dbt.default__any_value": {"name": "default__any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2587845, "supported_languages": null}, "macro.dbt.get_create_sql": {"name": "get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.get_create_sql", "macro_sql": "{%- macro get_create_sql(relation, sql) -%}\n {{- log('Applying CREATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.259738, "supported_languages": null}, "macro.dbt.default__get_create_sql": {"name": "default__get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.default__get_create_sql", "macro_sql": "{%- macro default__get_create_sql(relation, sql) -%}\n\n {%- if relation.is_view -%}\n {{ get_create_view_as_sql(relation, sql) }}\n\n {%- elif relation.is_table -%}\n {{ get_create_table_as_sql(False, relation, sql) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_create_materialized_view_as_sql(relation, sql) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_create_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.get_create_view_as_sql", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2606764, "supported_languages": null}, "macro.dbt.get_create_backup_sql": {"name": "get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.get_create_backup_sql", "macro_sql": "{%- macro get_create_backup_sql(relation) -%}\n {{- log('Applying CREATE BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2613466, "supported_languages": null}, "macro.dbt.default__get_create_backup_sql": {"name": "default__get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.default__get_create_backup_sql", "macro_sql": "{%- macro default__get_create_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n -- drop any pre-existing backup\n {{ get_drop_sql(backup_relation) }};\n\n {{ get_rename_sql(relation, backup_relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2618878, "supported_languages": null}, "macro.dbt.get_replace_sql": {"name": "get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.get_replace_sql", "macro_sql": "{% macro get_replace_sql(existing_relation, target_relation, sql) %}\n {{- log('Applying REPLACE to: ' ~ existing_relation) -}}\n {{- adapter.dispatch('get_replace_sql', 'dbt')(existing_relation, target_relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_replace_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.263198, "supported_languages": null}, "macro.dbt.default__get_replace_sql": {"name": "default__get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.default__get_replace_sql", "macro_sql": "{% macro default__get_replace_sql(existing_relation, target_relation, sql) %}\n\n {# /* use a create or replace statement if possible */ #}\n\n {% set is_replaceable = existing_relation.type == target_relation_type and existing_relation.can_be_replaced %}\n\n {% if is_replaceable and existing_relation.is_view %}\n {{ get_replace_view_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_table %}\n {{ get_replace_table_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_materialized_view %}\n {{ get_replace_materialized_view_sql(target_relation, sql) }}\n\n {# /* a create or replace statement is not possible, so try to stage and/or backup to be safe */ #}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one using a backup */ #}\n {%- elif target_relation.can_be_renamed and existing_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one without using a backup */ #}\n {%- elif target_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_drop_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }}\n\n {# /* create target_relation in place by first backing up the existing relation */ #}\n {%- elif existing_relation.can_be_renamed -%}\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* no renaming is allowed, so just drop and create */ #}\n {%- else -%}\n {{ get_drop_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_view_sql", "macro.dbt.get_replace_table_sql", "macro.dbt.get_replace_materialized_view_sql", "macro.dbt.get_create_intermediate_sql", "macro.dbt.get_create_backup_sql", "macro.dbt.get_rename_intermediate_sql", "macro.dbt.get_drop_backup_sql", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2656596, "supported_languages": null}, "macro.dbt.get_rename_sql": {"name": "get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.get_rename_sql", "macro_sql": "{%- macro get_rename_sql(relation, new_name) -%}\n {{- log('Applying RENAME to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_sql', 'dbt')(relation, new_name) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2668731, "supported_languages": null}, "macro.dbt.default__get_rename_sql": {"name": "default__get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__get_rename_sql", "macro_sql": "{%- macro default__get_rename_sql(relation, new_name) -%}\n\n {%- if relation.is_view -%}\n {{ get_rename_view_sql(relation, new_name) }}\n\n {%- elif relation.is_table -%}\n {{ get_rename_table_sql(relation, new_name) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_rename_materialized_view_sql(relation, new_name) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_rename_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.get_rename_view_sql", "macro.dbt.get_rename_table_sql", "macro.dbt.get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2678416, "supported_languages": null}, "macro.dbt.rename_relation": {"name": "rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2682824, "supported_languages": null}, "macro.dbt.default__rename_relation": {"name": "default__rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2688546, "supported_languages": null}, "macro.dbt.get_create_intermediate_sql": {"name": "get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.get_create_intermediate_sql", "macro_sql": "{%- macro get_create_intermediate_sql(relation, sql) -%}\n {{- log('Applying CREATE INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_intermediate_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2695713, "supported_languages": null}, "macro.dbt.default__get_create_intermediate_sql": {"name": "default__get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.default__get_create_intermediate_sql", "macro_sql": "{%- macro default__get_create_intermediate_sql(relation, sql) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n -- drop any pre-existing intermediate\n {{ get_drop_sql(intermediate_relation) }};\n\n {{ get_create_sql(intermediate_relation, sql) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2700775, "supported_languages": null}, "macro.dbt.get_drop_sql": {"name": "get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.get_drop_sql", "macro_sql": "{%- macro get_drop_sql(relation) -%}\n {{- log('Applying DROP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.271268, "supported_languages": null}, "macro.dbt.default__get_drop_sql": {"name": "default__get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__get_drop_sql", "macro_sql": "{%- macro default__get_drop_sql(relation) -%}\n\n {%- if relation.is_view -%}\n {{ drop_view(relation) }}\n\n {%- elif relation.is_table -%}\n {{ drop_table(relation) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ drop_materialized_view(relation) }}\n\n {%- else -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.drop_view", "macro.dbt.drop_table", "macro.dbt.drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2720246, "supported_languages": null}, "macro.dbt.drop_relation": {"name": "drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2724574, "supported_languages": null}, "macro.dbt.default__drop_relation": {"name": "default__drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n {{ get_drop_sql(relation) }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.272869, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"name": "drop_relation_if_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2732847, "supported_languages": null}, "macro.dbt.get_drop_backup_sql": {"name": "get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.get_drop_backup_sql", "macro_sql": "{%- macro get_drop_backup_sql(relation) -%}\n {{- log('Applying DROP BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2738926, "supported_languages": null}, "macro.dbt.default__get_drop_backup_sql": {"name": "default__get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.default__get_drop_backup_sql", "macro_sql": "{%- macro default__get_drop_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n {{ get_drop_sql(backup_relation) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2743354, "supported_languages": null}, "macro.dbt.get_rename_intermediate_sql": {"name": "get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.get_rename_intermediate_sql", "macro_sql": "{%- macro get_rename_intermediate_sql(relation) -%}\n {{- log('Applying RENAME INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_intermediate_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2749417, "supported_languages": null}, "macro.dbt.default__get_rename_intermediate_sql": {"name": "default__get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.default__get_rename_intermediate_sql", "macro_sql": "{%- macro default__get_rename_intermediate_sql(relation) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n {{ get_rename_sql(intermediate_relation, relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2754903, "supported_languages": null}, "macro.dbt.get_create_materialized_view_as_sql": {"name": "get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.get_create_materialized_view_as_sql", "macro_sql": "{% macro get_create_materialized_view_as_sql(relation, sql) -%}\n {{- adapter.dispatch('get_create_materialized_view_as_sql', 'dbt')(relation, sql) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.276011, "supported_languages": null}, "macro.dbt.default__get_create_materialized_view_as_sql": {"name": "default__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.default__get_create_materialized_view_as_sql", "macro_sql": "{% macro default__get_create_materialized_view_as_sql(relation, sql) -%}\n {{ exceptions.raise_compiler_error(\n \"`get_create_materialized_view_as_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.276322, "supported_languages": null}, "macro.dbt.get_replace_materialized_view_sql": {"name": "get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.get_replace_materialized_view_sql", "macro_sql": "{% macro get_replace_materialized_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_materialized_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.276838, "supported_languages": null}, "macro.dbt.default__get_replace_materialized_view_sql": {"name": "default__get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.default__get_replace_materialized_view_sql", "macro_sql": "{% macro default__get_replace_materialized_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2771342, "supported_languages": null}, "macro.dbt.get_rename_materialized_view_sql": {"name": "get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.get_rename_materialized_view_sql", "macro_sql": "{% macro get_rename_materialized_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_materialized_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2776606, "supported_languages": null}, "macro.dbt.default__get_rename_materialized_view_sql": {"name": "default__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.default__get_rename_materialized_view_sql", "macro_sql": "{% macro default__get_rename_materialized_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2779515, "supported_languages": null}, "macro.dbt.get_alter_materialized_view_as_sql": {"name": "get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_alter_materialized_view_as_sql", "macro_sql": "{% macro get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{- log('Applying ALTER to: ' ~ relation) -}}\n {{- adapter.dispatch('get_alter_materialized_view_as_sql', 'dbt')(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n ) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2790284, "supported_languages": null}, "macro.dbt.default__get_alter_materialized_view_as_sql": {"name": "default__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_alter_materialized_view_as_sql", "macro_sql": "{% macro default__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2794223, "supported_languages": null}, "macro.dbt.get_materialized_view_configuration_changes": {"name": "get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_materialized_view_configuration_changes", "macro_sql": "{% macro get_materialized_view_configuration_changes(existing_relation, new_config) %}\n /* {#\n It's recommended that configuration changes be formatted as follows:\n {\"\": [{\"action\": \"\", \"context\": ...}]}\n\n For example:\n {\n \"indexes\": [\n {\"action\": \"drop\", \"context\": \"index_abc\"},\n {\"action\": \"create\", \"context\": {\"columns\": [\"column_1\", \"column_2\"], \"type\": \"hash\", \"unique\": True}},\n ],\n }\n\n Either way, `get_materialized_view_configuration_changes` needs to align with `get_alter_materialized_view_as_sql`.\n #} */\n {{- log('Determining configuration changes on: ' ~ existing_relation) -}}\n {%- do return(adapter.dispatch('get_materialized_view_configuration_changes', 'dbt')(existing_relation, new_config)) -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_materialized_view_configuration_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.279985, "supported_languages": null}, "macro.dbt.default__get_materialized_view_configuration_changes": {"name": "default__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_materialized_view_configuration_changes", "macro_sql": "{% macro default__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2802973, "supported_languages": null}, "macro.dbt.drop_materialized_view": {"name": "drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.drop_materialized_view", "macro_sql": "{% macro drop_materialized_view(relation) -%}\n {{ return(adapter.dispatch('drop_materialized_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2808015, "supported_languages": null}, "macro.dbt.default__drop_materialized_view": {"name": "default__drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.default__drop_materialized_view", "macro_sql": "{% macro default__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.281018, "supported_languages": null}, "macro.dbt.refresh_materialized_view": {"name": "refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.refresh_materialized_view", "macro_sql": "{% macro refresh_materialized_view(relation) %}\n {{- log('Applying REFRESH to: ' ~ relation) -}}\n {{- adapter.dispatch('refresh_materialized_view', 'dbt')(relation) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__refresh_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2816427, "supported_languages": null}, "macro.dbt.default__refresh_materialized_view": {"name": "default__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.default__refresh_materialized_view", "macro_sql": "{% macro default__refresh_materialized_view(relation) %}\n {{ exceptions.raise_compiler_error(\"`refresh_materialized_view` has not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.281963, "supported_languages": null}, "macro.dbt.get_table_columns_and_constraints": {"name": "get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_table_columns_and_constraints", "macro_sql": "{%- macro get_table_columns_and_constraints() -%}\n {{ adapter.dispatch('get_table_columns_and_constraints', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2837095, "supported_languages": null}, "macro.dbt.default__get_table_columns_and_constraints": {"name": "default__get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_table_columns_and_constraints", "macro_sql": "{% macro default__get_table_columns_and_constraints() -%}\n {{ return(table_columns_and_constraints()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2839673, "supported_languages": null}, "macro.dbt.table_columns_and_constraints": {"name": "table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.table_columns_and_constraints", "macro_sql": "{% macro table_columns_and_constraints() %}\n {# loop through user_provided_columns to create DDL with data types and constraints #}\n {%- set raw_column_constraints = adapter.render_raw_columns_constraints(raw_columns=model['columns']) -%}\n {%- set raw_model_constraints = adapter.render_raw_model_constraints(raw_constraints=model['constraints']) -%}\n (\n {% for c in raw_column_constraints -%}\n {{ c }}{{ \",\" if not loop.last or raw_model_constraints }}\n {% endfor %}\n {% for c in raw_model_constraints -%}\n {{ c }}{{ \",\" if not loop.last }}\n {% endfor -%}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2851768, "supported_languages": null}, "macro.dbt.get_assert_columns_equivalent": {"name": "get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_assert_columns_equivalent", "macro_sql": "\n\n{%- macro get_assert_columns_equivalent(sql) -%}\n {{ adapter.dispatch('get_assert_columns_equivalent', 'dbt')(sql) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2855334, "supported_languages": null}, "macro.dbt.default__get_assert_columns_equivalent": {"name": "default__get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_assert_columns_equivalent", "macro_sql": "{% macro default__get_assert_columns_equivalent(sql) -%}\n {{ return(assert_columns_equivalent(sql)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2858222, "supported_languages": null}, "macro.dbt.assert_columns_equivalent": {"name": "assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.assert_columns_equivalent", "macro_sql": "{% macro assert_columns_equivalent(sql) %}\n\n {#-- First ensure the user has defined 'columns' in yaml specification --#}\n {%- set user_defined_columns = model['columns'] -%}\n {%- if not user_defined_columns -%}\n {{ exceptions.raise_contract_error([], []) }}\n {%- endif -%}\n\n {#-- Obtain the column schema provided by sql file. #}\n {%- set sql_file_provided_columns = get_column_schema_from_query(sql, config.get('sql_header', none)) -%}\n {#--Obtain the column schema provided by the schema file by generating an 'empty schema' query from the model's columns. #}\n {%- set schema_file_provided_columns = get_column_schema_from_query(get_empty_schema_sql(user_defined_columns)) -%}\n\n {#-- create dictionaries with name and formatted data type and strings for exception #}\n {%- set sql_columns = format_columns(sql_file_provided_columns) -%}\n {%- set yaml_columns = format_columns(schema_file_provided_columns) -%}\n\n {%- if sql_columns|length != yaml_columns|length -%}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n\n {%- for sql_col in sql_columns -%}\n {%- set yaml_col = [] -%}\n {%- for this_col in yaml_columns -%}\n {%- if this_col['name'] == sql_col['name'] -%}\n {%- do yaml_col.append(this_col) -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if not yaml_col -%}\n {#-- Column with name not found in yaml #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- if sql_col['formatted'] != yaml_col[0]['formatted'] -%}\n {#-- Column data types don't match #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query", "macro.dbt.get_empty_schema_sql", "macro.dbt.format_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.288402, "supported_languages": null}, "macro.dbt.format_columns": {"name": "format_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.format_columns", "macro_sql": "{% macro format_columns(columns) %}\n {% set formatted_columns = [] %}\n {% for column in columns %}\n {%- set formatted_column = adapter.dispatch('format_column', 'dbt')(column) -%}\n {%- do formatted_columns.append(formatted_column) -%}\n {% endfor %}\n {{ return(formatted_columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__format_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2891705, "supported_languages": null}, "macro.dbt.default__format_column": {"name": "default__format_column", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__format_column", "macro_sql": "{% macro default__format_column(column) -%}\n {% set data_type = column.dtype %}\n {% set formatted = column.column.lower() ~ \" \" ~ data_type %}\n {{ return({'name': column.name, 'data_type': data_type, 'formatted': formatted}) }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2898686, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"name": "get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2906427, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"name": "default__get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2909691, "supported_languages": null}, "macro.dbt.create_view_as": {"name": "create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2913504, "supported_languages": null}, "macro.dbt.default__create_view_as": {"name": "default__create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2922106, "supported_languages": null}, "macro.dbt.get_replace_view_sql": {"name": "get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.get_replace_view_sql", "macro_sql": "{% macro get_replace_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_replace_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2935913, "supported_languages": null}, "macro.dbt.default__get_replace_view_sql": {"name": "default__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__get_replace_view_sql", "macro_sql": "{% macro default__get_replace_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2938948, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"name": "create_or_replace_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2961679, "supported_languages": null}, "macro.dbt.handle_existing_table": {"name": "handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.296582, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"name": "default__handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.29703, "supported_languages": null}, "macro.dbt.get_rename_view_sql": {"name": "get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.get_rename_view_sql", "macro_sql": "{% macro get_rename_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_rename_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.29757, "supported_languages": null}, "macro.dbt.default__get_rename_view_sql": {"name": "default__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.default__get_rename_view_sql", "macro_sql": "{% macro default__get_rename_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2978828, "supported_languages": null}, "macro.dbt.drop_view": {"name": "drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.drop_view", "macro_sql": "{% macro drop_view(relation) -%}\n {{ return(adapter.dispatch('drop_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.298394, "supported_languages": null}, "macro.dbt.default__drop_view": {"name": "default__drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.default__drop_view", "macro_sql": "{% macro default__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.2986157, "supported_languages": null}, "macro.dbt.get_create_table_as_sql": {"name": "get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.300032, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"name": "default__get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3004293, "supported_languages": null}, "macro.dbt.create_table_as": {"name": "create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3014421, "supported_languages": null}, "macro.dbt.default__create_table_as": {"name": "default__create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced and (not temporary) %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3028417, "supported_languages": null}, "macro.dbt.default__get_column_names": {"name": "default__get_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_column_names", "macro_sql": "{% macro default__get_column_names() %}\n {#- loop through user_provided_columns to get column names -#}\n {%- set user_provided_columns = model['columns'] -%}\n {%- for i in user_provided_columns %}\n {%- set col = user_provided_columns[i] -%}\n {%- set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] -%}\n {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3038023, "supported_languages": null}, "macro.dbt.get_select_subquery": {"name": "get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_select_subquery", "macro_sql": "{% macro get_select_subquery(sql) %}\n {{ return(adapter.dispatch('get_select_subquery', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3041766, "supported_languages": null}, "macro.dbt.default__get_select_subquery": {"name": "default__get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_select_subquery", "macro_sql": "{% macro default__get_select_subquery(sql) %}\n select {{ adapter.dispatch('get_column_names', 'dbt')() }}\n from (\n {{ sql }}\n ) as model_subq\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3045547, "supported_languages": null}, "macro.dbt.get_replace_table_sql": {"name": "get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.get_replace_table_sql", "macro_sql": "{% macro get_replace_table_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_table_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_replace_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3050683, "supported_languages": null}, "macro.dbt.default__get_replace_table_sql": {"name": "default__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.default__get_replace_table_sql", "macro_sql": "{% macro default__get_replace_table_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3053792, "supported_languages": null}, "macro.dbt.get_rename_table_sql": {"name": "get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.get_rename_table_sql", "macro_sql": "{% macro get_rename_table_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_table_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_rename_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3058915, "supported_languages": null}, "macro.dbt.default__get_rename_table_sql": {"name": "default__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.default__get_rename_table_sql", "macro_sql": "{% macro default__get_rename_table_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3062043, "supported_languages": null}, "macro.dbt.drop_table": {"name": "drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.drop_table", "macro_sql": "{% macro drop_table(relation) -%}\n {{ return(adapter.dispatch('drop_table', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.306701, "supported_languages": null}, "macro.dbt.default__drop_table": {"name": "default__drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.default__drop_table", "macro_sql": "{% macro default__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3069184, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"name": "default__test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "unique_id": "macro.dbt.default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3079798, "supported_languages": null}, "macro.dbt.default__test_not_null": {"name": "default__test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "unique_id": "macro.dbt.default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.308579, "supported_languages": null}, "macro.dbt.default__test_unique": {"name": "default__test_unique", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "unique_id": "macro.dbt.default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.309045, "supported_languages": null}, "macro.dbt.default__test_relationships": {"name": "default__test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "unique_id": "macro.dbt.default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3096688, "supported_languages": null}, "macro.dbt.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3104181, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"name": "default__generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name -%}\n\n {{ custom_alias_name | trim }}\n\n {%- elif node.version -%}\n\n {{ return(node.name ~ \"_v\" ~ (node.version | replace(\".\", \"_\"))) }}\n\n {%- else -%}\n\n {{ node.name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3111832, "supported_languages": null}, "macro.dbt.generate_database_name": {"name": "generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3118975, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"name": "default__generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3124413, "supported_languages": null}, "macro.dbt.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.31334, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"name": "default__generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3140113, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"name": "generate_schema_name_for_env", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3146207, "supported_languages": null}, "macro.dbt.statement": {"name": "statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3173642, "supported_languages": null}, "macro.dbt.noop_statement": {"name": "noop_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.318518, "supported_languages": null}, "macro.dbt.run_query": {"name": "run_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.319101, "supported_languages": null}, "macro.dbt.convert_datetime": {"name": "convert_datetime", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3218627, "supported_languages": null}, "macro.dbt.dates_in_range": {"name": "dates_in_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partition start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3242753, "supported_languages": null}, "macro.dbt.partition_range": {"name": "partition_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3257997, "supported_languages": null}, "macro.dbt.py_current_timestring": {"name": "py_current_timestring", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3262827, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"name": "make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3291385, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"name": "default__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.329495, "supported_languages": null}, "macro.dbt.make_temp_relation": {"name": "make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3299341, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"name": "default__make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3305268, "supported_languages": null}, "macro.dbt.make_backup_relation": {"name": "make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3310084, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"name": "default__make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.331662, "supported_languages": null}, "macro.dbt.truncate_relation": {"name": "truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3320243, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"name": "default__truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3323815, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"name": "get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3328624, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"name": "default__get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.334121, "supported_languages": null}, "macro.dbt.load_cached_relation": {"name": "load_cached_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3345945, "supported_languages": null}, "macro.dbt.load_relation": {"name": "load_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.334889, "supported_languages": null}, "macro.dbt.get_catalog_relations": {"name": "get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_relations", "macro_sql": "{% macro get_catalog_relations(information_schema, relations) -%}\n {{ return(adapter.dispatch('get_catalog_relations', 'dbt')(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3391736, "supported_languages": null}, "macro.dbt.default__get_catalog_relations": {"name": "default__get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog_relations", "macro_sql": "{% macro default__get_catalog_relations(information_schema, relations) -%}\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog_relations not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3397346, "supported_languages": null}, "macro.dbt.get_catalog": {"name": "get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3401496, "supported_languages": null}, "macro.dbt.default__get_catalog": {"name": "default__get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3407137, "supported_languages": null}, "macro.dbt.information_schema_name": {"name": "information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3410854, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"name": "default__information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.341439, "supported_languages": null}, "macro.dbt.list_schemas": {"name": "list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3418074, "supported_languages": null}, "macro.dbt.default__list_schemas": {"name": "default__list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3423479, "supported_languages": null}, "macro.dbt.check_schema_exists": {"name": "check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3427727, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"name": "default__check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3434405, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"name": "list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3438194, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"name": "default__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3441415, "supported_languages": null}, "macro.dbt.get_relations": {"name": "get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relations", "macro_sql": "{% macro get_relations() %}\n {{ return(adapter.dispatch('get_relations', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3445075, "supported_languages": null}, "macro.dbt.default__get_relations": {"name": "default__get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relations", "macro_sql": "{% macro default__get_relations() %}\n {{ exceptions.raise_not_implemented(\n 'get_relations macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3448334, "supported_languages": null}, "macro.dbt.get_relation_last_modified": {"name": "get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relation_last_modified", "macro_sql": "{% macro get_relation_last_modified(information_schema, relations) %}\n {{ return(adapter.dispatch('get_relation_last_modified', 'dbt')(information_schema, relations)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_relation_last_modified"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3453028, "supported_languages": null}, "macro.dbt.default__get_relation_last_modified": {"name": "default__get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relation_last_modified", "macro_sql": "{% macro default__get_relation_last_modified(information_schema, relations) %}\n {{ exceptions.raise_not_implemented(\n 'get_relation_last_modified macro not implemented for adapter ' + adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3456576, "supported_languages": null}, "macro.dbt.current_timestamp": {"name": "current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3465698, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"name": "default__current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3469038, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"name": "snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3476062, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"name": "default__snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3478334, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"name": "current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3482265, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"name": "default__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.348406, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"name": "current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3487372, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"name": "default__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_snowflake.snowflake__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3490698, "supported_languages": null}, "macro.dbt.create_schema": {"name": "create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3497984, "supported_languages": null}, "macro.dbt.default__create_schema": {"name": "default__create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.350179, "supported_languages": null}, "macro.dbt.drop_schema": {"name": "drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3505695, "supported_languages": null}, "macro.dbt.default__drop_schema": {"name": "default__drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3509538, "supported_languages": null}, "macro.dbt.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3517234, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3526444, "supported_languages": null}, "macro.dbt.get_show_sql": {"name": "get_show_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_show_sql", "macro_sql": "{% macro get_show_sql(compiled_code, sql_header, limit) -%}\n {%- if sql_header -%}\n {{ sql_header }}\n {%- endif -%}\n {%- if limit is not none -%}\n {{ get_limit_subquery_sql(compiled_code, limit) }}\n {%- else -%}\n {{ compiled_code }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3536396, "supported_languages": null}, "macro.dbt.get_limit_subquery_sql": {"name": "get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_limit_subquery_sql", "macro_sql": "{% macro get_limit_subquery_sql(sql, limit) %}\n {{ adapter.dispatch('get_limit_subquery_sql', 'dbt')(sql, limit) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.354038, "supported_languages": null}, "macro.dbt.default__get_limit_subquery_sql": {"name": "default__get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.default__get_limit_subquery_sql", "macro_sql": "{% macro default__get_limit_subquery_sql(sql, limit) %}\n select *\n from (\n {{ sql }}\n ) as model_limit_subq\n limit {{ limit }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.354362, "supported_languages": null}, "macro.dbt.validate_sql": {"name": "validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.validate_sql", "macro_sql": "{% macro validate_sql(sql) -%}\n {{ return(adapter.dispatch('validate_sql', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__validate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3549066, "supported_languages": null}, "macro.dbt.default__validate_sql": {"name": "default__validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.default__validate_sql", "macro_sql": "{% macro default__validate_sql(sql) -%}\n {% call statement('validate_sql') -%}\n explain {{ sql }}\n {% endcall %}\n {{ return(load_result('validate_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.355385, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"name": "get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.356779, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"name": "default__get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3570838, "supported_languages": null}, "macro.dbt.create_indexes": {"name": "create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3574376, "supported_languages": null}, "macro.dbt.default__create_indexes": {"name": "default__create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.358397, "supported_languages": null}, "macro.dbt.get_drop_index_sql": {"name": "get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_drop_index_sql", "macro_sql": "{% macro get_drop_index_sql(relation, index_name) -%}\n {{ adapter.dispatch('get_drop_index_sql', 'dbt')(relation, index_name) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_drop_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3587754, "supported_languages": null}, "macro.dbt.default__get_drop_index_sql": {"name": "default__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_drop_index_sql", "macro_sql": "{% macro default__get_drop_index_sql(relation, index_name) -%}\n {{ exceptions.raise_compiler_error(\"`get_drop_index_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3590543, "supported_languages": null}, "macro.dbt.get_show_indexes_sql": {"name": "get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_show_indexes_sql", "macro_sql": "{% macro get_show_indexes_sql(relation) -%}\n {{ adapter.dispatch('get_show_indexes_sql', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.359389, "supported_languages": null}, "macro.dbt.default__get_show_indexes_sql": {"name": "default__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_show_indexes_sql", "macro_sql": "{% macro default__get_show_indexes_sql(relation) -%}\n {{ exceptions.raise_compiler_error(\"`get_show_indexes_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3596482, "supported_languages": null}, "macro.dbt.copy_grants": {"name": "copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3623013, "supported_languages": null}, "macro.dbt.default__copy_grants": {"name": "default__copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.362547, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"name": "support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3628836, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"name": "default__support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.363113, "supported_languages": null}, "macro.dbt.should_revoke": {"name": "should_revoke", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.363831, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"name": "get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3642359, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"name": "default__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3644621, "supported_languages": null}, "macro.dbt.get_grant_sql": {"name": "get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.364918, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"name": "default__get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3653224, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"name": "get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3657784, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"name": "default__get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3661597, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"name": "get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3666282, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"name": "default__get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3681076, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"name": "call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.368517, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"name": "default__call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.369019, "supported_languages": null}, "macro.dbt.apply_grants": {"name": "apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3694956, "supported_languages": null}, "macro.dbt.default__apply_grants": {"name": "default__apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.371792, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"name": "get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.375174, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"name": "default__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3755188, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"name": "sql_convert_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3761542, "supported_languages": null}, "macro.dbt.get_empty_subquery_sql": {"name": "get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_subquery_sql", "macro_sql": "{% macro get_empty_subquery_sql(select_sql, select_sql_header=none) -%}\n {{ return(adapter.dispatch('get_empty_subquery_sql', 'dbt')(select_sql, select_sql_header)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.376609, "supported_languages": null}, "macro.dbt.default__get_empty_subquery_sql": {"name": "default__get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_subquery_sql", "macro_sql": "{% macro default__get_empty_subquery_sql(select_sql, select_sql_header=none) %}\n {%- if select_sql_header is not none -%}\n {{ select_sql_header }}\n {%- endif -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3770328, "supported_languages": null}, "macro.dbt.get_empty_schema_sql": {"name": "get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_schema_sql", "macro_sql": "{% macro get_empty_schema_sql(columns) -%}\n {{ return(adapter.dispatch('get_empty_schema_sql', 'dbt')(columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_schema_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3774185, "supported_languages": null}, "macro.dbt.default__get_empty_schema_sql": {"name": "default__get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_schema_sql", "macro_sql": "{% macro default__get_empty_schema_sql(columns) %}\n {%- set col_err = [] -%}\n {%- set col_naked_numeric = [] -%}\n select\n {% for i in columns %}\n {%- set col = columns[i] -%}\n {%- if col['data_type'] is not defined -%}\n {%- do col_err.append(col['name']) -%}\n {#-- If this column's type is just 'numeric' then it is missing precision/scale, raise a warning --#}\n {%- elif col['data_type'].strip().lower() in ('numeric', 'decimal', 'number') -%}\n {%- do col_naked_numeric.append(col['name']) -%}\n {%- endif -%}\n {% set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] %}\n cast(null as {{ col['data_type'] }}) as {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n {%- if (col_err | length) > 0 -%}\n {{ exceptions.column_type_missing(column_names=col_err) }}\n {%- elif (col_naked_numeric | length) > 0 -%}\n {{ exceptions.warn(\"Detected columns with numeric type and unspecified precision/scale, this can lead to unintended rounding: \" ~ col_naked_numeric ~ \"`\") }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.379715, "supported_languages": null}, "macro.dbt.get_column_schema_from_query": {"name": "get_column_schema_from_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_column_schema_from_query", "macro_sql": "{% macro get_column_schema_from_query(select_sql, select_sql_header=none) -%}\n {% set columns = [] %}\n {# -- Using an 'empty subquery' here to get the same schema as the given select_sql statement, without necessitating a data scan.#}\n {% set sql = get_empty_subquery_sql(select_sql, select_sql_header) %}\n {% set column_schema = adapter.get_column_schema_from_query(sql) %}\n {{ return(column_schema) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.380444, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"name": "get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3808181, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"name": "default__get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n {{ get_empty_subquery_sql(select_sql) }}\n {% endcall %}\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3815217, "supported_languages": null}, "macro.dbt.alter_column_type": {"name": "alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3819723, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"name": "default__alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3832016, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"name": "alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.383706, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"name": "default__alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}{{ ',' if add_columns and remove_columns }}\n\n {% for column in remove_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3854175, "supported_languages": null}, "macro.dbt.alter_column_comment": {"name": "alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3865657, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"name": "default__alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3869085, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"name": "alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3873343, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"name": "default__alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3876748, "supported_languages": null}, "macro.dbt.persist_docs": {"name": "persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3882227, "supported_languages": null}, "macro.dbt.default__persist_docs": {"name": "default__persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3892765, "supported_languages": null}, "macro.dbt.test_unique": {"name": "test_unique", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3902087, "supported_languages": null}, "macro.dbt.test_not_null": {"name": "test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.390769, "supported_languages": null}, "macro.dbt.test_accepted_values": {"name": "test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3913674, "supported_languages": null}, "macro.dbt.test_relationships": {"name": "test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3919127, "supported_languages": null}, "macro.livequery_models.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/custom_naming_macros.sql", "original_file_path": "macros/custom_naming_macros.sql", "unique_id": "macro.livequery_models.generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {% set node_name = node.name %}\n {% set split_name = node_name.split('__') %}\n {{ split_name[0] | trim }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3926892, "supported_languages": null}, "macro.livequery_models.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/custom_naming_macros.sql", "original_file_path": "macros/custom_naming_macros.sql", "unique_id": "macro.livequery_models.generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% set node_name = node.name %}\n {% set split_name = node_name.split('__') %}\n {{ split_name[1] | trim }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.393275, "supported_languages": null}, "macro.livequery_models.apply_grants_by_schema": {"name": "apply_grants_by_schema", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/grants.sql", "original_file_path": "macros/grants.sql", "unique_id": "macro.livequery_models.apply_grants_by_schema", "macro_sql": "{% macro apply_grants_by_schema(schema) %}\n{#\n Generates SQL to grant permissions to roles for a given schema.\n This gets run automatically when a deployment is made to prod.\n\n This can be manually run to grant permissions to a new schema:\n `dbt run-operation apply_grants_by_schema --args '{\"schema\": \"my_schema\"}'`\n #}\n {%- set outer = namespace(sql=\"\") -%}\n {% for role in fromyaml(var(\"ROLES\")) %}\n {% set sql -%}\n {% if schema.startswith(\"_\") %}\n REVOKE USAGE ON SCHEMA {{ target.database }}.{{ schema }} FROM {{ role }};\n REVOKE USAGE ON ALL FUNCTIONS IN SCHEMA {{ target.database }}.{{ schema }} FROM {{ role }};\n {%- else -%}\n GRANT USAGE ON SCHEMA {{ target.database }}.{{ schema }} TO {{ role }};\n GRANT USAGE ON ALL FUNCTIONS IN SCHEMA {{ target.database }}.{{ schema }} TO {{ role }};\n\n GRANT SELECT ON ALL TABLES IN SCHEMA {{ target.database }}.{{ schema }} TO {{ role }};\n GRANT SELECT ON ALL VIEWS IN SCHEMA {{ target.database }}.{{ schema }} TO {{ role }};\n {%- endif -%}\n {%- endset -%}\n {%- set outer.sql = outer.sql ~ sql -%}\n {%- endfor -%}\n {{ outer.sql }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3964627, "supported_languages": null}, "macro.livequery_models.apply_grants_to_all_schema": {"name": "apply_grants_to_all_schema", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/grants.sql", "original_file_path": "macros/grants.sql", "unique_id": "macro.livequery_models.apply_grants_to_all_schema", "macro_sql": "{% macro apply_grants_to_all_schema() %}\n{#\n Run SQL to grant permissions to roles for all schemas.\n This is useful for when a new role is created and needs to be granted access to all schemas.\n This is not used in the normal grant process.\n\n `dbt run-operation apply_grants_to_all_schema`\n #}\n {% if execute and target.name in (\"prod\", \"hosted\",) %}\n {% set sql_get_schema %}\n SELECT SCHEMA_NAME\n FROM {{ target.database }}.INFORMATION_SCHEMA.SCHEMATA\n WHERE SCHEMA_NAME NOT IN ('PUBLIC', 'INFORMATION_SCHEMA')\n {%- endset -%}\n {%- set results = run_query(sql_get_schema) -%}\n {% set sql_apply_grants %}\n {%- for schema in results.columns[0].values() -%}\n {{ apply_grants_by_schema(schema) }}\n {%- endfor -%}\n {%- endset -%}\n {% do log(sql_apply_grants, true) %}\n {% do run_query(sql_apply_grants) %}\n {%- endif -%}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.livequery_models.apply_grants_by_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3978984, "supported_languages": null}, "macro.livequery_models.run_sp_create_prod_clone": {"name": "run_sp_create_prod_clone", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/run_sp_create_prod_clone.sql", "original_file_path": "macros/run_sp_create_prod_clone.sql", "unique_id": "macro.livequery_models.run_sp_create_prod_clone", "macro_sql": "{% macro run_sp_create_prod_clone() %}\n {% set clone_query %}\n call livequery._internal.create_prod_clone(\n 'livequery',\n 'livequery_dev',\n 'livequery_dev_owner'\n );\n{% endset %}\n {% do run_query(clone_query) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.3984108, "supported_languages": null}, "macro.livequery_models.create_sps": {"name": "create_sps", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/create_sps.sql", "original_file_path": "macros/create_sps.sql", "unique_id": "macro.livequery_models.create_sps", "macro_sql": "{% macro create_sps() %}\n {% if var(\"UPDATE_UDFS_AND_SPS\") %}\n {% if target.database == 'LIVEQUERY' %}\n CREATE schema IF NOT EXISTS _internal;\n {{ sp_create_prod_clone('_internal') }};\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.sp_create_prod_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.399083, "supported_languages": null}, "macro.livequery_models.sp_create_prod_clone": {"name": "sp_create_prod_clone", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/sp_create_prod_clone.sql", "original_file_path": "macros/sp_create_prod_clone.sql", "unique_id": "macro.livequery_models.sp_create_prod_clone", "macro_sql": "{% macro sp_create_prod_clone(target_schema) -%}\n\ncreate or replace procedure {{ target_schema }}.create_prod_clone(source_db_name string, destination_db_name string, role_name string)\nreturns boolean \nlanguage javascript\nexecute as caller\nas\n$$\n snowflake.execute({sqlText: `BEGIN TRANSACTION;`});\n try {\n snowflake.execute({sqlText: `CREATE OR REPLACE DATABASE ${DESTINATION_DB_NAME} CLONE ${SOURCE_DB_NAME}`});\n snowflake.execute({sqlText: `DROP SCHEMA IF EXISTS ${DESTINATION_DB_NAME}._INTERNAL`}); /* this only needs to be in prod */\n\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL SCHEMAS IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL FUNCTIONS IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL PROCEDURES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL VIEWS IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL STAGES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON ALL TABLES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON FUTURE FUNCTIONS IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME};`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON FUTURE PROCEDURES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME};`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON FUTURE VIEWS IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME};`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON FUTURE STAGES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME};`}); \n snowflake.execute({sqlText: `GRANT OWNERSHIP ON FUTURE TABLES IN DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME};`}); \n\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON DATABASE ${DESTINATION_DB_NAME} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`})\n\n var existing_tags = snowflake.execute({sqlText: `SHOW TAGS IN DATABASE ${DESTINATION_DB_NAME};`});\n while (existing_tags.next()) {\n var schema = existing_tags.getColumnValue(4);\n var tag_name = existing_tags.getColumnValue(2)\n snowflake.execute({sqlText: `GRANT OWNERSHIP ON TAG ${DESTINATION_DB_NAME}.${schema}.${tag_name} TO ROLE ${ROLE_NAME} COPY CURRENT GRANTS;`});\n }\n\n snowflake.execute({sqlText: `COMMIT;`});\n } catch (err) {\n snowflake.execute({sqlText: `ROLLBACK;`});\n throw(err);\n }\n\n return true\n$$\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.4000115, "supported_languages": null}, "macro.livequery_models.set_query_tag": {"name": "set_query_tag", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/custom_query_tag.sql", "original_file_path": "macros/custom_query_tag.sql", "unique_id": "macro.livequery_models.set_query_tag", "macro_sql": "{% macro set_query_tag() -%}\n {% set new_json = {\"repo\":project_name, \"object\":this.table, \"profile\":target.profile_name, \"env\":target.name, \"existing_tag\":get_current_query_tag() } %}\n{% set new_query_tag = tojson(new_json) | as_text %}\n {% if new_query_tag %}\n {% set original_query_tag = get_current_query_tag() %}\n {{ log(\"Setting query_tag to '\" ~ new_query_tag ~ \"'. Will reset to '\" ~ original_query_tag ~ \"' after materialization.\") }}\n {% do run_query(\"alter session set query_tag = '{}'\".format(new_query_tag)) %}\n {{ return(original_query_tag)}}\n {% endif %}\n {{ return(none)}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.get_current_query_tag", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.401714, "supported_languages": null}, "macro.livequery_models.get_rendered_model": {"name": "get_rendered_model", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/utils/udf_utils/render.sql", "original_file_path": "macros/utils/udf_utils/render.sql", "unique_id": "macro.livequery_models.get_rendered_model", "macro_sql": "{% macro get_rendered_model(package_name, model_name, schema, blockchain, network) %}\n {# \n This macro retrieves and renders a specified model from the graph.\n\n Args:\n package_name (str): The name of the package containing the model.\n model_name (str): The name of the model to be rendered.\n schema (str): The schema to be used.\n blockchain (str): The blockchain to be used.\n network (str): The network to be used.\n\n Returns:\n str: The rendered SQL of the specified model.\n #}\n {% if execute %}\n {{ log(\"=== Starting get_rendered_model ===\", info=True) }}\n {# Use a list to store the node to avoid scope issues #}\n {%- set nodes = [] -%}\n {{ log(\"Looking for node: \" ~ package_name ~ \".\" ~ model_name, info=True) }}\n {%- for node in graph.nodes.values() -%}\n {%- if node.package_name == package_name and node.name == model_name -%}\n {{ log(\"Found target node: \" ~ node.unique_id, info=True) }}\n {%- do nodes.append(node) -%}\n {%- endif -%}\n {%- endfor -%}\n\n {%- if nodes | length == 0 -%}\n {{ log(\"No target node found!\", info=True) }}\n {{ return('') }}\n {%- endif -%}\n\n {%- set target_node = nodes[0] -%}\n {{ log(\"Processing node: \" ~ target_node.unique_id, info=True) }}\n {{ log(\"Dependencies:\\n\\t\\t\" ~ (target_node.depends_on.nodes | pprint).replace(\"\\n\", \"\\n\\t\\t\"), info=True) }}\n\n {# First render all dependency CTEs #}\n {%- set ctes = [] -%}\n {%- for dep_id in target_node.depends_on.nodes -%}\n {{ log(\"Processing dependency: \" ~ dep_id, info=True) }}\n {%- set dep_node = graph.nodes[dep_id] -%}\n\n {%- set rendered_sql = render(dep_node.raw_code) | trim -%}\n\n {%- if rendered_sql -%}\n {%- set cte_sql -%}\n__dbt__cte__{{ dep_node.name }} AS (\n {{ rendered_sql }}\n)\n {%- endset -%}\n {%- do ctes.append(cte_sql) -%}\n {%- endif -%}\n {%- endfor -%}\n\n {{ log(\"Number of CTEs generated: \" ~ ctes | length, info=True) }}\n\n {# Combine CTEs with main query #}\n {%- set final_sql -%}\nWITH {{ ctes | join(',\\n\\n') }}\n\n{{ render(target_node.raw_code) }}\n {%- endset -%}\n\n {{ log(\"=== End get_rendered_model ===\\n\\n\" , info=True) }}\n\n {{ return(final_sql) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.4065516, "supported_languages": null}, "macro.livequery_models.config_evm_rpc_primitives": {"name": "config_evm_rpc_primitives", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_primitives.yaml.sql", "original_file_path": "macros/evm/evm_primitives.yaml.sql", "unique_id": "macro.livequery_models.config_evm_rpc_primitives", "macro_sql": "{%- macro config_evm_rpc_primitives(blockchain, network) -%}\n{#-\n Generates a set of UDFs that call the Ethereum JSON RPC API\n\n - rpc: Executes an RPC call on the {{ blockchain }} blockchain\n - eth_call: Executes a new message call immediately without creating a transaction on the block chain\n - eth_getLogs: Returns an array of all logs matching filter with given address\n - eth_getBalance: Returns the balance of the account of given address\n\n -#}\n{% set schema = blockchain ~ \"_\" ~ network -%}\n\n- name: {{ schema -}}.udf_rpc\n signature:\n - [method, STRING, RPC method to call]\n - [parameters, VARIANT, Parameters to pass to the RPC method]\n return_type: [VARIANT, The return value of the RPC method]\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Executes an RPC call on the {{ blockchain }} blockchain.$$\n sql: |\n SELECT live.udf_rpc('{{ blockchain }}', '{{ network }}', method, parameters)\n\n- name: {{ schema -}}.udf_rpc_eth_call\n signature:\n - [transaction, OBJECT, The transaction object]\n - [block_or_tag, STRING, The block number or tag to execute the call on]\n return_type: [VARIANT, The return value of the executed contract code]\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Executes a new message call immediately without creating a transaction on the block chain.$$\n sql: |\n SELECT {{ schema -}}.udf_rpc('eth_call', [transaction, block_or_tag])\n\n- name: {{ schema -}}.udf_rpc_eth_get_logs\n signature:\n - [filter, OBJECT, The filter object]\n return_type: [VARIANT, An array of all logs matching filter with given address]\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns an array of all logs matching filter with given address.$$\n sql: |\n SELECT {{ schema -}}.udf_rpc('eth_getLogs', [filter])\n\n- name: {{ schema -}}.udf_rpc_eth_get_balance\n signature:\n - [address, STRING, The address to get the balance of]\n - [block_or_tag, STRING, The block number or tag to execute the call on]\n return_type: [VARIANT, The balance of the account of given address]\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the balance of the account of given address.$$\n sql: |\n SELECT {{ schema -}}.udf_rpc('eth_getBalance', [address, block_or_tag])\n\n- name: {{ schema -}}.udf_get_token_balance\n signature:\n - [wallet_address, STRING, The address to get the balance of]\n - [token_address, STRING, The token to get the balance of]\n return_type: [STRING, The balance of the account of given address]\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the balance of the wallet of given token address at the latest block.$$\n sql: |\n SELECT utils.udf_hex_to_int({{ schema -}}.udf_rpc_eth_call(object_construct_keep_null('from', null, 'to', token_address, 'data', concat('0x70a08231',LPAD(REPLACE(wallet_address, '0x', ''), 64, 0))),'latest')::string)\n\n- name: {{ schema -}}.udf_get_token_balance\n signature:\n - [wallet_address, STRING, The address to get the balance of]\n - [token_address, STRING, The token to get the balance of]\n - [block_number, INTEGER, The block number to retrieve the balance at]\n return_type: [STRING, The balance of the account of given address]\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the balance of the wallet of given token address at the given block.$$\n sql: |\n SELECT utils.udf_hex_to_int({{schema}}.udf_rpc_eth_call(OBJECT_CONSTRUCT_KEEP_NULL('from', NULL, 'to', token_address, 'data', concat('0x70a08231',LPAD(REPLACE(wallet_address, '0x', ''), 64, 0))), CONCAT('0x', TRIM(TO_CHAR(block_number, 'XXXXXXXXXX'))))::STRING)\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.409665, "supported_languages": null}, "macro.livequery_models.evm_live_view_latest_block_height": {"name": "evm_live_view_latest_block_height", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_latest_block_height", "macro_sql": "{% macro evm_live_view_latest_block_height(schema, blockchain, network) %}\n SELECT\n {{ schema }}.udf_rpc('eth_blockNumber', []) as result,\n utils.udf_hex_to_int(result)::integer AS latest_block_height,\n COALESCE(\n block_height,\n latest_block_height\n ) AS min_height,\n iff(\n COALESCE(to_latest, false),\n latest_block_height,\n min_height\n ) AS max_height\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.5237622, "supported_languages": null}, "macro.livequery_models.evm_live_view_target_blocks": {"name": "evm_live_view_target_blocks", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_target_blocks", "macro_sql": "{% macro evm_live_view_target_blocks(schema, blockchain, network, batch_size=10) %}\n WITH heights AS (\n {{ evm_live_view_latest_block_height(schema, blockchain, network) | indent(4) -}}\n ),\n block_spine AS (\n SELECT\n ROW_NUMBER() OVER (\n ORDER BY\n NULL\n ) - 1 + COALESCE(block_height, latest_block_height)::integer AS block_number,\n min_height,\n IFF(\n COALESCE(to_latest, false),\n block_height,\n min_height\n ) AS max_height,\n latest_block_height\n FROM\n TABLE(generator(ROWCOUNT => 1000)),\n heights qualify block_number BETWEEN min_height\n AND max_height\n )\n\n SELECT\n CEIL(ROW_NUMBER() OVER (ORDER BY block_number) / {{ batch_size }}) AS batch_id,\n block_number,\n latest_block_height\n FROM block_spine\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_live_view_latest_block_height"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.5243723, "supported_languages": null}, "macro.livequery_models.evm_batch_udf_api": {"name": "evm_batch_udf_api", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_batch_udf_api", "macro_sql": "{% macro evm_batch_udf_api(blockchain, network) %}\n live.udf_api(\n '{endpoint}'\n ,params\n ,concat_ws('/', 'integration', _utils.udf_provider(), '{{ blockchain }}', '{{ network }}')\n )::VARIANT:data::ARRAY AS data\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.5246763, "supported_languages": null}, "macro.livequery_models.evm_live_view_bronze_blocks": {"name": "evm_live_view_bronze_blocks", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_bronze_blocks", "macro_sql": "{% macro evm_live_view_bronze_blocks(schema, blockchain, network, table_name) %}\nWITH blocks_agg AS (\n SELECT\n batch_id,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'eth_getBlockByNumber',\n [utils.udf_int_to_hex(block_number), true]\n )\n ) AS params\n FROM\n {{ table_name }}\n GROUP BY batch_id\n), result as (\n SELECT\n {{ evm_batch_udf_api(blockchain, network) }}\n FROM blocks_agg\n)\n, flattened as (\n SELECT\n COALESCE(value:result, {'error':value:error}) AS result\n FROM result, LATERAL FLATTEN(input => result.data) v\n)\n\nSELECT\n utils.udf_hex_to_int(result:number::STRING)::INT AS block_number,\n result as data\nFROM flattened\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_batch_udf_api"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.5251112, "supported_languages": null}, "macro.livequery_models.evm_live_view_bronze_receipts": {"name": "evm_live_view_bronze_receipts", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_bronze_receipts", "macro_sql": "{% macro evm_live_view_bronze_receipts(schema, blockchain, network, table_name) %}\nWITH blocks_agg AS (\n SELECT\n batch_id,\n latest_block_height,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'eth_getBlockReceipts',\n [utils.udf_int_to_hex(block_number)]\n )\n ) AS params\n FROM\n {{ table_name }}\n GROUP BY 1,2\n),\n\nget_batch_result AS (\n SELECT\n latest_block_height,\n {{ evm_batch_udf_api(blockchain, network) }}\n FROM blocks_agg\n)\n\nSELECT\n latest_block_height,\n utils.udf_hex_to_int(w.value:blockNumber::STRING)::INT AS block_number,\n w.value AS DATA\nFROM\n (SELECT\n latest_block_height,\n v.value:result AS DATA\n FROM get_batch_result,\n LATERAL FLATTEN(data) v), LATERAL FLATTEN(data) w\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_batch_udf_api"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.5255725, "supported_languages": null}, "macro.livequery_models.evm_live_view_bronze_logs": {"name": "evm_live_view_bronze_logs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_bronze_logs", "macro_sql": "{% macro evm_live_view_bronze_logs(table_name) %}\nSELECT\n r.block_number,\n v.value\nFROM\n {{ table_name }} AS r,\n lateral flatten(r.data:logs) v\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.5258038, "supported_languages": null}, "macro.livequery_models.evm_live_view_bronze_transactions": {"name": "evm_live_view_bronze_transactions", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_bronze_transactions", "macro_sql": "{% macro evm_live_view_bronze_transactions(table_name) %}\nSELECT\n block_number,\n v.value as DATA\nFROM\n {{ table_name }} AS r,\n lateral flatten(r.data:transactions) v\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.5260277, "supported_languages": null}, "macro.livequery_models.evm_live_view_bronze_traces": {"name": "evm_live_view_bronze_traces", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_bronze_traces", "macro_sql": "{% macro evm_live_view_bronze_traces(schema, blockchain, network, table_name)%}\nWITH blocks_agg AS (\n SELECT\n batch_id,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'debug_traceBlockByNumber',\n [utils.udf_int_to_hex(s.block_number), {'tracer': 'callTracer'}],\n s.block_number -- to put block_number in the id to retrieve the block numberlater\n )\n ) AS params\n FROM\n {{ table_name }} s\n GROUP BY batch_id\n), result as (\n SELECT\n {{ evm_batch_udf_api(blockchain, network) }}\n FROM blocks_agg\n), flattened as (\n SELECT\n value:id::INT AS block_number,\n COALESCE(value:result, {'error':value:error}) AS result\n FROM result, LATERAL FLATTEN(input => result.data) v\n)\n\nSELECT\n s.block_number,\n v.index::INT AS tx_position, -- mimic's streamline's logic to add tx_position\n v.value:result AS full_traces,\n SYSDATE() AS _inserted_timestamp\nFROM flattened s,\nLATERAL FLATTEN(input => result) v\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_batch_udf_api"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.526499, "supported_languages": null}, "macro.livequery_models.evm_live_view_bronze_token_balances": {"name": "evm_live_view_bronze_token_balances", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_bronze_token_balances", "macro_sql": "{% macro evm_live_view_bronze_token_balances(schema, blockchain, network, table_name) %}\nWITH block_spine AS (\n SELECT\n CEIL(ROW_NUMBER() OVER (ORDER BY block_number, address, contract_address) / 10) AS batch_id,\n block_number,\n address,\n contract_address\n FROM\n {{ table_name }}\n),\nblocks_agg AS (\n SELECT\n batch_id,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'eth_call',\n ARRAY_CONSTRUCT(\n OBJECT_CONSTRUCT(\n 'to',\n contract_address,\n 'data',\n CONCAT(\n '0x70a08231000000000000000000000000',\n SUBSTR(\n address,\n 3\n )\n )\n ),\n utils.udf_int_to_hex(block_number)\n ),\n CONCAT(\n block_number,\n '-',\n address,\n '-',\n contract_address\n )\n )\n ) AS params\n FROM\n block_spine\n GROUP BY batch_id\n), result as (\n SELECT\n {{ evm_batch_udf_api(blockchain, network) }}\n FROM blocks_agg\n)\n\nSELECT\n SPLIT(value:id::STRING, '-')[0]::INT AS block_number,\n SPLIT(value:id::STRING, '-')[1]::STRING AS address,\n SPLIT(value:id::STRING, '-')[2]::STRING AS contract_address,\n COALESCE(value:result, {'error':value:error}) AS DATA\nFROM result, LATERAL FLATTEN(input => result.data) v\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_batch_udf_api"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.5270095, "supported_languages": null}, "macro.livequery_models.evm_live_view_bronze_eth_balances": {"name": "evm_live_view_bronze_eth_balances", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_bronze_eth_balances", "macro_sql": "{% macro evm_live_view_bronze_eth_balances(schema, blockchain, network, table_name) %}\nWITH block_spine AS (\n SELECT\n CEIL(ROW_NUMBER() OVER (ORDER BY block_number, address) / 10) AS batch_id,\n block_number,\n address\n FROM\n {{ table_name }}\n),\nblocks_agg AS (\n SELECT\n batch_id,\n ARRAY_AGG(\n utils.udf_json_rpc_call(\n 'eth_getBalance',\n ARRAY_CONSTRUCT(address, utils.udf_int_to_hex(block_number)),\n CONCAT(\n block_number,\n '-',\n address\n )\n )\n ) AS params\n FROM\n block_spine\n GROUP BY batch_id\n), result as (\n SELECT\n {{ evm_batch_udf_api(blockchain, network) }}\n FROM blocks_agg\n)\n\nSELECT\n SPLIT(value:id::STRING, '-')[0]::INT AS block_number,\n SPLIT(value:id::STRING, '-')[1]::STRING AS address,\n COALESCE(value:result, {'error':value:error}) AS DATA\nFROM result, LATERAL FLATTEN(input => result.data) v\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_batch_udf_api"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.5275118, "supported_languages": null}, "macro.livequery_models.evm_live_view_silver_blocks": {"name": "evm_live_view_silver_blocks", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_silver_blocks", "macro_sql": "{% macro evm_live_view_silver_blocks(table_name) %}\nSELECT\n block_number,\n utils.udf_hex_to_int(DATA:timestamp::STRING)::TIMESTAMP AS block_timestamp,\n utils.udf_hex_to_int(DATA:baseFeePerGas::STRING)::INT AS base_fee_per_gas,\n utils.udf_hex_to_int(DATA:difficulty::STRING)::INT AS difficulty,\n DATA:extraData::STRING AS extra_data,\n utils.udf_hex_to_int(DATA:gasLimit::STRING)::INT AS gas_limit,\n utils.udf_hex_to_int(DATA:gasUsed::STRING)::INT AS gas_used,\n DATA:hash::STRING AS HASH,\n DATA:logsBloom::STRING AS logs_bloom,\n DATA:miner::STRING AS miner,\n utils.udf_hex_to_int(DATA:nonce::STRING)::INT AS nonce,\n utils.udf_hex_to_int(DATA:number::STRING)::INT AS NUMBER,\n DATA:parentHash::STRING AS parent_hash,\n DATA:receiptsRoot::STRING AS receipts_root,\n DATA:sha3Uncles::STRING AS sha3_uncles,\n utils.udf_hex_to_int(DATA:size::STRING)::INT AS SIZE,\n DATA:stateRoot::STRING AS state_root,\n utils.udf_hex_to_int(DATA:totalDifficulty::STRING)::INT AS total_difficulty,\n ARRAY_SIZE(DATA:transactions) AS tx_count,\n DATA:transactionsRoot::STRING AS transactions_root,\n DATA:uncles AS uncles,\n DATA:withdrawals AS withdrawals,\n DATA:withdrawalsRoot::STRING AS withdrawals_root,\n md5(\n CAST(\n COALESCE(\n CAST(block_number AS TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) AS TEXT\n )\n ) AS blocks_id,\n utils.udf_hex_to_int(DATA:blobGasUsed::STRING)::INT AS blob_gas_used,\n utils.udf_hex_to_int(DATA:excessBlobGas::STRING)::INT AS excess_blob_gas\nFROM\n {{ table_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.5278833, "supported_languages": null}, "macro.livequery_models.evm_live_view_silver_receipts": {"name": "evm_live_view_silver_receipts", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_silver_receipts", "macro_sql": "{% macro evm_live_view_silver_receipts(table_name) %}\nSELECT\n latest_block_height,\n block_number,\n DATA :blockHash::STRING AS block_hash,\n utils.udf_hex_to_int(DATA :blockNumber::STRING)::INT AS blockNumber,\n utils.udf_hex_to_int(DATA :cumulativeGasUsed::STRING)::INT AS cumulative_gas_used,\n utils.udf_hex_to_int(DATA :effectiveGasPrice::STRING)::INT / pow(10, 9) AS effective_gas_price,\n DATA :from::STRING AS from_address,\n utils.udf_hex_to_int(DATA :gasUsed::STRING)::INT AS gas_used,\n DATA :logs AS logs,\n DATA :logsBloom::STRING AS logs_bloom,\n utils.udf_hex_to_int(DATA :status::STRING)::INT AS status,\n CASE\n WHEN status = 1 THEN TRUE\n ELSE FALSE\n END AS tx_success,\n CASE\n WHEN status = 1 THEN 'SUCCESS'\n ELSE 'FAIL'\n END AS tx_status,\n DATA :to::STRING AS to_address1,\n CASE\n WHEN to_address1 = '' THEN NULL\n ELSE to_address1\n END AS to_address,\n DATA :transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(DATA :transactionIndex::STRING)::INT AS POSITION,\n utils.udf_hex_to_int(DATA :type::STRING)::INT AS TYPE,\n utils.udf_hex_to_int(DATA :effectiveGasPrice::STRING)::INT AS blob_gas_price,\n utils.udf_hex_to_int(DATA :gasUsed::STRING)::INT AS blob_gas_used\nFROM\n {{ table_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.528386, "supported_languages": null}, "macro.livequery_models.evm_live_view_silver_logs": {"name": "evm_live_view_silver_logs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_silver_logs", "macro_sql": "{% macro evm_live_view_silver_logs(silver_receipts, silver_transactions) %}\nSELECT\n r.block_number,\n txs.block_timestamp,\n r.tx_hash,\n txs.origin_function_signature,\n r.from_address AS origin_from_address,\n r.to_address AS origin_to_address,\n utils.udf_hex_to_int(v.VALUE :logIndex::STRING)::INT AS event_index,\n v.VALUE :address::STRING AS contract_address,\n v.VALUE :blockHash::STRING AS block_hash,\n v.VALUE :data::STRING AS DATA,\n v.VALUE :removed::BOOLEAN AS event_removed,\n v.VALUE :topics AS topics,\n r.tx_status,\n CASE\n WHEN txs.block_timestamp IS NULL\n OR txs.origin_function_signature IS NULL THEN TRUE\n ELSE FALSE\n END AS is_pending,\nFROM\n {{ silver_receipts }} AS r\n LEFT JOIN {{ silver_transactions }} AS txs on txs.tx_hash = r.tx_hash,\n lateral flatten(r.logs) v\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.5287387, "supported_languages": null}, "macro.livequery_models.evm_live_view_silver_transactions": {"name": "evm_live_view_silver_transactions", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_silver_transactions", "macro_sql": "{% macro evm_live_view_silver_transactions(bronze_transactions, silver_blocks, silver_receipts) %}\nSELECT\n A.block_number AS block_number,\n A.data :blockHash::STRING AS block_hash,\n utils.udf_hex_to_int(A.data :blockNumber::STRING)::INT AS blockNumber,\n utils.udf_hex_to_int(A.data :chainId::STRING)::INT AS chain_id,\n A.data :from::STRING AS from_address,\n utils.udf_hex_to_int(A.data :gas::STRING)::INT AS gas,\n utils.udf_hex_to_int(A.data :gasPrice::STRING)::INT / pow(10, 9) AS gas_price,\n A.data :hash::STRING AS tx_hash,\n A.data :input::STRING AS input_data,\n SUBSTR(input_data, 1, 10) AS origin_function_signature,\n utils.udf_hex_to_int(A.data :maxFeePerGas::STRING)::INT / pow(10, 9) AS max_fee_per_gas,\n utils.udf_hex_to_int(\n A.data :maxPriorityFeePerGas::STRING\n )::INT / pow(10, 9) AS max_priority_fee_per_gas,\n utils.udf_hex_to_int(A.data :nonce::STRING)::INT AS nonce,\n A.data :r::STRING AS r,\n A.data :s::STRING AS s,\n A.data :to::STRING AS to_address1,\n utils.udf_hex_to_int(A.data :transactionIndex::STRING)::INT AS POSITION,\n A.data :type::STRING AS TYPE,\n A.data :v::STRING AS v,\n utils.udf_hex_to_int(A.data :value::STRING) AS value_precise_raw,\n value_precise_raw * power(10, -18) AS value_precise,\n value_precise::FLOAT AS VALUE,\n A.data :accessList AS access_list,\n A.data,\n A.data: blobVersionedHashes::ARRAY AS blob_versioned_hashes,\n utils.udf_hex_to_int(A.data: maxFeePerGas::STRING)::INT AS max_fee_per_blob_gas,\n block_timestamp,\n CASE\n WHEN block_timestamp IS NULL\n OR tx_status IS NULL THEN TRUE\n ELSE FALSE\n END AS is_pending,\n r.gas_used,\n tx_success,\n tx_status,\n cumulative_gas_used,\n effective_gas_price,\n utils.udf_hex_to_int(A.data :gasPrice) * power(10, -18) * r.gas_used AS tx_fee_precise,\n COALESCE(tx_fee_precise::FLOAT, 0) AS tx_fee,\n r.type as tx_type,\n r.blob_gas_used,\n r.blob_gas_price,\nFROM\n {{ bronze_transactions }} AS A\n LEFT JOIN {{ silver_blocks }} AS b on b.block_number = A.block_number\n LEFT JOIN {{ silver_receipts }} AS r on r.tx_hash = A.data :hash::STRING\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.5292501, "supported_languages": null}, "macro.livequery_models.evm_live_view_silver_traces": {"name": "evm_live_view_silver_traces", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_silver_traces", "macro_sql": "{% macro evm_live_view_silver_traces(raw_traces) %}\nflatten_traces AS (\n SELECT\n block_number,\n tx_position,\n IFF(\n path IN (\n 'result',\n 'result.value',\n 'result.type',\n 'result.to',\n 'result.input',\n 'result.gasUsed',\n 'result.gas',\n 'result.from',\n 'result.output',\n 'result.error',\n 'result.revertReason',\n 'gasUsed',\n 'gas',\n 'type',\n 'to',\n 'from',\n 'value',\n 'input',\n 'error',\n 'output',\n 'revertReason'\n ),\n 'ORIGIN',\n REGEXP_REPLACE(REGEXP_REPLACE(path, '[^0-9]+', '_'), '^_|_$', '')\n ) AS trace_address,\n _inserted_timestamp,\n OBJECT_AGG(\n key,\n VALUE\n ) AS trace_json,\n CASE\n WHEN trace_address = 'ORIGIN' THEN NULL\n WHEN POSITION(\n '_' IN trace_address\n ) = 0 THEN 'ORIGIN'\n ELSE REGEXP_REPLACE(\n trace_address,\n '_[0-9]+$',\n '',\n 1,\n 1\n )\n END AS parent_trace_address,\n SPLIT(\n trace_address,\n '_'\n ) AS str_array\n FROM\n {{ raw_traces }},\n TABLE(\n FLATTEN(\n input => PARSE_JSON(full_traces),\n recursive => TRUE\n )\n ) f\n WHERE\n f.index IS NULL\n AND f.key != 'calls'\n AND f.path != 'result'\n GROUP BY\n block_number,\n tx_position,\n trace_address,\n _inserted_timestamp\n),\nsub_traces AS (\n SELECT\n block_number,\n tx_position,\n parent_trace_address,\n COUNT(*) AS sub_traces\n FROM\n flatten_traces\n GROUP BY\n block_number,\n tx_position,\n parent_trace_address\n),\nnum_array AS (\n SELECT\n block_number,\n tx_position,\n trace_address,\n ARRAY_AGG(flat_value) AS num_array\n FROM\n (\n SELECT\n block_number,\n tx_position,\n trace_address,\n IFF(\n VALUE :: STRING = 'ORIGIN',\n -1,\n VALUE :: INT\n ) AS flat_value\n FROM\n flatten_traces,\n LATERAL FLATTEN (\n input => str_array\n )\n )\n GROUP BY\n block_number,\n tx_position,\n trace_address\n),\ncleaned_traces AS (\n SELECT\n b.block_number,\n b.tx_position,\n b.trace_address,\n IFNULL(\n sub_traces,\n 0\n ) AS sub_traces,\n num_array,\n ROW_NUMBER() over (\n PARTITION BY b.block_number,\n b.tx_position\n ORDER BY\n num_array ASC\n ) - 1 AS trace_index,\n trace_json,\n b._inserted_timestamp\n FROM\n flatten_traces b\n LEFT JOIN sub_traces s\n ON b.block_number = s.block_number\n AND b.tx_position = s.tx_position\n AND b.trace_address = s.parent_trace_address\n JOIN num_array n\n ON b.block_number = n.block_number\n AND b.tx_position = n.tx_position\n AND b.trace_address = n.trace_address\n),\nfinal_traces AS (\n SELECT\n tx_position,\n trace_index,\n block_number,\n trace_address,\n trace_json :error :: STRING AS error_reason,\n trace_json :from :: STRING AS from_address,\n trace_json :to :: STRING AS to_address,\n IFNULL(\n utils.udf_hex_to_int(\n trace_json :value :: STRING\n ),\n '0'\n ) AS eth_value_precise_raw,\n ethereum.utils.udf_decimal_adjust(\n eth_value_precise_raw,\n 18\n ) AS eth_value_precise,\n eth_value_precise :: FLOAT AS eth_value,\n utils.udf_hex_to_int(\n trace_json :gas :: STRING\n ) :: INT AS gas,\n utils.udf_hex_to_int(\n trace_json :gasUsed :: STRING\n ) :: INT AS gas_used,\n trace_json :input :: STRING AS input,\n trace_json :output :: STRING AS output,\n trace_json :type :: STRING AS TYPE,\n concat_ws(\n '_',\n TYPE,\n trace_address\n ) AS identifier,\n concat_ws(\n '-',\n block_number,\n tx_position,\n identifier\n ) AS _call_id,\n _inserted_timestamp,\n trace_json AS DATA,\n sub_traces\n FROM\n cleaned_traces\n),\nnew_records AS (\n SELECT\n f.block_number,\n t.tx_hash,\n t.block_timestamp,\n t.tx_status,\n f.tx_position,\n f.trace_index,\n f.from_address,\n f.to_address,\n f.eth_value_precise_raw,\n f.eth_value_precise,\n f.eth_value,\n f.gas,\n f.gas_used,\n f.input,\n f.output,\n f.type,\n f.identifier,\n f.sub_traces,\n f.error_reason,\n IFF(\n f.error_reason IS NULL,\n 'SUCCESS',\n 'FAIL'\n ) AS trace_status,\n f.data,\n IFF(\n t.tx_hash IS NULL\n OR t.block_timestamp IS NULL\n OR t.tx_status IS NULL,\n TRUE,\n FALSE\n ) AS is_pending,\n f._call_id,\n f._inserted_timestamp\n FROM\n final_traces f\n LEFT OUTER JOIN transactions t\n ON f.tx_position = t.position\n AND f.block_number = t.block_number\n),\ntraces_final AS (\n SELECT\n block_number,\n tx_hash,\n block_timestamp,\n tx_status,\n tx_position,\n trace_index,\n from_address,\n to_address,\n eth_value_precise_raw,\n eth_value_precise,\n eth_value,\n gas,\n gas_used,\n input,\n output,\n TYPE,\n identifier,\n sub_traces,\n error_reason,\n trace_status,\n DATA,\n is_pending,\n _call_id,\n _inserted_timestamp\n FROM\n new_records\n)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.5300195, "supported_languages": null}, "macro.livequery_models.evm_live_view_silver_token_balances": {"name": "evm_live_view_silver_token_balances", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_silver_token_balances", "macro_sql": "{% macro evm_live_view_silver_token_balances(schema, blockchain, network) %}\nWITH silver_logs AS (\n SELECT\n CONCAT('0x', SUBSTR(l.topics [1] :: STRING, 27, 42)) AS address1,\n CONCAT('0x', SUBSTR(l.topics [2] :: STRING, 27, 42)) AS address2,\n l.contract_address,\n l.block_timestamp,\n l.block_number\n FROM\n (\n {{ evm_live_view_fact_event_logs(schema, blockchain, network) | indent(4) -}}\n ) l\n WHERE\n (\n l.topics [0] :: STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n OR (\n l.topics [0] :: STRING = '0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65'\n AND l.contract_address = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\n )\n OR (\n l.topics [0] :: STRING = '0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c'\n AND l.contract_address = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'\n )\n )\n),\n\ntransfers AS (\n SELECT\n DISTINCT block_number,\n block_timestamp,\n contract_address,\n address1 AS address\n FROM\n silver_logs\n WHERE\n address1 IS NOT NULL\n AND address1 <> '0x0000000000000000000000000000000000000000'\n UNION\n SELECT\n DISTINCT block_number,\n block_timestamp,\n contract_address,\n address2 AS address\n FROM\n silver_logs\n WHERE\n address2 IS NOT NULL\n AND address2 <> '0x0000000000000000000000000000000000000000'\n),\n\nbalances AS (\n {{ evm_live_view_bronze_token_balances(schema, blockchain, network, 'transfers') | indent(4) -}}\n)\n\nSELECT\n b.block_number,\n block_timestamp,\n address,\n contract_address,\n IFF(DATA :: STRING = '{}', NULL, DATA :: STRING) AS casted_data,\n CASE\n WHEN\n LENGTH(\n casted_data\n ) <= 4300\n AND casted_data IS NOT NULL THEN LEFT(casted_data, 66)\n ELSE NULL\n END\n AS hex_balance,\n TRY_TO_NUMBER(\n CASE\n WHEN LENGTH(\n hex_balance\n ) <= 4300\n AND hex_balance IS NOT NULL THEN utils.udf_hex_to_int(hex_balance)\n ELSE NULL\n END\n ) AS balance,\n SYSDATE() AS _inserted_timestamp,\n cast(\n coalesce(\n cast(block_number as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) || '-' ||\n coalesce(\n cast(address as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) || '-' ||\n coalesce(\n cast(contract_address as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) as TEXT\n ) AS id,\n id AS token_balances_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM balances b\nLEFT JOIN (\n SELECT DISTINCT block_number, block_timestamp FROM transfers\n) USING (block_number)\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_live_view_fact_event_logs", "macro.livequery_models.evm_live_view_bronze_token_balances"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.530889, "supported_languages": null}, "macro.livequery_models.evm_live_view_silver_eth_balances": {"name": "evm_live_view_silver_eth_balances", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_silver_eth_balances", "macro_sql": "{% macro evm_live_view_silver_eth_balances(schema, blockchain, network) %}\nWITH silver_traces AS (\n SELECT\n block_timestamp,\n block_number,\n from_address,\n to_address\n FROM\n (\n {{ evm_live_view_fact_traces(schema, blockchain, network) | indent(4) -}}\n ) l\n WHERE\n VALUE > 0 -- VALUE is the amount of ETH transferred\n AND trace_status = 'SUCCESS'\n AND tx_status = 'SUCCESS'\n),\n\nstacked AS (\n SELECT\n DISTINCT block_number,\n block_timestamp,\n from_address AS address\n FROM\n silver_traces\n WHERE\n from_address IS NOT NULL\n AND from_address <> '0x0000000000000000000000000000000000000000'\n UNION\n SELECT\n DISTINCT block_number,\n block_timestamp,\n to_address AS address\n FROM\n silver_traces\n WHERE\n to_address IS NOT NULL\n AND to_address <> '0x0000000000000000000000000000000000000000'\n),\n\neth_balances AS (\n {{ evm_live_view_bronze_eth_balances(schema, blockchain, network, 'stacked') | indent(4) -}}\n)\n\nSELECT\n block_number,\n block_timestamp,\n address,\n IFF(DATA :: STRING = '{}', NULL, DATA :: STRING) AS casted_data,\n CASE\n WHEN casted_data IS NOT NULL THEN casted_data\n ELSE NULL\n END\n AS hex_balance,\n TRY_TO_NUMBER(\n CASE\n WHEN hex_balance IS NOT NULL THEN utils.udf_hex_to_int(hex_balance)\n ELSE NULL\n END\n ) AS balance,\n SYSDATE() AS _inserted_timestamp,\n cast(\n coalesce(\n cast(block_number as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) || '-' ||\n coalesce(\n cast(address as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) as TEXT\n ) AS id,\n id AS eth_balances_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM eth_balances\nLEFT JOIN (\n SELECT DISTINCT block_number, block_timestamp FROM stacked\n) USING (block_number)\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_live_view_fact_traces", "macro.livequery_models.evm_live_view_bronze_eth_balances"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.5316708, "supported_languages": null}, "macro.livequery_models.evm_live_view_fact_blocks": {"name": "evm_live_view_fact_blocks", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_fact_blocks", "macro_sql": "{% macro evm_live_view_fact_blocks(schema, blockchain, network) %}\nWITH spine AS (\n {{ evm_live_view_target_blocks(schema, blockchain, network) | indent(4) -}}\n ),\n raw_block_txs AS (\n {{ evm_live_view_bronze_blocks(schema, blockchain, network, 'spine') | indent(4) -}}\n ),\n silver_blocks AS (\n {{ evm_live_view_silver_blocks('raw_block_txs') | indent(4) -}}\n )\n select\n block_number,\n block_timestamp,\n '{{ network }}' AS network,\n '{{ blockchain }}' AS blockchain,\n tx_count,\n difficulty,\n total_difficulty,\n extra_data,\n gas_limit,\n gas_used,\n HASH,\n parent_hash,\n miner,\n nonce,\n receipts_root,\n sha3_uncles,\n SIZE,\n uncles AS uncle_blocks,\n OBJECT_CONSTRUCT(\n 'baseFeePerGas',\n base_fee_per_gas,\n 'difficulty',\n difficulty,\n 'extraData',\n extra_data,\n 'gasLimit',\n gas_limit,\n 'gasUsed',\n gas_used,\n 'hash',\n HASH,\n 'logsBloom',\n logs_bloom,\n 'miner',\n miner,\n 'nonce',\n nonce,\n 'number',\n NUMBER,\n 'parentHash',\n parent_hash,\n 'receiptsRoot',\n receipts_root,\n 'sha3Uncles',\n sha3_uncles,\n 'size',\n SIZE,\n 'stateRoot',\n state_root,\n 'timestamp',\n block_timestamp,\n 'totalDifficulty',\n total_difficulty,\n 'transactionsRoot',\n transactions_root,\n 'uncles',\n uncles,\n 'excessBlobGas',\n excess_blob_gas,\n 'blobGasUsed',\n blob_gas_used\n ) AS block_header_json,\n excess_blob_gas,\n blob_gas_used,\n block_number::STRING AS fact_blocks_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n withdrawals,\n withdrawals_root\n from silver_blocks\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_live_view_target_blocks", "macro.livequery_models.evm_live_view_bronze_blocks", "macro.livequery_models.evm_live_view_silver_blocks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.5326695, "supported_languages": null}, "macro.livequery_models.evm_live_view_fact_event_logs": {"name": "evm_live_view_fact_event_logs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_fact_event_logs", "macro_sql": "{% macro evm_live_view_fact_event_logs(schema, blockchain, network) %}\nWITH spine AS (\n {{ evm_live_view_target_blocks(schema, blockchain, network, 5) | indent(4) -}}\n),\nraw_block_txs AS (\n {{ evm_live_view_bronze_blocks(schema, blockchain, network, 'spine') | indent(4) -}}\n),\nraw_receipts AS (\n {{ evm_live_view_bronze_receipts(schema, blockchain, network, 'spine') | indent(4) -}}\n),\nraw_logs AS (\n {{ evm_live_view_bronze_logs('raw_receipts') | indent(4) -}}\n),\nraw_transactions AS (\n {{ evm_live_view_bronze_transactions('raw_block_txs') | indent(4) -}}\n),\nblocks AS (\n {{ evm_live_view_silver_blocks('raw_block_txs') | indent(4) -}}\n),\nreceipts AS (\n {{ evm_live_view_silver_receipts('raw_receipts') | indent(4) -}}\n),\ntransactions AS (\n {{ evm_live_view_silver_transactions('raw_transactions', 'blocks', 'receipts') | indent(4) -}}\n),\nlogs AS (\n {{ evm_live_view_silver_logs('receipts', 'transactions') | indent(4) -}}\n)\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n contract_address,\n topics,\n DATA,\n event_removed,\n tx_status,\n CONCAT(\n tx_hash :: STRING,\n '-',\n event_index :: STRING\n ) AS _log_id,\n md5(\n cast(\n coalesce(\n cast(tx_hash as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) || '-' || coalesce(\n cast(event_index as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) as TEXT\n )\n ) AS fact_event_logs_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM logs\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_live_view_target_blocks", "macro.livequery_models.evm_live_view_bronze_blocks", "macro.livequery_models.evm_live_view_bronze_receipts", "macro.livequery_models.evm_live_view_bronze_logs", "macro.livequery_models.evm_live_view_bronze_transactions", "macro.livequery_models.evm_live_view_silver_blocks", "macro.livequery_models.evm_live_view_silver_receipts", "macro.livequery_models.evm_live_view_silver_transactions", "macro.livequery_models.evm_live_view_silver_logs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.5344648, "supported_languages": null}, "macro.livequery_models.evm_live_view_fact_decoded_event_logs": {"name": "evm_live_view_fact_decoded_event_logs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_fact_decoded_event_logs", "macro_sql": "{% macro evm_live_view_fact_decoded_event_logs(schema, blockchain, network) %}\nWITH _ez_decoded_event_logs AS (\n {{ evm_live_view_ez_decoded_event_logs(schema, blockchain, network) | indent(4) -}}\n)\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n contract_address,\n event_name,\n decoded_log,\n full_decoded_log,\n fact_decoded_event_logs_id,\n inserted_timestamp,\n modified_timestamp\nFROM _ez_decoded_event_logs\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_live_view_ez_decoded_event_logs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.5349, "supported_languages": null}, "macro.livequery_models.evm_live_view_fact_transactions": {"name": "evm_live_view_fact_transactions", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_fact_transactions", "macro_sql": "{% macro evm_live_view_fact_transactions(schema, blockchain, network) %}\n\nWITH spine AS (\n {{ evm_live_view_target_blocks(schema, blockchain, network, 5) | indent(4) -}}\n),\nraw_receipts AS (\n {{ evm_live_view_bronze_receipts(schema, blockchain, network, 'spine') | indent(4) -}}\n),\nraw_block_txs AS (\n {{ evm_live_view_bronze_blocks(schema, blockchain, network, 'spine') | indent(4) -}}\n),\nraw_transactions AS (\n {{ evm_live_view_bronze_transactions('raw_block_txs') | indent(4) -}}\n),\nblocks AS (\n {{ evm_live_view_silver_blocks('raw_block_txs') | indent(4) -}}\n),\nreceipts AS (\n {{ evm_live_view_silver_receipts('raw_receipts') | indent(4) -}}\n),\ntransactions AS (\n {{ evm_live_view_silver_transactions('raw_transactions', 'blocks', 'receipts') | indent(4) -}}\n)\nSELECT\n block_number,\n block_timestamp,\n block_hash,\n tx_hash,\n nonce,\n POSITION,\n origin_function_signature,\n from_address,\n to_address1 as to_address,\n VALUE,\n value_precise_raw,\n value_precise::STRING as value_precise,\n tx_fee,\n tx_fee_precise::STRING as tx_fee_precise,\n gas_price,\n gas AS gas_limit,\n gas_used,\n cumulative_gas_used,\n input_data,\n tx_status AS status,\n effective_gas_price,\n max_fee_per_gas,\n max_priority_fee_per_gas,\n r,\n s,\n v,\n tx_type,\n chain_id,\n blob_versioned_hashes,\n max_fee_per_blob_gas,\n blob_gas_used,\n blob_gas_price,\n md5(\n cast(\n coalesce(\n cast(tx_hash as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) as TEXT\n )\n ) AS fact_transactions_id,\n SYSDATE() inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n transactions\n\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_live_view_target_blocks", "macro.livequery_models.evm_live_view_bronze_receipts", "macro.livequery_models.evm_live_view_bronze_blocks", "macro.livequery_models.evm_live_view_bronze_transactions", "macro.livequery_models.evm_live_view_silver_blocks", "macro.livequery_models.evm_live_view_silver_receipts", "macro.livequery_models.evm_live_view_silver_transactions"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.5363982, "supported_languages": null}, "macro.livequery_models.evm_live_view_fact_traces": {"name": "evm_live_view_fact_traces", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_fact_traces", "macro_sql": "{% macro evm_live_view_fact_traces(schema, blockchain, network) %}\nWITH spine AS (\n {{ evm_live_view_target_blocks(schema, blockchain, network) | indent(4) -}}\n),\nraw_receipts AS (\n {{ evm_live_view_bronze_receipts(schema, blockchain, network, 'spine') | indent(4) -}}\n),\nraw_block_txs AS (\n {{ evm_live_view_bronze_blocks(schema, blockchain, network, 'spine') | indent(4) -}}\n),\nraw_transactions AS (\n {{ evm_live_view_bronze_transactions('raw_block_txs') | indent(4) -}}\n),\nblocks AS (\n {{ evm_live_view_silver_blocks('raw_block_txs') | indent(4) -}}\n),\nreceipts AS (\n {{ evm_live_view_silver_receipts('raw_receipts') | indent(4) -}}\n),\ntransactions AS (\n {{ evm_live_view_silver_transactions('raw_transactions', 'blocks', 'receipts') | indent(4) -}}\n),\nraw_traces AS (\n {{ evm_live_view_bronze_traces(schema, blockchain, network, 'spine') | indent(4) -}}\n),\n\n{{ evm_live_view_silver_traces('raw_traces') | indent(4) -}}\n\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n from_address,\n to_address,\n eth_value AS VALUE,\n eth_value_precise_raw AS value_precise_raw,\n eth_value_precise AS value_precise,\n gas,\n gas_used,\n input,\n output,\n TYPE,\n identifier,\n DATA,\n tx_status,\n sub_traces,\n trace_status,\n error_reason,\n trace_index,\n md5(\n cast(\n coalesce(\n cast(tx_hash as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) || '-' || coalesce(\n cast(trace_index as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) as TEXT\n )\n ) as fact_traces_id,\n COALESCE(\n _inserted_timestamp,\n '2000-01-01'\n ) AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM traces_final\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_live_view_target_blocks", "macro.livequery_models.evm_live_view_bronze_receipts", "macro.livequery_models.evm_live_view_bronze_blocks", "macro.livequery_models.evm_live_view_bronze_transactions", "macro.livequery_models.evm_live_view_silver_blocks", "macro.livequery_models.evm_live_view_silver_receipts", "macro.livequery_models.evm_live_view_silver_transactions", "macro.livequery_models.evm_live_view_bronze_traces", "macro.livequery_models.evm_live_view_silver_traces"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.538221, "supported_languages": null}, "macro.livequery_models.evm_live_view_fact_decoded_traces": {"name": "evm_live_view_fact_decoded_traces", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_fact_decoded_traces", "macro_sql": "{% macro evm_live_view_fact_decoded_traces(schema, blockchain, network) %}\nWITH spine AS (\n {{ evm_live_view_target_blocks(schema, blockchain, network, 5) | indent(4) -}}\n),\nraw_receipts AS (\n {{ evm_live_view_bronze_receipts(schema, blockchain, network, 'spine') | indent(4) -}}\n),\nraw_block_txs AS (\n {{ evm_live_view_bronze_blocks(schema, blockchain, network, 'spine') | indent(4) -}}\n),\nraw_transactions AS (\n {{ evm_live_view_bronze_transactions('raw_block_txs') | indent(4) -}}\n),\nblocks AS (\n {{ evm_live_view_silver_blocks('raw_block_txs') | indent(4) -}}\n),\nreceipts AS (\n {{ evm_live_view_silver_receipts('raw_receipts') | indent(4) -}}\n),\ntransactions AS (\n {{ evm_live_view_silver_transactions('raw_transactions', 'blocks', 'receipts') | indent(4) -}}\n),\nraw_traces AS (\n {{ evm_live_view_bronze_traces(schema, blockchain, network, 'spine') | indent(4) -}}\n),\n\n{{ evm_live_view_silver_traces('raw_traces') | indent(4) -}}\n,\n\ndecoded_traces AS (\n SELECT\n t.block_number,\n t.tx_hash,\n t.block_timestamp,\n t.tx_status,\n t.tx_position,\n t.trace_index,\n t.from_address,\n t.to_address,\n t.eth_value AS VALUE,\n t.eth_value_precise_raw AS value_precise_raw,\n t.eth_value_precise AS value_precise,\n t.gas,\n t.gas_used,\n t.TYPE AS TYPE,\n t.identifier,\n t.sub_traces,\n t.error_reason,\n t.trace_status,\n A.abi AS abi,\n A.function_name AS function_name,\n CASE\n WHEN TYPE = 'DELEGATECALL' THEN from_address\n ELSE to_address\n END AS abi_address,\n t.input AS input,\n COALESCE(\n t.output,\n '0x'\n ) AS output,\n OBJECT_CONSTRUCT('input', input, 'output', output, 'function_name', function_name) AS function_data,\n utils.udf_evm_decode_trace(abi, function_data)[0] AS decoded_data\n FROM traces_final t\n INNER JOIN {{ blockchain }}.SILVER.COMPLETE_FUNCTION_ABIS A\n ON A.parent_contract_address = abi_address\n AND LEFT(\n t.input,\n 10\n ) = LEFT(\n A.function_signature,\n 10\n )\n AND t.block_number BETWEEN A.start_block\n AND A.end_block\n AND t.block_number IS NOT NULL\n\n)\n\nSELECT\n block_number,\n tx_hash,\n block_timestamp,\n tx_status,\n tx_position,\n trace_index,\n from_address,\n to_address,\n VALUE,\n value_precise_raw,\n value_precise,\n gas,\n gas_used,\n TYPE,\n identifier,\n sub_traces,\n error_reason,\n trace_status,\n input,\n output,\n decoded_data :function_name :: STRING AS function_name,\n decoded_data :decoded_input_data AS decoded_input_data,\n decoded_data :decoded_output_data AS decoded_output_data,\n md5(\n cast(\n coalesce(\n cast(tx_hash as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) || '-' || coalesce(\n cast(trace_index as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) as TEXT\n )\n ) AS fact_decoded_traces_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM decoded_traces\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_live_view_target_blocks", "macro.livequery_models.evm_live_view_bronze_receipts", "macro.livequery_models.evm_live_view_bronze_blocks", "macro.livequery_models.evm_live_view_bronze_transactions", "macro.livequery_models.evm_live_view_silver_blocks", "macro.livequery_models.evm_live_view_silver_receipts", "macro.livequery_models.evm_live_view_silver_transactions", "macro.livequery_models.evm_live_view_bronze_traces", "macro.livequery_models.evm_live_view_silver_traces"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.540228, "supported_languages": null}, "macro.livequery_models.evm_live_view_fact_token_balances": {"name": "evm_live_view_fact_token_balances", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_fact_token_balances", "macro_sql": "{% macro evm_live_view_fact_token_balances(schema, blockchain, network) %}\nWITH silver_token_balances AS (\n {{ evm_live_view_silver_token_balances(schema, blockchain, network) | indent(4) -}}\n)\n\nSELECT\n block_number,\n block_timestamp,\n address AS user_address,\n contract_address,\n balance,\n token_balances_id AS fact_token_balances_id,\n inserted_timestamp,\n modified_timestamp\nFROM\n silver_token_balances\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_live_view_silver_token_balances"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.540662, "supported_languages": null}, "macro.livequery_models.evm_live_view_fact_eth_balances": {"name": "evm_live_view_fact_eth_balances", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_fact_eth_balances", "macro_sql": "{% macro evm_live_view_fact_eth_balances(schema, blockchain, network) %}\nWITH silver_eth_balances AS (\n {{ evm_live_view_silver_eth_balances(schema, blockchain, network) | indent(4) -}}\n)\n\nSELECT\n block_number,\n block_timestamp,\n address AS user_address,\n balance,\n eth_balances_id AS fact_eth_balances_id,\n inserted_timestamp,\n modified_timestamp\nFROM silver_eth_balances\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_live_view_silver_eth_balances"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.5410686, "supported_languages": null}, "macro.livequery_models.evm_live_view_ez_decoded_event_logs": {"name": "evm_live_view_ez_decoded_event_logs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_ez_decoded_event_logs", "macro_sql": "{% macro evm_live_view_ez_decoded_event_logs(schema, blockchain, network) %}\nWITH _fact_event_logs AS (\n {{ evm_live_view_fact_event_logs(schema, blockchain, network) | indent(4) -}}\n),\n\n_silver_decoded_logs AS (\n SELECT\n block_number,\n block_timestamp,\n tx_hash,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n event_index,\n topics,\n DATA,\n contract_address,\n OBJECT_CONSTRUCT('topics', topics, 'data', data, 'address', contract_address) AS event_data,\n abi,\n utils.udf_evm_decode_log(abi, event_data)[0] AS decoded_data,\n event_removed,\n decoded_data:name::string AS event_name,\n {{ blockchain }}.utils.udf_transform_logs(decoded_data) AS transformed,\n _log_id,\n inserted_timestamp,\n tx_status\n FROM\n _fact_event_logs\n JOIN\n {{ blockchain }}.core.dim_contract_abis\n USING\n (contract_address)\n WHERE\n tx_status = 'SUCCESS'\n),\n\n_flatten_logs AS (\n SELECT\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.decoded_data,\n b.transformed,\n b._log_id,\n b.inserted_timestamp,\n OBJECT_AGG(\n DISTINCT CASE\n WHEN v.value :name = '' THEN CONCAT(\n 'anonymous_',\n v.index\n )\n ELSE v.value :name\n END,\n v.value :value\n ) AS decoded_flat\n FROM\n _silver_decoded_logs b,\n LATERAL FLATTEN(\n input => b.transformed :data\n ) v\n GROUP BY\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.decoded_data,\n b.transformed,\n b._log_id,\n b.inserted_timestamp\n)\n\nSELECT\n block_number,\n C.block_timestamp,\n B.tx_hash,\n B.event_index,\n B.contract_address,\n D.name AS contract_name,\n B.event_name,\n B.decoded_flat AS decoded_log,\n B.decoded_data AS full_decoded_log,\n C.origin_function_signature,\n C.origin_from_address,\n C.origin_to_address,\n C.topics,\n C.DATA,\n C.event_removed,\n C.tx_status,\n md5(_log_id) AS fact_decoded_event_logs_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM _flatten_logs AS B\nLEFT JOIN _silver_decoded_logs AS C USING (block_number, _log_id)\nLEFT JOIN {{ blockchain }}.core.dim_contracts AS D\n ON B.contract_address = D.address\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_live_view_fact_event_logs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.5418034, "supported_languages": null}, "macro.livequery_models.evm_live_view_ez_token_transfers": {"name": "evm_live_view_ez_token_transfers", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_ez_token_transfers", "macro_sql": "{% macro evm_live_view_ez_token_transfers(schema, blockchain, network) %}\nWITH fact_logs AS (\n {{ evm_live_view_fact_event_logs(schema, blockchain, network) | indent(4) -}}\n)\n\nSELECT\n block_number,\n block_timestamp,\n tx_hash,\n event_index,\n origin_function_signature,\n origin_from_address,\n origin_to_address,\n contract_address::STRING AS contract_address,\n CONCAT('0x', SUBSTR(topics [1], 27, 40))::STRING AS from_address,\n CONCAT('0x', SUBSTR(topics [2], 27, 40))::STRING AS to_address,\n utils.udf_hex_to_int(SUBSTR(DATA, 3, 64)) AS raw_amount_precise,\n raw_amount_precise::FLOAT AS raw_amount,\n IFF(\n C.decimals IS NOT NULL,\n raw_amount_precise * power(10, C.decimals * -1),\n NULL\n ) AS amount_precise,\n amount_precise::FLOAT AS amount,\n IFF(\n C.decimals IS NOT NULL\n AND price IS NOT NULL,\n amount * price,\n NULL\n ) AS amount_usd,\n C.decimals AS decimals,\n C.symbol AS symbol,\n price AS token_price,\n CASE\n WHEN C.decimals IS NULL THEN 'false'\n ELSE 'true'\n END AS has_decimal,\n CASE\n WHEN price IS NULL THEN 'false'\n ELSE 'true'\n END AS has_price,\n _log_id,\n md5(\n cast(\n coalesce(\n cast(tx_hash as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) || '-' || coalesce(\n cast(event_index as TEXT),\n '_dbt_utils_surrogate_key_null_'\n ) as TEXT\n )\n ) as ez_token_transfers_id,\n SYSDATE() AS _inserted_timestamp,\n sysdate() as inserted_timestamp,\n sysdate() as modified_timestamp\nFROM\n fact_logs l\n LEFT JOIN {{ blockchain }}.price.EZ_PRICES_HOURLY p ON l.contract_address = p.token_address\n AND DATE_TRUNC('hour', l.block_timestamp) = HOUR\n LEFT JOIN {{ blockchain }}.core.DIM_CONTRACTS C ON l.contract_address = C.address\nWHERE\n topics [0]::STRING = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'\n AND tx_status = 'SUCCESS'\n and raw_amount IS NOT NULL\n AND to_address IS NOT NULL\nAND from_address IS NOT NULL\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_live_view_fact_event_logs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.5424569, "supported_languages": null}, "macro.livequery_models.evm_live_view_ez_native_transfers": {"name": "evm_live_view_ez_native_transfers", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_live_views.sql", "original_file_path": "macros/evm/evm_live_views.sql", "unique_id": "macro.livequery_models.evm_live_view_ez_native_transfers", "macro_sql": "{% macro evm_live_view_ez_native_transfers(schema, blockchain, network) %}\nWITH spine AS (\n {{ evm_live_view_target_blocks(schema, blockchain, network) | indent(4) -}}\n),\nraw_receipts AS (\n {{ evm_live_view_bronze_receipts(schema, blockchain, network, 'spine') | indent(4) -}}\n),\nraw_block_txs AS (\n {{ evm_live_view_bronze_blocks(schema, blockchain, network, 'spine') | indent(4) -}}\n),\nraw_transactions AS (\n {{ evm_live_view_bronze_transactions('raw_block_txs') | indent(4) -}}\n),\nblocks AS (\n {{ evm_live_view_silver_blocks('raw_block_txs') | indent(4) -}}\n),\nreceipts AS (\n {{ evm_live_view_silver_receipts('raw_receipts') | indent(4) -}}\n),\ntransactions AS (\n {{ evm_live_view_silver_transactions('raw_transactions', 'blocks', 'receipts') | indent(4) -}}\n),\nraw_traces AS (\n {{ evm_live_view_bronze_traces(schema, blockchain, network, 'spine') | indent(4) -}}\n),\n{{ evm_live_view_silver_traces('raw_traces') | indent(4) -}}\n,\neth_base AS (\n SELECT\n tx_hash,\n block_number,\n block_timestamp,\n identifier,\n from_address,\n to_address,\n eth_value AS amount,\n _call_id,\n _inserted_timestamp,\n eth_value_precise_raw AS amount_precise_raw,\n eth_value_precise AS amount_precise,\n tx_position,\n trace_index\n FROM\n traces_final\n WHERE\n eth_value > 0\n AND tx_status = 'SUCCESS'\n AND trace_status = 'SUCCESS'\n AND TYPE NOT IN (\n 'DELEGATECALL',\n 'STATICCALL'\n )\n),\ntx_table AS (\n SELECT\n block_number,\n tx_hash,\n from_address AS origin_from_address,\n to_address1 AS origin_to_address,\n origin_function_signature\n FROM\n transactions\n WHERE\n tx_hash IN (\n SELECT\n DISTINCT tx_hash\n FROM\n eth_base\n )\n),\nnative_transfers AS (\n SELECT\n e.tx_hash,\n e.block_number,\n e.block_timestamp,\n e.identifier,\n t.origin_from_address,\n t.origin_to_address,\n t.origin_function_signature,\n e.from_address,\n e.to_address,\n e.amount,\n e.amount_precise_raw,\n e.amount_precise,\n ROUND(\n e.amount * p.price,\n 2\n ) AS amount_usd,\n e._call_id,\n e._inserted_timestamp,\n e.tx_position,\n e.trace_index,\n md5(\n cast(\n coalesce(cast(e.tx_hash as TEXT), '_dbt_utils_surrogate_key_null_')\n || '-' || coalesce(cast(e.trace_index as TEXT), '_dbt_utils_surrogate_key_null_')\n as TEXT\n )\n ) as native_transfers_id,\n SYSDATE() as inserted_timestamp,\n SYSDATE() as modified_timestamp\n FROM\n eth_base e\n JOIN tx_table t ON e.tx_hash = t.tx_hash AND e.block_number = t.block_number\n LEFT JOIN {{ blockchain }}.PRICE.EZ_PRICES_HOURLY p\n ON DATE_TRUNC('hour', e.block_timestamp) = p.HOUR\n AND p.token_address = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' -- WETH address\n)\nSELECT\n tx_hash,\n block_number,\n block_timestamp,\n tx_position,\n trace_index,\n identifier AS trace_type,\n origin_from_address,\n origin_to_address,\n origin_function_signature,\n from_address AS trace_from_address,\n to_address AS trace_to_address,\n amount,\n amount_precise_raw,\n amount_precise,\n amount_usd,\n COALESCE(\n native_transfers_id,\n md5(\n cast(\n coalesce(cast(tx_hash as TEXT), '_dbt_utils_surrogate_key_null_')\n || '-' || coalesce(cast(trace_index as TEXT), '_dbt_utils_surrogate_key_null_')\n as TEXT\n )\n )\n ) AS ez_native_transfers_id,\n COALESCE(\n inserted_timestamp,\n '2000-01-01'\n ) AS inserted_timestamp,\n COALESCE(\n modified_timestamp,\n '2000-01-01'\n ) AS modified_timestamp\nFROM\n native_transfers\nQUALIFY (ROW_NUMBER() OVER (\n PARTITION BY block_number, tx_position, trace_index\n ORDER BY _inserted_timestamp DESC\n)) = 1\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.evm_live_view_target_blocks", "macro.livequery_models.evm_live_view_bronze_receipts", "macro.livequery_models.evm_live_view_bronze_blocks", "macro.livequery_models.evm_live_view_bronze_transactions", "macro.livequery_models.evm_live_view_silver_blocks", "macro.livequery_models.evm_live_view_silver_receipts", "macro.livequery_models.evm_live_view_silver_transactions", "macro.livequery_models.evm_live_view_bronze_traces", "macro.livequery_models.evm_live_view_silver_traces"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.5445833, "supported_languages": null}, "macro.livequery_models.config_evm_high_level_abstractions": {"name": "config_evm_high_level_abstractions", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm.yaml.sql", "original_file_path": "macros/evm/evm.yaml.sql", "unique_id": "macro.livequery_models.config_evm_high_level_abstractions", "macro_sql": "{% macro config_evm_high_level_abstractions(blockchain, network) -%}\n{#\n This macro is used to generate the high level abstractions for an EVM\n blockchain.\n #}\n{% set schema = blockchain ~ \"_\" ~ network %}\n- name: {{ schema -}}.tf_latest_native_balance\n signature:\n - [wallet, STRING, The address to get the balance of at the latest block]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, symbol STRING, raw_balance STRING, balance FLOAT)\"\n - |\n The table has the following columns:\n * `blockchain` - The blockchain\n * `network` - The network\n * `wallet_address` - The wallet address\n * `symbol` - The symbol of the native asset\n * `raw_balance` - The unadjusted native asset balance\n * `balance` - The adjusted native asset balance\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the native asset balance at the latest block for a given address.$$\n sql: |\n {{ evm_latest_native_balance_string(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_latest_native_balance\n signature:\n - [wallets, ARRAY, An array of addresses string to get the balance of at the latest block]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, symbol STRING, raw_balance STRING, balance FLOAT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the native asset balances at the latest block for given addresses.$$\n sql: |\n {{ evm_latest_native_balance_array(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_latest_token_balance\n signature:\n - [wallet, STRING, The address to get the balance of at the latest block]\n - [token, STRING, The address of the token to get the balance of]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, token_address STRING, symbol STRING, raw_balance STRING, balance FLOAT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the token balance at the latest block for a given address and token address. Supports ERC20 and ERC721 tokens.$$\n sql: |\n {{ evm_latest_token_balance_ss(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_latest_token_balance\n signature:\n - [wallet, STRING, The address to get the balance of at the latest block]\n - [tokens, ARRAY, An array of address strings of the tokens to get the balance of]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, token_address STRING, symbol STRING, raw_balance STRING, balance FLOAT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the token balances at the latest block for a given address and multiple token addresses. Supports ERC20 and ERC721 tokens.$$\n sql: |\n {{ evm_latest_token_balance_sa(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_latest_token_balance\n signature:\n - [wallets, ARRAY, An array of addresses string to get the balance of at the latest block]\n - [token, STRING, The address of the token to get the balance of]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, token_address STRING, symbol STRING, raw_balance STRING, balance FLOAT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the token balances at the latest block for multiple addresses and a single token address. Supports ERC20 and ERC721 tokens.$$\n sql: |\n {{ evm_latest_token_balance_as(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_latest_token_balance\n signature:\n - [wallets, ARRAY, An array of addresses string to get the balance of at the latest block]\n - [tokens, ARRAY, An array of address strings of the tokens to get the balance of]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, token_address STRING, symbol STRING, raw_balance STRING, balance FLOAT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the token balances at the latest block for multiple addresses and multiple token addresses. Supports ERC20 and ERC721 tokens.$$\n sql: |\n {{ evm_latest_token_balance_aa(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_historical_token_balance\n signature:\n - [wallet, STRING, The address to get the balance of at the input block]\n - [token, STRING, The address of the token to get the balance of]\n - [block_number, INTEGER, The block number to get the balance at]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, token_address STRING, symbol STRING, block_number INTEGER, raw_balance STRING, balance FLOAT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the token balance for a given address and token address at a specific block. Supports ERC20 and ERC721 tokens.$$\n sql: |\n {{ evm_historical_token_balance_ssi(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_historical_token_balance\n signature:\n - [wallet, STRING, The address to get the balance of at the input block]\n - [token, STRING, The address of the token to get the balance of]\n - [block_numbers, ARRAY, The block numbers to get the balance at]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, token_address STRING, symbol STRING, block_number INTEGER, raw_balance STRING, balance FLOAT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the token balances for a given address and token address at multiple specific blocks. Supports ERC20 and ERC721 tokens.$$\n sql: |\n {{ evm_historical_token_balance_ssa(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_historical_token_balance\n signature:\n - [wallets, ARRAY, The addresses to get the balance of at the input block]\n - [token, STRING, The address of the token to get the balance of]\n - [block_number, INTEGER, The block number to get the balance at]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, token_address STRING, symbol STRING, block_number INTEGER, raw_balance STRING, balance FLOAT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the token balances for multiple addresses and a given token addresses at a specific block. Supports ERC20 and ERC721 tokens.$$\n sql: |\n {{ evm_historical_token_balance_asi(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_historical_token_balance\n signature:\n - [wallet, STRING, The address to get the balance of at the input block]\n - [tokens, ARRAY, An array of address strings of the tokens to get the balance of]\n - [block_number, INTEGER, The block number to get the balance at]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, token_address STRING, symbol STRING, block_number INTEGER, raw_balance STRING, balance FLOAT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the token balances for a given address and multiple token addresses at a specific block. Supports ERC20 and ERC721 tokens.$$\n sql: |\n {{ evm_historical_token_balance_sai(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_historical_token_balance\n signature:\n - [wallet, STRING, The address to get the balance of at the input block]\n - [tokens, ARRAY, An array of address strings of the tokens to get the balance of]\n - [block_numbers, ARRAY, The block numbers to get the balance at]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, token_address STRING, symbol STRING, block_number INTEGER, raw_balance STRING, balance FLOAT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the token balances for a given address and multiple token addresses at multiple specific blocks. Supports ERC20 and ERC721 tokens.$$\n sql: |\n {{ evm_historical_token_balance_saa(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_historical_token_balance\n signature:\n - [wallets, ARRAY, An array of address strings to get the balance of at the input block]\n - [tokens, ARRAY, An array of address strings of the tokens to get the balance of]\n - [block_number, INTEGER, The block number to get the balance at]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, token_address STRING, symbol STRING, block_number INTEGER, raw_balance STRING, balance FLOAT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the token balances for multiple addresses and multiple token addresses at a specific block. Supports ERC20 and ERC721 tokens.$$\n sql: |\n {{ evm_historical_token_balance_aai(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_historical_token_balance\n signature:\n - [wallets, ARRAY, An array of address strings to get the balance of at the input block]\n - [tokens, ARRAY, An array of address strings of the tokens to get the balance of]\n - [block_numbers, ARRAY, The block numbers to get the balance at]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, token_address STRING, symbol STRING, block_number INTEGER, raw_balance STRING, balance FLOAT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the token balances for multiple addresses and multiple token addresses at multiple specific blocks. Supports ERC20 and ERC721 tokens.$$\n sql: |\n {{ evm_historical_token_balance_aaa(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_historical_native_balance\n signature:\n - [wallet, STRING, The address to get the balance of at the input block]\n - [block_number, INTEGER, The block number to get the balance at]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, symbol STRING, block_number INTEGER, raw_balance STRING, balance FLOAT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the native asset balance for a given address at a specific block.$$\n sql: |\n {{ evm_historical_native_balance_si(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_historical_native_balance\n signature:\n - [wallet, STRING, The address to get the balance of at the input block]\n - [block_numbers, ARRAY, The block numbers to get the balance at]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, symbol STRING, block_number INTEGER, raw_balance STRING, balance FLOAT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the native asset balances for a given address at multiple specific blocks.$$\n sql: |\n {{ evm_historical_native_balance_sa(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_historical_native_balance\n signature:\n - [wallets, ARRAY, An array of address strings to get the balance of at the input block]\n - [block_number, INTEGER, The block number to get the balance at]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, symbol STRING, block_number INTEGER, raw_balance STRING, balance FLOAT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the native asset balances for multiple addresses at a specific block.$$\n sql: |\n {{ evm_historical_native_balance_ai(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_historical_native_balance\n signature:\n - [wallets, ARRAY, An array of address strings to get the balance of at the input block]\n - [block_numbers, ARRAY, The block numbers to get the balance at]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, wallet_address STRING, symbol STRING, block_number INTEGER, raw_balance STRING, balance FLOAT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the native asset balances for multiple addresses at multiple specific blocks.$$\n sql: |\n {{ evm_historical_native_balance_aa(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_latest_contract_events\n signature:\n - [address, STRING, The address of the contract to get the events of]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, tx_hash STRING, block_number INTEGER, event_index INTEGER, contract_address STRING, event_topics ARRAY, event_data STRING)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the latest events emitted by a contract in the last 100 blocks.$$\n sql: |\n {{ evm_latest_contract_events_s(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_latest_contract_events\n signature:\n - [address, STRING, The address of the contract to get the events of]\n - [lookback, INTEGER, The number of blocks to look back. Please note there are RPC limitations on this method.]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, tx_hash STRING, block_number INTEGER, event_index INTEGER, contract_address STRING, event_topics ARRAY, event_data STRING)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the latest events emitted by a contract within the last `lookback` blocks. *Please note there are RPC limitations on this method.*$$\n sql: |\n {{ evm_latest_contract_events_si(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_latest_contract_events\n signature:\n - [addresses, ARRAY, The addresses of the contracts to get the events of]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, tx_hash STRING, block_number INTEGER, event_index INTEGER, contract_address STRING, event_topics ARRAY, event_data STRING)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the latest events emitted by multiple contracts in the last 100 blocks.$$\n sql: |\n {{ evm_latest_contract_events_a(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_latest_contract_events\n signature:\n - [addresses, ARRAY, The addresses of the contracts to get the events of]\n - [lookback, INTEGER, The number of blocks to look back. Please note there are RPC limitations on this method.]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, tx_hash STRING, block_number INTEGER, event_index INTEGER, contract_address STRING, event_topics ARRAY, event_data STRING)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the latest events emitted by multiple contracts within the last `lookback` blocks. *Please note there are RPC limitations on this method.*$$\n sql: |\n {{ evm_latest_contract_events_ai(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_latest_contract_events_decoded\n signature:\n - [address, STRING, The address of the contract to get the decoded events of]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, tx_hash STRING, block_number INTEGER, event_index INTEGER, event_name STRING, contract_address STRING, event_topics ARRAY, event_data STRING, decoded_data OBJECT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$RReturns the latest decoded events emitted by a contract in the last 100 blocks. Submit missing ABIs [here](https://science.flipsidecrypto.xyz/abi-requestor/).$$\n sql: |\n {{ evm_latest_contract_events_decoded_s(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_latest_contract_events_decoded\n signature:\n - [addresses, ARRAY, The addresses of the contracts to get the decoded events of]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, tx_hash STRING, block_number INTEGER, event_index INTEGER, event_name STRING, contract_address STRING, event_topics ARRAY, event_data STRING, decoded_data OBJECT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the latest decoded events emitted by multiple contracts in the last 100 blocks. Submit missing ABIs [here](https://science.flipsidecrypto.xyz/abi-requestor/).$$\n sql: |\n {{ evm_latest_contract_events_decoded_a(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_latest_contract_events_decoded\n signature:\n - [address, STRING, The address of the contract to get the decoded events of]\n - [lookback, INTEGER, The number of blocks to look back. Please note there are RPC limitations on this method.]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, tx_hash STRING, block_number INTEGER, event_index INTEGER, event_name STRING, contract_address STRING, event_topics ARRAY, event_data STRING, decoded_data OBJECT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the latest decoded events emitted by a contract within the last `lookback` blocks. Submit missing ABIs [here](https://science.flipsidecrypto.xyz/abi-requestor/). *Please note there are RPC limitations on this method.*$$\n sql: |\n {{ evm_latest_contract_events_decoded_si(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_latest_contract_events_decoded\n signature:\n - [addresses, ARRAY, The addresses of the contracts to get the decoded events of]\n - [lookback, INTEGER, The number of blocks to look back. Please note there are RPC limitations on this method.]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, tx_hash STRING, block_number INTEGER, event_index INTEGER, event_name STRING, contract_address STRING, event_topics ARRAY, event_data STRING, decoded_data OBJECT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the latest decoded events emitted by multiple contracts within the last `lookback` blocks. Submit missing ABIs [here](https://science.flipsidecrypto.xyz/abi-requestor/). *Please note there are RPC limitations on this method.* $$\n sql: |\n {{ evm_latest_contract_events_decoded_ai(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_fact_blocks\n signature:\n - [block_height, INTEGER, The start block height to get the blocks from]\n - [to_latest, BOOLEAN, Whether to continue fetching blocks until the latest block or not]\n return_type:\n - \"TABLE(block_number INTEGER, block_timestamp TIMESTAMP_NTZ, network STRING, blockchain STRING, tx_count INTEGER, difficulty INTEGER, total_difficulty INTEGER, extra_data STRING, gas_limit INTEGER, gas_used INTEGER, hash STRING, parent_hash STRING, miner STRING, nonce INTEGER, receipts_root STRING, sha3_uncles STRING, size INTEGER, uncle_blocks VARIANT, block_header_json OBJECT, excess_blob_gas INTEGER, blob_gas_used INTEGER, fact_blocks_id STRING, inserted_timestamp TIMESTAMP_NTZ, modified_timestamp TIMESTAMP_NTZ, withdrawals VARIANT, withdrawals_root STRING)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the block data for a given block height. If to_latest is true, it will continue fetching blocks until the latest block. Otherwise, it will fetch blocks until the block height is reached.$$\n sql: |\n {{ evm_live_view_fact_blocks(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_fact_event_logs\n signature:\n - [block_height, INTEGER, The start block height to get the logs from]\n - [to_latest, BOOLEAN, Whether to continue fetching logs until the latest block or not]\n return_type:\n - \"TABLE(block_number INTEGER, block_timestamp TIMESTAMP_NTZ, tx_hash STRING, origin_function_signature STRING, origin_from_address STRING, origin_to_address STRING, event_index INTEGER, contract_address STRING, topics VARIANT, data STRING, event_removed BOOLEAN, tx_status STRING, _log_id STRING, fact_event_logs_id STRING, inserted_timestamp TIMESTAMP_NTZ, modified_timestamp TIMESTAMP_NTZ)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the logs for a given block height. If to_latest is true, it will continue fetching logs until the latest block. Otherwise, it will fetch logs until the block height is reached.$$\n sql: |\n {{ evm_live_view_fact_event_logs(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_fact_decoded_event_logs\n signature:\n - [block_height, INTEGER, The start block height to get the logs from]\n - [to_latest, BOOLEAN, Whether to continue fetching logs until the latest block or not]\n return_type:\n - \"TABLE(block_number INTEGER, block_timestamp TIMESTAMP_NTZ, tx_hash STRING, event_index INTEGER, contract_address STRING, event_name STRING, decoded_log OBJECT, full_decoded_log VARIANT, fact_decoded_event_logs_id STRING, inserted_timestamp TIMESTAMP_NTZ, modified_timestamp TIMESTAMP_NTZ)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the decoded event logs data for a given block height. If to_latest is true, it will continue fetching blocks until the latest block. Otherwise, it will fetch blocks until the block height is reached.$$\n sql: |\n {{ evm_live_view_fact_decoded_event_logs(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_fact_decoded_traces\n signature:\n - [block_height, INTEGER, The start block height to get the logs from]\n - [to_latest, BOOLEAN, Whether to continue fetching logs until the latest block or not]\n return_type:\n - \"TABLE(block_number INTEGER, tx_hash STRING, block_timestamp TIMESTAMP_NTZ, tx_status STRING, tx_position INTEGER, trace_index INTEGER, from_address STRING, to_address STRING, VALUE FLOAT, value_precise_raw STRING, value_precise STRING, gas INTEGER, gas_used INTEGER, TYPE STRING, identifier STRING, sub_traces INTEGER, error_reason STRING, trace_status STRING, input STRING, output STRING, function_name STRING, decoded_input_data VARIANT, decoded_output_data VARIANT, fact_decoded_traces_id STRING, inserted_timestamp TIMESTAMP_NTZ, modified_timestamp TIMESTAMP_NTZ)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the decoded traces data for a given block height. If to_latest is true,\n it will continue fetching blocks until the latest block. Otherwise,\n it will fetch blocks until the block height is reached.$$\n sql: |\n {{ evm_live_view_fact_decoded_traces(schema,\n blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_fact_traces\n signature:\n - [block_height, INTEGER, The start block height to get the transfers from]\n - [to_latest, BOOLEAN, Whether to continue fetching transfers until the latest block or not]\n return_type:\n - \"TABLE(tx_hash STRING, block_number NUMBER, block_timestamp TIMESTAMP_NTZ(9), from_address STRING, to_address STRING, value FLOAT, value_precise_raw STRING, value_precise STRING, gas NUMBER, gas_used NUMBER, input STRING, output STRING, TYPE STRING, identifier STRING, DATA OBJECT, tx_status STRING, sub_traces NUMBER, trace_status STRING, error_reason STRING, trace_index NUMBER, fact_traces_id STRING, inserted_timestamp TIMESTAMP_NTZ(9), modified_timestamp TIMESTAMP_NTZ(9))\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the traces for a given block height. If to_latest is true, it will continue fetching traces until the latest block. Otherwise, it will fetch traces until the block height is reached.$$\n sql: |\n {{ evm_live_view_fact_traces(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_fact_transactions\n signature:\n - [block_height, INTEGER, The start block height to get the transfers from]\n - [to_latest, BOOLEAN, Whether to continue fetching transfers until the latest block or not]\n return_type:\n - \"TABLE(block_number NUMBER, block_timestamp TIMESTAMP_NTZ, block_hash STRING, tx_hash STRING, nonce NUMBER, POSITION NUMBER, origin_function_signature STRING, from_address STRING, to_address STRING, VALUE FLOAT, value_precise_raw STRING, value_precise STRING, tx_fee FLOAT, tx_fee_precise STRING, gas_price FLOAT, gas_limit NUMBER, gas_used NUMBER, cumulative_gas_used NUMBER, input_data STRING, status STRING, effective_gas_price FLOAT, max_fee_per_gas FLOAT, max_priority_fee_per_gas FLOAT, r STRING, s STRING, v STRING, tx_type NUMBER, chain_id NUMBER, blob_versioned_hashes ARRAY, max_fee_per_blob_gas NUMBER, blob_gas_used NUMBER, blob_gas_price NUMBER, fact_transactions_id STRING, inserted_timestamp TIMESTAMP_NTZ, modified_timestamp TIMESTAMP_NTZ)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the transactions for a given block height. If to_latest is true, it will continue fetching transactions until the latest block. Otherwise, it will fetch transactions until the block height is reached.$$\n sql: |\n {{ evm_live_view_fact_transactions(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_fact_token_balances\n signature:\n - [block_height, INTEGER, The start block height to get the transfers from]\n - [to_latest, BOOLEAN, Whether to continue fetching transfers until the latest block or not]\n return_type:\n - \"TABLE(block_number NUMBER, block_timestamp TIMESTAMP_NTZ, address STRING, contract_address STRING, balance NUMBER(38,0), fact_token_balances_id STRING, inserted_timestamp TIMESTAMP_NTZ, modified_timestamp TIMESTAMP_NTZ)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the token balances for a given block height. If to_latest is true, it will continue fetching transactions until the latest block. Otherwise, it will fetch transactions until the block height is reached.$$\n sql: |\n {{ evm_live_view_fact_token_balances(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_fact_eth_balances\n signature:\n - [block_height, INTEGER, The start block height to get the transfers from]\n - [to_latest, BOOLEAN, Whether to continue fetching transfers until the latest block or not]\n return_type:\n - \"TABLE(block_number NUMBER, block_timestamp TIMESTAMP_NTZ, address STRING, balance NUMBER(38,0), fact_eth_balances_id STRING, inserted_timestamp TIMESTAMP_NTZ, modified_timestamp TIMESTAMP_NTZ)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the eth balances for a given block height. If to_latest is true, it will continue fetching transactions until the latest block. Otherwise, it will fetch transactions until the block height is reached.$$\n sql: |\n {{ evm_live_view_fact_eth_balances(schema, blockchain, network) | indent(4) -}}\n\n\n- name: {{ schema -}}.tf_ez_decoded_event_logs\n signature:\n - [block_height, INTEGER, The start block height to get the logs from]\n - [to_latest, BOOLEAN, Whether to continue fetching logs until the latest block or not]\n return_type:\n - \"TABLE(block_number INTEGER, block_timestamp TIMESTAMP_NTZ, tx_hash STRING, event_index INTEGER, contract_address STRING, contract_name STRING, event_name STRING, decoded_log OBJECT, full_decoded_log VARIANT, origin_function_signature STRING, origin_from_address STRING, origin_to_address STRING, topics VARIANT, data STRING, event_removed BOOLEAN, tx_status STRING, ez_decoded_event_logs_id STRING, inserted_timestamp TIMESTAMP_NTZ, modified_timestamp TIMESTAMP_NTZ)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the ez decoded event logs data for a given block height. If to_latest is true, it will continue fetching blocks until the latest block. Otherwise, it will fetch blocks until the block height is reached.$$\n sql: |\n {{ evm_live_view_ez_decoded_event_logs(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_ez_native_transfers\n signature:\n - [block_height, INTEGER, The start block height to get the transfers from]\n - [to_latest, BOOLEAN, Whether to continue fetching transfers until the latest block or not]\n return_type:\n - \"TABLE(tx_hash STRING, block_number NUMBER(38,0), block_timestamp TIMESTAMP_NTZ(9), tx_position NUMBER(38,0), trace_index NUMBER(19,0), identifier STRING, origin_from_address STRING, origin_to_address STRING, origin_function_signature STRING, from_address STRING, to_address STRING, amount FLOAT, amount_precise_raw STRING, amount_precise STRING, amount_usd FLOAT, ez_native_transfers_id STRING, inserted_timestamp TIMESTAMP_NTZ(9), modified_timestamp TIMESTAMP_NTZ(9))\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the native transfers for a given block height. If to_latest is true, it will continue fetching transfers until the latest block. Otherwise, it will fetch transfers until the block height is reached.$$\n sql: |\n {{ evm_live_view_ez_native_transfers(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_ez_token_transfers\n signature:\n - [block_height, INTEGER, The start block height to get the transfers from]\n - [to_latest, BOOLEAN, Whether to continue fetching transfers until the latest block or not]\n return_type:\n - \"TABLE(block_number INTEGER, block_timestamp TIMESTAMP_NTZ, tx_hash STRING, event_index INTEGER, origin_function_signature STRING, origin_from_address STRING, origin_to_address STRING, contract_address STRING, from_address STRING, to_address STRING, raw_amount_precise STRING, raw_amount FLOAT, amount_precise FLOAT, amount FLOAT, amount_usd FLOAT, decimals INTEGER, symbol STRING, token_price FLOAT, has_decimal STRING, has_price STRING, _log_id STRING, ez_token_transfers_id STRING, _inserted_timestamp TIMESTAMP_NTZ, inserted_timestamp TIMESTAMP_NTZ, modified_timestamp TIMESTAMP_NTZ)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the token transfers for a given block height. If to_latest is true, it will continue fetching transfers until the latest block. Otherwise, it will fetch transfers until the block height is reached.$$\n sql: |\n {{ evm_live_view_ez_token_transfers(schema, blockchain, network) | indent(4) -}}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.livequery_models.evm_latest_native_balance_string", "macro.livequery_models.evm_latest_native_balance_array", "macro.livequery_models.evm_latest_token_balance_ss", "macro.livequery_models.evm_latest_token_balance_sa", "macro.livequery_models.evm_latest_token_balance_as", "macro.livequery_models.evm_latest_token_balance_aa", "macro.livequery_models.evm_historical_token_balance_ssi", "macro.livequery_models.evm_historical_token_balance_ssa", "macro.livequery_models.evm_historical_token_balance_asi", "macro.livequery_models.evm_historical_token_balance_sai", "macro.livequery_models.evm_historical_token_balance_saa", "macro.livequery_models.evm_historical_token_balance_aai", "macro.livequery_models.evm_historical_token_balance_aaa", "macro.livequery_models.evm_historical_native_balance_si", "macro.livequery_models.evm_historical_native_balance_sa", "macro.livequery_models.evm_historical_native_balance_ai", "macro.livequery_models.evm_historical_native_balance_aa", "macro.livequery_models.evm_latest_contract_events_s", "macro.livequery_models.evm_latest_contract_events_si", "macro.livequery_models.evm_latest_contract_events_a", "macro.livequery_models.evm_latest_contract_events_ai", "macro.livequery_models.evm_latest_contract_events_decoded_s", "macro.livequery_models.evm_latest_contract_events_decoded_a", "macro.livequery_models.evm_latest_contract_events_decoded_si", "macro.livequery_models.evm_latest_contract_events_decoded_ai", "macro.livequery_models.evm_live_view_fact_blocks", "macro.livequery_models.evm_live_view_fact_event_logs", "macro.livequery_models.evm_live_view_fact_decoded_event_logs", "macro.livequery_models.evm_live_view_fact_decoded_traces", "macro.livequery_models.evm_live_view_fact_traces", "macro.livequery_models.evm_live_view_fact_transactions", "macro.livequery_models.evm_live_view_fact_token_balances", "macro.livequery_models.evm_live_view_fact_eth_balances", "macro.livequery_models.evm_live_view_ez_decoded_event_logs", "macro.livequery_models.evm_live_view_ez_native_transfers", "macro.livequery_models.evm_live_view_ez_token_transfers"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.618795, "supported_languages": null}, "macro.livequery_models.config_eth_high_level_abstractions": {"name": "config_eth_high_level_abstractions", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm.yaml.sql", "original_file_path": "macros/evm/evm.yaml.sql", "unique_id": "macro.livequery_models.config_eth_high_level_abstractions", "macro_sql": "{% macro config_eth_high_level_abstractions(blockchain, network) -%}\n{#\n This macro is used to generate high level abstractions for Ethereum mainnet only.\n#}\n{% set schema = blockchain ~ \"_\" ~ network %}\n- name: {{ schema -}}.tf_all_contract_events\n signature:\n - [address, STRING, The address of the contracts to get the events of]\n - [min_block, INTEGER, The minimum block number to get the events from]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, tx_hash STRING, block_number INTEGER, event_index INTEGER, contract_address STRING, event_topics ARRAY, event_data STRING)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the events emitted by a contract from a specific block to the latest block.$$\n sql: |\n {{ evm_contract_events(schema, blockchain, network) | indent(4) -}}\n\n- name: {{ schema -}}.tf_all_contract_events_decoded\n signature:\n - [address, STRING, The address of the contracts to get the events of]\n - [min_block, INTEGER, The minimum block number to get the events from]\n return_type:\n - \"TABLE(status STRING, blockchain STRING, network STRING, tx_hash STRING, block_number INTEGER, event_index INTEGER, event_name STRING, contract_address STRING, event_topics ARRAY, event_data STRING, decoded_data OBJECT)\"\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns the decoded events emitted by a contract from a specific block to the latest block. Submit missing ABIs [here](https://science.flipsidecrypto.xyz/abi-requestor/).$$\n sql: |\n {{ evm_contract_events_decoded(schema, blockchain, network) | indent(4) -}}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.livequery_models.evm_contract_events", "macro.livequery_models.evm_contract_events_decoded"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.6197493, "supported_languages": null}, "macro.livequery_models.evm_latest_native_balance_string": {"name": "evm_latest_native_balance_string", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_latest_native_balance_string", "macro_sql": "{% macro evm_latest_native_balance_string(schema, blockchain, network) %}\nwith base as (select lower(wallet) AS wallet_address)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n symbol,\n utils.udf_hex_to_int({{schema}}.udf_rpc_eth_get_balance(wallet_address,'latest')::string) AS raw_balance,\n (raw_balance / POW(10,18))::float AS balance\nFROM base\nLEFT JOIN {{ ref('_evm__native_symbol_map') }}\non '{{blockchain}}' = blockchain\nand '{{network}}' = network\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.819992, "supported_languages": null}, "macro.livequery_models.evm_latest_native_balance_array": {"name": "evm_latest_native_balance_array", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_latest_native_balance_array", "macro_sql": "{% macro evm_latest_native_balance_array(schema, blockchain, network) %}\nWITH address_inputs AS (\n SELECT wallets AS wallet_array\n),\nflat_addresses AS (\n SELECT lower(value::string) AS wallet_address\n FROM address_inputs a,\n LATERAL FLATTEN(input => a.wallet_array)\n),\nnode_call AS (\n SELECT wallet_address,\n {{schema}}.udf_rpc_eth_get_balance(wallet_address,'latest')::string AS hex_balance\n FROM flat_addresses\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n symbol,\n utils.udf_hex_to_int(hex_balance) AS raw_balance,\n (raw_balance / POW(10,18))::FLOAT AS balance\nFROM node_call\nLEFT JOIN {{ ref('_evm__native_symbol_map') }}\non '{{blockchain}}' = blockchain\nand '{{network}}' = network\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8205922, "supported_languages": null}, "macro.livequery_models.evm_latest_token_balance_ss": {"name": "evm_latest_token_balance_ss", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_latest_token_balance_ss", "macro_sql": "{% macro evm_latest_token_balance_ss(schema, blockchain, network) %}\nWITH inputs AS (\n SELECT\n lower(token) AS token_address,\n lower(wallet) AS wallet_address,\n '0x70a08231' AS function_sig,\n CONCAT(\n function_sig,\n LPAD(REPLACE(wallet_address, '0x', ''), 64, 0)\n ) AS DATA\n),\nnode_call AS (\n SELECT\n wallet_address,\n token_address,\n symbol,\n {{schema}}.udf_rpc_eth_call(object_construct_keep_null('from', null, 'to', token_address, 'data', data),'latest')::string AS eth_call,\n utils.udf_hex_to_int(eth_call::string) AS raw_balance,\n raw_balance::INT / POW(10, ifnull(decimals,0)) AS balance\n FROM\n inputs\n LEFT JOIN {{ ref('_evm__contracts_map') }}\n ON token_address = address\n and blockchain = '{{blockchain}}'\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and REGEXP_LIKE(token_address, '^0x([a-fA-F0-9]{40})$')\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n token_address,\n symbol,\n raw_balance,\n balance\nFROM node_call\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.821158, "supported_languages": null}, "macro.livequery_models.evm_latest_token_balance_sa": {"name": "evm_latest_token_balance_sa", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_latest_token_balance_sa", "macro_sql": "{% macro evm_latest_token_balance_sa(schema, blockchain, network) %}\nWITH inputs AS (\n SELECT tokens, wallet\n),\nflat_rows AS (\n SELECT\n lower(value::string) AS token_address,\n lower(wallet::string) AS wallet_address,\n '0x70a08231' AS function_sig,\n CONCAT(\n function_sig,\n LPAD(REPLACE(wallet_address, '0x', ''), 64, 0)\n ) AS DATA\n FROM inputs,\n LATERAL FLATTEN(input => tokens)\n),\nfinal AS (\n SELECT\n wallet_address,\n token_address,\n symbol,\n {{schema}}.udf_rpc_eth_call(object_construct_keep_null('from', null, 'to', token_address, 'data', data),'latest')::string AS eth_call,\n utils.udf_hex_to_int(eth_call::string) AS raw_balance,\n raw_balance::INT / POW(10, ifnull(decimals,0)) AS balance\n FROM\n flat_rows\n LEFT JOIN {{ ref('_evm__contracts_map') }}\n ON token_address = address\n and blockchain = '{{blockchain}}'\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and REGEXP_LIKE(token_address, '^0x([a-fA-F0-9]{40})$')\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n token_address,\n symbol,\n raw_balance,\n balance\nFROM final\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8217275, "supported_languages": null}, "macro.livequery_models.evm_latest_token_balance_as": {"name": "evm_latest_token_balance_as", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_latest_token_balance_as", "macro_sql": "{% macro evm_latest_token_balance_as(schema, blockchain, network) %}\nWITH inputs AS (\n SELECT token, wallets\n),\nflat_rows AS (\n SELECT\n lower(value::string) AS wallet_address,\n lower(token::string) AS token_address,\n '0x70a08231' AS function_sig,\n CONCAT(\n function_sig,\n LPAD(REPLACE(wallet_address, '0x', ''), 64, 0)\n ) AS DATA\n FROM inputs,\n LATERAL FLATTEN(input => wallets)\n),\nfinal AS (\n SELECT\n wallet_address,\n token_address,\n symbol,\n {{schema}}.udf_rpc_eth_call(object_construct_keep_null('from', null, 'to', token_address, 'data', data),'latest')::string AS eth_call,\n utils.udf_hex_to_int(eth_call::string) AS raw_balance,\n raw_balance::INT / POW(10, ifnull(decimals,0)) AS balance\n FROM\n flat_rows\n LEFT JOIN {{ ref('_evm__contracts_map') }}\n ON token_address = address\n and blockchain = '{{blockchain}}'\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and REGEXP_LIKE(token_address, '^0x([a-fA-F0-9]{40})$')\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n token_address,\n symbol,\n raw_balance,\n balance\nFROM final\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8222926, "supported_languages": null}, "macro.livequery_models.evm_latest_token_balance_aa": {"name": "evm_latest_token_balance_aa", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_latest_token_balance_aa", "macro_sql": "{% macro evm_latest_token_balance_aa(schema, blockchain, network) %}\nWITH inputs AS (\n SELECT tokens, wallets\n),\nflat_rows AS (\n SELECT\n lower(tokens.VALUE::STRING) AS token_address,\n lower(wallets.VALUE::STRING) AS wallet_address,\n '0x70a08231' AS function_sig,\n CONCAT(\n function_sig,\n LPAD(REPLACE(wallet_address, '0x', ''), 64, 0)\n ) AS DATA\n FROM\n inputs,\n LATERAL FLATTEN(input => tokens) tokens,\n LATERAL FLATTEN(input => wallets) wallets\n),\nfinal AS (\n SELECT\n wallet_address,\n token_address,\n symbol,\n {{schema}}.udf_rpc_eth_call(object_construct_keep_null('from', null, 'to', token_address, 'data', data),'latest')::string AS eth_call,\n utils.udf_hex_to_int(eth_call::string) AS raw_balance,\n raw_balance::INT / POW(10, ifnull(decimals,0)) AS balance\n FROM\n flat_rows\n LEFT JOIN {{ ref('_evm__contracts_map') }}\n ON token_address = address\n and blockchain = '{{blockchain}}'\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and REGEXP_LIKE(token_address, '^0x([a-fA-F0-9]{40})$')\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n token_address,\n symbol,\n raw_balance,\n balance\nFROM final\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8228521, "supported_languages": null}, "macro.livequery_models.evm_historical_token_balance_ssi": {"name": "evm_historical_token_balance_ssi", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_historical_token_balance_ssi", "macro_sql": "{% macro evm_historical_token_balance_ssi(schema, blockchain, network) %}\nWITH inputs AS (\n SELECT\n LOWER(token) AS token_address,\n LOWER(wallet) AS wallet_address,\n '0x70a08231' AS function_sig,\n CONCAT(\n function_sig,\n LPAD(REPLACE(wallet_address, '0x', ''), 64, 0)\n ) AS data,\n block_number\n), final AS (\n SELECT\n wallet_address,\n token_address,\n symbol,\n block_number,\n {{schema}}.udf_rpc_eth_call(OBJECT_CONSTRUCT_KEEP_NULL('from', NULL, 'to', token_address, 'data', data), CONCAT('0x', TRIM(TO_CHAR(block_number, 'XXXXXXXXXX'))))::STRING AS eth_call,\n utils.udf_hex_to_int(eth_call::STRING) AS raw_balance,\n raw_balance::INT / POW(10, ifnull(decimals,0)) AS balance\n FROM\n inputs\n LEFT JOIN {{ ref('_evm__contracts_map') }}\n ON token_address = address\n AND blockchain = '{{blockchain}}'\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and REGEXP_LIKE(token_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(block_number)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n token_address,\n symbol,\n block_number,\n raw_balance,\n balance\nFROM final\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.823409, "supported_languages": null}, "macro.livequery_models.evm_historical_token_balance_ssa": {"name": "evm_historical_token_balance_ssa", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_historical_token_balance_ssa", "macro_sql": "{% macro evm_historical_token_balance_ssa(schema, blockchain, network) %}\nWITH block_inputs AS (\n SELECT block_numbers\n),\nblocks AS (\n SELECT value::INTEGER AS block_number\n FROM block_inputs,\n LATERAL FLATTEN(input => block_numbers)\n),\ninputs AS (\n SELECT\n LOWER(token) AS token_address,\n LOWER(wallet) AS wallet_address,\n '0x70a08231' AS function_sig,\n CONCAT(\n function_sig,\n LPAD(REPLACE(wallet_address, '0x', ''), 64, 0)\n ) AS data\n),\nfinal AS (\n SELECT\n wallet_address,\n token_address,\n symbol,\n blocks.block_number,\n {{schema}}.udf_rpc_eth_call(OBJECT_CONSTRUCT_KEEP_NULL('from', NULL, 'to', token_address, 'data', data), CONCAT('0x', TRIM(TO_CHAR(blocks.block_number, 'XXXXXXXXXX'))))::STRING AS eth_call,\n utils.udf_hex_to_int(eth_call::STRING) AS raw_balance,\n raw_balance::INT / POW(10, ifnull(decimals,0)) AS balance\n FROM\n inputs\n CROSS JOIN blocks\n LEFT JOIN {{ ref('_evm__contracts_map') }}\n ON token_address = address\n AND blockchain = '{{blockchain}}'\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and REGEXP_LIKE(token_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(block_number)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n token_address,\n symbol,\n block_number,\n raw_balance,\n balance\nFROM final\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8240767, "supported_languages": null}, "macro.livequery_models.evm_historical_token_balance_asi": {"name": "evm_historical_token_balance_asi", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_historical_token_balance_asi", "macro_sql": "{% macro evm_historical_token_balance_asi(schema, blockchain, network) %}\nWITH wallet_inputs AS (\n SELECT wallets\n),\nwallets AS (\n SELECT lower(value::STRING) AS wallet\n FROM wallet_inputs,\n LATERAL FLATTEN(input => wallets)\n),\ninputs AS (\n SELECT\n LOWER(token) AS token_address,\n wallet,\n '0x70a08231' AS function_sig,\n CONCAT(\n function_sig,\n LPAD(REPLACE(wallet, '0x', ''), 64, 0)\n ) AS data\n FROM wallets\n),\nfinal AS (\n SELECT\n wallet AS wallet_address,\n token_address,\n symbol,\n block_number,\n {{schema}}.udf_rpc_eth_call(OBJECT_CONSTRUCT_KEEP_NULL('from', NULL, 'to', token_address, 'data', data), CONCAT('0x', TRIM(TO_CHAR(block_number, 'XXXXXXXXXX'))))::STRING AS eth_call,\n utils.udf_hex_to_int(eth_call::STRING) AS raw_balance,\n raw_balance::INT / POW(10, ifnull(decimals,0)) AS balance\n FROM\n inputs\n LEFT JOIN {{ ref('_evm__contracts_map') }}\n ON token_address = address\n AND blockchain = '{{blockchain}}'\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and REGEXP_LIKE(token_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(block_number)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n token_address,\n symbol,\n block_number,\n raw_balance,\n balance\nFROM final\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8246481, "supported_languages": null}, "macro.livequery_models.evm_historical_token_balance_asa": {"name": "evm_historical_token_balance_asa", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_historical_token_balance_asa", "macro_sql": "{% macro evm_historical_token_balance_asa(schema, blockchain, network) %}\nWITH block_inputs AS (\n SELECT block_numbers\n),\nblocks AS (\n SELECT value::INTEGER AS block_number\n FROM block_inputs,\n LATERAL FLATTEN(input => block_numbers)\n),\nwallet_inputs AS (\n SELECT wallets\n),\nwallets AS (\n SELECT lower(value::STRING) AS wallet\n FROM wallet_inputs,\n LATERAL FLATTEN(input => wallets)\n),\ninputs AS (\n SELECT\n LOWER(token) AS token_address,\n wallet,\n '0x70a08231' AS function_sig,\n CONCAT(\n function_sig,\n LPAD(REPLACE(wallet, '0x', ''), 64, '0')\n ) AS data\n FROM wallets\n),\nfinal AS (\n SELECT\n wallet AS wallet_address,\n token_address,\n symbol,\n blocks.block_number,\n {{schema}}.udf_rpc_eth_call(OBJECT_CONSTRUCT_KEEP_NULL('from', NULL, 'to', token_address, 'data', data), CONCAT('0x', TRIM(TO_CHAR(blocks.block_number, 'XXXXXXXXXX'))))::STRING AS eth_call,\n utils.udf_hex_to_int(eth_call::STRING) AS raw_balance,\n raw_balance::INT / POW(10, ifnull(decimals,0)) AS balance\n FROM\n inputs\n CROSS JOIN blocks\n LEFT JOIN {{ ref('_evm__contracts_map') }}\n ON token_address = address\n AND blockchain = '{{blockchain}}'\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and REGEXP_LIKE(token_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(block_number)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n token_address,\n symbol,\n block_number,\n raw_balance,\n balance\nFROM final\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8252304, "supported_languages": null}, "macro.livequery_models.evm_historical_token_balance_sai": {"name": "evm_historical_token_balance_sai", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_historical_token_balance_sai", "macro_sql": "{% macro evm_historical_token_balance_sai(schema, blockchain, network) %}\nWITH token_inputs AS (\n SELECT tokens\n),\ntokens AS (\n SELECT value::STRING AS token\n FROM token_inputs,\n LATERAL FLATTEN(input => tokens)\n),\ninputs AS (\n SELECT\n LOWER(token) AS token_address,\n LOWER(wallet) AS wallet_address,\n '0x70a08231' AS function_sig,\n CONCAT(\n function_sig,\n LPAD(REPLACE(wallet_address, '0x', ''), 64, '0')\n ) AS data\n FROM\n tokens\n),\nfinal AS (\n SELECT\n wallet_address,\n token_address,\n symbol,\n block_number,\n {{schema}}.udf_rpc_eth_call(OBJECT_CONSTRUCT_KEEP_NULL('from', NULL, 'to', token_address, 'data', data), CONCAT('0x', TRIM(TO_CHAR(block_number, 'XXXXXXXXXX'))))::STRING AS eth_call,\n utils.udf_hex_to_int(eth_call::STRING) AS raw_balance,\n raw_balance::INT / POW(10, ifnull(decimals,0)) AS balance\n FROM\n inputs\n LEFT JOIN {{ ref('_evm__contracts_map') }}\n ON token_address = address\n AND blockchain = '{{blockchain}}'\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and REGEXP_LIKE(token_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(block_number)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n token_address,\n symbol,\n block_number,\n raw_balance,\n balance\nFROM final\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8257806, "supported_languages": null}, "macro.livequery_models.evm_historical_token_balance_saa": {"name": "evm_historical_token_balance_saa", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_historical_token_balance_saa", "macro_sql": "{% macro evm_historical_token_balance_saa(schema, blockchain, network) %}\nWITH block_inputs AS (\n SELECT block_numbers\n),\nblocks AS (\n SELECT value::INTEGER AS block_number\n FROM block_inputs,\n LATERAL FLATTEN(input => block_numbers)\n),\ntoken_inputs AS (\n SELECT tokens\n),\ntokens AS (\n SELECT value::STRING AS token\n FROM token_inputs,\n LATERAL FLATTEN(input => tokens)\n),\ninputs AS (\n SELECT\n LOWER(token) AS token_address,\n LOWER(wallet) AS wallet_address,\n '0x70a08231' AS function_sig,\n CONCAT(\n function_sig,\n LPAD(REPLACE(wallet_address, '0x', ''), 64, '0')\n ) AS data\n FROM\n tokens\n),\nfinal AS (\n SELECT\n wallet_address,\n token_address,\n symbol,\n blocks.block_number,\n {{schema}}.udf_rpc_eth_call(OBJECT_CONSTRUCT_KEEP_NULL('from', NULL, 'to', token_address, 'data', data), CONCAT('0x', TRIM(TO_CHAR(blocks.block_number, 'XXXXXXXXXX'))))::STRING AS eth_call,\n utils.udf_hex_to_int(eth_call::STRING) AS raw_balance,\n raw_balance::INT / POW(10, ifnull(decimals,0)) AS balance\n FROM\n inputs\n CROSS JOIN blocks\n LEFT JOIN {{ ref('_evm__contracts_map') }}\n ON token_address = address\n AND blockchain = '{{blockchain}}'\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and REGEXP_LIKE(token_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(block_number)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n token_address,\n symbol,\n block_number,\n raw_balance,\n balance\nFROM final\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8263702, "supported_languages": null}, "macro.livequery_models.evm_historical_token_balance_aai": {"name": "evm_historical_token_balance_aai", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_historical_token_balance_aai", "macro_sql": "{% macro evm_historical_token_balance_aai(schema, blockchain, network) %}\nWITH token_inputs AS (\n SELECT tokens\n),\ntokens AS (\n SELECT value::STRING AS token\n FROM token_inputs,\n LATERAL FLATTEN(input => tokens)\n),\nwallet_inputs AS (\n SELECT wallets\n),\nwallets AS (\n SELECT lower(value::STRING) AS wallet\n FROM wallet_inputs,\n LATERAL FLATTEN(input => wallets)\n),\ninputs AS (\n SELECT\n LOWER(token) AS token_address,\n wallet AS wallet_address,\n '0x70a08231' AS function_sig,\n CONCAT(\n function_sig,\n LPAD(REPLACE(wallet_address, '0x', ''), 64, '0')\n ) AS data\n FROM\n tokens,\n wallets\n),\nfinal AS (\n SELECT\n wallet_address,\n token_address,\n symbol,\n block_number,\n {{schema}}.udf_rpc_eth_call(OBJECT_CONSTRUCT_KEEP_NULL('from', NULL, 'to', token_address, 'data', data), CONCAT('0x', TRIM(TO_CHAR(block_number, 'XXXXXXXXXX'))))::STRING AS eth_call,\n utils.udf_hex_to_int(eth_call::STRING) AS raw_balance,\n raw_balance::INT / POW(10, ifnull(decimals,0)) AS balance\n FROM\n inputs\n LEFT JOIN {{ ref('_evm__contracts_map') }}\n ON token_address = address\n AND blockchain = '{{blockchain}}'\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and REGEXP_LIKE(token_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(block_number)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n token_address,\n symbol,\n block_number,\n raw_balance,\n balance\nFROM final\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8269403, "supported_languages": null}, "macro.livequery_models.evm_historical_token_balance_aaa": {"name": "evm_historical_token_balance_aaa", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_historical_token_balance_aaa", "macro_sql": "{% macro evm_historical_token_balance_aaa(schema, blockchain, network) %}\nWITH block_inputs AS (\n SELECT block_numbers\n),\nblocks AS (\n SELECT value::INTEGER AS block_number\n FROM block_inputs,\n LATERAL FLATTEN(input => block_numbers)\n),\nwallet_inputs AS (\n SELECT wallets\n),\nwallets AS (\n SELECT lower(value::STRING) AS wallet\n FROM wallet_inputs,\n LATERAL FLATTEN(input => wallets)\n),\ntoken_inputs AS (\n SELECT tokens\n),\ntokens AS (\n SELECT value::STRING AS token\n FROM token_inputs,\n LATERAL FLATTEN(input => tokens)\n),\ninputs AS (\n SELECT\n LOWER(token) AS token_address,\n wallet AS wallet_address,\n '0x70a08231' AS function_sig,\n CONCAT(\n function_sig,\n LPAD(REPLACE(wallet_address, '0x', ''), 64, '0')\n ) AS data\n FROM\n wallets,\n tokens\n),\nfinal AS (\n SELECT\n wallet_address,\n token_address,\n symbol,\n blocks.block_number,\n {{schema}}.udf_rpc_eth_call(OBJECT_CONSTRUCT_KEEP_NULL('from', NULL, 'to', token_address, 'data', data), CONCAT('0x', TRIM(TO_CHAR(blocks.block_number, 'XXXXXXXXXX'))))::STRING AS eth_call,\n utils.udf_hex_to_int(eth_call::STRING) AS raw_balance,\n raw_balance::INT / POW(10, ifnull(decimals,0)) AS balance\n FROM\n inputs\n CROSS JOIN blocks\n LEFT JOIN {{ ref('_evm__contracts_map') }}\n ON token_address = address\n AND blockchain = '{{blockchain}}'\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and REGEXP_LIKE(token_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(block_number)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n token_address,\n symbol,\n block_number,\n raw_balance,\n balance\nFROM final\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8275378, "supported_languages": null}, "macro.livequery_models.evm_historical_native_balance_si": {"name": "evm_historical_native_balance_si", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_historical_native_balance_si", "macro_sql": "{% macro evm_historical_native_balance_si(schema, blockchain, network) %}\nwith base as (select lower(wallet) AS wallet_address, CONCAT('0x', TRIM(TO_CHAR(block_number, 'XXXXXXXXXX'))) as hex_block)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(block_number)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n symbol,\n block_number,\n utils.udf_hex_to_int({{schema}}.udf_rpc_eth_get_balance(wallet_address,hex_block)::string) AS raw_balance,\n (raw_balance / POW(10,18))::float AS balance\nFROM base\nLEFT JOIN {{ ref('_evm__native_symbol_map') }}\non '{{blockchain}}' = blockchain\nand '{{network}}' = network\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8280573, "supported_languages": null}, "macro.livequery_models.evm_historical_native_balance_sa": {"name": "evm_historical_native_balance_sa", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_historical_native_balance_sa", "macro_sql": "{% macro evm_historical_native_balance_sa(schema, blockchain, network) %}\nWITH block_inputs AS (\n SELECT block_numbers\n),\nblocks AS (\n SELECT value::INTEGER AS block_number\n FROM block_inputs,\n LATERAL FLATTEN(input => block_numbers)\n),\ninputs AS (\n SELECT\n wallet AS wallet_address,\n block_number,\n utils.udf_hex_to_int({{schema}}.udf_rpc_eth_get_balance(wallet, CONCAT('0x', TRIM(TO_CHAR(block_number, 'XXXXXXXXXX')))))::STRING AS raw_balance\n FROM blocks\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(block_number)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n symbol,\n block_number,\n raw_balance,\n (raw_balance::int / pow(10,18)) ::float as balance\nFROM inputs\nLEFT JOIN {{ ref('_evm__native_symbol_map') }}\non '{{blockchain}}' = blockchain\nand '{{network}}' = network\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8286188, "supported_languages": null}, "macro.livequery_models.evm_historical_native_balance_ai": {"name": "evm_historical_native_balance_ai", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_historical_native_balance_ai", "macro_sql": "{% macro evm_historical_native_balance_ai(schema, blockchain, network) %}\nWITH wallet_inputs AS (\n SELECT wallets\n),\nflat_wallets AS (\n SELECT lower(value::string) AS wallet\n FROM wallet_inputs,\n LATERAL FLATTEN(input => wallets)\n),\ninputs AS (\n SELECT\n wallet AS wallet_address,\n block_number,\n utils.udf_hex_to_int({{schema}}.udf_rpc_eth_get_balance(wallet, CONCAT('0x', TRIM(TO_CHAR(block_number, 'XXXXXXXXXX')))))::STRING AS raw_balance\n FROM flat_wallets\n)\nSELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(block_number)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n symbol,\n block_number,\n raw_balance,\n (raw_balance::int / pow(10,18)) ::float as balance\nFROM inputs\nLEFT JOIN {{ ref('_evm__native_symbol_map') }}\non '{{blockchain}}' = blockchain\nand '{{network}}' = network\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8293145, "supported_languages": null}, "macro.livequery_models.evm_historical_native_balance_aa": {"name": "evm_historical_native_balance_aa", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_historical_native_balance_aa", "macro_sql": "{% macro evm_historical_native_balance_aa(schema, blockchain, network) %}\n WITH inputs AS (\n SELECT wallets, block_numbers\n ),\n flat_wallets AS (\n SELECT lower(wallet.value::STRING) AS wallet, block.value::INTEGER AS block_number\n FROM inputs,\n LATERAL FLATTEN(input => wallets) wallet,\n LATERAL FLATTEN(input => block_numbers) block\n ),\n final AS (\n SELECT\n wallet AS wallet_address,\n block_number,\n utils.udf_hex_to_int({{schema}}.udf_rpc_eth_get_balance(wallet, CONCAT('0x', TRIM(TO_CHAR(block_number, 'XXXXXXXXXX')))))::STRING AS raw_balance\n FROM flat_wallets\n )\n SELECT\n case\n when REGEXP_LIKE(wallet_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(block_number)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n wallet_address,\n symbol,\n block_number,\n raw_balance,\n (raw_balance::int / pow(10,18))::float as balance\n FROM final\n LEFT JOIN {{ ref('_evm__native_symbol_map') }}\n on '{{blockchain}}' = blockchain\n and '{{network}}' = network\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.829883, "supported_languages": null}, "macro.livequery_models.evm_latest_contract_events_s": {"name": "evm_latest_contract_events_s", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_latest_contract_events_s", "macro_sql": "{% macro evm_latest_contract_events_s(schema, blockchain, network) %}\n WITH chainhead AS (\n SELECT\n {{ schema }}.udf_rpc('eth_blockNumber', [])::STRING AS chainhead_hex,\n CONCAT('0x', TRIM(TO_CHAR(utils.udf_hex_to_int(chainhead_hex) - 100, 'XXXXXXXXXX'))) AS from_block_hex\n ),\n node_call AS (\n SELECT\n lower(address) AS contract_address,\n {{ schema }}.udf_rpc_eth_get_logs(\n OBJECT_CONSTRUCT('address', address, 'fromBlock', from_block_hex, 'toBlock', chainhead_hex)\n ) AS eth_getLogs\n FROM chainhead\n ),\n node_flat AS (\n SELECT\n contract_address,\n utils.udf_hex_to_int(value:blockNumber::STRING)::INT AS block_number,\n value:transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(value:transactionIndex::STRING)::INT AS tx_index,\n utils.udf_hex_to_int(value:logIndex::STRING)::INT AS event_index,\n value:removed::BOOLEAN AS event_removed,\n value:data::STRING AS event_data,\n value:topics::ARRAY AS event_topics\n FROM node_call,\n LATERAL FLATTEN(input => eth_getLogs)\n )\n SELECT\n case\n when REGEXP_LIKE(contract_address, '^0x([a-fA-F0-9]{40})$')\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n tx_hash,\n block_number,\n event_index,\n contract_address,\n event_topics,\n event_data\n FROM node_flat\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8303926, "supported_languages": null}, "macro.livequery_models.evm_latest_contract_events_si": {"name": "evm_latest_contract_events_si", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_latest_contract_events_si", "macro_sql": "{% macro evm_latest_contract_events_si(schema, blockchain, network) %}\n WITH chainhead AS (\n SELECT\n {{ schema }}.udf_rpc('eth_blockNumber', [])::STRING AS chainhead_hex,\n CONCAT('0x', TRIM(TO_CHAR(utils.udf_hex_to_int(chainhead_hex) - lookback, 'XXXXXXXXXX'))) AS from_block_hex\n ),\n node_call AS (\n SELECT\n lower(address) AS contract_address,\n {{ schema }}.udf_rpc_eth_get_logs(\n OBJECT_CONSTRUCT('address', address, 'fromBlock', from_block_hex, 'toBlock', chainhead_hex)\n ) AS eth_getLogs\n FROM chainhead\n ),\n node_flat AS (\n SELECT\n contract_address,\n utils.udf_hex_to_int(value:blockNumber::STRING)::INT AS block_number,\n value:transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(value:transactionIndex::STRING)::INT AS tx_index,\n utils.udf_hex_to_int(value:logIndex::STRING)::INT AS event_index,\n value:removed::BOOLEAN AS event_removed,\n value:data::STRING AS event_data,\n value:topics::ARRAY AS event_topics\n FROM node_call,\n LATERAL FLATTEN(input => eth_getLogs)\n )\n SELECT\n case\n when REGEXP_LIKE(contract_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(lookback)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n tx_hash,\n block_number,\n event_index,\n contract_address,\n event_topics,\n event_data\n FROM node_flat\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8309007, "supported_languages": null}, "macro.livequery_models.evm_latest_contract_events_a": {"name": "evm_latest_contract_events_a", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_latest_contract_events_a", "macro_sql": "{% macro evm_latest_contract_events_a(schema, blockchain, network) %}\n WITH chainhead AS (\n SELECT\n {{ schema }}.udf_rpc('eth_blockNumber', [])::STRING AS chainhead_hex,\n CONCAT('0x', TRIM(TO_CHAR(utils.udf_hex_to_int(chainhead_hex) - 100, 'XXXXXXXXXX'))) AS from_block_hex\n ),\n node_call AS (\n SELECT\n lower(address) AS contract_address,\n {{ schema }}.udf_rpc_eth_get_logs(\n OBJECT_CONSTRUCT('address', address, 'fromBlock', from_block_hex, 'toBlock', chainhead_hex)\n ) AS eth_getLogs\n FROM (\n SELECT value::STRING AS address\n FROM LATERAL FLATTEN(input => addresses)\n ) inputs, chainhead\n ),\n node_flat AS (\n SELECT\n contract_address,\n utils.udf_hex_to_int(value:blockNumber::STRING)::INT AS block_number,\n value:transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(value:transactionIndex::STRING)::INT AS tx_index,\n utils.udf_hex_to_int(value:logIndex::STRING)::INT AS event_index,\n value:removed::BOOLEAN AS event_removed,\n value:data::STRING AS event_data,\n value:topics::ARRAY AS event_topics\n FROM node_call,\n LATERAL FLATTEN(input => eth_getLogs)\n )\n SELECT\n case\n when REGEXP_LIKE(contract_address, '^0x([a-fA-F0-9]{40})$')\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n tx_hash,\n block_number,\n event_index,\n contract_address,\n event_topics,\n event_data\n FROM node_flat\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8314095, "supported_languages": null}, "macro.livequery_models.evm_latest_contract_events_ai": {"name": "evm_latest_contract_events_ai", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_latest_contract_events_ai", "macro_sql": "{% macro evm_latest_contract_events_ai(schema, blockchain, network) %}\n WITH chainhead AS (\n SELECT\n {{schema }}.udf_rpc('eth_blockNumber', [])::STRING AS chainhead_hex,\n CONCAT('0x', TRIM(TO_CHAR(utils.udf_hex_to_int(chainhead_hex) - lookback, 'XXXXXXXXXX'))) AS from_block_hex\n ),\n node_call AS (\n SELECT\n lower(address) AS contract_address,\n {{ schema }}.udf_rpc_eth_get_logs(\n OBJECT_CONSTRUCT('address', address, 'fromBlock', from_block_hex, 'toBlock', chainhead_hex)\n ) AS eth_getLogs\n FROM (\n SELECT value::STRING AS address\n FROM LATERAL FLATTEN(input => addresses)\n ) inputs, chainhead\n ),\n node_flat AS (\n SELECT\n contract_address,\n utils.udf_hex_to_int(value:blockNumber::STRING)::INT AS block_number,\n value:transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(value:transactionIndex::STRING)::INT AS tx_index,\n utils.udf_hex_to_int(value:logIndex::STRING)::INT AS event_index,\n value:removed::BOOLEAN AS event_removed,\n value:data::STRING AS event_data,\n value:topics::ARRAY AS event_topics\n FROM node_call,\n LATERAL FLATTEN(input => eth_getLogs)\n )\n SELECT\n case\n when REGEXP_LIKE(contract_address, '^0x([a-fA-F0-9]{40})$')\n and is_integer(lookback)\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n tx_hash,\n block_number,\n event_index,\n contract_address,\n event_topics,\n event_data\n FROM node_flat\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8319027, "supported_languages": null}, "macro.livequery_models.evm_latest_contract_events_decoded_s": {"name": "evm_latest_contract_events_decoded_s", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_latest_contract_events_decoded_s", "macro_sql": "{% macro evm_latest_contract_events_decoded_s(schema, blockchain, network) %}\nWITH inputs AS (\n SELECT lower(address::STRING) AS contract_address\n),\nchainhead AS (\n SELECT\n {{ schema }}.udf_rpc('eth_blockNumber', [])::STRING AS chainhead_hex,\n CONCAT('0x', TRIM(TO_CHAR(utils.udf_hex_to_int(chainhead_hex) - 100, 'XXXXXXXXXX'))) AS from_block_hex\n),\nabis AS (\n SELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi\n FROM inputs\n JOIN {{ ref('_evm__abi_map') }}\n ON lower(contract_address) = parent_contract_address\n AND blockchain = '{{blockchain}}'\n QUALIFY ROW_NUMBER() OVER (PARTITION BY contract_address, event_name ORDER BY end_block DESC) = 1\n),\nnode_call AS (\n SELECT\n inputs.contract_address,\n {{ schema }}.udf_rpc_eth_get_logs(\n OBJECT_CONSTRUCT('address', inputs.contract_address, 'fromBlock', from_block_hex, 'toBlock', chainhead_hex)\n ) AS eth_getLogs\n FROM inputs\n JOIN chainhead ON 1=1\n),\nnode_flat AS (\n SELECT\n contract_address,\n utils.udf_hex_to_int(value:blockNumber::STRING)::INT AS block_number,\n value:transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(value:transactionIndex::STRING)::INT AS tx_index,\n utils.udf_hex_to_int(value:logIndex::STRING)::INT AS event_index,\n value:removed::BOOLEAN AS event_removed,\n value:data::STRING AS event_data,\n value:topics::ARRAY AS event_topics\n FROM node_call,\n LATERAL FLATTEN(input => eth_getLogs)\n),\ndecode_logs AS (\n SELECT\n contract_address,\n block_number,\n tx_hash,\n tx_index,\n event_index,\n event_removed,\n event_data,\n event_topics,\n utils.udf_evm_decode_log(\n abi,\n OBJECT_CONSTRUCT(\n 'topics',\n event_topics,\n 'data',\n event_data,\n 'address',\n contract_address\n )\n )[0] AS decoded_data,\n decoded_data:name::STRING AS event_name,\n utils.udf_evm_transform_log(decoded_data) AS transformed\n FROM node_flat\n JOIN abis\n ON contract_address = parent_contract_address\n AND event_topics[0]::STRING = event_signature\n),\nfinal AS (\n SELECT\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.event_topics,\n b.event_data,\n b.decoded_data,\n transformed,\n OBJECT_AGG(\n DISTINCT CASE\n WHEN v.value:name = '' THEN CONCAT('anonymous_', v.index)\n ELSE v.value:name\n END,\n v.value:value\n ) AS decoded_flat\n FROM decode_logs b,\n LATERAL FLATTEN(input => transformed:data) v\n GROUP BY\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.event_topics,\n b.event_data,\n b.decoded_data,\n transformed\n)\nSELECT\n case\n when REGEXP_LIKE(n.contract_address, '^0x([a-fA-F0-9]{40})$') then 'Success'\n when f.event_name is null then 'Error - Contract ABI Not Found, submit ABIs [here](https://science.flipsidecrypto.xyz/abi-requestor/)'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n n.tx_hash,\n n.block_number,\n n.event_index,\n f.event_name,\n n.contract_address,\n n.event_topics,\n n.event_data,\n f.decoded_flat AS decoded_data\nFROM node_flat n\nleft join final f\non n.block_number = f.block_number\nand n.tx_hash = f.tx_hash\nand n.event_index = f.event_index\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8326974, "supported_languages": null}, "macro.livequery_models.evm_latest_contract_events_decoded_si": {"name": "evm_latest_contract_events_decoded_si", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_latest_contract_events_decoded_si", "macro_sql": "{% macro evm_latest_contract_events_decoded_si(schema, blockchain, network) %}\nWITH inputs AS (\n SELECT lower(address::STRING) AS contract_address\n),\nchainhead AS (\n SELECT\n {{ schema }}.udf_rpc('eth_blockNumber', [])::STRING AS chainhead_hex,\n CONCAT('0x', TRIM(TO_CHAR(utils.udf_hex_to_int(chainhead_hex) - lookback, 'XXXXXXXXXX'))) AS from_block_hex,\n lookback\n),\nabis AS (\n SELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi\n FROM inputs\n JOIN {{ ref('_evm__abi_map') }}\n ON lower(contract_address) = parent_contract_address\n AND blockchain = '{{blockchain}}'\n QUALIFY ROW_NUMBER() OVER (PARTITION BY contract_address, event_name ORDER BY end_block DESC) = 1\n),\nnode_call AS (\n SELECT\n inputs.contract_address,\n {{ schema }}.udf_rpc_eth_get_logs(\n OBJECT_CONSTRUCT('address', inputs.contract_address, 'fromBlock', from_block_hex, 'toBlock', chainhead_hex)\n ) AS eth_getLogs,\n lookback\n FROM inputs\n JOIN chainhead ON 1=1\n),\nnode_flat AS (\n SELECT\n contract_address,\n lookback,\n utils.udf_hex_to_int(value:blockNumber::STRING)::INT AS block_number,\n value:transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(value:transactionIndex::STRING)::INT AS tx_index,\n utils.udf_hex_to_int(value:logIndex::STRING)::INT AS event_index,\n value:removed::BOOLEAN AS event_removed,\n value:data::STRING AS event_data,\n value:topics::ARRAY AS event_topics\n FROM node_call,\n LATERAL FLATTEN(input => eth_getLogs)\n),\ndecode_logs AS (\n SELECT\n contract_address,\n block_number,\n tx_hash,\n tx_index,\n event_index,\n event_removed,\n event_data,\n event_topics,\n utils.udf_evm_decode_log(\n abi,\n OBJECT_CONSTRUCT(\n 'topics',\n event_topics,\n 'data',\n event_data,\n 'address',\n contract_address\n )\n )[0] AS decoded_data,\n decoded_data:name::STRING AS event_name,\n utils.udf_evm_transform_log(decoded_data) AS transformed\n FROM node_flat\n JOIN abis\n ON contract_address = parent_contract_address\n AND event_topics[0]::STRING = event_signature\n),\nfinal AS (\n SELECT\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.event_topics,\n b.event_data,\n b.decoded_data,\n transformed,\n OBJECT_AGG(\n DISTINCT CASE\n WHEN v.value:name = '' THEN CONCAT('anonymous_', v.index)\n ELSE v.value:name\n END,\n v.value:value\n ) AS decoded_flat\n FROM decode_logs b,\n LATERAL FLATTEN(input => transformed:data) v\n GROUP BY\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.event_topics,\n b.event_data,\n b.decoded_data,\n transformed\n)\nSELECT\n case\n when REGEXP_LIKE(n.contract_address, '^0x([a-fA-F0-9]{40})$') and is_integer(n.lookback) then 'Success'\n when f.event_name is null then 'Error - Contract ABI Not Found, submit ABIs [here](https://science.flipsidecrypto.xyz/abi-requestor/)'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n n.tx_hash,\n n.block_number,\n n.event_index,\n f.event_name,\n n.contract_address,\n n.event_topics,\n n.event_data,\n f.decoded_flat AS decoded_data\nFROM node_flat n\nleft join final f\non n.block_number = f.block_number\nand n.tx_hash = f.tx_hash\nand n.event_index = f.event_index\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8335047, "supported_languages": null}, "macro.livequery_models.evm_latest_contract_events_decoded_a": {"name": "evm_latest_contract_events_decoded_a", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_latest_contract_events_decoded_a", "macro_sql": "{% macro evm_latest_contract_events_decoded_a(schema, blockchain, network) %}\nWITH base AS (SELECT addresses),\ninputs AS (\n SELECT lower(value::STRING) AS contract_address\n FROM base, LATERAL FLATTEN(input => addresses)\n),\nchainhead AS (\n SELECT\n {{ schema }}.udf_rpc('eth_blockNumber', [])::STRING AS chainhead_hex,\n CONCAT('0x', TRIM(TO_CHAR(utils.udf_hex_to_int(chainhead_hex) - 100, 'XXXXXXXXXX'))) AS from_block_hex\n),\nabis AS (\n SELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi\n FROM inputs\n JOIN {{ ref('_evm__abi_map') }}\n ON lower(contract_address) = parent_contract_address\n AND blockchain = '{{blockchain}}'\n QUALIFY ROW_NUMBER() OVER (PARTITION BY contract_address, event_name ORDER BY end_block DESC) = 1\n),\nnode_call AS (\n SELECT\n inputs.contract_address,\n {{ schema }}.udf_rpc_eth_get_logs(\n OBJECT_CONSTRUCT('address', inputs.contract_address, 'fromBlock', from_block_hex, 'toBlock', chainhead_hex)\n ) AS eth_getLogs\n FROM inputs\n JOIN chainhead ON 1=1\n),\nnode_flat AS (\n SELECT\n contract_address,\n utils.udf_hex_to_int(value:blockNumber::STRING)::INT AS block_number,\n value:transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(value:transactionIndex::STRING)::INT AS tx_index,\n utils.udf_hex_to_int(value:logIndex::STRING)::INT AS event_index,\n value:removed::BOOLEAN AS event_removed,\n value:data::STRING AS event_data,\n value:topics::ARRAY AS event_topics\n FROM node_call,\n LATERAL FLATTEN(input => eth_getLogs)\n),\ndecode_logs AS (\n SELECT\n contract_address,\n block_number,\n tx_hash,\n tx_index,\n event_index,\n event_removed,\n event_data,\n event_topics,\n utils.udf_evm_decode_log(\n abi,\n OBJECT_CONSTRUCT(\n 'topics',\n event_topics,\n 'data',\n event_data,\n 'address',\n contract_address\n )\n )[0] AS decoded_data,\n decoded_data:name::STRING AS event_name,\n utils.udf_evm_transform_log(decoded_data) AS transformed\n FROM node_flat\n JOIN abis\n ON contract_address = parent_contract_address\n AND event_topics[0]::STRING = event_signature\n),\nfinal AS (\n SELECT\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.event_topics,\n b.event_data,\n b.decoded_data,\n transformed,\n OBJECT_AGG(\n DISTINCT CASE\n WHEN v.value:name = '' THEN CONCAT('anonymous_', v.index)\n ELSE v.value:name\n END,\n v.value:value\n ) AS decoded_flat\n FROM decode_logs b,\n LATERAL FLATTEN(input => transformed:data) v\n GROUP BY\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.event_topics,\n b.event_data,\n b.decoded_data,\n transformed\n)\nSELECT\n case\n when REGEXP_LIKE(n.contract_address, '^0x([a-fA-F0-9]{40})$') then 'Success'\n when f.event_name is null then 'Error - Contract ABI Not Found, submit ABIs [here](https://science.flipsidecrypto.xyz/abi-requestor/)'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n n.tx_hash,\n n.block_number,\n n.event_index,\n f.event_name,\n n.contract_address,\n n.event_topics,\n n.event_data,\n f.decoded_flat AS decoded_data\nFROM node_flat n\nleft join final f\non n.block_number = f.block_number\nand n.tx_hash = f.tx_hash\nand n.event_index = f.event_index\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.834311, "supported_languages": null}, "macro.livequery_models.evm_latest_contract_events_decoded_ai": {"name": "evm_latest_contract_events_decoded_ai", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_latest_contract_events_decoded_ai", "macro_sql": "{% macro evm_latest_contract_events_decoded_ai(schema, blockchain, network) %}\nWITH base AS (SELECT addresses),\ninputs AS (\n SELECT lower(value::STRING) AS contract_address\n FROM base, LATERAL FLATTEN(input => addresses)\n),\nchainhead AS (\n SELECT\n {{ schema }}.udf_rpc('eth_blockNumber', [])::STRING AS chainhead_hex,\n CONCAT('0x', TRIM(TO_CHAR(utils.udf_hex_to_int(chainhead_hex) - lookback, 'XXXXXXXXXX'))) AS from_block_hex,\n lookback\n),\nabis AS (\n SELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi\n FROM inputs\n JOIN {{ ref('_evm__abi_map') }}\n ON lower(contract_address) = parent_contract_address\n AND blockchain = '{{blockchain}}'\n QUALIFY ROW_NUMBER() OVER (PARTITION BY contract_address, event_name ORDER BY end_block DESC) = 1\n),\nnode_call AS (\n SELECT\n inputs.contract_address,\n {{ schema }}.udf_rpc_eth_get_logs(\n OBJECT_CONSTRUCT('address', inputs.contract_address, 'fromBlock', from_block_hex, 'toBlock', chainhead_hex)\n ) AS eth_getLogs,\n lookback\n FROM inputs\n JOIN chainhead ON 1=1\n),\nnode_flat AS (\n SELECT\n contract_address,\n lookback,\n utils.udf_hex_to_int(value:blockNumber::STRING)::INT AS block_number,\n value:transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(value:transactionIndex::STRING)::INT AS tx_index,\n utils.udf_hex_to_int(value:logIndex::STRING)::INT AS event_index,\n value:removed::BOOLEAN AS event_removed,\n value:data::STRING AS event_data,\n value:topics::ARRAY AS event_topics\n FROM node_call,\n LATERAL FLATTEN(input => eth_getLogs)\n),\ndecode_logs AS (\n SELECT\n contract_address,\n block_number,\n tx_hash,\n tx_index,\n event_index,\n event_removed,\n event_data,\n event_topics,\n utils.udf_evm_decode_log(\n abi,\n OBJECT_CONSTRUCT(\n 'topics',\n event_topics,\n 'data',\n event_data,\n 'address',\n contract_address\n )\n )[0] AS decoded_data,\n decoded_data:name::STRING AS event_name,\n utils.udf_evm_transform_log(decoded_data) AS transformed\n FROM node_flat\n JOIN abis\n ON contract_address = parent_contract_address\n AND event_topics[0]::STRING = event_signature\n),\nfinal AS (\n SELECT\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.event_topics,\n b.event_data,\n b.decoded_data,\n transformed,\n OBJECT_AGG(\n DISTINCT CASE\n WHEN v.value:name = '' THEN CONCAT('anonymous_', v.index)\n ELSE v.value:name\n END,\n v.value:value\n ) AS decoded_flat\n FROM decode_logs b,\n LATERAL FLATTEN(input => transformed:data) v\n GROUP BY\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.event_topics,\n b.event_data,\n b.decoded_data,\n transformed\n)\nSELECT\n case\n when REGEXP_LIKE(n.contract_address, '^0x([a-fA-F0-9]{40})$') and is_integer(n.lookback) then 'Success'\n when f.event_name is null then 'Error - Contract ABI Not Found, submit ABIs [here](https://science.flipsidecrypto.xyz/abi-requestor/)'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n n.tx_hash,\n n.block_number,\n n.event_index,\n f.event_name,\n n.contract_address,\n n.event_topics,\n n.event_data,\n f.decoded_flat AS decoded_data\nFROM node_flat n\nleft join final f\non n.block_number = f.block_number\nand n.tx_hash = f.tx_hash\nand n.event_index = f.event_index\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8351023, "supported_languages": null}, "macro.livequery_models.evm_contract_events": {"name": "evm_contract_events", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_contract_events", "macro_sql": "{% macro evm_contract_events(schema, blockchain, network) %}\n WITH chainhead AS (\n SELECT\n {{ schema }}.udf_rpc('eth_blockNumber', [])::STRING AS chainhead_hex,\n CONCAT('0x', TRIM(TO_CHAR(utils.udf_hex_to_int(chainhead_hex) - 200, 'XXXXXXXXXX'))) AS from_block_hex,\n utils.udf_hex_to_int(chainhead_hex) - 200 as min_block_no\n ),\n node_call AS (\n SELECT\n lower(address) AS contract_address,\n {{ schema }}.udf_rpc_eth_get_logs(\n OBJECT_CONSTRUCT('address', address, 'fromBlock', from_block_hex, 'toBlock', chainhead_hex)\n ) AS eth_getLogs\n FROM chainhead\n ),\n node_flat AS (\n SELECT\n contract_address,\n utils.udf_hex_to_int(value:blockNumber::STRING)::INT AS block_number,\n value:transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(value:transactionIndex::STRING)::INT AS tx_index,\n utils.udf_hex_to_int(value:logIndex::STRING)::INT AS event_index,\n value:removed::BOOLEAN AS event_removed,\n value:data::STRING AS event_data,\n value:topics::ARRAY AS event_topics\n FROM node_call,\n LATERAL FLATTEN(input => eth_getLogs)\n )\n SELECT\n case\n when REGEXP_LIKE(contract_address, '^0x([a-fA-F0-9]{40})$')\n then 'Success'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n tx_hash,\n block_number,\n event_index,\n contract_address,\n event_topics,\n event_data\n FROM node_flat\n UNION ALL\n SELECT\n 'Success' as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n tx_hash,\n block_number,\n event_index,\n contract_address,\n topics as event_topics,\n data as event_data\n from {{ ref('_eth__logs') }}\n where contract_address = (select contract_address from node_call)\n and block_number >= min_block\n and block_number <= (select min_block_no from chainhead)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8357987, "supported_languages": null}, "macro.livequery_models.evm_contract_events_decoded": {"name": "evm_contract_events_decoded", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/evm/evm_abstractions.sql", "original_file_path": "macros/evm/evm_abstractions.sql", "unique_id": "macro.livequery_models.evm_contract_events_decoded", "macro_sql": "{% macro evm_contract_events_decoded(schema, blockchain, network) %}\nWITH inputs AS (\n SELECT lower(address::STRING) AS contract_address\n),\nchainhead AS (\n SELECT\n {{ schema }}.udf_rpc('eth_blockNumber', [])::STRING AS chainhead_hex,\n CONCAT('0x', TRIM(TO_CHAR(utils.udf_hex_to_int(chainhead_hex) - 400, 'XXXXXXXXXX'))) AS from_block_hex,\n utils.udf_hex_to_int(chainhead_hex) - 400 as min_block_no\n),\nabis AS (\n SELECT\n parent_contract_address,\n event_name,\n event_signature,\n abi\n FROM inputs\n JOIN {{ ref('_evm__abi_map') }}\n ON lower(contract_address) = parent_contract_address\n AND blockchain = '{{blockchain}}'\n QUALIFY ROW_NUMBER() OVER (PARTITION BY contract_address, event_name ORDER BY end_block DESC) = 1\n),\nnode_call AS (\n SELECT\n inputs.contract_address,\n {{ schema }}.udf_rpc_eth_get_logs(\n OBJECT_CONSTRUCT('address', inputs.contract_address, 'fromBlock', from_block_hex, 'toBlock', chainhead_hex)\n ) AS eth_getLogs\n FROM inputs\n JOIN chainhead ON 1=1\n),\nnode_flat AS (\n SELECT\n contract_address,\n utils.udf_hex_to_int(value:blockNumber::STRING)::INT AS block_number,\n value:transactionHash::STRING AS tx_hash,\n utils.udf_hex_to_int(value:transactionIndex::STRING)::INT AS tx_index,\n utils.udf_hex_to_int(value:logIndex::STRING)::INT AS event_index,\n value:removed::BOOLEAN AS event_removed,\n value:data::STRING AS event_data,\n value:topics::ARRAY AS event_topics\n FROM node_call,\n LATERAL FLATTEN(input => eth_getLogs)\n),\ndecode_logs AS (\n SELECT\n contract_address,\n block_number,\n tx_hash,\n tx_index,\n event_index,\n event_removed,\n event_data,\n event_topics,\n utils.udf_evm_decode_log(\n abi,\n OBJECT_CONSTRUCT(\n 'topics',\n event_topics,\n 'data',\n event_data,\n 'address',\n contract_address\n )\n )[0] AS decoded_data,\n decoded_data:name::STRING AS event_name,\n utils.udf_evm_transform_log(decoded_data) AS transformed\n FROM node_flat\n JOIN abis\n ON contract_address = parent_contract_address\n AND event_topics[0]::STRING = event_signature\n),\nfinal AS (\n SELECT\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.event_topics,\n b.event_data,\n b.decoded_data,\n transformed,\n OBJECT_AGG(\n DISTINCT CASE\n WHEN v.value:name = '' THEN CONCAT('anonymous_', v.index)\n ELSE v.value:name\n END,\n v.value:value\n ) AS decoded_flat\n FROM decode_logs b,\n LATERAL FLATTEN(input => transformed:data) v\n GROUP BY\n b.tx_hash,\n b.block_number,\n b.event_index,\n b.event_name,\n b.contract_address,\n b.event_topics,\n b.event_data,\n b.decoded_data,\n transformed\n)\nSELECT\n case\n when REGEXP_LIKE(n.contract_address, '^0x([a-fA-F0-9]{40})$') and is_integer(min_block) then 'Success'\n when f.event_name is null then 'Error - Contract ABI Not Found, submit ABIs [here](https://science.flipsidecrypto.xyz/abi-requestor/)'\n else 'Error - Invalid Input'\n end as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n n.tx_hash,\n n.block_number,\n n.event_index,\n f.event_name,\n n.contract_address,\n n.event_topics,\n n.event_data,\n f.decoded_flat AS decoded_data\nFROM node_flat n\nleft join final f\non n.block_number = f.block_number\nand n.tx_hash = f.tx_hash\nand n.event_index = f.event_index\nunion all\nselect\n 'Success' as status,\n '{{blockchain}}' AS blockchain,\n '{{network}}' AS network,\n tx_hash,\n block_number,\n event_index,\n event_name,\n contract_address,\n topics as event_topics,\n data as event_data,\n decoded_log as decoded_data\nfrom {{ ref('_eth__decoded_logs') }}\n where contract_address = (select contract_address from inputs)\n and block_number >= min_block\n and block_number <= (select min_block_no from chainhead)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.836792, "supported_languages": null}, "macro.livequery_models.config_transpose_udfs": {"name": "config_transpose_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/transpose/udfs.yaml.sql", "original_file_path": "macros/marketplace/transpose/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_transpose_udfs", "macro_sql": "{% macro config_transpose_udfs(schema_name = \"transpose\", utils_schema_name=\"transpose_utils\") -%}\n{#\n This macro is used to generate the Transpose Base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Transpose API. [Transpose docs here](https://docs.transpose.io/rest/overview/).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://api.transpose.io', PATH, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'X-API-KEY': '{API_KEY}'},\n {},\n '_FSC_SYS/TRANSPOSE'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the Transpose API. [Transpose docs here](https://docs.transpose.io/rest/overview/).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n CONCAT('https://api.transpose.io', PATH),\n {'X-API-KEY': '{API_KEY}'},\n BODY,\n '_FSC_SYS/TRANSPOSE'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8375535, "supported_languages": null}, "macro.livequery_models.config_credmark_utils_udfs": {"name": "config_credmark_utils_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/credmark/util_udfs.sql", "original_file_path": "macros/marketplace/credmark/util_udfs.sql", "unique_id": "macro.livequery_models.config_credmark_utils_udfs", "macro_sql": "{% macro config_credmark_utils_udfs(schema_name = \"credmark_utils\", utils_schema_name=\"credmark_utils\") -%}\n{#\n This macro is used to generate the Credmark base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Credmark API.$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat(\n 'https://gateway.credmark.com', PATH, '?',\n utils.udf_object_to_url_query_string(QUERY_ARGS)\n ),\n {'Authorization': 'Bearer {API_KEY}'},\n {},\n '_FSC_SYS/CREDMARK'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the Credmark API.$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n concat('https://gateway.credmark.com', PATH),\n {'Authorization': 'Bearer {API_KEY}'},\n BODY,\n '_FSC_SYS/CREDMARK'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8382726, "supported_languages": null}, "macro.livequery_models.config_opensea_udfs": {"name": "config_opensea_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/opensea/udfs.yaml.sql", "original_file_path": "macros/marketplace/opensea/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_opensea_udfs", "macro_sql": "{% macro config_opensea_udfs(schema_name = \"opensea\", utils_schema_name=\"opensea_utils\") -%}\n{#\n This macro is used to generate the OpenSea Base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the OpenSea API. [OpenSea docs here](https://docs.opensea.io/reference/api-overview).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://api.opensea.io', PATH, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'X-API-KEY': '{API_KEY}'},\n {},\n '_FSC_SYS/OPENSEA'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the OpenSea API. [OpenSea docs here](https://docs.opensea.io/reference/api-overview).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n concat('https://api.opensea.io', PATH),\n {'X-API-KEY': '{API_KEY}'},\n BODY,\n '_FSC_SYS/OPENSEA'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8389688, "supported_languages": null}, "macro.livequery_models.config_stakingrewards_udfs": {"name": "config_stakingrewards_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/stakingrewards/udfs.yaml.sql", "original_file_path": "macros/marketplace/stakingrewards/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_stakingrewards_udfs", "macro_sql": "{% macro config_stakingrewards_udfs(schema_name = \"stakingrewards\", utils_schema_name=\"stakingrewards_utils\") -%}\n{#\n This macro is used to generate the StakingRewards Base endpoints\n #}\n\n- name: {{ schema_name -}}.query\n signature:\n - [QUERY, OBJECT, The GraphQL query]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a Graphql Query to the StakingRewards API. [StakingRewards docs here](https://api-docs.stakingrewards.com/api-docs/get-started/quick-start-guide).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n 'https://api.stakingrewards.com/public/query',\n {'X-API-KEY': '{API_KEY}'},\n QUERY,\n '_FSC_SYS/STAKINGREWARDS'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.839496, "supported_languages": null}, "macro.livequery_models.config_subquery_udfs": {"name": "config_subquery_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/subquery/udfs.yaml.sql", "original_file_path": "macros/marketplace/subquery/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_subquery_udfs", "macro_sql": "{% macro config_subquery_udfs(schema_name = \"subquery\", utils_schema_name = \"subquery_utils\") -%}\n{#\n This macro is used to generate the Subquery Calls\n #}\n- name: {{ schema_name -}}.graphql\n signature:\n - [PROJECT, STRING, The sub-query project name]\n - [QUERY, OBJECT, The graphql query]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Query a SubQuery Project [SubQuery docs here](https://explorer.subquery.network/subquery/subquery/kepler-network).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n concat('https://api.subquery.network/sq/subquery/', PROJECT),\n {},\n QUERY\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8399808, "supported_languages": null}, "macro.livequery_models.config_topshot_udfs": {"name": "config_topshot_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/topshot/topshot.graphql.sql", "original_file_path": "macros/marketplace/topshot/topshot.graphql.sql", "unique_id": "macro.livequery_models.config_topshot_udfs", "macro_sql": "{% macro config_topshot_udfs(schema_name = \"topshot\", utils_schema_name = \"topshot_utils\") -%}\n{#\n This macro is used to generate the Topshot calls\n #}\n\n- name: {{ schema_name -}}.graphql\n signature:\n - [QUERY, OBJECT, The GraphQL query]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Run a graphql query on TopShot.$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n 'https://public-api.nbatopshot.com/graphql',\n {'User-Agent': 'Flipside_Flow_metadata/0.1','Accept-Encoding': 'gzip', 'Content-Type': 'application/json', 'Accept': 'application/json','Connection': 'keep-alive'},\n QUERY,\n '_FSC_SYS/TOPSHOT'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8404903, "supported_languages": null}, "macro.livequery_models.config_allday_udfs": {"name": "config_allday_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/allday/allday.graphql.sql", "original_file_path": "macros/marketplace/allday/allday.graphql.sql", "unique_id": "macro.livequery_models.config_allday_udfs", "macro_sql": "{% macro config_allday_udfs(schema_name = \"allday\", utils_schema_name = \"allday_utils\") -%}\n{#\n This macro is used to generate the AllDay calls\n #}\n\n- name: {{ schema_name -}}.graphql\n signature:\n - [QUERY, OBJECT, The GraphQL query]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Run a graphql query on AllDay.$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n CONCAT('https://nflallday.com/consumer/graphql?query=', utils.udf_object_to_url_query_string(QUERY)),\n {'User-Agent': 'Flipside_Flow_metadata/0.1','Accept-Encoding': 'gzip', 'Content-Type': 'application/json', 'Accept': 'application/json','Connection': 'keep-alive'},\n {},\n '_FSC_SYS/ALLDAY'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.840994, "supported_languages": null}, "macro.livequery_models.config_coingecko_udfs": {"name": "config_coingecko_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/coingecko/udfs.yaml.sql", "original_file_path": "macros/marketplace/coingecko/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_coingecko_udfs", "macro_sql": "{% macro config_coingecko_udfs(schema_name = \"coingecko\", utils_schema_name=\"coingecko_utils\") -%}\n{#\n This macro is used to generate the Coingecko Base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the CoinGecko API. [CoinGecko docs here](https://apiguide.coingecko.com/getting-started/introduction).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://pro-api.coingecko.com', PATH, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'x-cg-pro-api-key': '{API_KEY}'},\n {},\n '_FSC_SYS/COINGECKO'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [PATH, STRING, The path after '/api' starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the CoinGecko API. [CoinGecko docs here](https://apiguide.coingecko.com/getting-started/introduction).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n CONCAT('https://pro-api.coingecko.com', PATH),\n {'x-cg-pro-api-key': '{API_KEY}'},\n BODY,\n '_FSC_SYS/COINGECKO'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8417246, "supported_languages": null}, "macro.livequery_models.config_dapplooker_udfs": {"name": "config_dapplooker_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/dapplooker/udfs.yaml.sql", "original_file_path": "macros/marketplace/dapplooker/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_dapplooker_udfs", "macro_sql": "{% macro config_dapplooker_udfs(schema_name = \"dapplooker\", utils_schema_name = \"dapplooker_utils\") -%}\n{#\n This macro is used to generate the DappLooker endpoints\n #}\n\n- name: {{ schema_name -}}.get_chart\n signature:\n - [CHART_ID, STRING, The UUID of the chart]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns the chart data. [DappLooker docs here](https://github.com/dapplooker/dapplooker-sdk).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://api.dapplooker.com/chart/', CHART_ID, '?api_key={API_KEY}&output_format=json'),\n {},\n {},\n '_FSC_SYS/DAPPLOOKER'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8422287, "supported_languages": null}, "macro.livequery_models.claude_get_api_call": {"name": "claude_get_api_call", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/claude/claude_config_utils.sql", "original_file_path": "macros/marketplace/claude/claude_config_utils.sql", "unique_id": "macro.livequery_models.claude_get_api_call", "macro_sql": "{% macro claude_get_api_call(schema_name, api_path) %}\nSELECT {{ schema_name }}.get(\n '{{ api_path }}'\n) as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.842731, "supported_languages": null}, "macro.livequery_models.claude_post_api_call": {"name": "claude_post_api_call", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/claude/claude_config_utils.sql", "original_file_path": "macros/marketplace/claude/claude_config_utils.sql", "unique_id": "macro.livequery_models.claude_post_api_call", "macro_sql": "{% macro claude_post_api_call(schema_name, api_path, body) %}\nSELECT {{ schema_name }}.post(\n '{{ api_path }}',\n {{ body }}\n) as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8431785, "supported_languages": null}, "macro.livequery_models.claude_delete_api_call": {"name": "claude_delete_api_call", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/claude/claude_config_utils.sql", "original_file_path": "macros/marketplace/claude/claude_config_utils.sql", "unique_id": "macro.livequery_models.claude_delete_api_call", "macro_sql": "{% macro claude_delete_api_call(schema_name, api_path) %}\nSELECT {{ schema_name }}.delete_method(\n '{{ api_path }}'\n) as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8434746, "supported_languages": null}, "macro.livequery_models.config_claude_models_udfs": {"name": "config_claude_models_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/claude/models_udfs.yaml.sql", "original_file_path": "macros/marketplace/claude/models_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_claude_models_udfs", "macro_sql": "{% macro config_claude_models_udfs(schema_name = \"claude\", utils_schema_name = \"claude_utils\") -%}\n{#\n This macro is used to generate API calls to Claude API endpoints\n #}\n\n{# Claude API Models #}\n- name: {{ schema_name -}}.list_models\n signature: []\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$List available Claude models [API docs: List Models](https://docs.anthropic.com/claude/reference/models_get)$$\n sql: |\n SELECT claude_utils.get(\n '/v1/models'\n ) as response\n\n- name: {{ schema_name -}}.get_model\n signature:\n - [MODEL, STRING, The model name to get details for (e.g. 'claude-3-opus-20240229')]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Get details for a specific Claude model [API docs: Get Model](https://docs.anthropic.com/claude/reference/models_retrieve)$$\n sql: |\n SELECT claude_utils.get(\n CONCAT('/v1/models/', MODEL)\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8441265, "supported_languages": null}, "macro.livequery_models.config_claude_utils_udfs": {"name": "config_claude_utils_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/claude/util_udfs.yaml.sql", "original_file_path": "macros/marketplace/claude/util_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_claude_utils_udfs", "macro_sql": "{% macro config_claude_utils_udfs(schema_name = \"claude_utils\", utils_schema_name = \"claude_utils\") -%}\n{#\n This macro is used to generate API calls to Claude API endpoints\n #}\n- name: {{ schema_name -}}.post\n signature:\n - [PATH, STRING, The API endpoint path]\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Make calls to Claude API [API docs: Claude](https://docs.anthropic.com/claude/reference/getting-started-with-the-api)$$\n sql: |\n SELECT live.udf_api(\n 'POST',\n CONCAT('https://api.anthropic.com', PATH),\n {\n 'anthropic-version': '2023-06-01',\n 'x-api-key': '{API_KEY}',\n 'content-type': 'application/json'\n },\n BODY,\n '_FSC_SYS/CLAUDE'\n ) as response\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The API endpoint path]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Make GET requests to Claude API [API docs: Get](https://docs.anthropic.com/claude/reference/get)$$\n sql: |\n SELECT live.udf_api(\n 'GET',\n CONCAT('https://api.anthropic.com', PATH),\n {\n 'anthropic-version': '2023-06-01',\n 'x-api-key': '{API_KEY}',\n 'content-type': 'application/json'\n },\n NULL,\n '_FSC_SYS/CLAUDE'\n ) as response\n\n- name: {{ schema_name -}}.delete_method\n signature:\n - [PATH, STRING, The API endpoint path]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Make DELETE requests to Claude API [API docs: Delete](https://docs.anthropic.com/claude/reference/delete)$$\n sql: |\n SELECT live.udf_api(\n 'DELETE',\n CONCAT('https://api.anthropic.com', PATH),\n {\n 'anthropic-version': '2023-06-01',\n 'x-api-key': '{API_KEY}',\n 'content-type': 'application/json'\n },\n NULL,\n '_FSC_SYS/CLAUDE'\n ) as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8451328, "supported_languages": null}, "macro.livequery_models.config_claude_messages_batch_udfs": {"name": "config_claude_messages_batch_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/claude/messages_batch_udfs.yaml.sql", "original_file_path": "macros/marketplace/claude/messages_batch_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_claude_messages_batch_udfs", "macro_sql": "{% macro config_claude_messages_batch_udfs(schema_name = \"claude\", utils_schema_name = \"claude_utils\") -%}\n{#\n This macro is used to generate API calls to Claude API endpoints\n #}\n\n{# Claude API Messages Batch #}\n- name: {{ schema_name -}}.post_messages_batch\n signature:\n - [MESSAGES, OBJECT, Object of array of message objects]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Send a batch of messages to Claude and get responses [API docs: Messages Batch](https://docs.anthropic.com/en/api/creating-message-batches)$$\n sql: |\n SELECT claude_utils.post(\n '/v1/messages/batches',\n MESSAGES\n ) as response\n\n{# Claude API Messages Batch Operations #}\n- name: {{ schema_name -}}.get_message_batch\n signature:\n - [MESSAGE_BATCH_ID, STRING, ID of the Message Batch to retrieve]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Retrieve details of a specific Message Batch [API docs: Retrieve Message Batch](https://docs.anthropic.com/en/api/retrieving-message-batches)$$\n sql: |\n SELECT claude_utils.get(\n CONCAT('/v1/messages/batches/', MESSAGE_BATCH_ID)\n ) as response\n\n- name: {{ schema_name -}}.get_message_batch_results\n signature:\n - [MESSAGE_BATCH_ID, STRING, ID of the Message Batch to retrieve results for]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Retrieve results of a Message Batch [API docs: Retrieve Message Batch Results](https://docs.anthropic.com/en/api/retrieving-message-batches)$$\n sql: |\n SELECT claude_utils.get(\n CONCAT('/v1/messages/batches/', MESSAGE_BATCH_ID, '/results')\n ) as response\n\n- name: {{ schema_name -}}.list_message_batches\n signature: []\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$List all Message Batches [API docs: List Message Batches](https://docs.anthropic.com/en/api/retrieving-message-batches)$$\n sql: |\n SELECT claude_utils.get(\n '/v1/messages/batches'\n ) as response\n\n- name: {{ schema_name -}}.list_message_batches_with_before\n signature:\n - [BEFORE_ID, STRING, ID of the Message Batch to start listing from]\n - [LIMIT, INTEGER, Maximum number of Message Batches to return]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$List all Message Batches [API docs: List Message Batches](https://docs.anthropic.com/en/api/retrieving-message-batches)$$\n sql: |\n SELECT claude_utils.get(\n CONCAT('/v1/messages/batches',\n '?before_id=', COALESCE(BEFORE_ID, ''),\n '&limit=', COALESCE(LIMIT::STRING, '')\n )\n ) as response\n\n- name: {{ schema_name -}}.list_message_batches_with_after\n signature:\n - [AFTER_ID, STRING, ID of the Message Batch to start listing from]\n - [LIMIT, INTEGER, Maximum number of Message Batches to return]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$List all Message Batches [API docs: List Message Batches](https://docs.anthropic.com/en/api/retrieving-message-batches)$$\n sql: |\n SELECT claude_utils.get(\n CONCAT('/v1/messages/batches',\n '?after_id=', COALESCE(AFTER_ID, ''),\n '&limit=', COALESCE(LIMIT::STRING, '')\n )\n ) as response\n- name: {{ schema_name -}}.cancel_message_batch\n signature:\n - [MESSAGE_BATCH_ID, STRING, ID of the Message Batch to cancel]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Cancel a Message Batch [API docs: Cancel Message Batch](https://docs.anthropic.com/en/api/retrieving-message-batches)$$\n sql: |\n SELECT claude_utils.post(\n CONCAT('/v1/messages/batches/', MESSAGE_BATCH_ID, '/cancel'),\n {}\n ) as response\n\n- name: {{ schema_name -}}.delete_message_batch\n signature:\n - [MESSAGE_BATCH_ID, STRING, ID of the Message Batch to delete]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Delete a Message Batch [API docs: Delete Message Batch](https://docs.anthropic.com/en/api/retrieving-message-batches)$$\n sql: |\n SELECT claude_utils.delete_method(\n CONCAT('/v1/messages/batches/', MESSAGE_BATCH_ID)\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8475597, "supported_languages": null}, "macro.livequery_models.config_claude_messages_udfs": {"name": "config_claude_messages_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/claude/messages_udfs.yaml.sql", "original_file_path": "macros/marketplace/claude/messages_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_claude_messages_udfs", "macro_sql": "{% macro config_claude_messages_udfs(schema_name = \"claude\", utils_schema_name = \"claude_utils\") -%}\n{#\n This macro is used to generate API calls to Claude API endpoints\n #}\n\n{# Claude API Messages #}\n- name: {{ schema_name -}}.post_messages\n signature:\n - [MESSAGES, ARRAY, Array of message objects]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Send a message to Claude and get a response [API docs: Messages](https://docs.anthropic.com/claude/reference/messages_post)$$\n sql: |\n SELECT claude_utils.post(\n '/v1/messages',\n {\n 'model': 'claude-3-5-sonnet-20241022',\n 'messages': MESSAGES,\n 'max_tokens': 4096\n }\n ) as response\n\n- name: {{ schema_name -}}.post_messages\n signature:\n - [MODEL, STRING, The model to use (e.g. 'claude-3-opus-20240229')]\n - [MESSAGES, ARRAY, Array of message objects]\n - [MAX_TOKENS, INTEGER, Maximum number of tokens to generate]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Send a message to Claude and get a response [API docs: Messages](https://docs.anthropic.com/claude/reference/messages_post)$$\n sql: |\n SELECT claude_utils.post(\n '/v1/messages',\n {\n 'model': COALESCE(MODEL, 'claude-3-5-sonnet-20241022'),\n 'messages': MESSAGES,\n 'max_tokens': COALESCE(MAX_TOKENS, 1024)\n }\n ) as response\n\n- name: {{ schema_name -}}.post_messages\n signature:\n - [MODEL, STRING, The model to use (e.g. 'claude-3-opus-20240229')]\n - [MESSAGES, ARRAY, Array of message objects]\n - [MAX_TOKENS, INTEGER, Maximum number of tokens to generate]\n - [TEMPERATURE, FLOAT, Temperature for sampling (0-1)]\n - [TOP_K, INTEGER, Top K for sampling]\n - [TOP_P, FLOAT, Top P for sampling]\n - [SYSTEM, STRING, System prompt to use]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Send a message to Claude and get a response [API docs: Messages](https://docs.anthropic.com/claude/reference/messages_post)$$\n sql: |\n SELECT claude_utils.post(\n '/v1/messages',\n {\n 'model': MODEL,\n 'messages': MESSAGES,\n 'max_tokens': MAX_TOKENS,\n 'temperature': TEMPERATURE,\n 'top_k': TOP_K,\n 'top_p': TOP_P,\n 'system': SYSTEM\n }\n ) as response\n\n- name: {{ schema_name -}}.count_message_tokens\n signature:\n - [MODEL, STRING, The model to use (e.g. 'claude-3-5-sonnet-20241022')]\n - [MESSAGES, ARRAY, Array of message objects]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Count tokens in a message array before sending to Claude [API docs: Count Tokens](https://docs.anthropic.com/claude/reference/counting-tokens)$$\n sql: |\n SELECT claude_utils.post(\n '/v1/messages/count_tokens',\n {\n 'model': COALESCE(MODEL, 'claude-3-5-sonnet-20241022'),\n 'messages': MESSAGES\n }\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8490965, "supported_languages": null}, "macro.livequery_models.config_strangelove_udfs": {"name": "config_strangelove_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/strangelove/udfs.yaml.sql", "original_file_path": "macros/marketplace/strangelove/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_strangelove_udfs", "macro_sql": "{% macro config_strangelove_udfs(schema_name = \"strangelove\", utils_schema_name = \"strangelove_utils\") -%}\n{#\n This macro is used to generate the Subquery Calls\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [URL, STRING, The url to issue a get request to]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Issue a GET request to a Strangelove Endpoint [Strangelove docs here](https://voyager.strange.love/docs/cosmoshub/mainnet#/).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat(\n URL, '?',\n utils.udf_object_to_url_query_string(QUERY_ARGS)\n ),\n {'x-apikey': '{API_KEY}'},\n {},\n '_FSC_SYS/STRANGELOVE'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [URL, STRING, The url to issue a post request to]\n - [QUERY, OBJECT, The body of the request]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Issue a POST request to a Strangelove Endpoint [Strangelove docs here](https://voyager.strange.love/docs/cosmoshub/mainnet#/).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n URL,\n {'x-apikey': '{API_KEY}'},\n QUERY,\n '_FSC_SYS/STRANGELOVE'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8498244, "supported_languages": null}, "macro.livequery_models.config_dune_udfs": {"name": "config_dune_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/dune/udfs.yaml.sql", "original_file_path": "macros/marketplace/dune/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_dune_udfs", "macro_sql": "{% macro config_dune_udfs(schema_name = \"dune\", utils_schema_name=\"dune_utils\") -%}\n{#\n This macro is used to generate the Dune Base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Dune API. [Dune docs here](https://dune.com/docs/api/api-reference/authentication/).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://api.dune.com', PATH, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'x-dune-api-key': '{API_KEY}'},\n {},\n '_FSC_SYS/DUNE'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the Dune API. [Dune docs here](https://dune.com/docs/api/api-reference/authentication/).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n CONCAT('https://api.dune.com', PATH),\n {'x-dune-api-key': '{API_KEY}'},\n BODY,\n '_FSC_SYS/DUNE'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8505442, "supported_languages": null}, "macro.livequery_models.config_fred_udfs": {"name": "config_fred_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/fred/udfs.yaml.sql", "original_file_path": "macros/marketplace/fred/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_fred_udfs", "macro_sql": "{% macro config_fred_udfs(schema_name = \"fred\", utils_schema_name = \"fred_utils\") -%}\n{#\n This macro is used to generate the FRED Calls\n #}\n- name: {{ schema_name -}}.get_series\n signature:\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Get a FRED series [FRED docs here](https://fred.stlouisfed.org/docs/api/fred/series.html).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://api.stlouisfed.org/fred/series/observations?api_key={API_KEY}&', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {},\n {},\n '_FSC_SYS/FRED'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8510394, "supported_languages": null}, "macro.livequery_models.config_espn_udfs": {"name": "config_espn_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/espn/udfs.yaml.sql", "original_file_path": "macros/marketplace/espn/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_espn_udfs", "macro_sql": "{% macro config_espn_udfs(schema_name = \"espn\", utils_schema_name=\"espn_utils\") -%}\n{#\n This macro is used to generate the ESPN Base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [URL, STRING, The full url including the path]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the ESPN API. [ESPN docs here](https://gist.github.com/akeaswaran/b48b02f1c94f873c6655e7129910fc3b#file-espn-api-docs-md).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat(URL, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {},\n {}\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [URL, STRING, The full url]\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the ESPN API. [ESPN docs here](https://gist.github.com/akeaswaran/b48b02f1c94f873c6655e7129910fc3b#file-espn-api-docs-md).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n URL,\n {},\n BODY\n ) as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.851721, "supported_languages": null}, "macro.livequery_models.config_solscan_udfs": {"name": "config_solscan_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/solscan/udfs.yaml.sql", "original_file_path": "macros/marketplace/solscan/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_solscan_udfs", "macro_sql": "{% macro config_solscan_udfs(schema_name = \"solscan\", utils_schema_name=\"solscan_utils\") -%}\n{#\n This macro is used to generate the Solscan Base endpoints\n #}\n\n- name: {{ schema_name -}}.pro_api_get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Private Solscan API. [Solscan docs here](https://pro-api.solscan.io/pro-api-docs/v1.0).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://pro-api.solscan.io', PATH, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'token': '{API_KEY}'},\n {},\n '_FSC_SYS/SOLSCAN'\n ) as response\n\n- name: {{ schema_name -}}.pro_api_post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the Private Solscan API. [Solscan docs here](https://pro-api.solscan.io/pro-api-docs/v1.0).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n CONCAT('https://pro-api.solscan.io', PATH),\n {'token': '{API_KEY}'},\n BODY,\n '_FSC_SYS/SOLSCAN'\n ) as response\n\n- name: {{ schema_name -}}.public_api_get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Public Solscan API. [Solscan docs here](https://public-api.solscan.io/docs/#/).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://public-api.solscan.io', PATH, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'token': '{API_KEY}'},\n {},\n '_FSC_SYS/SOLSCAN'\n ) as response\n\n- name: {{ schema_name -}}.public_api_post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the Public Solscan API. [Solscan docs here](https://public-api.solscan.io/docs/#/).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n CONCAT('https://public-api.solscan.io', PATH),\n {'token': '{API_KEY}'},\n BODY,\n '_FSC_SYS/SOLSCAN'\n ) as response\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.852929, "supported_languages": null}, "macro.livequery_models.config_dappradar_udfs": {"name": "config_dappradar_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/dappradar/udfs.yaml.sql", "original_file_path": "macros/marketplace/dappradar/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_dappradar_udfs", "macro_sql": "{% macro config_dappradar_udfs(schema_name = \"dappradar\", utils_schema_name=\"dappradar_utils\") -%}\n{#\n This macro is used to generate the DappRadar Base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the DappRadar API. [DappRadar docs here](https://api-docs.dappradar.com/#section/Introduction).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://apis.dappradar.com', PATH, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'X-API-KEY': '{API_KEY}'},\n {},\n '_FSC_SYS/DAPPRADAR'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the DappRadar API. [DappRadar docs here](https://api-docs.dappradar.com/#section/Introduction).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n CONCAT('https://apis.dappradar.com', PATH),\n {'X-API-KEY': '{API_KEY}'},\n BODY,\n '_FSC_SYS/DAPPRADAR'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8536468, "supported_languages": null}, "macro.livequery_models.config_covalent_udfs": {"name": "config_covalent_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/covalent/udfs.yaml.sql", "original_file_path": "macros/marketplace/covalent/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_covalent_udfs", "macro_sql": "{% macro config_covalent_udfs(schema_name = \"covalent\", utils_schema_name=\"covalent_utils\") -%}\n{#\n This macro is used to generate the Covalent Base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Covalent API. [Covalent docs here](https://www.covalenthq.com/docs/unified-api/).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://api.covalenthq.com', PATH, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'Authorization': 'Bearer {API_KEY}'},\n {},\n '_FSC_SYS/COVALENT'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the Covalent API. [Covalent docs here](https://www.covalenthq.com/docs/unified-api/).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n CONCAT('https://api.covalenthq.com', PATH),\n {'Authorization': 'Bearer {API_KEY}'},\n BODY,\n '_FSC_SYS/COVALENT'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8543718, "supported_languages": null}, "macro.livequery_models.config_deepnftvalue_udfs": {"name": "config_deepnftvalue_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/deepnftvalue/udfs.yaml.sql", "original_file_path": "macros/marketplace/deepnftvalue/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_deepnftvalue_udfs", "macro_sql": "{% macro config_deepnftvalue_udfs(schema_name = \"deepnftvalue\", utils_schema_name=\"deepnftvalue_utils\") -%}\n{#\n This macro is used to generate the DeepNftValue Base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the DeepNftValue API. [DeepNftValue docs here](https://deepnftvalue.readme.io/reference/getting-started-with-deepnftvalue-api).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://api.deepnftvalue.com', PATH, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'Authorization': 'Token {API_KEY}'},\n {},\n '_FSC_SYS/DEEPNFTVALUE'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the DeepNftValue API. [DeepNftValue docs here](https://deepnftvalue.readme.io/reference/getting-started-with-deepnftvalue-api).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n CONCAT('https://api.deepnftvalue.com', PATH),\n {'Authorization': 'Token {API_KEY}'},\n BODY,\n '_FSC_SYS/DEEPNFTVALUE'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.855099, "supported_languages": null}, "macro.livequery_models.config_github_actions_udtfs": {"name": "config_github_actions_udtfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/github/actions_udtfs.yml.sql", "original_file_path": "macros/marketplace/github/actions_udtfs.yml.sql", "unique_id": "macro.livequery_models.config_github_actions_udtfs", "macro_sql": "{% macro config_github_actions_udtfs(schema_name = \"github_actions\", utils_schema_name = \"github_utils\") -%}\n{#\n This macro is used to generate the Github API Calls\n #}\n- name: {{ schema_name -}}.tf_workflows\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n - [query, \"OBJECT\"]\n return_type:\n - \"TABLE(id INTEGER, badge_url STRING, created_at TIMESTAMP, html_url STRING, name STRING, node_id STRING, path STRING, state STRING, updated_at TIMESTAMP, url STRING)\"\n options: |\n COMMENT = $$[List repository workflows](https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#list-repository-workflows).$$\n sql: |\n WITH workflows AS\n (\n SELECT\n github_actions.workflows(OWNER, REPO, QUERY) AS response\n )\n SELECT\n value:id::INTEGER AS id\n ,value:badge_url::STRING AS badge_url\n ,value:created_at::TIMESTAMP AS created_at\n ,value:html_url::STRING AS html_url\n ,value:name::STRING AS name\n ,value:node_id::STRING AS node_id\n ,value:path::STRING AS path\n ,value:state::STRING AS state\n ,value:updated_at::TIMESTAMP AS updated_at\n ,value:url::STRING AS url\n FROM workflows, LATERAL FLATTEN( input=> response:workflows)\n- name: {{ schema_name -}}.tf_workflows\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n return_type:\n - \"TABLE(id INTEGER, badge_url STRING, created_at TIMESTAMP, html_url STRING, name STRING, node_id STRING, path STRING, state STRING, updated_at TIMESTAMP, url STRING)\"\n options: |\n COMMENT = $$[List repository workflows](https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#list-repository-workflows).$$\n sql: |\n SELECT *\n FROM TABLE({{ schema_name -}}.tf_workflows(owner, repo, {}))\n\n- name: {{ schema_name -}}.tf_runs\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n - [query, \"OBJECT\"]\n return_type:\n - \"TABLE(id NUMBER, name STRING, node_id STRING, check_suite_id NUMBER, check_suite_node_id STRING, head_branch STRING, head_sha STRING, run_number NUMBER, event STRING, display_title STRING, status STRING, conclusion STRING, workflow_id NUMBER, url STRING, html_url STRING, pull_requests STRING, created_at TIMESTAMP, updated_at TIMESTAMP, actor OBJECT, run_attempt STRING, run_started_at TIMESTAMP, triggering_actor OBJECT, jobs_url STRING, logs_url STRING, check_suite_url STRING, artifacts_url STRING, cancel_url STRING, rerun_url STRING, workflow_url STRING, head_commit OBJECT, repository OBJECT, head_repository OBJECT)\"\n options: |\n COMMENT = $$Lists all workflow runs for a repository. You can use query parameters to narrow the list of results. [Docs](https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-repository).$$\n\n sql: |\n WITH response AS\n (\n SELECT\n github_actions.runs(OWNER, REPO, QUERY) AS response\n )\n SELECT\n value:id::NUMBER AS id\n ,value:name::STRING AS name\n ,value:node_id::STRING AS node_id\n ,value:check_suite_id::NUMBER AS check_suite_id\n ,value:check_suite_node_id::STRING AS check_suite_node_id\n ,value:head_branch::STRING AS head_branch\n ,value:head_sha::STRING AS head_sha\n ,value:run_number::NUMBER AS run_number\n ,value:event::STRING AS event\n ,value:display_title::STRING AS display_title\n ,value:status::STRING AS status\n ,value:conclusion::STRING AS conclusion\n ,value:workflow_id::NUMBER AS workflow_id\n ,value:url::STRING AS url\n ,value:html_url::STRING AS html_url\n ,value:pull_requests::STRING AS pull_requests\n ,value:created_at::TIMESTAMP AS created_at\n ,value:updated_at::TIMESTAMP AS updated_at\n ,value:actor::OBJECT AS actor\n ,value:run_attempt::STRING AS run_attempt\n ,value:run_started_at::TIMESTAMP AS run_started_at\n ,value:triggering_actor::OBJECT AS triggering_actor\n ,value:jobs_url::STRING AS jobs_url\n ,value:logs_url::STRING AS logs_url\n ,value:check_suite_url::STRING AS check_suite_url\n ,value:artifacts_url::STRING AS artifacts_url\n ,value:cancel_url::STRING AS cancel_url\n ,value:rerun_url::STRING AS rerun_url\n ,value:workflow_url::STRING AS workflow_url\n ,value:head_commit::OBJECT AS head_commit\n ,value:repository::OBJECT AS repository\n ,value:head_repository::OBJECT AS head_repository\n FROM response, LATERAL FLATTEN( input=> response:workflow_runs)\n- name: {{ schema_name -}}.tf_runs\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n return_type:\n - \"TABLE(id NUMBER, name STRING, node_id STRING, check_suite_id NUMBER, check_suite_node_id STRING, head_branch STRING, head_sha STRING, run_number NUMBER, event STRING, display_title STRING, status STRING, conclusion STRING, workflow_id NUMBER, url STRING, html_url STRING, pull_requests STRING, created_at TIMESTAMP, updated_at TIMESTAMP, actor OBJECT, run_attempt STRING, run_started_at TIMESTAMP, triggering_actor OBJECT, jobs_url STRING, logs_url STRING, check_suite_url STRING, artifacts_url STRING, cancel_url STRING, rerun_url STRING, workflow_url STRING, head_commit OBJECT, repository OBJECT, head_repository OBJECT)\"\n options: |\n COMMENT = $$Lists all workflow runs for a repository. You can use query parameters to narrow the list of results. [Docs](https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-repository).$$\n sql: |\n SELECT *\n FROM TABLE({{ schema_name -}}.tf_runs(owner, repo, {}))\n\n- name: {{ schema_name -}}.tf_workflow_runs\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n - [workflkow_id, \"TEXT\"]\n - [query, \"OBJECT\"]\n return_type:\n - \"TABLE(id NUMBER, name STRING, node_id STRING, check_suite_id NUMBER, check_suite_node_id STRING, head_branch STRING, head_sha STRING, run_number NUMBER, event STRING, display_title STRING, status STRING, conclusion STRING, workflow_id NUMBER, url STRING, html_url STRING, pull_requests STRING, created_at TIMESTAMP, updated_at TIMESTAMP, actor OBJECT, run_attempt STRING, run_started_at TIMESTAMP, triggering_actor OBJECT, jobs_url STRING, logs_url STRING, check_suite_url STRING, artifacts_url STRING, cancel_url STRING, rerun_url STRING, workflow_url STRING, head_commit OBJECT, repository OBJECT, head_repository OBJECT)\"\n options: |\n COMMENT = $$Lists all workflow runs for a repository. You can use query parameters to narrow the list of results. [Docs](https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-repository).$$\n sql: |\n WITH response AS\n (\n SELECT\n github_actions.workflow_runs(OWNER, REPO, WORKFLKOW_ID, QUERY) AS response\n )\n SELECT\n value:id::NUMBER AS id\n ,value:name::STRING AS name\n ,value:node_id::STRING AS node_id\n ,value:check_suite_id::NUMBER AS check_suite_id\n ,value:check_suite_node_id::STRING AS check_suite_node_id\n ,value:head_branch::STRING AS head_branch\n ,value:head_sha::STRING AS head_sha\n ,value:run_number::NUMBER AS run_number\n ,value:event::STRING AS event\n ,value:display_title::STRING AS display_title\n ,value:status::STRING AS status\n ,value:conclusion::STRING AS conclusion\n ,value:workflow_id::NUMBER AS workflow_id\n ,value:url::STRING AS url\n ,value:html_url::STRING AS html_url\n ,value:pull_requests::STRING AS pull_requests\n ,value:created_at::TIMESTAMP AS created_at\n ,value:updated_at::TIMESTAMP AS updated_at\n ,value:actor::OBJECT AS actor\n ,value:run_attempt::STRING AS run_attempt\n ,value:run_started_at::TIMESTAMP AS run_started_at\n ,value:triggering_actor::OBJECT AS triggering_actor\n ,value:jobs_url::STRING AS jobs_url\n ,value:logs_url::STRING AS logs_url\n ,value:check_suite_url::STRING AS check_suite_url\n ,value:artifacts_url::STRING AS artifacts_url\n ,value:cancel_url::STRING AS cancel_url\n ,value:rerun_url::STRING AS rerun_url\n ,value:workflow_url::STRING AS workflow_url\n ,value:head_commit::OBJECT AS head_commit\n ,value:repository::OBJECT AS repository\n ,value:head_repository::OBJECT AS head_repository\n FROM response, LATERAL FLATTEN( input=> response:workflow_runs)\n- name: {{ schema_name -}}.tf_workflow_runs\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n - [workflkow_id, \"TEXT\"]\n return_type:\n - \"TABLE(id NUMBER, name STRING, node_id STRING, check_suite_id NUMBER, check_suite_node_id STRING, head_branch STRING, head_sha STRING, run_number NUMBER, event STRING, display_title STRING, status STRING, conclusion STRING, workflow_id NUMBER, url STRING, html_url STRING, pull_requests STRING, created_at TIMESTAMP, updated_at TIMESTAMP, actor OBJECT, run_attempt STRING, run_started_at TIMESTAMP, triggering_actor OBJECT, jobs_url STRING, logs_url STRING, check_suite_url STRING, artifacts_url STRING, cancel_url STRING, rerun_url STRING, workflow_url STRING, head_commit OBJECT, repository OBJECT, head_repository OBJECT)\"\n options: |\n COMMENT = $$Lists all workflow runs for a repository. You can use query parameters to narrow the list of results. [Docs](https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-repository).$$\n sql: |\n SELECT *\n FROM TABLE({{ schema_name -}}.tf_workflow_runs(owner, repo, WORKFLKOW_ID, {}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8597684, "supported_languages": null}, "macro.livequery_models.config_github_actions_udfs": {"name": "config_github_actions_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/github/actions_udfs.yaml.sql", "original_file_path": "macros/marketplace/github/actions_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_github_actions_udfs", "macro_sql": "{% macro config_github_actions_udfs(schema_name = \"github_actions\", utils_schema_name = \"github_utils\") -%}\n{#\n This macro is used to generate the Github API Calls\n #}\n- name: {{ schema_name -}}.workflows\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n - [query, \"OBJECT\"]\n return_type:\n - \"OBJECT\"\n options: |\n COMMENT = $$[List repository workflows](https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#list-repository-workflows).$$\n sql: |\n SELECT\n {{ utils_schema_name }}.GET(\n CONCAT_WS('/', 'repos', owner, repo, 'actions/workflows'),\n query\n ):data::OBJECT\n- name: {{ schema_name -}}.workflows\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n return_type:\n - \"OBJECT\"\n options: |\n COMMENT = $$[List repository workflows](https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#list-repository-workflows).$$\n sql: |\n SELECT\n {{ schema_name -}}.workflows(owner, repo, {})\n\n- name: {{ schema_name -}}.runs\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n - [query, \"OBJECT\"]\n return_type:\n - \"OBJECT\"\n options: |\n COMMENT = $$Lists all workflow runs for a repository. You can use query parameters to narrow the list of results. [Docs](https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-repository).$$\n sql: |\n SELECT\n {{ utils_schema_name }}.GET(\n CONCAT_WS('/', 'repos', owner, repo, 'actions/runs'),\n query\n ):data::OBJECT\n- name: {{ schema_name -}}.runs\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n return_type:\n - \"OBJECT\"\n options: |\n COMMENT = $$Lists all workflow runs for a repository. You can use query parameters to narrow the list of results. [Docs](https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-repository).$$\n sql: |\n SELECT\n {{ schema_name -}}.runs(owner, repo, {})\n\n- name: {{ schema_name -}}.workflow_runs\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n - [workflow_id, \"TEXT\"]\n - [query, \"OBJECT\"]\n return_type:\n - \"OBJECT\"\n options: |\n COMMENT = $$List all workflow runs for a workflow. You can replace workflow_id with the workflow file name. You can use query parameters to narrow the list of results. [Docs](https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-workflow).$$\n sql: |\n SELECT\n {{ utils_schema_name }}.GET(\n CONCAT_WS('/', 'repos', owner, repo, 'actions/workflows', workflow_id, 'runs'),\n query\n ):data::OBJECT\n- name: {{ schema_name -}}.workflow_runs\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n - [workflow_id, \"TEXT\"]\n return_type:\n - \"OBJECT\"\n options: |\n COMMENT = $$List all workflow runs for a workflow. You can replace workflow_id with the workflow file name. You can use query parameters to narrow the list of results. [Docs](https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-workflow).$$\n sql: |\n SELECT\n {{ schema_name -}}.workflow_runs(owner, repo, workflow_id, {})\n\n- name: {{ schema_name -}}.workflow_dispatches\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n - [workflow_id, \"TEXT\"]\n - [body, \"OBJECT\"]\n return_type:\n - \"OBJECT\"\n options: |\n COMMENT = $$You can use this endpoint to manually trigger a GitHub Actions workflow run. You can replace workflow_id with the workflow file name. For example, you could use main.yaml. [Docs](https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#create-a-workflow-dispatch-event).$$\n sql: |\n SELECT\n {{ utils_schema_name }}.POST(\n CONCAT_WS('/', 'repos', owner, repo, 'actions/workflows', workflow_id, 'dispatches'),\n COALESCE(body, {'ref': 'main'})::OBJECT\n )::OBJECT\n\n- name: {{ schema_name -}}.workflow_dispatches\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n - [workflow_id, \"TEXT\"]\n return_type:\n - \"OBJECT\"\n options: |\n COMMENT = $$You can use this endpoint to manually trigger a GitHub Actions workflow run. You can replace workflow_id with the workflow file name. For example, you could use main.yaml. [Docs](https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#create-a-workflow-dispatch-event).$$\n sql: |\n SELECT\n {{ schema_name -}}.workflow_dispatches(owner, repo, workflow_id, NULL)\n\n- name: {{ schema_name -}}.workflow_enable\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n - [workflow_id, \"TEXT\"]\n return_type:\n - \"OBJECT\"\n options: |\n COMMENT = $$Enables a workflow. You can replace workflow_id with the workflow file name. For example, you could use main.yaml. [Docs](https://docs.github.com/en/rest/reference/actions#enable-a-workflow).$$\n sql: |\n SELECT\n {{ utils_schema_name }}.PUT(\n CONCAT_WS('/', 'repos', owner, repo, 'actions/workflows', workflow_id, 'enable'),\n {}\n )::OBJECT\n- name: {{ schema_name -}}.workflow_disable\n signature:\n - [owner, \"TEXT\"]\n - [repo, \"TEXT\"]\n - [workflow_id, \"TEXT\"]\n return_type:\n - \"OBJECT\"\n options: |\n COMMENT = $$Disables a workflow. You can replace workflow_id with the workflow file name. For example, you could use main.yaml. [Docs](https://docs.github.com/en/rest/reference/actions#disable-a-workflow).$$\n sql: |\n SELECT\n {{ utils_schema_name }}.PUT(\n CONCAT_WS('/', 'repos', owner, repo, 'actions/workflows', workflow_id, 'disable'),\n {}\n )::OBJECT\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8650343, "supported_languages": null}, "macro.livequery_models.config_github_utils_udfs": {"name": "config_github_utils_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/github/utils_udfs.yaml.sql", "original_file_path": "macros/marketplace/github/utils_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_github_utils_udfs", "macro_sql": "{% macro config_github_utils_udfs(schema_name = \"github_utils\", utils_schema_name = \"github_utils\") -%}\n{#\n This macro is used to generate the Github API Calls\n #}\n- name: {{ schema_name -}}.octocat\n signature:\n - []\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Verify token [Authenticating to the REST API](https://docs.github.com/en/rest/overview/authenticating-to-the-rest-api?apiVersion=2022-11-28).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n 'https://api.github.com/octocat',\n {'Authorization': 'Bearer {TOKEN}',\n 'X-GitHub-Api-Version': '2022-11-28'},\n {},\n IFF(_utils.udf_whoami() <> CURRENT_USER(), '_FSC_SYS/GITHUB', 'vault/github/api')\n \n ) as response\n\n- name: {{ schema_name -}}.headers\n signature: []\n return_type:\n - \"TEXT\"\n options: |\n NOT NULL\n IMMUTABLE\n MEMOIZABLE\n sql: |\n SELECT '{\"Authorization\": \"Bearer {TOKEN}\",\n \"X-GitHub-Api-Version\": \"2022-11-28\",\n \"Accept\": \"application/vnd.github+json\"}'\n\n- name: {{ schema_name -}}.get\n signature:\n - [route, \"TEXT\"]\n - [query, \"OBJECT\"]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$List all workflow runs for a workflow. You can replace workflow_id with the workflow file name. You can use parameters to narrow the list of results. [Docs](https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-workflow).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n CONCAT_WS('/', 'https://api.github.com', route || '?') || utils.udf_urlencode(query),\n PARSE_JSON({{ schema_name -}}.headers()),\n {},\n IFF(_utils.udf_whoami() <> CURRENT_USER(), '_FSC_SYS/GITHUB', 'vault/github/api')\n )\n- name: {{ schema_name -}}.post\n signature:\n - [route, \"TEXT\"]\n - [data, \"OBJECT\"]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$List all workflow runs for a workflow. You can replace workflow_id with the workflow file name. You can use parameters to narrow the list of results. [Docs](https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-workflow).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n CONCAT_WS('/', 'https://api.github.com', route),\n PARSE_JSON({{ schema_name -}}.headers()),\n data,\n IFF(_utils.udf_whoami() <> CURRENT_USER(), '_FSC_SYS/GITHUB', 'vault/github/api')\n )\n- name: {{ schema_name -}}.put\n signature:\n - [route, \"TEXT\"]\n - [data, \"OBJECT\"]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$List all workflow runs for a workflow. You can replace workflow_id with the workflow file name. You can use parameters to narrow the list of results. [Docs](https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-workflow).$$\n sql: |\n SELECT\n live.udf_api(\n 'PUT',\n CONCAT_WS('/', 'https://api.github.com', route),\n PARSE_JSON({{ schema_name -}}.headers()),\n data,\n IFF(_utils.udf_whoami() <> CURRENT_USER(), '_FSC_SYS/GITHUB', 'vault/github/api')\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8669083, "supported_languages": null}, "macro.livequery_models.config_nftscan_udfs": {"name": "config_nftscan_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/nftscan/udfs.yaml.sql", "original_file_path": "macros/marketplace/nftscan/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_nftscan_udfs", "macro_sql": "{% macro config_nftscan_udfs(schema_name = \"nftscan\", utils_schema_name=\"nftscan_utils\") -%}\n{#\n This macro is used to generate the NFTScan Base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [URL, STRING, The full url including the path]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the NFTScan API. [NFTScan docs here](https://docs.nftscan.com/guides/Overview/1).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat(URL, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'X-API-KEY': '{API_KEY}'},\n {},\n '_FSC_SYS/NFTSCAN'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [URL, STRING, The full url]\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the NFTScan API. [NFTScan docs here](https://docs.nftscan.com/guides/Overview/1).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n URL,\n {'X-API-KEY': '{API_KEY}'},\n BODY,\n '_FSC_SYS/NFTSCAN'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8676052, "supported_languages": null}, "macro.livequery_models.config_chainbase_utils_udfs": {"name": "config_chainbase_utils_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/chainbase/util_udfs.yaml.sql", "original_file_path": "macros/marketplace/chainbase/util_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_chainbase_utils_udfs", "macro_sql": "{% macro config_chainbase_utils_udfs(schema_name = \"chainbase_utils\", utils_schema_name=\"chainbase_utils\") -%}\n{#\n This macro is used to generate the alchemy base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Chainbase API. [Chainbase Docs](https://docs.chainbase.com/reference/supported-chains)$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat(\n 'https://api.chainbase.online', PATH, '?',\n utils.udf_object_to_url_query_string(QUERY_ARGS)\n ),\n {'x-api-key': '{API_KEY}'},\n {},\n '_FSC_SYS/CHAINBASE'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the Chainbase API. [Chainbase Docs](https://docs.chainbase.com/reference/supported-chains)$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n concat('https://api.chainbase.online', PATH),\n {'x-api-key': '{API_KEY}'},\n BODY,\n '_FSC_SYS/CHAINBASE'\n ) as response\n\n- name: {{ schema_name -}}.rpc\n signature:\n - [METHOD, STRING, The RPC method to call]\n - [PARAMS, ARRAY, The RPC Params arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue an RPC call to Chainbase. [Chainbase Docs](https://docs.chainbase.com/reference/supported-chains)$$\n sql: |\n SELECT live.udf_api(\n 'POST',\n concat('https://api.chainbase.online'),\n {'x-api-key': '{API_KEY}'},\n {'id': 1,'jsonrpc': '2.0','method': METHOD,'params': PARAMS},\n '_FSC_SYS/CHAINBASE') as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8685663, "supported_languages": null}, "macro.livequery_models.config_snapshot_udfs": {"name": "config_snapshot_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/snapshot/udfs.yaml.sql", "original_file_path": "macros/marketplace/snapshot/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_snapshot_udfs", "macro_sql": "{% macro config_snapshot_udfs(schema_name = \"snapshot\", utils_schema_name=\"snapshot_utils\") -%}\n{#\n This macro is used to generate the Snapshot Base endpoints\n #}\n\n- name: {{ schema_name -}}.query\n signature:\n - [QUERY, OBJECT, The GraphQL query]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a Graphql Query to the Snapshot API. [Snapshot docs here](https://docs.snapshot.org/tools/api).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n 'https://hub.snapshot.org/graphql',\n {},\n QUERY\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8690326, "supported_languages": null}, "macro.livequery_models.config_reservoir_udfs": {"name": "config_reservoir_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/reservoir/udfs.yaml.sql", "original_file_path": "macros/marketplace/reservoir/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_reservoir_udfs", "macro_sql": "{% macro config_reservoir_udfs(schema_name = \"reservoir\", utils_schema_name=\"reservoir_utils\") -%}\n{#\n This macro is used to generate the Reservoir Base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Reservoir NFT Data API. [Reservoir docs here](https://docs.reservoir.tools/reference/nft-data-overview).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://api.reservoir.tools', PATH, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'x-api-key': '{API_KEY}'},\n NULL,\n '_FSC_SYS/RESERVOIR'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the Reservoir NFT Data API. [Reservoir docs here](https://docs.reservoir.tools/reference/nft-data-overview).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n concat('https://api.reservoir.tools', PATH),\n {'x-api-key': '{API_KEY}'},\n BODY,\n '_FSC_SYS/RESERVOIR'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.869749, "supported_languages": null}, "macro.livequery_models.config_defillama_udfs": {"name": "config_defillama_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/defillama/udfs.yaml.sql", "original_file_path": "macros/marketplace/defillama/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_defillama_udfs", "macro_sql": "{% macro config_defillama_udfs(schema_name = \"defillama\", utils_schema_name=\"defillama_utils\") -%}\n{#\n This macro is used to generate the Defillama endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Defillama API. [Defillama docs here](https://defillama.com/docs/api).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://api.llama.fi', PATH, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'Accept': '*/*', 'User-Agent': 'livequery/1.0 (Snowflake)', 'Host':'api.llama.fi', 'Connection': 'keep-alive'},\n NULL,\n IFF(ARRAY_CONTAINS('api_key'::VARIANT, OBJECT_KEYS(QUERY_ARGS)), '_FSC_SYS/DEFILLAMA', '')\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8704073, "supported_languages": null}, "macro.livequery_models.config_bitquery_udfs": {"name": "config_bitquery_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/bitquery/udfs.yaml.sql", "original_file_path": "macros/marketplace/bitquery/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_bitquery_udfs", "macro_sql": "{% macro config_bitquery_udfs(schema_name = \"bitquery\", utils_schema_name = \"bitquery_utils\") -%}\n{#\n This macro is used to generate the BitQuery calls\n #}\n\n- name: {{ schema_name -}}.graphql\n signature:\n - [QUERY, OBJECT, The GraphQL query]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Run a graphql query on BitQuery [BitQuery docs here](https://docs.bitquery.io/docs/start/first-query/).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n 'https://graphql.bitquery.io',\n {'X-API-KEY': '{API_KEY}'},\n QUERY,\n '_FSC_SYS/BITQUERY'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8709123, "supported_languages": null}, "macro.livequery_models.config_helius_apis_udfs": {"name": "config_helius_apis_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/helius/apis_udfs.yaml.sql", "original_file_path": "macros/marketplace/helius/apis_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_helius_apis_udfs", "macro_sql": "{% macro config_helius_apis_udfs(schema_name = \"helius_apis\", utils_schema_name = \"helius_utils\") -%}\n{#\n This macro is used to generate the Helius API endpoints\n #}\n\n- name: {{ schema_name -}}.token_metadata\n signature:\n - [NETWORK, STRING, mainnet or devnet]\n - [BODY, OBJECT, The body of the API request]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns metadata for a list of given token mint addresses. [Helius docs here](https://docs.helius.xyz/solana-apis/token-metadata-api).$$\n sql: {{ helius_post_call(utils_schema_name, '/v0/token-metadata') | trim }}\n\n- name: {{ schema_name -}}.balances\n signature:\n - [NETWORK, STRING, mainnet or devnet]\n - [ADDRESS, STRING, The address to retrieve balances for]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns the native Solana balance (in lamports) and all token balances for a given address. [Helius docs here](https://docs.helius.xyz/solana-apis/balances-api).$$\n sql: |\n SELECT live.udf_api(\n 'GET',\n CASE \n WHEN NETWORK = 'devnet' THEN \n concat('https://api-devnet.helius.xyz/v0/addresses/', ADDRESS, '/balances?api-key={API_KEY}')\n ELSE \n concat('https://api.helius.xyz/v0/addresses/', ADDRESS, '/balances?api-key={API_KEY}')\n END,\n {},\n {},\n '_FSC_SYS/HELIUS'\n ) as response\n\n- name: {{ schema_name -}}.parse_transactions\n signature:\n - [NETWORK, STRING, mainnet or devnet]\n - [TRANSACTIONS, ARRAY, An array of transaction signatures]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns an array of enriched, human-readable transactions of the given transaction signatures. Up to 100 transactions per call. [Helius docs here](https://docs.helius.xyz/solana-apis/enhanced-transactions-api/parse-transaction-s).$$\n sql: |\n SELECT {{ utils_schema_name -}}.post(NETWORK, '/v0/transactions', {'transactions': TRANSACTIONS}) as response\n\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.helius_post_call"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.872148, "supported_languages": null}, "macro.livequery_models.config_helius_utils_udfs": {"name": "config_helius_utils_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/helius/util_udfs.yaml.sql", "original_file_path": "macros/marketplace/helius/util_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_helius_utils_udfs", "macro_sql": "{% macro config_helius_utils_udfs(schema = \"helius_utils\", utils_schema_name=\"helius_utils\") -%}\n{#\n This macro is used to generate the Helius base endpoints\n #}\n\n- name: {{ schema -}}.get\n signature:\n - [NETWORK, STRING, The network 'devnet' or 'mainnet']\n - [PATH, STRING, The API path starting with '/']\n - [QUERY_PARAMS, OBJECT, The query parameters]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue an HTTP GET request to Helius.$$\n sql: |\n SELECT live.udf_api(\n 'GET',\n CASE\n WHEN NETWORK = 'devnet' THEN\n concat('https://api-devnet.helius.xyz', PATH, '?api-key={API_KEY}&', utils.udf_object_to_url_query_string(QUERY_PARAMS))\n ELSE\n concat('https://api.helius.xyz', PATH, '?api-key={API_KEY}&', utils.udf_object_to_url_query_string(QUERY_PARAMS))\n END,\n {},\n {},\n '_FSC_SYS/HELIUS'\n ) as response\n\n- name: {{ schema -}}.post\n signature:\n - [NETWORK, STRING, The network 'devnet' or 'mainnet']\n - [PATH, STRING, The API path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue an HTTP POST request to Helius.$$\n sql: |\n SELECT live.udf_api(\n 'POST',\n CASE\n WHEN NETWORK = 'devnet' THEN\n concat('https://api-devnet.helius.xyz', PATH, '?api-key={API_KEY}')\n ELSE\n concat('https://api.helius.xyz', PATH, '?api-key={API_KEY}')\n END,\n {},\n BODY,\n '_FSC_SYS/HELIUS'\n ) as response\n\n- name: {{ schema -}}.rpc\n signature:\n - [NETWORK, STRING, The network 'devnet' or 'mainnet']\n - [METHOD, STRING, The RPC method to call]\n - [PARAMS, OBJECT, The RPC Params arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue an RPC call to Helius.$$\n sql: |\n SELECT live.udf_api(\n 'POST',\n CASE\n WHEN NETWORK = 'devnet' THEN\n 'https://devnet.helius-rpc.com?api-key={API_KEY}'\n ELSE\n 'https://mainnet.helius-rpc.com?api-key={API_KEY}'\n END,\n {},\n {'id': 1,'jsonrpc': '2.0','method': METHOD,'params': PARAMS},\n '_FSC_SYS/HELIUS'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8732457, "supported_languages": null}, "macro.livequery_models.helius_rpc_call": {"name": "helius_rpc_call", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/helius/helius_config_utils.sql", "original_file_path": "macros/marketplace/helius/helius_config_utils.sql", "unique_id": "macro.livequery_models.helius_rpc_call", "macro_sql": "{% macro helius_rpc_call(schema_name, method) %}\nSELECT {{ schema_name -}}.rpc(NETWORK, '{{method}}', PARAMS) as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8737252, "supported_languages": null}, "macro.livequery_models.helius_get_call": {"name": "helius_get_call", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/helius/helius_config_utils.sql", "original_file_path": "macros/marketplace/helius/helius_config_utils.sql", "unique_id": "macro.livequery_models.helius_get_call", "macro_sql": "{% macro helius_get_call(schema_name, path) %}\nSELECT {{ schema_name -}}.get(NETWORK, '{{path}}', QUERY_PARAMS) as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8739998, "supported_languages": null}, "macro.livequery_models.helius_post_call": {"name": "helius_post_call", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/helius/helius_config_utils.sql", "original_file_path": "macros/marketplace/helius/helius_config_utils.sql", "unique_id": "macro.livequery_models.helius_post_call", "macro_sql": "{% macro helius_post_call(schema_name, path) %}\nSELECT {{ schema_name -}}.post(NETWORK, '{{path}}', BODY) as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.874345, "supported_languages": null}, "macro.livequery_models.config_helius_das_udfs": {"name": "config_helius_das_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/helius/das_udfs.yaml.sql", "original_file_path": "macros/marketplace/helius/das_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_helius_das_udfs", "macro_sql": "{% macro config_helius_das_udfs(schema_name = \"helius_das\", utils_schema_name = \"helius_utils\") -%}\n{#\n This macro is used to generate the Helius DAS endpoints\n #}\n\n- name: {{ schema_name -}}.get_asset\n signature:\n - [NETWORK, STRING, mainnet or devnet]\n - [PARAMS, OBJECT, The RPC Params argument]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Get an asset by its ID. [Helius docs here](https://docs.helius.xyz/solana-compression/digital-asset-standard-das-api/get-asset).$$\n sql: {{ helius_rpc_call(utils_schema_name, 'getAsset') | trim }}\n\n- name: {{ schema_name -}}.get_signatures_for_asset\n signature:\n - [NETWORK, STRING, mainnet or devnet]\n - [PARAMS, OBJECT, The RPC Params argument]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Get a list of transaction signatures related to a compressed asset. [Helius docs here](https://docs.helius.xyz/solana-compression/digital-asset-standard-das-api/get-signatures-for-asset).$$\n sql: {{ helius_rpc_call(utils_schema_name, 'getSignaturesForAsset') | trim }}\n\n- name: {{ schema_name -}}.search_assets\n signature:\n - [NETWORK, STRING, mainnet or devnet]\n - [PARAMS, OBJECT, The RPC Params argument]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Search for assets by a variety of parameters. [Helius docs here](https://docs.helius.xyz/solana-compression/digital-asset-standard-das-api/search-assets).$$\n sql: {{ helius_rpc_call(utils_schema_name, 'searchAssets') | trim }}\n\n- name: {{ schema_name -}}.get_asset_proof\n signature:\n - [NETWORK, STRING, mainnet or devnet]\n - [PARAMS, OBJECT, The RPC Params argument]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Get a merkle proof for a compressed asset by its ID. [Helius docs here](https://docs.helius.xyz/solana-compression/digital-asset-standard-das-api/get-asset-proof).$$\n sql: {{ helius_rpc_call(utils_schema_name, 'getAssetProof') | trim }}\n\n- name: {{ schema_name -}}.get_assets_by_owner\n signature:\n - [NETWORK, STRING, mainnet or devnet]\n - [PARAMS, OBJECT, The RPC Params argument]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Get a list of assets owned by an address. [Helius docs here](https://docs.helius.xyz/solana-compression/digital-asset-standard-das-api/get-assets-by-owner).$$\n sql: {{ helius_rpc_call(utils_schema_name, 'getAssetsByOwner') | trim }}\n\n- name: {{ schema_name -}}.get_assets_by_authority\n signature:\n - [NETWORK, STRING, mainnet or devnet]\n - [PARAMS, OBJECT, The RPC Params argument]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Get a list of assets with a specific authority. [Helius docs here](https://docs.helius.xyz/solana-compression/digital-asset-standard-das-api/get-assets-by-authority).$$\n sql: {{ helius_rpc_call(utils_schema_name, 'getAssetsByAuthority') | trim }}\n\n- name: {{ schema_name -}}.get_assets_by_creator\n signature:\n - [NETWORK, STRING, mainnet or devnet]\n - [PARAMS, OBJECT, The RPC Params argument]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Get a list of assets created by an address. [Helius docs here](https://docs.helius.xyz/solana-compression/digital-asset-standard-das-api/get-assets-by-creator).$$\n sql: {{ helius_rpc_call(utils_schema_name, 'getAssetsByCreator') | trim }}\n\n- name: {{ schema_name -}}.get_assets_by_group\n signature:\n - [NETWORK, STRING, mainnet or devnet]\n - [PARAMS, OBJECT, The RPC Params argument]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Get a list of assets by a group key and value. [Helius docs here](https://docs.helius.xyz/solana-compression/digital-asset-standard-das-api/get-assets-by-group).$$\n sql: {{ helius_rpc_call(utils_schema_name, 'getAssetsByGroup') | trim }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.helius_rpc_call"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.878183, "supported_languages": null}, "macro.livequery_models.config_playgrounds_udfs": {"name": "config_playgrounds_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/playgrounds/udfs.yaml.sql", "original_file_path": "macros/marketplace/playgrounds/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_playgrounds_udfs", "macro_sql": "{% macro config_playgrounds_udfs(schema_name = \"playgrounds\", utils_schema_name = \"playgrounds_utils\") -%}\n{#\n This macro is used to generate the Playgrounds calls\n #}\n\n- name: {{ schema_name -}}.query_subgraph\n signature:\n - [SUBGRAPH_ID, STRING, The ID of the Subgraph]\n - [QUERY, OBJECT, The GraphQL query]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Query a subgraph via the Playgrounds Proxy [Playgrounds docs here](https://docs.playgrounds.network/api/subgraph-proxy/).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n concat('https://api.playgrounds.network/v1/proxy/subgraphs/id/', SUBGRAPH_ID),\n {'Playgrounds-Api-Key': '{API_KEY}', 'Content-Type': 'application/json'},\n QUERY,\n '_FSC_SYS/PLAYGROUNDS'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.878737, "supported_languages": null}, "macro.livequery_models.config_zettablock_udfs": {"name": "config_zettablock_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/zettablock/udfs.yaml.sql", "original_file_path": "macros/marketplace/zettablock/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_zettablock_udfs", "macro_sql": "{% macro config_zettablock_udfs(schema_name = \"zettablock\", utils_schema_name=\"zettablock_utils\") -%}\n{#\n This macro is used to generate the Zettablock Base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Zettablock API. [Zettablock docs here](https://docs.zettablock.com/reference/api-intro).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://api.zettablock.com', PATH, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'Authorization': 'Bearer {API_KEY}'},\n {},\n '_FSC_SYS/ZETTABLOCK'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the Zettablock API. [Zettablock docs here](https://docs.zettablock.com/reference/api-intro).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n CONCAT('https://api.zettablock.com', PATH),\n {'Authorization': 'Bearer {API_KEY}'},\n BODY,\n '_FSC_SYS/ZETTABLOCK'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8794646, "supported_languages": null}, "macro.livequery_models.config_quicknode_polygon_tokens_udfs": {"name": "config_quicknode_polygon_tokens_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/quicknode/polygon_token_udfs.yaml.sql", "original_file_path": "macros/marketplace/quicknode/polygon_token_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_quicknode_polygon_tokens_udfs", "macro_sql": "{% macro config_quicknode_polygon_tokens_udfs(schema_name = \"quicknode_polygon_tokens\", utils_schema_name = \"quicknode_utils\") -%}\n{#\n This macro is used to generate the QuickNode Polygon Token endpoints\n #}\n\n- name: {{ schema_name -}}.get_token_metadata_by_contract_address\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns token details for specified contract. [QuickNode docs here](https://www.quicknode.com/docs/polygon/qn_getTokenMetadataByContractAddress_v2).$$\n sql: {{ quicknode_polygon_mainnet_rpc_call(utils_schema_name, 'qn_getTokenMetadataByContractAddress') | trim }}\n\n- name: {{ schema_name -}}.get_token_metadata_by_symbol\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns token details for specified token symbol. [QuickNode docs here](https://www.quicknode.com/docs/polygon/qn_getTokenMetadataBySymbol_v2).$$\n sql: {{ quicknode_polygon_mainnet_rpc_call(utils_schema_name, 'qn_getTokenMetadataBySymbol') | trim }}\n\n- name: {{ schema_name -}}.get_transactions_by_address\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns transactions within a specified wallet address. [QuickNode docs here](https://www.quicknode.com/docs/polygon/qn_getTransactionsByAddress_v2).$$\n sql: {{ quicknode_polygon_mainnet_rpc_call(utils_schema_name, 'qn_getTransactionsByAddress') | trim }}\n\n- name: {{ schema_name -}}.get_wallet_token_balance\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns ERC-20 tokens and token balances within a wallet. [QuickNode docs here](https://www.quicknode.com/docs/polygon/qn_getWalletTokenBalance_v2).$$\n sql: {{ quicknode_polygon_mainnet_rpc_call(utils_schema_name, 'qn_getWalletTokenBalance') | trim }}\n\n- name: {{ schema_name -}}.get_wallet_token_transactions\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns transfers of a specified token within a specified wallet address. [QuickNode docs here](https://www.quicknode.com/docs/polygon/qn_getWalletTokenTransactions_v2).$$\n sql: {{ quicknode_polygon_mainnet_rpc_call(utils_schema_name, 'qn_getWalletTokenTransactions') | trim }}\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.quicknode_polygon_mainnet_rpc_call"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8815832, "supported_languages": null}, "macro.livequery_models.config_quicknode_ethereum_nfts_udfs": {"name": "config_quicknode_ethereum_nfts_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/quicknode/ethereum_nft_udfs.yaml.sql", "original_file_path": "macros/marketplace/quicknode/ethereum_nft_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_quicknode_ethereum_nfts_udfs", "macro_sql": "{% macro config_quicknode_ethereum_nfts_udfs(schema_name = \"quicknode_ethereum_nfts\", utils_schema_name = \"quicknode_utils\") -%}\n{#\n This macro is used to generate the QuickNode Ethereum NFT endpoints\n #}\n\n- name: {{ schema_name -}}.fetch_nft_collection_details\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns collection details for specified contracts. [QuickNode docs here](https://www.quicknode.com/docs/ethereum/qn_fetchNFTCollectionDetails_v2).$$\n sql: {{ quicknode_ethereum_mainnet_rpc_call(utils_schema_name, 'qn_fetchNFTCollectionDetails') | trim }}\n\n- name: {{ schema_name -}}.fetch_nfts\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns aggregated data on NFTs for a given wallet. [QuickNode docs here](https://www.quicknode.com/docs/ethereum/qn_fetchNFTs).$$\n sql: {{ quicknode_ethereum_mainnet_rpc_call(utils_schema_name, 'qn_fetchNFTs') | trim }}\n\n- name: {{ schema_name -}}.fetch_nfts_by_collection\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns aggregated data on NFTs within a given collection. [QuickNode docs here](https://www.quicknode.com/docs/ethereum/qn_fetchNFTsByCollection_v2).$$\n sql: {{ quicknode_ethereum_mainnet_rpc_call(utils_schema_name, 'qn_fetchNFTsByCollection') | trim }}\n\n- name: {{ schema_name -}}.get_transfers_by_nft\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns transfers by given NFT. [QuickNode docs here](https://www.quicknode.com/docs/ethereum/qn_getTransfersByNFT_v2).$$\n sql: {{ quicknode_ethereum_mainnet_rpc_call(utils_schema_name, 'qn_getTransfersByNFT') | trim }}\n\n- name: {{ schema_name -}}.verify_nfts_owner\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Confirms ownership of specified NFTs for a given wallet. [QuickNode docs here](https://www.quicknode.com/docs/ethereum/qn_verifyNFTsOwner_v2).$$\n sql: {{ quicknode_ethereum_mainnet_rpc_call(utils_schema_name, 'qn_verifyNFTsOwner') | trim }}\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.quicknode_ethereum_mainnet_rpc_call"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8836343, "supported_languages": null}, "macro.livequery_models.config_quicknode_utils_udfs": {"name": "config_quicknode_utils_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/quicknode/util_udfs.yaml.sql", "original_file_path": "macros/marketplace/quicknode/util_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_quicknode_utils_udfs", "macro_sql": "{% macro config_quicknode_utils_udfs(schema_name = \"quicknode_utils\", utils_schema_name=\"quicknode_utils\") -%}\n{#\n This macro is used to generate the QuickNode base endpoints/RPC calls\n #}\n\n- name: {{ schema_name -}}.ethereum_mainnet_rpc\n signature:\n - [METHOD, STRING, The RPC method to call]\n - [PARAMS, OBJECT, The RPC Params arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue an Ethereum RPC call to QuickNode.$$\n sql: |\n SELECT live.udf_api(\n 'POST',\n '{ethereum-mainnet}',\n {},\n {'id': 1,'jsonrpc': '2.0','method': METHOD,'params': [PARAMS]},\n '_FSC_SYS/QUICKNODE'\n ) as response\n\n- name: {{ schema_name -}}.polygon_mainnet_rpc\n signature:\n - [METHOD, STRING, The RPC method to call]\n - [PARAMS, OBJECT, The RPC Params arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a Polygon RPC call to QuickNode.$$\n sql: |\n SELECT live.udf_api(\n 'POST',\n '{polygon-matic}',\n {},\n {'id': 1,'jsonrpc': '2.0','method': METHOD,'params': [PARAMS]},\n '_FSC_SYS/QUICKNODE'\n ) as response\n\n- name: {{ schema_name -}}.solana_mainnet_rpc\n signature:\n - [METHOD, STRING, The RPC method to call]\n - [PARAMS, OBJECT, The RPC Params arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a Solana RPC call to QuickNode.$$\n sql: |\n SELECT live.udf_api(\n 'POST',\n '{solana-solana-mainnet}',\n {},\n {'id': 1,'jsonrpc': '2.0','method': METHOD,'params': PARAMS},\n '_FSC_SYS/QUICKNODE'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8845105, "supported_languages": null}, "macro.livequery_models.config_quicknode_polygon_nfts_udfs": {"name": "config_quicknode_polygon_nfts_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/quicknode/polygon_nft_udfs.yaml.sql", "original_file_path": "macros/marketplace/quicknode/polygon_nft_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_quicknode_polygon_nfts_udfs", "macro_sql": "{% macro config_quicknode_polygon_nfts_udfs(schema_name = \"quicknode_polygon_nfts\", utils_schema_name = \"quicknode_utils\") -%}\n{#\n This macro is used to generate the QuickNode Polygon NFT endpoints\n #}\n\n- name: {{ schema_name -}}.fetch_nft_collection_details\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns collection details for specified contracts. [QuickNode docs here](https://www.quicknode.com/docs/polygon/qn_fetchNFTCollectionDetails_v2).$$\n sql: {{ quicknode_polygon_mainnet_rpc_call(utils_schema_name, 'qn_fetchNFTCollectionDetails') | trim }}\n\n- name: {{ schema_name -}}.fetch_nfts\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns aggregated data on NFTs for a given wallet. [QuickNode docs here](https://www.quicknode.com/docs/polygon/qn_fetchNFTs_v2).$$\n sql: {{ quicknode_polygon_mainnet_rpc_call(utils_schema_name, 'qn_fetchNFTs') | trim }}\n\n- name: {{ schema_name -}}.fetch_nfts_by_collection\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns aggregated data on NFTs within a given collection. [QuickNode docs here](https://www.quicknode.com/docs/polygon/qn_fetchNFTsByCollection_v2).$$\n sql: {{ quicknode_polygon_mainnet_rpc_call(utils_schema_name, 'qn_fetchNFTsByCollection') | trim }}\n\n- name: {{ schema_name -}}.get_transfers_by_nft\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns transfers by given NFT. [QuickNode docs here](https://www.quicknode.com/docs/polygon/qn_getTransfersByNFT_v2).$$\n sql: {{ quicknode_polygon_mainnet_rpc_call(utils_schema_name, 'qn_getTransfersByNFT') | trim }}\n\n- name: {{ schema_name -}}.verify_nfts_owner\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Confirms ownership of specified NFTs for a given wallet. [QuickNode docs here](https://www.quicknode.com/docs/polygon/qn_verifyNFTsOwner_v2).$$\n sql: {{ quicknode_polygon_mainnet_rpc_call(utils_schema_name, 'qn_verifyNFTsOwner') | trim }}\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.quicknode_polygon_mainnet_rpc_call"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8865566, "supported_languages": null}, "macro.livequery_models.quicknode_ethereum_mainnet_rpc_call": {"name": "quicknode_ethereum_mainnet_rpc_call", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/quicknode/quicknode_config_utils.sql", "original_file_path": "macros/marketplace/quicknode/quicknode_config_utils.sql", "unique_id": "macro.livequery_models.quicknode_ethereum_mainnet_rpc_call", "macro_sql": "{% macro quicknode_ethereum_mainnet_rpc_call(schema_name, method) %}\nSELECT {{ schema_name -}}.ethereum_mainnet_rpc('{{method}}', PARAMS) as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8870502, "supported_languages": null}, "macro.livequery_models.quicknode_polygon_mainnet_rpc_call": {"name": "quicknode_polygon_mainnet_rpc_call", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/quicknode/quicknode_config_utils.sql", "original_file_path": "macros/marketplace/quicknode/quicknode_config_utils.sql", "unique_id": "macro.livequery_models.quicknode_polygon_mainnet_rpc_call", "macro_sql": "{% macro quicknode_polygon_mainnet_rpc_call(schema_name, method) %}\nSELECT {{ schema_name -}}.polygon_mainnet_rpc('{{method}}', PARAMS) as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8873427, "supported_languages": null}, "macro.livequery_models.quicknode_solana_mainnet_rpc_call": {"name": "quicknode_solana_mainnet_rpc_call", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/quicknode/quicknode_config_utils.sql", "original_file_path": "macros/marketplace/quicknode/quicknode_config_utils.sql", "unique_id": "macro.livequery_models.quicknode_solana_mainnet_rpc_call", "macro_sql": "{% macro quicknode_solana_mainnet_rpc_call(schema_name, method) %}\nSELECT {{ schema_name -}}.solana_mainnet_rpc('{{method}}', PARAMS) as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8876085, "supported_languages": null}, "macro.livequery_models.config_quicknode_solana_nfts_udfs": {"name": "config_quicknode_solana_nfts_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/quicknode/solana_nft_udfs.yaml.sql", "original_file_path": "macros/marketplace/quicknode/solana_nft_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_quicknode_solana_nfts_udfs", "macro_sql": "{% macro config_quicknode_solana_nfts_udfs(schema_name = \"quicknode_solana_nfts\", utils_schema_name = \"quicknode_utils\") -%}\n{#\n This macro is used to generate the QuickNode Solana NFT endpoints\n #}\n\n- name: {{ schema_name -}}.fetch_nfts\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns aggregated data on NFTs for a given wallet. [QuickNode docs here](https://www.quicknode.com/docs/solana/qn_fetchNFTs).$$\n sql: {{ quicknode_solana_mainnet_rpc_call(utils_schema_name, 'qn_fetchNFTs') | trim }}\n\n- name: {{ schema_name -}}.fetch_nfts_by_creator\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns aggregated data on NFTs that have been created by an address. [QuickNode docs here](https://www.quicknode.com/docs/solana/qn_fetchNFTsByCreator).$$\n sql: {{ quicknode_solana_mainnet_rpc_call(utils_schema_name, 'qn_fetchNFTsByCreator') | trim }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.quicknode_solana_mainnet_rpc_call"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.888513, "supported_languages": null}, "macro.livequery_models.config_quicknode_ethereum_tokens_udfs": {"name": "config_quicknode_ethereum_tokens_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/quicknode/ethereum_token_udfs.yaml.sql", "original_file_path": "macros/marketplace/quicknode/ethereum_token_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_quicknode_ethereum_tokens_udfs", "macro_sql": "{% macro config_quicknode_ethereum_tokens_udfs(schema_name = \"quicknode_ethereum_tokens\", utils_schema_name = \"quicknode_utils\") -%}\n{#\n This macro is used to generate the QuickNode Ethereum Token endpoints\n #}\n\n- name: {{ schema_name -}}.get_token_metadata_by_contract_address\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns token details for specified contract. [QuickNode docs here](https://www.quicknode.com/docs/ethereum/qn_getTokenMetadataByContractAddress_v2).$$\n sql: {{ quicknode_ethereum_mainnet_rpc_call(utils_schema_name, 'qn_getTokenMetadataByContractAddress') | trim }}\n\n- name: {{ schema_name -}}.get_token_metadata_by_symbol\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns token details for specified token symbol. [QuickNode docs here](https://www.quicknode.com/docs/ethereum/qn_getTokenMetadataBySymbol_v2).$$\n sql: {{ quicknode_ethereum_mainnet_rpc_call(utils_schema_name, 'qn_getTokenMetadataBySymbol') | trim }}\n\n- name: {{ schema_name -}}.get_transactions_by_address\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns transactions within a specified wallet address. [QuickNode docs here](https://www.quicknode.com/docs/ethereum/qn_getTransactionsByAddress_v2).$$\n sql: {{ quicknode_ethereum_mainnet_rpc_call(utils_schema_name, 'qn_getTransactionsByAddress') | trim }}\n\n- name: {{ schema_name -}}.get_wallet_token_balance\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns ERC-20 tokens and token balances within a wallet. [QuickNode docs here](https://www.quicknode.com/docs/ethereum/qn_getWalletTokenBalance_v2).$$\n sql: {{ quicknode_ethereum_mainnet_rpc_call(utils_schema_name, 'qn_getWalletTokenBalance') | trim }}\n\n- name: {{ schema_name -}}.get_wallet_token_transactions\n signature:\n - [PARAMS, OBJECT, The RPC Params]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns transfers of a specified token within a specified wallet address. [QuickNode docs here](https://www.quicknode.com/docs/ethereum/qn_getWalletTokenTransactions_v2).$$\n sql: {{ quicknode_ethereum_mainnet_rpc_call(utils_schema_name, 'qn_getWalletTokenTransactions') | trim }}\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.quicknode_ethereum_mainnet_rpc_call"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8907769, "supported_languages": null}, "macro.livequery_models.config_footprint_utils_udfs": {"name": "config_footprint_utils_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/footprint/util_udfs.yaml.sql", "original_file_path": "macros/marketplace/footprint/util_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_footprint_utils_udfs", "macro_sql": "{% macro config_footprint_utils_udfs(schema_name = \"footprint_utils\", utils_schema_name=\"footprint_utils\") -%}\n{#\n This macro is used to generate the Footprint base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, ARRAY, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Footprint API.$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat(\n 'https://api.footprint.network/api', PATH, '?',\n utils.udf_urlencode(QUERY_ARGS, TRUE)\n ),\n {'api-key': '{API_KEY}'},\n {},\n '_FSC_SYS/FOOTPRINT'\n ) as response\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Footprint API.$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat(\n 'https://api.footprint.network/api', PATH, '?',\n utils.udf_urlencode(QUERY_ARGS, TRUE)\n ),\n {'api-key': '{API_KEY}'},\n {},\n '_FSC_SYS/FOOTPRINT'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the Footprint API.$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n concat('https://api.footprint.network/api', PATH),\n {'api-key': '{API_KEY}'},\n BODY,\n '_FSC_SYS/FOOTPRINT'\n ) as response\n\n\n- name: {{ schema_name -}}.rpc\n signature:\n - [METHOD, STRING, The RPC method to call]\n - [PARAMS, ARRAY, The RPC Params arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue an RPC call to Footprint.$$\n sql: |\n SELECT live.udf_api(\n 'POST',\n concat('https://api.footprint.network/api'),\n {'api-key': '{API_KEY}'},\n {'id': 1,'jsonrpc': '2.0','method': METHOD,'params': PARAMS},\n '_FSC_SYS/FOOTPRINT') as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8919494, "supported_languages": null}, "macro.livequery_models.footprint_get_api_call": {"name": "footprint_get_api_call", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/footprint/footprint_config_utils.sql", "original_file_path": "macros/marketplace/footprint/footprint_config_utils.sql", "unique_id": "macro.livequery_models.footprint_get_api_call", "macro_sql": "{% macro footprint_get_api_call(schema_name, api_path) %}\nSELECT {{ schema_name -}}.get('/{{api_path}}', QUERY_PARAMS) as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8923702, "supported_languages": null}, "macro.livequery_models.footprint_post_api_call": {"name": "footprint_post_api_call", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/footprint/footprint_config_utils.sql", "original_file_path": "macros/marketplace/footprint/footprint_config_utils.sql", "unique_id": "macro.livequery_models.footprint_post_api_call", "macro_sql": "{% macro footprint_post_api_call(schema_name, api_path) %}\nSELECT {{ schema_name -}}.post('/{{api_path}}', BODY) as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8926394, "supported_languages": null}, "macro.livequery_models.config_cmc_udfs": {"name": "config_cmc_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/cmc/udfs.yaml.sql", "original_file_path": "macros/marketplace/cmc/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_cmc_udfs", "macro_sql": "{% macro config_cmc_udfs(schema_name = \"cmc\", utils_schema_name=\"cmc_utils\") -%}\n{#\n This macro is used to generate the CoinmarketCap Base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the CoinmarketCap API. [CoinmarketCap docs here](https://coinmarketcap.com/api/documentation/v1/).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://pro-api.coinmarketcap.com', PATH, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'X-CMC_PRO_API_KEY': '{API_KEY}'},\n NULL,\n '_FSC_SYS/CMC'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the CoinmarketCap API. [CoinmarketCap docs here](https://coinmarketcap.com/api/documentation/v1/).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n CONCAT('https://pro-api.coinmarketcap.com', PATH),\n {'X-CMC_PRO_API_KEY': '{API_KEY}'},\n BODY,\n '_FSC_SYS/CMC'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8933787, "supported_languages": null}, "macro.livequery_models.config_binance_udfs": {"name": "config_binance_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/binance/udfs.yaml.sql", "original_file_path": "macros/marketplace/binance/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_binance_udfs", "macro_sql": "{% macro config_binance_udfs(schema_name = \"binance\", utils_schema_name=\"binance_utils\") -%}\n{#\n This macro is used to generate the Binance Base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [URL, STRING, The full url including the path]\n - [QUERY_ARGS, ARRAY, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Binance API. [Binance docs here](https://binance-docs.github.io/apidocs/spot/en/#api-key-setup).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat(URL, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'X-MBX-APIKEY': '{API_KEY}'},\n {},\n '_FSC_SYS/BINANCE'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [URL, STRING, The full url]\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the Binance API. [Binance docs here](https://binance-docs.github.io/apidocs/spot/en/#api-key-setup).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n URL,\n {'X-MBX-APIKEY': '{API_KEY}'},\n BODY,\n '_FSC_SYS/BINANCE'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8940606, "supported_languages": null}, "macro.livequery_models.config_apilayer_udfs": {"name": "config_apilayer_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/apilayer/udfs.yaml.sql", "original_file_path": "macros/marketplace/apilayer/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_apilayer_udfs", "macro_sql": "{% macro config_apilayer_udfs(schema_name = \"apilayer\", utils_schema_name=\"apilayer_utils\") -%}\n{#\n This macro is used to generate the ApiLayer Base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the ApiLayer API. [ApiLayer docs here](https://apilayer.com/docs/article/getting-started).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://api.apilayer.com', PATH, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'apikey': '{API_KEY}'},\n NULL,\n '_FSC_SYS/APILAYER'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the ApiLayer API. [ApiLayer docs here](https://apilayer.com/docs/article/getting-started).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n CONCAT('https://api.apilayer.com', PATH),\n {'apikey': '{API_KEY}'},\n BODY,\n '_FSC_SYS/APILAYER'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8947642, "supported_languages": null}, "macro.livequery_models.config_zapper_udfs": {"name": "config_zapper_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/zapper/udfs.yaml.sql", "original_file_path": "macros/marketplace/zapper/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_zapper_udfs", "macro_sql": "{% macro config_zapper_udfs(schema_name = \"zapper\", utils_schema_name=\"zapper_utils\") -%}\n{#\n This macro is used to generate the Zapper Base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Zapper API. [Zapper docs here](https://studio.zapper.xyz/docs/apis/getting-started).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://api.zapper.xyz', PATH, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'Authorization': 'Basic {API_KEY}'},\n {},\n '_FSC_SYS/ZAPPER'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the Zapper API. [Zapper docs here](https://studio.zapper.xyz/docs/apis/getting-started).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n CONCAT('https://api.zapper.xyz', PATH),\n {'Authorization': 'Basic {API_KEY}'},\n BODY,\n '_FSC_SYS/ZAPPER'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8954718, "supported_languages": null}, "macro.livequery_models.config_alchemy_utils_udfs": {"name": "config_alchemy_utils_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/alchemy/util_udfs.yaml.sql", "original_file_path": "macros/marketplace/alchemy/util_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_alchemy_utils_udfs", "macro_sql": "{% macro config_alchemy_utils_udfs(schema_name = \"alchemy_utils\", utils_schema_name=\"alchemy_utils\") -%}\n{#\n This macro is used to generate the alchemy base endpoints\n #}\n\n- name: {{ schema -}}.nfts_get\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Alchemy NFT API.$$\n sql: |\n SELECT\n live.udf_api(\n concat(\n 'https://', NETWORK,'.g.alchemy.com/nft/v2/{',NETWORK,'}', PATH, '?',\n utils.udf_object_to_url_query_string(QUERY_ARGS)\n ),\n '_FSC_SYS/ALCHEMY'\n ) as response\n\n- name: {{ schema -}}.nfts_get\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [VERSION, STRING, The version of the API to use]\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Alchemy NFT API.$$\n sql: |\n SELECT\n live.udf_api(\n concat(\n 'https://', NETWORK,'.g.alchemy.com/nft/', VERSION, '/{',NETWORK,'}', PATH, '?',\n utils.udf_object_to_url_query_string(QUERY_ARGS)\n ),\n '_FSC_SYS/ALCHEMY'\n ) as response\n\n- name: {{ schema -}}.nfts_post\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the Alchemy NFT API.$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n concat('https://', NETWORK,'.g.alchemy.com/nft/v2/{',NETWORK,'}', PATH),\n {},\n BODY,\n '_FSC_SYS/ALCHEMY'\n ) as response\n\n- name: {{ schema -}}.rpc\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [METHOD, STRING, The RPC method to call]\n - [PARAMS, ARRAY, The RPC Params arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue an RPC call to Alchemy.$$\n sql: |\n SELECT live.udf_api(\n 'POST',\n concat('https://', NETWORK,'.g.alchemy.com/v2/{',NETWORK,'}'),\n {},\n {'id': 1,'jsonrpc': '2.0','method': METHOD,'params': PARAMS},\n '_FSC_SYS/ALCHEMY') as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.8966885, "supported_languages": null}, "macro.livequery_models.config_alchemy_nfts_udfs": {"name": "config_alchemy_nfts_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/alchemy/nft_udfs.yaml.sql", "original_file_path": "macros/marketplace/alchemy/nft_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_alchemy_nfts_udfs", "macro_sql": "{% macro config_alchemy_nfts_udfs(schema_name = \"alchemy_nfts\", utils_schema_name = \"alchemy_utils\") -%}\n{#\n This macro is used to generate the alchemy nft endpoints\n #}\n\n- name: {{ schema_name -}}.get_nfts\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Gets all NFTs currently owned by a given address. [Alchemy docs here](https://docs.alchemy.com/reference/getnfts).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'getNFTs') | trim }}\n\n- name: {{ schema_name -}}.get_owners_for_token\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Get the owner(s) for a token. [Alchemy docs here](https://docs.alchemy.com/reference/getownersfortoken).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'getOwnersForToken') | trim }}\n\n- name: {{ schema_name -}}.get_owners_for_collection\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Gets all owners for a given NFT contract. [Alchemy docs here](https://docs.alchemy.com/reference/getownersforcollection).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'getOwnersForCollection') | trim }}\n\n- name: {{ schema_name -}}.is_holder_of_collection\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Checks whether a wallet holds a NFT in a given collection. [Alchemy docs here](https://docs.alchemy.com/reference/isholderofcollection).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'isHolderOfCollection') | trim }}\n\n- name: {{ schema_name -}}.get_contracts_for_owner\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Gets all NFT contracts held by an owner address. [Alchemy docs here](https://docs.alchemy.com/reference/getcontractsforowner).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'getContractsForOwner') | trim }}\n\n- name: {{ schema_name -}}.get_nft_metadata\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Gets the metadata associated with a given NFT. [Alchemy docs here](https://docs.alchemy.com/reference/getnftmetadata).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'getNFTMetadata') | trim }}\n\n- name: {{ schema_name -}}.get_nft_metadata_batch\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [BODY, OBJECT, JSON Body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Gets the metadata associated with up to 100 given NFT contracts. [Alchemy docs here](https://docs.alchemy.com/reference/getnftmetadatabatch).$$\n sql: {{ alchemy_nft_post_api_call(utils_schema_name, 'getNFTMetadataBatch') | trim }}\n\n- name: {{ schema_name -}}.get_contract_metadata\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Queries NFT high-level collection/contract level information. [Alchemy docs here](https://docs.alchemy.com/reference/getcontractmetadata).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'getContractMetadata') | trim }}\n\n- name: {{ schema_name -}}.get_contract_metadata_batch\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [BODY, OBJECT, JSON Body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Gets the metadata associated with the given list of contract addresses. [Alchemy docs here](https://docs.alchemy.com/reference/getcontractmetadatabatch).$$\n sql: {{ alchemy_nft_post_api_call(utils_schema_name, 'getContractMetadataBatch') | trim }}\n\n- name: {{ schema_name -}}.invalidate_contract\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Marks all cached tokens for the particular contract as stale. So the next time the endpoint is queried it fetches live data instead of fetching from cache. [Alchemy docs here](https://docs.alchemy.com/reference/invalidatecontract).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'invalidateContract') | trim }}\n\n- name: {{ schema_name -}}.reingest_contract\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Triggers metadata refresh for an entire NFT collection and refreshes stale metadata after a collection reveal/collection changes. [Alchemy docs here](https://docs.alchemy.com/reference/reingestcontract).$$\n sql: {{ alchemy_nft_get_api_call_version(utils_schema_name, 'invalidateContract', 'v3') | trim }}\n\n- name: {{ schema_name -}}.search_contract_metadata\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Search for a keyword across metadata of all ERC-721 and ERC-1155 smart contracts. [Alchemy docs here](https://docs.alchemy.com/reference/searchcontractmetadata).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'searchContractMetadata') | trim }}\n\n- name: {{ schema_name -}}.get_nfts_for_collection\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Gets all NFTs for a given NFT contract. [Alchemy docs here](https://docs.alchemy.com/reference/getnftsforcollection).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'getNFTsForCollection') | trim }}\n\n- name: {{ schema_name -}}.get_spam_contracts\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns a list of all spam contracts marked by Alchemy. [Alchemy docs here](https://docs.alchemy.com/reference/getspamcontracts).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'getSpamContracts') | trim }}\n\n- name: {{ schema_name -}}.is_spam_contract\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns whether a contract is marked as spam or not by Alchemy. [Alchemy docs here](https://docs.alchemy.com/reference/isspamcontract).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'isSpamContract') | trim }}\n\n- name: {{ schema_name -}}.is_airdrop\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns whether a token is marked as an airdrop or not. Airdrops are defined as NFTs that were minted to a user address in a transaction sent by a different address. [Alchemy docs here](https://docs.alchemy.com/reference/isairdrop).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'isAirdrop') | trim }}\n\n- name: {{ schema_name -}}.report_spam\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Report a particular address to our APIs if you think it is spam. [Alchemy docs here](https://docs.alchemy.com/reference/reportspam).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'reportSpam') | trim }}\n\n- name: {{ schema_name -}}.get_floor_price\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns the floor prices of a NFT collection by marketplace. [Alchemy docs here](https://docs.alchemy.com/reference/getfloorprice).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'getFloorPrice') | trim }}\n\n- name: {{ schema_name -}}.get_nft_sales\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Gets NFT sales that have happened through on-chain marketplaces. [Alchemy docs here](https://docs.alchemy.com/reference/getnftsales).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'getNFTSales') | trim }}\n\n- name: {{ schema_name -}}.compute_rarity\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Computes the rarity of each attribute of an NFT. [Alchemy docs here](https://docs.alchemy.com/reference/computerarity).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'computeRarity') | trim }}\n\n- name: {{ schema_name -}}.summarize_nft_attributes\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Generate a summary of attribute prevalence for an NFT collection. [Alchemy docs here](https://docs.alchemy.com/reference/summarizenftattributes).$$\n sql: {{ alchemy_nft_get_api_call(utils_schema_name, 'summarizeNFTAttributes') | trim }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.alchemy_nft_get_api_call", "macro.livequery_models.alchemy_nft_post_api_call", "macro.livequery_models.alchemy_nft_get_api_call_version"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9126706, "supported_languages": null}, "macro.livequery_models.alchemy_nft_get_api_call": {"name": "alchemy_nft_get_api_call", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/alchemy/alchemy_config_utils.sql", "original_file_path": "macros/marketplace/alchemy/alchemy_config_utils.sql", "unique_id": "macro.livequery_models.alchemy_nft_get_api_call", "macro_sql": "{% macro alchemy_nft_get_api_call(schema_name, api_path) %}\nSELECT {{ schema_name -}}.nfts_get(NETWORK, '/{{api_path}}', QUERY_ARGS) as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9133282, "supported_languages": null}, "macro.livequery_models.alchemy_nft_get_api_call_version": {"name": "alchemy_nft_get_api_call_version", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/alchemy/alchemy_config_utils.sql", "original_file_path": "macros/marketplace/alchemy/alchemy_config_utils.sql", "unique_id": "macro.livequery_models.alchemy_nft_get_api_call_version", "macro_sql": "{% macro alchemy_nft_get_api_call_version(schema_name, api_path, version) %}\nSELECT {{ schema_name -}}.nfts_get(NETWORK, '{{version}}', '/{{api_path}}', QUERY_ARGS) as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9136596, "supported_languages": null}, "macro.livequery_models.alchemy_nft_post_api_call": {"name": "alchemy_nft_post_api_call", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/alchemy/alchemy_config_utils.sql", "original_file_path": "macros/marketplace/alchemy/alchemy_config_utils.sql", "unique_id": "macro.livequery_models.alchemy_nft_post_api_call", "macro_sql": "{% macro alchemy_nft_post_api_call(schema_name, api_path) %}\nSELECT {{ schema_name -}}.nfts_post(NETWORK, '/{{api_path}}', BODY) as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9139314, "supported_languages": null}, "macro.livequery_models.alchemy_rpc_call": {"name": "alchemy_rpc_call", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/alchemy/alchemy_config_utils.sql", "original_file_path": "macros/marketplace/alchemy/alchemy_config_utils.sql", "unique_id": "macro.livequery_models.alchemy_rpc_call", "macro_sql": "{% macro alchemy_rpc_call(schema_name, method) %}\nSELECT {{ schema_name -}}.rpc(NETWORK, '{{method}}', PARAMS) as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9142132, "supported_languages": null}, "macro.livequery_models.config_alchemy_transfers_udfs": {"name": "config_alchemy_transfers_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/alchemy/transfers_udfs.yaml.sql", "original_file_path": "macros/marketplace/alchemy/transfers_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_alchemy_transfers_udfs", "macro_sql": "{% macro config_alchemy_transfers_udfs(schema_name = \"alchemy_transfers\", utils_schema_name = \"alchemy_utils\") -%}\n{#\n This macro is used to generate the alchemy transfers endpoints\n #}\n\n- name: {{ schema_name -}}.get_asset_transfers\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [PARAMS, ARRAY, Array of JSON param objects for RPC request]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$The Transfers API allows you to easily fetch historical transactions for any address across Ethereum and supported L2s including Polygon, Arbitrum, and Optimism. [Alchemy docs here](https://docs.alchemy.com/reference/alchemy-getassettransfers).$$\n sql: {{alchemy_rpc_call(utils_schema_name, \"alchemy_getAssetTransfers\") | trim}}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.alchemy_rpc_call"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9148557, "supported_languages": null}, "macro.livequery_models.config_alchemy_tokens_udfs": {"name": "config_alchemy_tokens_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/alchemy/token_udfs.yaml.sql", "original_file_path": "macros/marketplace/alchemy/token_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_alchemy_tokens_udfs", "macro_sql": "{% macro config_alchemy_tokens_udfs(schema_name = \"alchemy_tokens\", utils_schema_name = \"alchemy_utils\") -%}\n{#\n This macro is used to generate the alchemy token endpoints\n #}\n\n- name: {{ schema_name -}}.get_token_allowance\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [PARAMS, ARRAY, Array of JSON param objects for RPC request]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns the amount which the spender is allowed to withdraw from the owner. [Alchemy docs here](https://docs.alchemy.com/reference/alchemy-gettokenallowance).$$\n sql: {{alchemy_rpc_call(utils_schema_name, \"alchemy_getTokenAllowance\") | trim}}\n\n- name: {{ schema_name -}}.get_token_balances\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [PARAMS, ARRAY, Array of JSON param objects for RPC request]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns ERC20 token balances for all tokens the given address has ever transacted in with. Optionally accepts a list of contracts. [Alchemy docs here](https://docs.alchemy.com/reference/alchemy-gettokenbalances).$$\n sql: {{alchemy_rpc_call(utils_schema_name, \"alchemy_getTokenBalances\") | trim}}\n\n- name: {{ schema_name -}}.get_token_metadata\n signature:\n - [NETWORK, STRING, The blockchain/network]\n - [PARAMS, ARRAY, Array of JSON param objects for RPC request]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Returns metadata (name, symbol, decimals, logo) for a given token contract address. [Alchemy docs here](https://docs.alchemy.com/reference/alchemy-gettokenmetadata).$$\n sql: {{alchemy_rpc_call(utils_schema_name, \"alchemy_getTokenMetadata\") | trim}}\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.alchemy_rpc_call"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.916212, "supported_languages": null}, "macro.livequery_models.config_chainstack_udfs": {"name": "config_chainstack_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/chainstack/udfs.yaml.sql", "original_file_path": "macros/marketplace/chainstack/udfs.yaml.sql", "unique_id": "macro.livequery_models.config_chainstack_udfs", "macro_sql": "{% macro config_chainstack_udfs(schema_name = \"chainstack\", utils_schema_name=\"chainstack_utils\") -%}\n{#\n This macro is used to generate the Chainstack Base api endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Chainstack API. [Chainstack docs here](https://docs.chainstack.com/reference/blockchain-apis).$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat('https://api.chainstack.com', PATH, '?', utils.udf_object_to_url_query_string(QUERY_ARGS)),\n {'authorization': 'Bearer {API_KEY}'},\n {},\n '_FSC_SYS/CHAINSTACK'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the Chainstack API. [Chainstack docs here](https://docs.chainstack.com/reference/blockchain-apis).$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n CONCAT('https://api.chainstack.com', PATH),\n {'authorization': 'Bearer {API_KEY}'},\n BODY,\n '_FSC_SYS/CHAINSTACK'\n ) as response\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9169257, "supported_languages": null}, "macro.livequery_models.config_blockpour_utils_udfs": {"name": "config_blockpour_utils_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/marketplace/blockpour/util_udfs.yaml.sql", "original_file_path": "macros/marketplace/blockpour/util_udfs.yaml.sql", "unique_id": "macro.livequery_models.config_blockpour_utils_udfs", "macro_sql": "{% macro config_blockpour_utils_udfs(schema_name = \"blockpour_utils\", utils_schema_name=\"blockpour_utils\") -%}\n{#\n This macro is used to generate the Blockpour base endpoints\n #}\n\n- name: {{ schema_name -}}.get\n signature:\n - [PATH, STRING, The path starting with '/']\n - [QUERY_ARGS, OBJECT, The query arguments]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'GET' request to the Blockpour API.$$\n sql: |\n SELECT\n live.udf_api(\n 'GET',\n concat(\n 'https://services.blockpour.com/api', PATH, '?',\n utils.udf_object_to_url_query_string(QUERY_ARGS)\n ),\n {'api-key': '{API_KEY}'},\n {},\n '_FSC_SYS/BLOCKPOUR'\n ) as response\n\n- name: {{ schema_name -}}.post\n signature:\n - [PATH, STRING, The path starting with '/']\n - [BODY, OBJECT, The request body]\n return_type:\n - \"VARIANT\"\n options: |\n COMMENT = $$Used to issue a 'POST' request to the BlockPour API.$$\n sql: |\n SELECT\n live.udf_api(\n 'POST',\n concat('https://services.blockpour.com/api', PATH),\n {'api-key': '{API_KEY}'},\n BODY,\n '_FSC_SYS/BLOCKPOUR'\n ) as response\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.917625, "supported_languages": null}, "macro.livequery_models.apply_meta_as_tags": {"name": "apply_meta_as_tags", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/tags/snowflake_tagging.sql", "original_file_path": "macros/tags/snowflake_tagging.sql", "unique_id": "macro.livequery_models.apply_meta_as_tags", "macro_sql": "{% macro apply_meta_as_tags(results) %}\n {% if var(\"UPDATE_SNOWFLAKE_TAGS\") %}\n {{ log('apply_meta_as_tags', info=False) }}\n {{ log(results, info=False) }}\n {% if execute %}\n\n {%- set tags_by_schema = {} -%}\n {% for res in results -%}\n {% if res.node.meta.database_tags %}\n\n {%- set model_database = res.node.database -%}\n {%- set model_schema = res.node.schema -%}\n {%- set model_schema_full = model_database+'.'+model_schema -%}\n {%- set model_alias = res.node.alias -%}\n\n {% if model_schema_full not in tags_by_schema.keys() %}\n {{ log('need to fetch tags for schema '+model_schema_full, info=False) }}\n {%- call statement('main', fetch_result=True) -%}\n show tags in {{model_database}}.{{model_schema}}\n {%- endcall -%}\n {%- set _ = tags_by_schema.update({model_schema_full: load_result('main')['table'].columns.get('name').values()|list}) -%}\n {{ log('Added tags to cache', info=False) }}\n {% else %}\n {{ log('already have tag info for schema', info=False) }}\n {% endif %}\n\n {%- set current_tags_in_schema = tags_by_schema[model_schema_full] -%}\n {{ log('current_tags_in_schema:', info=False) }}\n {{ log(current_tags_in_schema, info=False) }}\n {{ log(\"========== Processing tags for \"+model_schema_full+\".\"+model_alias+\" ==========\", info=False) }}\n\n {% set line -%}\n node: {{ res.node.unique_id }}; status: {{ res.status }} (message: {{ res.message }})\n node full: {{ res.node}}\n meta: {{ res.node.meta}}\n materialized: {{ res.node.config.materialized }}\n {%- endset %}\n {{ log(line, info=False) }}\n\n {%- call statement('main', fetch_result=True) -%}\n select LEVEL,UPPER(TAG_NAME) as TAG_NAME,TAG_VALUE from table(information_schema.tag_references_all_columns('{{model_schema}}.{{model_alias}}', 'table'))\n {%- endcall -%}\n {%- set existing_tags_for_table = load_result('main')['data'] -%}\n {{ log('Existing tags for table:', info=False) }}\n {{ log(existing_tags_for_table, info=False) }}\n\n {{ log('--', info=False) }}\n {% for table_tag in res.node.meta.database_tags.table %}\n\n {{ create_tag_if_missing(current_tags_in_schema,table_tag|upper) }}\n {% set desired_tag_value = res.node.meta.database_tags.table[table_tag] %}\n\n {{set_table_tag_value_if_different(model_schema,model_alias,table_tag,desired_tag_value,existing_tags_for_table)}}\n {% endfor %}\n {{ log(\"========== Finished processing tags for \"+model_alias+\" ==========\", info=False) }}\n {% endif %}\n {% endfor %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.livequery_models.create_tag_if_missing", "macro.livequery_models.set_table_tag_value_if_different"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.936518, "supported_languages": null}, "macro.livequery_models.create_tag_if_missing": {"name": "create_tag_if_missing", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/tags/snowflake_tagging.sql", "original_file_path": "macros/tags/snowflake_tagging.sql", "unique_id": "macro.livequery_models.create_tag_if_missing", "macro_sql": "{% macro create_tag_if_missing(all_tag_names,table_tag) %}\n\t{% if table_tag not in all_tag_names %}\n\t\t{{ log('Creating missing tag '+table_tag, info=False) }}\n {%- call statement('main', fetch_result=True) -%}\n create tag if not exists silver.{{table_tag}}\n {%- endcall -%}\n\t\t{{ log(load_result('main').data, info=False) }}\n\t{% else %}\n\t\t{{ log('Tag already exists: '+table_tag, info=False) }}\n\t{% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9376, "supported_languages": null}, "macro.livequery_models.set_table_tag_value_if_different": {"name": "set_table_tag_value_if_different", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/tags/snowflake_tagging.sql", "original_file_path": "macros/tags/snowflake_tagging.sql", "unique_id": "macro.livequery_models.set_table_tag_value_if_different", "macro_sql": "{% macro set_table_tag_value_if_different(model_schema,table_name,tag_name,desired_tag_value,existing_tags) %}\n {{ log('Ensuring tag '+tag_name+' has value '+desired_tag_value+' at table level', info=False) }}\n {%- set existing_tag_for_table = existing_tags|selectattr('0','equalto','TABLE')|selectattr('1','equalto',tag_name|upper)|list -%}\n {{ log('Filtered tags for table:', info=False) }}\n {{ log(existing_tag_for_table[0], info=False) }}\n {% if existing_tag_for_table|length > 0 and existing_tag_for_table[0][2]==desired_tag_value %}\n {{ log('Correct tag value already exists', info=False) }}\n {% else %}\n {{ log('Setting tag value for '+tag_name+' to value '+desired_tag_value, info=False) }}\n {%- call statement('main', fetch_result=True) -%}\n alter table {{model_schema}}.{{table_name}} set tag {{tag_name}} = '{{desired_tag_value}}'\n {%- endcall -%}\n {{ log(load_result('main').data, info=False) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9397247, "supported_languages": null}, "macro.livequery_models.set_column_tag_value_if_different": {"name": "set_column_tag_value_if_different", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/tags/snowflake_tagging.sql", "original_file_path": "macros/tags/snowflake_tagging.sql", "unique_id": "macro.livequery_models.set_column_tag_value_if_different", "macro_sql": "{% macro set_column_tag_value_if_different(table_name,column_name,tag_name,desired_tag_value,existing_tags) %}\n {{ log('Ensuring tag '+tag_name+' has value '+desired_tag_value+' at column level', info=False) }}\n {%- set existing_tag_for_column = existing_tags|selectattr('0','equalto','COLUMN')|selectattr('1','equalto',tag_name|upper)|list -%}\n {{ log('Filtered tags for column:', info=False) }}\n {{ log(existing_tag_for_column[0], info=False) }}\n {% if existing_tag_for_column|length > 0 and existing_tag_for_column[0][2]==desired_tag_value %}\n {{ log('Correct tag value already exists', info=False) }}\n {% else %}\n {{ log('Setting tag value for '+tag_name+' to value '+desired_tag_value, info=False) }}\n {%- call statement('main', fetch_result=True) -%}\n alter table {{table_name}} modify column {{column_name}} set tag {{tag_name}} = '{{desired_tag_value}}'\n {%- endcall -%}\n {{ log(load_result('main').data, info=False) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9418697, "supported_languages": null}, "macro.livequery_models.set_database_tag_value": {"name": "set_database_tag_value", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/tags/snowflake_tagging.sql", "original_file_path": "macros/tags/snowflake_tagging.sql", "unique_id": "macro.livequery_models.set_database_tag_value", "macro_sql": "{% macro set_database_tag_value(tag_name,tag_value) %}\n {% set query %}\n create tag if not exists silver.{{tag_name}}\n {% endset %}\n {% do run_query(query) %}\n {% set query %}\n alter database {{target.database}} set tag {{target.database}}.silver.{{tag_name}} = '{{tag_value}}'\n {% endset %}\n {% do run_query(query) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9426901, "supported_languages": null}, "macro.livequery_models.set_schema_tag_value": {"name": "set_schema_tag_value", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/tags/snowflake_tagging.sql", "original_file_path": "macros/tags/snowflake_tagging.sql", "unique_id": "macro.livequery_models.set_schema_tag_value", "macro_sql": "{% macro set_schema_tag_value(target_schema,tag_name,tag_value) %}\n {% set query %}\n create tag if not exists silver.{{tag_name}}\n {% endset %}\n {% do run_query(query) %}\n {% set query %}\n alter schema {{target.database}}.{{target_schema}} set tag {{target.database}}.silver.{{tag_name}} = '{{tag_value}}'\n {% endset %}\n {% do run_query(query) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9435346, "supported_languages": null}, "macro.livequery_models.add_database_or_schema_tags": {"name": "add_database_or_schema_tags", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/tags/add_database_or_schema_tags.sql", "original_file_path": "macros/tags/add_database_or_schema_tags.sql", "unique_id": "macro.livequery_models.add_database_or_schema_tags", "macro_sql": "{% macro add_database_or_schema_tags() %}\n {{ set_database_tag_value('BLOCKCHAIN_NAME','LIVEQUERY') }}\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.set_database_tag_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9438894, "supported_languages": null}, "macro.livequery_models.drop_function": {"name": "drop_function", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/livequery/manage_udfs.sql", "original_file_path": "macros/livequery/manage_udfs.sql", "unique_id": "macro.livequery_models.drop_function", "macro_sql": "{% macro drop_function(\n func_name,\n signature\n ) %}\n DROP FUNCTION IF EXISTS {{ func_name }}({{ compile_signature(signature, drop_ = True) }});\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.compile_signature"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9490283, "supported_languages": null}, "macro.livequery_models.construct_api_route": {"name": "construct_api_route", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/livequery/manage_udfs.sql", "original_file_path": "macros/livequery/manage_udfs.sql", "unique_id": "macro.livequery_models.construct_api_route", "macro_sql": "\n\n{%- macro construct_api_route(route) -%}\n 'https://{{ var(\"EXTERNAL_FUNCTION_URI\") | lower }}{{ route }}'\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9493659, "supported_languages": null}, "macro.livequery_models.compile_signature": {"name": "compile_signature", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/livequery/manage_udfs.sql", "original_file_path": "macros/livequery/manage_udfs.sql", "unique_id": "macro.livequery_models.compile_signature", "macro_sql": "{%- macro compile_signature(\n params,\n drop_ = False\n ) -%}\n {% for p in params -%}\n {%- set name = p.0 -%}\n {%- set data_type = p.1 -%}\n {% if drop_ %}\n {{ data_type -}}\n {% else %}\n {{ name ~ \" \" ~ data_type -}}\n {%- endif -%}\n {%-if not loop.last -%},\n {%- endif -%}\n {% endfor -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9502378, "supported_languages": null}, "macro.livequery_models.create_sql_function": {"name": "create_sql_function", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/livequery/manage_udfs.sql", "original_file_path": "macros/livequery/manage_udfs.sql", "unique_id": "macro.livequery_models.create_sql_function", "macro_sql": "{% macro create_sql_function(\n name_,\n signature,\n return_type,\n sql_,\n api_integration = none,\n options = none,\n func_type = none\n ) %}\n CREATE OR REPLACE {{ func_type }} FUNCTION {{ name_ }}(\n {{- livequery_models.compile_signature(signature) }}\n )\n COPY GRANTS\n RETURNS {{ return_type }}\n {% if options -%}\n {{ options }}\n {% endif %}\n {%- if api_integration -%}\n api_integration = {{ api_integration }}\n AS {{ livequery_models.construct_api_route(sql_) ~ \";\" }}\n {% else -%}\n AS\n $$\n {{ sql_ }}\n $$;\n {%- endif -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.livequery_models.compile_signature", "macro.livequery_models.construct_api_route"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9512844, "supported_languages": null}, "macro.livequery_models.create_or_drop_function_from_config": {"name": "create_or_drop_function_from_config", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/livequery/manage_udfs.sql", "original_file_path": "macros/livequery/manage_udfs.sql", "unique_id": "macro.livequery_models.create_or_drop_function_from_config", "macro_sql": "{%- macro create_or_drop_function_from_config(\n config,\n drop_ = False\n ) -%}\n {% set name_ = config [\"name\"] %}\n {% set signature = config [\"signature\"] %}\n {% set return_type = config [\"return_type\"] if config [\"return_type\"] is string else config [\"return_type\"][0] %}\n {% set sql_ = config [\"sql\"] %}\n {% set options = config [\"options\"] %}\n {% set api_integration = config [\"api_integration\"] %}\n {% set func_type = config [\"func_type\"] %}\n\n {% if not drop_ -%}\n {{ livequery_models.create_sql_function(\n name_ = name_,\n signature = signature,\n return_type = return_type,\n sql_ = sql_,\n options = options,\n api_integration = api_integration,\n func_type = func_type\n ) }}\n {%- else -%}\n {{ drop_function(\n name_,\n signature = signature,\n ) }}\n {%- endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.create_sql_function", "macro.livequery_models.drop_function"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.953151, "supported_languages": null}, "macro.livequery_models.crud_udfs": {"name": "crud_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/livequery/manage_udfs.sql", "original_file_path": "macros/livequery/manage_udfs.sql", "unique_id": "macro.livequery_models.crud_udfs", "macro_sql": "{% macro crud_udfs(config_func, schema, drop_) %}\n{#\n Generate create or drop statements for a list of udf configs for a given schema\n\n config_func: function that returns a list of udf configs\n drop_: whether to drop or create the udfs\n #}\n {% set udfs = fromyaml(config_func())%}\n {%- for udf in udfs -%}\n {% if udf[\"name\"].split(\".\") | first == schema %}\n CREATE SCHEMA IF NOT EXISTS {{ schema }};\n {{- create_or_drop_function_from_config(udf, drop_=drop_) -}}\n {%- endif -%}\n {%- endfor -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.livequery_models.create_or_drop_function_from_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.95405, "supported_languages": null}, "macro.livequery_models.crud_udfs_by_chain": {"name": "crud_udfs_by_chain", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/livequery/manage_udfs.sql", "original_file_path": "macros/livequery/manage_udfs.sql", "unique_id": "macro.livequery_models.crud_udfs_by_chain", "macro_sql": "{% macro crud_udfs_by_chain(config_func, blockchain, network, drop_) %}\n{#\n Generate create or drop statements for a list of udf configs for a given blockchain and network\n\n config_func: function that returns a list of udf configs\n blockchain: blockchain name\n network: network name\n drop_: whether to drop or create the udfs\n #}\n {% set schema = blockchain if not network else blockchain ~ \"_\" ~ network %}\n CREATE SCHEMA IF NOT EXISTS {{ schema }};\n {%- set configs = fromyaml(config_func(blockchain, network)) if network else fromyaml(config_func(schema, blockchain)) -%}\n {%- for udf in configs -%}\n {{- livequery_models.create_or_drop_function_from_config(udf, drop_=drop_) -}}\n {%- endfor -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.livequery_models.create_or_drop_function_from_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9551287, "supported_languages": null}, "macro.livequery_models.crud_udfs_by_marketplace": {"name": "crud_udfs_by_marketplace", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/livequery/manage_udfs.sql", "original_file_path": "macros/livequery/manage_udfs.sql", "unique_id": "macro.livequery_models.crud_udfs_by_marketplace", "macro_sql": "{% macro crud_udfs_by_marketplace(config_func, schema, utility_schema, drop_) %}\n{#\n Generate create or drop statements for a list of udf configs for a given blockchain and network\n\n config_func: function that returns a list of udf configs\n schema: schema name\n utility_schema: utility schema name\n #}\n CREATE SCHEMA IF NOT EXISTS {{ schema }};\n {%- set configs = fromyaml(config_func(schema, utility_schema)) if utility_schema else fromyaml(config_func(schema, schema)) -%}\n {%- for udf in configs -%}\n {{- create_or_drop_function_from_config(udf, drop_=drop_) -}}\n {%- endfor -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.livequery_models.create_or_drop_function_from_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9560099, "supported_languages": null}, "macro.livequery_models.crud_marketplace_udfs": {"name": "crud_marketplace_udfs", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/livequery/manage_udfs.sql", "original_file_path": "macros/livequery/manage_udfs.sql", "unique_id": "macro.livequery_models.crud_marketplace_udfs", "macro_sql": "{% macro crud_marketplace_udfs(config_func, schemaName, base_api_schema_name, drop_) %}\n{#\n Generate create or drop statements for a list of udf configs for a given schema and api\n\n config_func: function that returns a list of udf configs\n schemaName: the target schema to build the udfs\n base_api_schema_name: the schema that contains base api functions\n drop_: whether to drop or create the udfs\n #}\n {%- set udfs = fromyaml(config_func(schemaName, base_api_schema_name)) -%}\n {%- for udf in udfs -%}\n {{- create_or_drop_function_from_config(udf, drop_=drop_) -}}\n {%- endfor -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.livequery_models.create_or_drop_function_from_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9566882, "supported_languages": null}, "macro.livequery_models.ephemeral_deploy_core": {"name": "ephemeral_deploy_core", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/livequery/manage_udfs.sql", "original_file_path": "macros/livequery/manage_udfs.sql", "unique_id": "macro.livequery_models.ephemeral_deploy_core", "macro_sql": "{% macro ephemeral_deploy_core(config) %}\n{#\n This macro is used to deploy functions using ephemeral models.\n It should only be used within an ephemeral model.\n #}\n {% if execute and (var(\"UPDATE_UDFS_AND_SPS\") or var(\"DROP_UDFS_AND_SPS\")) and model.unique_id in selected_resources %}\n {% set sql %}\n {{- livequery_models.crud_udfs(config, this.schema, var(\"DROP_UDFS_AND_SPS\")) -}}\n {%- endset -%}\n {%- if var(\"DROP_UDFS_AND_SPS\") -%}\n {%- do log(\"Drop core udfs: \" ~ this.database ~ \".\" ~ this.schema, true) -%}\n {%- else -%}\n {%- do log(\"Deploy core udfs: \" ~ this.database ~ \".\" ~ this.schema, true) -%}\n {%- endif -%}\n {%- do run_query(sql ~ livequery_models.apply_grants_by_schema(this.schema)) -%}\n {%- endif -%}\n SELECT '{{ model.schema }}' as schema_\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.livequery_models.crud_udfs", "macro.dbt.run_query", "macro.livequery_models.apply_grants_by_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9584363, "supported_languages": null}, "macro.livequery_models.ephemeral_deploy": {"name": "ephemeral_deploy", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/livequery/manage_udfs.sql", "original_file_path": "macros/livequery/manage_udfs.sql", "unique_id": "macro.livequery_models.ephemeral_deploy", "macro_sql": "{% macro ephemeral_deploy(configs) %}\n{#\n This macro is used to deploy functions using ephemeral models.\n It should only be used within an ephemeral model.\n #}\n {%- set blockchain = this.schema -%}\n {%- set network = this.identifier -%}\n {% set schema = blockchain ~ \"_\" ~ network %}\n {% if execute and (var(\"UPDATE_UDFS_AND_SPS\") or var(\"DROP_UDFS_AND_SPS\")) and model.unique_id in selected_resources %}\n {% set sql %}\n {% for config in configs %}\n {{- livequery_models.crud_udfs_by_chain(config, blockchain, network, var(\"DROP_UDFS_AND_SPS\")) -}}\n {%- endfor -%}\n {%- endset -%}\n {%- if var(\"DROP_UDFS_AND_SPS\") -%}\n {%- do log(\"Drop partner udfs: \" ~ this.database ~ \".\" ~ schema, true) -%}\n {%- else -%}\n {%- do log(\"Deploy partner udfs: \" ~ this.database ~ \".\" ~ schema, true) -%}\n {%- endif -%}\n {%- do run_query(sql ~ livequery_models.apply_grants_by_schema(schema)) -%}\n {%- endif -%}\n SELECT '{{ model.schema }}' as schema_\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.livequery_models.crud_udfs_by_chain", "macro.dbt.run_query", "macro.livequery_models.apply_grants_by_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.960447, "supported_languages": null}, "macro.livequery_models.ephemeral_deploy_marketplace": {"name": "ephemeral_deploy_marketplace", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/livequery/manage_udfs.sql", "original_file_path": "macros/livequery/manage_udfs.sql", "unique_id": "macro.livequery_models.ephemeral_deploy_marketplace", "macro_sql": "{% macro ephemeral_deploy_marketplace(configs) %}\n{#\n This macro is used to deploy functions using ephemeral models.\n It should only be used within an ephemeral model.\n #}\n {%- set schema = this.schema -%}\n {%- set utility_schema = this.identifier -%}\n {% if execute and (var(\"UPDATE_UDFS_AND_SPS\") or var(\"DROP_UDFS_AND_SPS\")) and model.unique_id in selected_resources %}\n {% set sql %}\n {% for config in configs %}\n {{- crud_udfs_by_marketplace(config, schema, utility_schema, var(\"DROP_UDFS_AND_SPS\")) -}}\n {%- endfor -%}\n {%- endset -%}\n {%- if var(\"DROP_UDFS_AND_SPS\") -%}\n {%- do log(\"Drop marketplace udfs: \" ~ this.database ~ \".\" ~ schema, true) -%}\n {%- else -%}\n {%- do log(\"Deploy marketplace udfs: \" ~ this.database ~ \".\" ~ schema, true) -%}\n {%- endif -%}\n {%- do run_query(sql ~ livequery_models.apply_grants_by_schema(schema)) -%}\n {%- endif -%}\n SELECT '{{ model.schema }}' as schema_\n{%- endmacro -%}", "depends_on": {"macros": ["macro.livequery_models.crud_udfs_by_marketplace", "macro.dbt.run_query", "macro.livequery_models.apply_grants_by_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9623225, "supported_languages": null}, "macro.livequery_models.create_aws_ethereum_api": {"name": "create_aws_ethereum_api", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/livequery/api_integrations.sql", "original_file_path": "macros/livequery/api_integrations.sql", "unique_id": "macro.livequery_models.create_aws_ethereum_api", "macro_sql": "{% macro create_aws_ethereum_api() %}\n {% if target.name == \"prod\" %}\n {% set sql %}\n CREATE api integration IF NOT EXISTS aws_ethereum_api api_provider = aws_api_gateway api_aws_role_arn = 'arn:aws:iam::661245089684:role/snowflake-api-ethereum' api_allowed_prefixes = (\n 'https://e03pt6v501.execute-api.us-east-1.amazonaws.com/prod/',\n 'https://mryeusnrob.execute-api.us-east-1.amazonaws.com/dev/'\n ) enabled = TRUE;\n{% endset %}\n {% do run_query(sql) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9630618, "supported_languages": null}, "macro.livequery_models.create_udf_introspect": {"name": "create_udf_introspect", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/livequery/streamline_udfs.sql", "original_file_path": "macros/livequery/streamline_udfs.sql", "unique_id": "macro.livequery_models.create_udf_introspect", "macro_sql": "{% macro create_udf_introspect(\n drop_ = False\n ) %}\n {% set name_ = 'silver.udf_introspect' %}\n {% set signature = [('json', 'variant')] %}\n {% set return_type = 'text' %}\n {% set sql_ = construct_api_route(\"introspect\") %}\n {% if not drop_ %}\n {{ create_sql_function(\n name_ = name_,\n signature = signature,\n return_type = return_type,\n sql_ = sql_,\n api_integration = var(\"API_INTEGRATION\")\n ) }}\n {% else %}\n {{ drop_function(\n name_,\n signature = signature,\n ) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.construct_api_route", "macro.livequery_models.create_sql_function", "macro.livequery_models.drop_function"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9646952, "supported_languages": null}, "macro.livequery_models.sql_live_rpc_call": {"name": "sql_live_rpc_call", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/livequery/utils.sql", "original_file_path": "macros/livequery/utils.sql", "unique_id": "macro.livequery_models.sql_live_rpc_call", "macro_sql": "{% macro sql_live_rpc_call(method, params, blockchain, network) %}\n{#\n Helper macro to call a JSON RPC method on a live node.\n\n Parameters:\n method (string): The JSON RPC method to call.\n params (array): The JSON RPC parameters to pass to the method.\n blockchain (string): The blockchain to call the method on.\n network (string): The network to call the method on.\n Returns:\n string: The SQL to call the method.\n #}\n WITH result as (\n SELECT\n live.udf_api(\n '{endpoint}'\n ,utils.udf_json_rpc_call({{ method }}, {{ params }})\n ,concat_ws('/', 'integration', _utils.udf_provider(), '{{ blockchain }}', '{{ network }}')\n )::VARIANT:data AS data\n )\n SELECT\n COALESCE(data:result, {'error':data:error})\n FROM result\n{% endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9653776, "supported_languages": null}, "macro.livequery_models.config_core__utils": {"name": "config_core__utils", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/core/_utils.yaml.sql", "original_file_path": "macros/core/_utils.yaml.sql", "unique_id": "macro.livequery_models.config_core__utils", "macro_sql": "{% macro config_core__utils(schema=\"_utils\") %}\n\n- name: {{ schema }}.udf_introspect\n signature:\n - [echo, STRING]\n func_type: SECURE EXTERNAL\n return_type: TEXT\n api_integration: '{{ var(\"API_INTEGRATION\") }}'\n sql: introspect\n\n- name: {{ schema }}.udf_user_tier\n signature: []\n func_type: SECURE\n return_type: TEXT\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n MEMOIZABLE\n sql: |\n SELECT\n COALESCE(PARSE_JSON(GETVARIABLE('LIVEQUERY_CONTEXT')):userTier::STRING, 'community')\n\n- name: {{ schema }}.udf_provider\n signature: []\n func_type: SECURE\n return_type: TEXT\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n MEMOIZABLE\n sql: |\n SELECT\n COALESCE(PARSE_JSON(GETVARIABLE('LIVEQUERY_CONTEXT')):provider::STRING, 'quicknode')\n\n- name: {{ schema }}.udf_whoami\n signature: []\n func_type: SECURE\n return_type: TEXT\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n MEMOIZABLE\n sql: |\n SELECT\n COALESCE(PARSE_JSON(GETVARIABLE('LIVEQUERY_CONTEXT')):userId::STRING, CURRENT_USER())\n\n- name: {{ schema }}.udf_register_secret\n signature:\n - [request_id, STRING]\n - [user_id, STRING]\n - [key, STRING]\n return_type: OBJECT\n func_type: SECURE EXTERNAL\n api_integration: '{{ var(\"API_INTEGRATION\") }}'\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n sql: secret/register\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9666066, "supported_languages": null}, "macro.livequery_models.config_core_secrets": {"name": "config_core_secrets", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/core/secrets.yaml.sql", "original_file_path": "macros/core/secrets.yaml.sql", "unique_id": "macro.livequery_models.config_core_secrets", "macro_sql": "{% macro config_core_secrets(schema=\"secrets\") %}\n\n\n- name: {{ schema }}.udf_register_secret\n signature:\n - [request_id, STRING]\n - [key, STRING]\n func_type: SECURE\n return_type: OBJECT\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n COMMENT = $$ Registers a secret with the given request ID and key. $$\n sql: |\n SELECT\n _utils.UDF_REGISTER_SECRET(REQUEST_ID, _utils.UDF_WHOAMI(), KEY)\n\n- name: {{ schema }}.udf_get_secret\n signature:\n - [name, STRING]\n func_type: SECURE\n return_type: OBJECT\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n COMMENT = $$ Returns the secret value for the given secret name. $$\n sql: |\n SELECT\n live.udf_api(\n CONCAT_WS('/', {{ construct_api_route(\"secret\") }}, _utils.UDF_WHOAMI(), NAME)\n ):data::OBJECT\n\n- name: {{ schema }}.udf_get_secrets\n signature: []\n func_type: SECURE\n return_type: OBJECT\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n COMMENT = $$ Returns all secrets for the current user. $$\n sql: |\n SELECT\n {{ schema }}.udf_get_secret('')\n\n- name: {{ schema }}.udf_create_secret\n signature:\n - [name, STRING]\n - [secret, OBJECT]\n func_type: SECURE\n return_type: [INTEGER, the HTTP status code - 200 indicates success]\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n COMMENT = $$ Creates a new secret with the given name and value. $$\n sql: |\n SELECT\n live.udf_api(\n CONCAT_WS('/', {{ construct_api_route(\"secret\") }}, _utils.UDF_WHOAMI(), NAME),\n SECRET\n ):status_code::INTEGER\n\n- name: {{ schema }}.udf_delete_secret\n signature:\n - [name, STRING]\n func_type: SECURE\n return_type: [INTEGER, the HTTP status code - 200 indicates success]\n options: |\n NULL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n COMMENT = $$ Deletes the secret with the given name. $$\n sql: |\n SELECT\n live.udf_api(\n 'DELETE',\n CONCAT_WS('/', {{ construct_api_route(\"secret\") }}, _utils.UDF_WHOAMI(), NAME),\n {},\n {},\n ''\n ):status_code::INTEGER\n\n\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.construct_api_route"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9683714, "supported_languages": null}, "macro.livequery_models.config_core_live": {"name": "config_core_live", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/core/live.yaml.sql", "original_file_path": "macros/core/live.yaml.sql", "unique_id": "macro.livequery_models.config_core_live", "macro_sql": "{% macro config_core_live(schema=\"live\") %}\n\n- name: {{ schema }}.udf_api\n signature:\n - [method, STRING]\n - [url, STRING]\n - [headers, OBJECT]\n - [data, VARIANT]\n - [secret_name, STRING]\n return_type: VARIANT\n options: |\n VOLATILE\n sql: |\n SELECT\n _live.UDF_API(\n method,\n url,\n headers,\n data,\n _utils.UDF_WHOAMI(),\n secret_name\n )\n- name: {{ schema }}.udf_api\n signature:\n - [method, STRING]\n - [url, STRING]\n - [headers, OBJECT]\n - [data, VARIANT]\n return_type: VARIANT\n options: |\n VOLATILE\n sql: |\n SELECT\n _live.UDF_API(\n method,\n url,\n headers,\n data,\n _utils.UDF_WHOAMI(),\n ''\n )\n- name: {{ schema }}.udf_api\n signature:\n - [url, STRING]\n - [data, VARIANT]\n return_type: VARIANT\n options: |\n VOLATILE\n sql: |\n SELECT\n _live.UDF_API(\n 'POST',\n url,\n {'Content-Type': 'application/json'},\n data,\n _utils.UDF_WHOAMI(),\n ''\n )\n- name: {{ schema }}.udf_api\n signature:\n - [url, STRING]\n - [data, VARIANT]\n - [secret_name, STRING]\n return_type: VARIANT\n options: |\n VOLATILE\n sql: |\n SELECT\n _live.UDF_API(\n 'POST',\n url,\n {'Content-Type': 'application/json'},\n data,\n _utils.UDF_WHOAMI(),\n secret_name\n )\n- name: {{ schema }}.udf_api\n signature:\n - [url, STRING]\n return_type: VARIANT\n options: |\n VOLATILE\n sql: |\n SELECT\n _live.UDF_API(\n 'GET',\n url,\n {},\n NULL,\n _utils.UDF_WHOAMI(),\n ''\n )\n- name: {{ schema }}.udf_api\n signature:\n - [url, STRING]\n - [secret_name, STRING]\n return_type: VARIANT\n options: |\n VOLATILE\n sql: |\n SELECT\n _live.UDF_API(\n 'GET',\n url,\n {},\n {},\n _utils.UDF_WHOAMI(),\n secret_name\n )\n\n- name: {{ schema }}.udf_rpc\n signature:\n - [blockchain, STRING]\n - [network, STRING]\n - [method, STRING]\n - [parameters, VARIANT]\n return_type: VARIANT\n options: |\n VOLATILE\n COMMENT = $$Executes an JSON RPC call on a blockchain.$$\n sql: |\n {{ sql_live_rpc_call(\"method\", \"parameters\", \"blockchain\", \"network\") | indent(4) -}}\n\n- name: {{ schema }}.udf_allow_list\n signature: []\n return_type: ARRAY\n func_type: EXTERNAL\n api_integration: '{{ var(\"API_INTEGRATION\") }}'\n options: |\n RETURNS NULL ON NULL INPUT\n VOLATILE\n COMMENT = $$Returns a list of allowed domains.$$\n sql: allowed\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.sql_live_rpc_call"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9705453, "supported_languages": null}, "macro.livequery_models.sql_udf_json_rpc_call": {"name": "sql_udf_json_rpc_call", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/core/functions.sql", "original_file_path": "macros/core/functions.sql", "unique_id": "macro.livequery_models.sql_udf_json_rpc_call", "macro_sql": "{% macro sql_udf_json_rpc_call(use_default_id=True ) %}\n SELECT IFF(method IS NULL or params IS NULL,\n NULL,\n {\n 'jsonrpc': '2.0',\n 'method': method,\n 'params': params\n {% if use_default_id %}\n , 'id': hash(method, params)::string\n {% else %}\n , 'id': id\n {% endif %}\n }\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9710681, "supported_languages": null}, "macro.livequery_models.python_hex_to_int": {"name": "python_hex_to_int", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/core/functions.py.sql", "original_file_path": "macros/core/functions.py.sql", "unique_id": "macro.livequery_models.python_hex_to_int", "macro_sql": "{% macro python_hex_to_int() %}\ndef hex_to_int(hex) -> str:\n \"\"\"\n Converts hex (of any size) to int (as a string). Snowflake and java script can only handle up to 64-bit (38 digits of precision)\n hex_to_int('200000000000000000000000000000211');\n >> 680564733841876926926749214863536423441\n hex_to_int('0x200000000000000000000000000000211');\n >> 680564733841876926926749214863536423441\n hex_to_int(NULL);\n >> NULL\n \"\"\"\n try:\n return str(int(hex, 16)) if hex and hex != \"0x\" else None\n except:\n return None\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9735453, "supported_languages": null}, "macro.livequery_models.python_udf_hex_to_int_with_encoding": {"name": "python_udf_hex_to_int_with_encoding", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/core/functions.py.sql", "original_file_path": "macros/core/functions.py.sql", "unique_id": "macro.livequery_models.python_udf_hex_to_int_with_encoding", "macro_sql": "{% macro python_udf_hex_to_int_with_encoding() %}\ndef hex_to_int(encoding, hex) -> str:\n \"\"\"\n Converts hex (of any size) to int (as a string). Snowflake and java script can only handle up to 64-bit (38 digits of precision)\n hex_to_int('hex', '200000000000000000000000000000211');\n >> 680564733841876926926749214863536423441\n hex_to_int('hex', '0x200000000000000000000000000000211');\n >> 680564733841876926926749214863536423441\n hex_to_int('hex', NULL);\n >> NULL\n hex_to_int('s2c', 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffe5b83acf');\n >> -440911153\n \"\"\"\n try:\n if not hex:\n return None\n if encoding.lower() == 's2c':\n if hex[0:2].lower() != '0x':\n hex = f'0x{hex}'\n\n bits = len(hex[2:]) * 4\n value = int(hex, 0)\n if value & (1 << (bits - 1)):\n value -= 1 << bits\n return str(value)\n else:\n return str(int(hex, 16))\n except:\n return None\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9737918, "supported_languages": null}, "macro.livequery_models.create_udf_keccak256": {"name": "create_udf_keccak256", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/core/functions.py.sql", "original_file_path": "macros/core/functions.py.sql", "unique_id": "macro.livequery_models.create_udf_keccak256", "macro_sql": "{% macro create_udf_keccak256() %}\nfrom Crypto.Hash import keccak\n\ndef udf_encode(event_name):\n keccak_hash = keccak.new(digest_bits=256)\n keccak_hash.update(event_name.encode('utf-8'))\n return '0x' + keccak_hash.hexdigest()\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9739661, "supported_languages": null}, "macro.livequery_models.create_udf_evm_text_signature": {"name": "create_udf_evm_text_signature", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/core/functions.py.sql", "original_file_path": "macros/core/functions.py.sql", "unique_id": "macro.livequery_models.create_udf_evm_text_signature", "macro_sql": "{% macro create_udf_evm_text_signature() %}\n\ndef get_simplified_signature(abi):\n def generate_signature(inputs):\n signature_parts = []\n for input_data in inputs:\n if 'components' in input_data:\n component_signature_parts = []\n components = input_data['components']\n component_signature_parts.extend(generate_signature(components))\n component_signature_parts[-1] = component_signature_parts[-1].rstrip(\",\")\n if input_data['type'].endswith('[]'):\n signature_parts.append(\"(\" + \"\".join(component_signature_parts) + \")[],\")\n else:\n signature_parts.append(\"(\" + \"\".join(component_signature_parts) + \"),\")\n else:\n signature_parts.append(input_data['type'].replace('enum ', '').replace(' payable', '') + \",\")\n return signature_parts\n\n signature_parts = [abi['name'] + \"(\"]\n signature_parts.extend(generate_signature(abi['inputs']))\n signature_parts[-1] = signature_parts[-1].rstrip(\",\") + \")\"\n return \"\".join(signature_parts)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.974225, "supported_languages": null}, "macro.livequery_models.python_object_to_url_query_string": {"name": "python_object_to_url_query_string", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/core/functions.py.sql", "original_file_path": "macros/core/functions.py.sql", "unique_id": "macro.livequery_models.python_object_to_url_query_string", "macro_sql": "{% macro python_object_to_url_query_string() %}\nfrom urllib.parse import urlencode\n\ndef object_to_url_query_string(query, doseq=False):\n {# return type(query) #}\n if isinstance(query, dict):\n return urlencode(query, doseq)\n return urlencode([tuple(i) for i in query], doseq)\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9744213, "supported_languages": null}, "macro.livequery_models.python_udf_evm_transform_log": {"name": "python_udf_evm_transform_log", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/core/functions.py.sql", "original_file_path": "macros/core/functions.py.sql", "unique_id": "macro.livequery_models.python_udf_evm_transform_log", "macro_sql": "{% macro python_udf_evm_transform_log(schema) %}\nfrom copy import deepcopy\n\ndef transform_event(event: dict):\n new_event = deepcopy(event)\n if new_event.get(\"components\"):\n components = new_event.get(\"components\")\n for iy, y in enumerate(new_event[\"value\"]):\n for i, c in enumerate(components):\n y[i] = {\"value\": y[i], **c}\n new_event[\"value\"][iy] = {z[\"name\"]: z[\"value\"] for z in y}\n return new_event\n else:\n return event\n\n\ndef transform(events: list):\n try:\n results = [\n transform_event(event) if event[\"decoded\"] else event\n for event in events[\"data\"]\n ]\n events[\"data\"] = results\n return events\n except:\n return events\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.974657, "supported_languages": null}, "macro.livequery_models.create_udf_base58_to_hex": {"name": "create_udf_base58_to_hex", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/core/functions.py.sql", "original_file_path": "macros/core/functions.py.sql", "unique_id": "macro.livequery_models.create_udf_base58_to_hex", "macro_sql": "{% macro create_udf_base58_to_hex() %}\n\ndef transform_base58_to_hex(base58):\n if base58 is None:\n return 'Invalid input'\n\n ALPHABET = \"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\"\n base_count = len(ALPHABET)\n\n num = 0\n leading_zeros = 0\n\n for char in base58:\n if char == '1':\n leading_zeros += 1\n else:\n break\n\n for char in base58:\n num *= base_count\n if char in ALPHABET:\n num += ALPHABET.index(char)\n else:\n return 'Invalid character in input'\n\n hex_string = hex(num)[2:]\n\n if len(hex_string) % 2 != 0:\n hex_string = '0' + hex_string\n\n hex_leading_zeros = '00' * leading_zeros\n\n return '0x' + hex_leading_zeros + hex_string\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9748778, "supported_languages": null}, "macro.livequery_models.create_udf_hex_to_base58": {"name": "create_udf_hex_to_base58", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/core/functions.py.sql", "original_file_path": "macros/core/functions.py.sql", "unique_id": "macro.livequery_models.create_udf_hex_to_base58", "macro_sql": "{% macro create_udf_hex_to_base58() %}\n\ndef transform_hex_to_base58(hex):\n if hex is None or not hex.startswith('0x'):\n return 'Invalid input'\n\n hex = hex[2:]\n\n ALPHABET = \"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\"\n byte_array = bytes.fromhex(hex)\n num = int.from_bytes(byte_array, 'big')\n\n encoded = ''\n while num > 0:\n num, remainder = divmod(num, 58)\n encoded = ALPHABET[remainder] + encoded\n\n for byte in byte_array:\n if byte == 0:\n encoded = '1' + encoded\n else:\n break\n\n return encoded\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9750805, "supported_languages": null}, "macro.livequery_models.create_udf_hex_to_bech32": {"name": "create_udf_hex_to_bech32", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/core/functions.py.sql", "original_file_path": "macros/core/functions.py.sql", "unique_id": "macro.livequery_models.create_udf_hex_to_bech32", "macro_sql": "{% macro create_udf_hex_to_bech32() %}\n\ndef transform_hex_to_bech32(hex, hrp=''):\n CHARSET = \"qpzry9x8gf2tvdw0s3jn54khce6mua7l\"\n\n def bech32_polymod(values):\n generator = [0x3b6a57b2, 0x26508e6d, 0x1ea119fa, 0x3d4233dd, 0x2a1462b3]\n checksum = 1\n for value in values:\n top = checksum >> 25\n checksum = ((checksum & 0x1ffffff) << 5) ^ value\n for i in range(5):\n checksum ^= generator[i] if ((top >> i) & 1) else 0\n return checksum\n\n def bech32_hrp_expand(hrp):\n return [ord(x) >> 5 for x in hrp] + [0] + [ord(x) & 31 for x in hrp]\n\n def bech32_create_checksum(hrp, data):\n values = bech32_hrp_expand(hrp) + data\n polymod = bech32_polymod(values + [0, 0, 0, 0, 0, 0]) ^ 1\n return [(polymod >> 5 * (5 - i)) & 31 for i in range(6)]\n\n def bech32_convertbits(data, from_bits, to_bits, pad=True):\n acc = 0\n bits = 0\n ret = []\n maxv = (1 << to_bits) - 1\n max_acc = (1 << (from_bits + to_bits - 1)) - 1\n for value in data:\n acc = ((acc << from_bits) | value) & max_acc\n bits += from_bits\n while bits >= to_bits:\n bits -= to_bits\n ret.append((acc >> bits) & maxv)\n if pad and bits:\n ret.append((acc << (to_bits - bits)) & maxv)\n return ret\n\n if hex is None or not hex.startswith('0x'):\n return 'Invalid input'\n\n hex = hex[2:]\n\n data = bytes.fromhex(hex)\n data5bit = bech32_convertbits(list(data), 8, 5)\n\n if data5bit is None:\n return 'Data conversion failed'\n\n checksum = bech32_create_checksum(hrp, data5bit)\n \n return hrp + '1' + ''.join([CHARSET[d] for d in data5bit + checksum])\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9753976, "supported_languages": null}, "macro.livequery_models.create_udf_int_to_binary": {"name": "create_udf_int_to_binary", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/core/functions.py.sql", "original_file_path": "macros/core/functions.py.sql", "unique_id": "macro.livequery_models.create_udf_int_to_binary", "macro_sql": "{% macro create_udf_int_to_binary() %}\n\ndef int_to_binary(num):\n num = int(num)\n is_negative = num < 0\n if is_negative:\n num = -num\n\n binary_string = bin(num)[2:]\n\n if is_negative:\n inverted_string = \"\".join(\"1\" if bit == \"0\" else \"0\" for bit in binary_string)\n\n carry = 1\n result = \"\"\n for i in range(len(inverted_string) - 1, -1, -1):\n if inverted_string[i] == \"1\" and carry == 1:\n result = \"0\" + result\n elif inverted_string[i] == \"0\" and carry == 1:\n result = \"1\" + result \n carry = 0\n else:\n result = inverted_string[i] + result\n\n binary_string = result \n\n return binary_string \n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9756186, "supported_languages": null}, "macro.livequery_models.create_udf_binary_to_int": {"name": "create_udf_binary_to_int", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/core/functions.py.sql", "original_file_path": "macros/core/functions.py.sql", "unique_id": "macro.livequery_models.create_udf_binary_to_int", "macro_sql": "{% macro create_udf_binary_to_int() %}\n\ndef binary_to_int(binary):\n\n for char in binary:\n if char not in \"01\":\n raise ValueError(\"Input string must be a valid binary string.\")\n \n integer = 0\n\n for i, digit in enumerate(binary[::-1]):\n digit_int = int(digit)\n\n integer += digit_int * 2**i\n\n return str(integer)\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.975799, "supported_languages": null}, "macro.livequery_models.config_core__live": {"name": "config_core__live", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/core/_live.yaml.sql", "original_file_path": "macros/core/_live.yaml.sql", "unique_id": "macro.livequery_models.config_core__live", "macro_sql": "{% macro config_core__live(schema=\"_live\") %}\n\n- name: {{ schema }}.udf_api\n signature:\n - [method, STRING]\n - [url, STRING]\n - [headers, OBJECT]\n - [DATA, VARIANT]\n - [user_id, STRING]\n - [SECRET, STRING]\n return_type: VARIANT\n func_type: EXTERNAL\n api_integration: '{{ var(\"API_INTEGRATION\") }}'\n options: |\n NOT NULL\n sql: udf_api\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9763026, "supported_languages": null}, "macro.livequery_models.config_core_utils": {"name": "config_core_utils", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/core/utils.yaml.sql", "original_file_path": "macros/core/utils.yaml.sql", "unique_id": "macro.livequery_models.config_core_utils", "macro_sql": "{% macro config_core_utils(schema=\"utils\") %}\n\n\n- name: {{ schema }}.udf_register_secret\n signature:\n - [request_id, STRING]\n - [key, STRING]\n func_type: SECURE\n return_type: OBJECT\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n sql: |\n SELECT\n _utils.UDF_REGISTER_SECRET(REQUEST_ID, _utils.UDF_WHOAMI(), KEY)\n\n- name: {{ schema }}.udf_hex_to_int\n signature:\n - [hex, STRING]\n return_type: TEXT\n options: |\n NULL\n LANGUAGE PYTHON\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n RUNTIME_VERSION = '3.8'\n HANDLER = 'hex_to_int'\n sql: |\n {{ python_hex_to_int() | indent(4) }}\n- name: {{ schema }}.udf_hex_to_int\n signature:\n - [encoding, STRING]\n - [hex, STRING]\n return_type: TEXT\n options: |\n NULL\n LANGUAGE PYTHON\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n RUNTIME_VERSION = '3.8'\n HANDLER = 'hex_to_int'\n sql: |\n {{ python_udf_hex_to_int_with_encoding() | indent(4) }}\n- name: {{ schema }}.udf_evm_text_signature\n signature:\n - [abi, VARIANT]\n return_type: TEXT\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.8'\n HANDLER = 'get_simplified_signature'\n sql: |\n {{ create_udf_evm_text_signature() | indent(4) }}\n- name: {{ schema }}.udf_keccak256\n signature:\n - [event_name, VARCHAR(255)]\n return_type: TEXT\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.8'\n PACKAGES = ('pycryptodome==3.15.0')\n HANDLER = 'udf_encode'\n sql: |\n {{ create_udf_keccak256() | indent(4) }}\n- name: {{ schema }}.udf_hex_to_string\n signature:\n - [hex, STRING]\n return_type: TEXT\n options: |\n NULL\n LANGUAGE SQL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n sql: |\n SELECT\n LTRIM(regexp_replace(\n try_hex_decode_string(hex),\n '[\\x00-\\x1F\\x7F-\\x9F\\xAD]', '', 1))\n- name: {{ schema }}.udf_int_to_hex\n signature:\n - [int, INTEGER]\n return_type: TEXT\n options: |\n NULL\n LANGUAGE SQL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n sql: |\n select CONCAT('0x', TRIM(TO_CHAR(int, 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')))\n\n- name: {{ schema }}.udf_json_rpc_call\n signature:\n - [method, STRING]\n - [params, ARRAY]\n return_type: OBJECT\n options: |\n NULL\n LANGUAGE SQL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n sql: |\n {{ sql_udf_json_rpc_call() }}\n- name: {{ schema }}.udf_json_rpc_call\n signature:\n - [method, STRING]\n - [params, OBJECT]\n return_type: OBJECT\n options: |\n NULL\n LANGUAGE SQL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n sql: |\n {{ sql_udf_json_rpc_call() }}\n- name: {{ schema }}.udf_json_rpc_call\n signature:\n - [method, STRING]\n - [params, OBJECT]\n - [id, STRING]\n return_type: OBJECT\n options: |\n NULL\n LANGUAGE SQL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n sql: |\n {{ sql_udf_json_rpc_call(False) }}\n- name: {{ schema }}.udf_json_rpc_call\n signature:\n - [method, STRING]\n - [params, ARRAY]\n - [id, STRING]\n return_type: OBJECT\n options: |\n NULL\n LANGUAGE SQL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n sql: |\n {{ sql_udf_json_rpc_call(False) }}\n\n- name: {{ schema }}.udf_urlencode\n signature:\n - [query, OBJECT]\n - [doseq, BOOLEAN]\n return_type: TEXT\n options: |\n NULL\n LANGUAGE PYTHON\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n RUNTIME_VERSION = '3.8'\n COMMENT=$$Pthon (function)[https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urlencode] to convert an object to a URL query string.$$\n HANDLER = 'object_to_url_query_string'\n sql: |\n {{ python_object_to_url_query_string() | indent(4) }}\n- name: {{ schema }}.udf_urlencode\n signature:\n - [query, ARRAY]\n - [doseq, BOOLEAN]\n return_type: TEXT\n options: |\n NULL\n LANGUAGE PYTHON\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n RUNTIME_VERSION = '3.8'\n COMMENT=$$Pthon (function)[https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urlencode] to convert an array to a URL query string.$$\n HANDLER = 'object_to_url_query_string'\n sql: |\n {{ python_object_to_url_query_string() | indent(4) }}\n- name: {{ schema }}.udf_urlencode\n signature:\n - [query, ARRAY]\n return_type: TEXT\n options: |\n NULL\n LANGUAGE SQL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n sql: |\n SELECT {{ schema }}.udf_urlencode(query, FALSE)\n- name: {{ schema }}.udf_urlencode\n signature:\n - [query, OBJECT]\n return_type: TEXT\n options: |\n NULL\n LANGUAGE SQL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n sql: |\n SELECT {{ schema }}.udf_urlencode(query, FALSE)\n- name: {{ schema }}.udf_object_to_url_query_string\n signature:\n - [object, OBJECT]\n return_type: TEXT\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n sql: SELECT utils.udf_urlencode(object, FALSE)\n\n- name: {{ schema }}.udf_evm_transform_log\n signature:\n - [decoded, VARIANT]\n return_type: VARIANT\n options: |\n NULL\n LANGUAGE PYTHON\n IMMUTABLE\n RUNTIME_VERSION = '3.8'\n HANDLER = 'transform'\n sql: |\n {{ python_udf_evm_transform_log() | indent(4) }}\n\n- name: {{ schema }}.udf_evm_decode_log\n signature:\n - [abi, ARRAY]\n - [data, OBJECT]\n return_type: ARRAY\n func_type: EXTERNAL\n api_integration: '{{ var(\"API_INTEGRATION\") }}'\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n sql: evm/decode/log\n- name: {{ schema }}.udf_evm_decode_log\n signature:\n - [abi, OBJECT]\n - [data, OBJECT]\n return_type: ARRAY\n func_type: EXTERNAL\n api_integration: '{{ var(\"API_INTEGRATION\") }}'\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n sql: evm/decode/log\n\n- name: {{ schema }}.udf_evm_decode_trace\n signature:\n - [abi, OBJECT]\n - [data, OBJECT]\n return_type: ARRAY\n func_type: EXTERNAL\n api_integration: '{{ var(\"API_INTEGRATION\") }}'\n options: |\n NOT NULL\n RETURNS NULL ON NULL INPUT\n sql: evm/decode/trace\n\n- name: {{ schema }}.udf_base58_to_hex\n signature:\n - [base58, STRING]\n return_type: TEXT\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.8'\n HANDLER = 'transform_base58_to_hex'\n sql: |\n {{ create_udf_base58_to_hex() | indent(4) }}\n\n- name: {{ schema }}.udf_hex_to_base58\n signature:\n - [hex, STRING]\n return_type: TEXT\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.8'\n HANDLER = 'transform_hex_to_base58'\n sql: |\n {{ create_udf_hex_to_base58() | indent(4) }}\n\n- name: {{ schema }}.udf_hex_to_bech32\n signature:\n - [hex, STRING]\n - [hrp, STRING]\n return_type: TEXT\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.8'\n HANDLER = 'transform_hex_to_bech32'\n sql: |\n {{ create_udf_hex_to_bech32() | indent(4) }}\n\n- name: {{ schema }}.udf_int_to_binary\n signature:\n - [num, STRING]\n return_type: TEXT\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.8'\n HANDLER = 'int_to_binary'\n sql: |\n {{ create_udf_int_to_binary() | indent(4) }}\n\n- name: {{ schema }}.udf_binary_to_int\n signature:\n - [binary, STRING]\n return_type: TEXT\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.8'\n HANDLER = 'binary_to_int'\n sql: |\n {{ create_udf_binary_to_int() | indent(4) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.livequery_models.python_hex_to_int", "macro.livequery_models.python_udf_hex_to_int_with_encoding", "macro.livequery_models.create_udf_evm_text_signature", "macro.livequery_models.create_udf_keccak256", "macro.livequery_models.sql_udf_json_rpc_call", "macro.livequery_models.python_object_to_url_query_string", "macro.livequery_models.python_udf_evm_transform_log", "macro.livequery_models.create_udf_base58_to_hex", "macro.livequery_models.create_udf_hex_to_base58", "macro.livequery_models.create_udf_hex_to_bech32", "macro.livequery_models.create_udf_int_to_binary", "macro.livequery_models.create_udf_binary_to_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9895937, "supported_languages": null}, "macro.livequery_models.base_test_udf": {"name": "base_test_udf", "resource_type": "macro", "package_name": "livequery_models", "path": "macros/tests/udfs.sql", "original_file_path": "macros/tests/udfs.sql", "unique_id": "macro.livequery_models.base_test_udf", "macro_sql": "{% macro base_test_udf(model, udf, args, assertions) %}\n{#\n Generates a test for a UDF.\n #}\n{% if execute %}\n {%- set context -%}\n SET LIVEQUERY_CONTEXT = '{\"userId\":\"{{ var(\"STUDIO_TEST_USER_ID\") }}\"}';\n {%- endset -%}\n {%- do run_query(context) -%}\n{%- endif -%}\n{%- set call -%}\n{{ target.database }}.{{ udf }}({{ args }})\n{%- endset -%}\n,\ntest AS\n(\n SELECT\n '{{ udf }}' AS test_name\n ,[{{ args }}] as parameters\n ,{{ call }} AS result\n)\n {% for assertion in assertions %}\n SELECT\n test_name,\n parameters,\n result,\n $${{ assertion }}$$ AS assertion,\n $${{ context ~ \"\\n\" }}SELECT {{ call ~ \"\\n\" }};$$ AS sql\n FROM test\n WHERE NOT {{ assertion }}\n {%- if not loop.last %}\n UNION ALL\n {%- endif -%}\n {%- endfor -%}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.9915993, "supported_languages": null}, "macro.livequery_models.test_test_udf": {"name": "test_test_udf", "resource_type": "macro", "package_name": "livequery_models", "path": "tests/generic/test_udf.sql", "original_file_path": "tests/generic/test_udf.sql", "unique_id": "macro.livequery_models.test_test_udf", "macro_sql": "{% test test_udf(model, column_name, args, assertions) %}\n {#\n This is a generic test for UDFs.\n The udfs are deployed using ephemeral models, as of dbt-core > 1.8\n we need to use `this.identifier` to extract the schema from for base_test_udf().\n #}\n \n {% set schema = none %}\n \n {% if execute %}\n {# Extract schema based on standard pattern `test___ #}\n {% set test_identifier = this.identifier %}\n \n {% if test_identifier.startswith('test_') %}\n {% set test_identifier = test_identifier[5:] %}\n {% endif %}\n \n {# Handle schemas with underscore prefix #}\n {% if test_identifier.startswith('_') %}\n {# For identifiers like _utils_ #}\n {% set parts = test_identifier.split('_') %}\n {% if parts | length > 2 %}\n {% set schema = '_' ~ parts[1] %}\n {% else %}\n {% set schema = parts[0] %}\n {% endif %}\n {% else %}\n {# For identifiers without underscore prefix #}\n {% set parts = test_identifier.split('_') %}\n {% if parts | length > 0 %}\n {% set schema = parts[0] %}\n {% endif %}\n {% endif %}\n {% endif %}\n \n {% set udf = schema ~ \".\" ~ column_name %}\n\n {{ base_test_udf(model, udf, args, assertions) }}\n{% endtest %}", "depends_on": {"macros": ["macro.livequery_models.base_test_udf"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113495.994547, "supported_languages": null}, "macro.fsc_utils.dynamic_range_predicate": {"name": "dynamic_range_predicate", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/dynamic_range_predicate.sql", "original_file_path": "macros/dynamic_range_predicate.sql", "unique_id": "macro.fsc_utils.dynamic_range_predicate", "macro_sql": "{% macro dynamic_range_predicate(source, predicate_column, output_alias=\"\") -%}\n {% set supported_data_types = [\"INTEGER\",\"DATE\"] %}\n {% set predicate_column_data_type_query %}\n SELECT typeof({{predicate_column}}::variant)\n FROM {{ source }}\n WHERE {{predicate_column}} IS NOT NULL\n LIMIT 1;\n {% endset %}\n {% set predicate_column_data_type_result = run_query(predicate_column_data_type_query) %}\n {% if predicate_column_data_type_result.rows|length == 0 %}\n {{ return('1=1') }}\n {% endif %}\n {% set predicate_column_data_type = predicate_column_data_type_result.columns[0].values()[0] %}\n \n\n {% if predicate_column_data_type not in supported_data_types %}\n {{ exceptions.raise_compiler_error(\"Data type of \"~ predicate_column_data_type ~\" is not supported, use one of \"~ supported_data_types ~\" column instead\") }}\n {% endif %}\n\n {% set get_start_end_query %}\n SELECT\n MIN(\n {{ predicate_column }}\n ) AS full_range_start,\n MAX(\n {{ predicate_column }}\n ) AS full_range_end\n FROM\n {{ source }}\n {% endset %}\n {% set start_end_results = run_query(get_start_end_query).columns %}\n {% set start_preciate_value = start_end_results[0].values()[0] %}\n {% set end_predicate_value = start_end_results[1].values()[0] %}\n\n {% set get_limits_query %}\n WITH block_range AS (\n {% if predicate_column_data_type == \"INTEGER\" %}\n SELECT \n SEQ4() + {{ start_preciate_value }} as predicate_value\n FROM \n TABLE(GENERATOR(rowcount => {{ end_predicate_value - start_preciate_value }}+1))\n {% else %}\n SELECT\n date_day as predicate_value\n FROM\n crosschain.core.dim_dates\n WHERE\n date_day BETWEEN '{{ start_preciate_value }}' AND '{{ end_predicate_value }}'\n {% endif %}\n ),\n partition_block_counts AS (\n SELECT\n b.predicate_value,\n COUNT(r.{{ predicate_column }}) AS count_in_window\n FROM\n block_range b\n LEFT OUTER JOIN {{ source }}\n r\n ON r.{{ predicate_column }} = b.predicate_value\n GROUP BY\n 1\n ),\n range_groupings AS (\n SELECT\n predicate_value,\n count_in_window,\n conditional_change_event(\n count_in_window > 0\n ) over (\n ORDER BY\n predicate_value\n ) AS group_val\n FROM\n partition_block_counts\n ),\n contiguous_ranges AS (\n SELECT\n MIN(predicate_value) AS start_value,\n MAX(predicate_value) AS end_value\n FROM\n range_groupings\n WHERE\n count_in_window > 0\n GROUP BY\n group_val\n ),\n between_stmts AS (\n SELECT\n CONCAT(\n '{{ output_alias~\".\" if output_alias else \"\" }}',\n '{{ predicate_column }} between \\'',\n start_value,\n '\\' and \\'',\n end_value,\n '\\''\n ) AS b\n FROM\n contiguous_ranges\n )\n SELECT\n CONCAT('(', LISTAGG(b, ' OR '), ')')\n FROM\n between_stmts \n {% endset %}\n \n {% set between_stmts = run_query(get_limits_query).columns[0].values()[0] %}\n\n {% if between_stmts != '()' %}\n /* in case empty update array */\n {% set predicate_override = between_stmts %}\n {% else %}\n {% set predicate_override = '1=1' %}\n /* need to have something or it will error since it expects at least 1 predicate */\n {% endif %}\n\n {{ return(predicate_override) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0037124, "supported_languages": null}, "macro.fsc_utils.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/custom_naming_macros.sql", "original_file_path": "macros/custom_naming_macros.sql", "unique_id": "macro.fsc_utils.generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {% set node_name = node.name %}\n {% set split_name = node_name.split('__') %}\n {{ split_name[0] | trim }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0045254, "supported_languages": null}, "macro.fsc_utils.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/custom_naming_macros.sql", "original_file_path": "macros/custom_naming_macros.sql", "unique_id": "macro.fsc_utils.generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% set node_name = node.name %}\n {% set split_name = node_name.split('__') %}\n {{ split_name[1] | trim }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0050912, "supported_languages": null}, "macro.fsc_utils.create_gha_tasks": {"name": "create_gha_tasks", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/workflow_tasks.sql", "original_file_path": "macros/workflow_tasks.sql", "unique_id": "macro.fsc_utils.create_gha_tasks", "macro_sql": "{% macro create_gha_tasks() %}\n {% set query %}\nSELECT\n task_name,\n workflow_name,\n workflow_schedule\nFROM\n {{ ref('github_actions__tasks') }}\n\n {% endset %}\n {% set results = run_query(query) %}\n {% if execute and results is not none %}\n {% set results_list = results.rows %}\n {% else %}\n {% set results_list = [] %}\n {% endif %}\n\n {% set prod_db = target.database.lower().replace(\n '_dev',\n ''\n ) %}\n {% for result in results_list %}\n {% set task_name = result [0] %}\n {% set workflow_name = result [1] %}\n {% set workflow_schedule = result [2] %}\n {% set sql %}\n EXECUTE IMMEDIATE 'CREATE OR REPLACE TASK github_actions.{{ task_name }} WAREHOUSE = DBT_CLOUD SCHEDULE = \\'USING CRON {{ workflow_schedule }} UTC\\' COMMENT = \\'Task to trigger {{ workflow_name }}.yml workflow according to {{ workflow_schedule }}\\' AS DECLARE rs resultset; output string; BEGIN rs := (SELECT github_actions.workflow_dispatches(\\'FlipsideCrypto\\', \\'{{ prod_db }}-models\\', \\'{{ workflow_name }}.yml\\', NULL):status_code::int AS status_code); SELECT LISTAGG($1, \\';\\') INTO :output FROM TABLE(result_scan(LAST_QUERY_ID())) LIMIT 1; CALL SYSTEM$SET_RETURN_VALUE(:output); END;' {% endset %}\n {% do run_query(sql) %}\n {% if var(\"START_GHA_TASKS\") %}\n {% if target.database.lower() == prod_db %}\n {% set sql %}\n ALTER task github_actions.{{ task_name }}\n resume;\n{% endset %}\n {% do run_query(sql) %}\n {% endif %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0160728, "supported_languages": null}, "macro.fsc_utils.gha_tasks_view": {"name": "gha_tasks_view", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/workflow_tasks.sql", "original_file_path": "macros/workflow_tasks.sql", "unique_id": "macro.fsc_utils.gha_tasks_view", "macro_sql": "{% macro gha_tasks_view() %}\nSELECT\n workflow_name,\n concat_ws(\n '_',\n 'TRIGGER',\n UPPER(workflow_name)\n ) AS task_name,\n workflow_schedule\nFROM\n {{ source(\n 'github_actions',\n 'workflows'\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0164034, "supported_languages": null}, "macro.fsc_utils.gha_task_history_view": {"name": "gha_task_history_view", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/workflow_tasks.sql", "original_file_path": "macros/workflow_tasks.sql", "unique_id": "macro.fsc_utils.gha_task_history_view", "macro_sql": "{% macro gha_task_history_view() %}\n {% set query %}\nSELECT\n DISTINCT task_name\nFROM\n {{ ref('github_actions__tasks') }}\n\n {% endset %}\n {% set results = run_query(query) %}\n {% if execute and results is not none %}\n {% set results_list = results.rows %}\n {% else %}\n {% set results_list = [] %}\n {% endif %}\n\n WITH task_history_data AS (\n SELECT\n *\n FROM\n ({% for result in results_list %}\n SELECT\n NAME AS task_name, completed_time, return_value, state, database_name, schema_name, scheduled_time, query_start_time\n FROM\n TABLE(information_schema.task_history(scheduled_time_range_start => DATEADD('hour', -24, CURRENT_TIMESTAMP()), task_name => '{{ result[0]}}')) {% if not loop.last %}\n UNION ALL\n {% endif %}\n {% endfor %}) AS subquery\n WHERE\n database_name = '{{ target.database }}'\n AND schema_name = 'GITHUB_ACTIONS')\n SELECT\n *\n FROM\n task_history_data\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0177045, "supported_languages": null}, "macro.fsc_utils.gha_task_schedule_view": {"name": "gha_task_schedule_view", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/workflow_tasks.sql", "original_file_path": "macros/workflow_tasks.sql", "unique_id": "macro.fsc_utils.gha_task_schedule_view", "macro_sql": "{% macro gha_task_schedule_view() %}\n WITH base AS (\n SELECT\n w.workflow_name AS workflow_name,\n w.workflow_schedule AS workflow_schedule,\n w.task_name AS task_name,\n t.timestamp AS scheduled_time\n FROM\n {{ ref('github_actions__tasks') }} AS w\n CROSS JOIN TABLE(\n utils.udf_cron_to_prior_timestamps(\n w.workflow_name,\n w.workflow_schedule\n )\n ) AS t\n )\nSELECT\n task_name,\n workflow_name,\n workflow_schedule,\n scheduled_time\nFROM\n base\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.018038, "supported_languages": null}, "macro.fsc_utils.gha_task_performance_view": {"name": "gha_task_performance_view", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/workflow_tasks.sql", "original_file_path": "macros/workflow_tasks.sql", "unique_id": "macro.fsc_utils.gha_task_performance_view", "macro_sql": "{% macro gha_task_performance_view() %}\nSELECT\n s.task_name,\n s.workflow_name,\n s.scheduled_time,\n h.return_value\nFROM\n {{ ref('github_actions__task_schedule') }}\n s\n LEFT JOIN {{ ref('github_actions__task_history') }}\n h\n ON s.task_name = h.task_name\n AND TO_TIMESTAMP_NTZ(\n s.scheduled_time\n ) BETWEEN TO_TIMESTAMP_NTZ(DATEADD(MINUTE, -1, h.scheduled_time))\n AND TO_TIMESTAMP_NTZ(DATEADD(MINUTE, 1, h.scheduled_time))\n AND TRY_TO_NUMBER(\n h.return_value\n ) BETWEEN 200\n AND 299\n AND h.state = 'SUCCEEDED'\nORDER BY\n task_name,\n scheduled_time\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0184424, "supported_languages": null}, "macro.fsc_utils.gha_task_current_status_view": {"name": "gha_task_current_status_view", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/workflow_tasks.sql", "original_file_path": "macros/workflow_tasks.sql", "unique_id": "macro.fsc_utils.gha_task_current_status_view", "macro_sql": "{% macro gha_task_current_status_view() %}\n WITH base AS (\n SELECT\n task_name,\n workflow_name,\n scheduled_time,\n return_value,\n return_value IS NOT NULL AS was_successful\n FROM\n {{ ref('github_actions__task_performance') }}\n qualify ROW_NUMBER() over (\n PARTITION BY task_name\n ORDER BY\n scheduled_time DESC\n ) <= 2\n )\nSELECT\n task_name,\n workflow_name,\n MAX(scheduled_time) AS recent_scheduled_time,\n MIN(scheduled_time) AS prior_scheduled_time,\n SUM(IFF(return_value = 204, 1, 0)) AS successes,\n successes > 0 AS pipeline_active\nFROM\n base\nGROUP BY\n task_name,\n workflow_name\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.018784, "supported_languages": null}, "macro.fsc_utils.alter_gha_task": {"name": "alter_gha_task", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/workflow_tasks.sql", "original_file_path": "macros/workflow_tasks.sql", "unique_id": "macro.fsc_utils.alter_gha_task", "macro_sql": "{% macro alter_gha_task(\n task_name,\n task_action\n ) %}\n {% set sql %}\n EXECUTE IMMEDIATE 'ALTER TASK IF EXISTS github_actions.{{ task_name }} {{ task_action }};' {% endset %}\n {% do run_query(sql) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0193214, "supported_languages": null}, "macro.fsc_utils.create_streamline_udfs": {"name": "create_streamline_udfs", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/create_streamline_udfs.sql", "original_file_path": "macros/create_streamline_udfs.sql", "unique_id": "macro.fsc_utils.create_streamline_udfs", "macro_sql": "{% macro create_streamline_udfs() %}\n {% if var(\"UPDATE_UDFS_AND_SPS\") %}\n {% do run_query(\"CREATE SCHEMA IF NOT EXISTS streamline\") %}\n \n {{ create_udf_bulk_rest_api_v2() }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.fsc_utils.create_udf_bulk_rest_api_v2"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0201266, "supported_languages": null}, "macro.fsc_utils.create_evm_streamline_udfs": {"name": "create_evm_streamline_udfs", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/create_streamline_udfs.sql", "original_file_path": "macros/create_streamline_udfs.sql", "unique_id": "macro.fsc_utils.create_evm_streamline_udfs", "macro_sql": "{% macro create_evm_streamline_udfs() %}\n {% if var(\"UPDATE_UDFS_AND_SPS\") %}\n {% do run_query(\"CREATE SCHEMA IF NOT EXISTS streamline\") %}\n \n {{ create_udf_bulk_rest_api_v2() }}\n {{ create_udf_bulk_decode_logs() }}\n {{ create_udf_bulk_decode_traces() }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.fsc_utils.create_udf_bulk_rest_api_v2", "macro.fsc_utils.create_udf_bulk_decode_logs", "macro.fsc_utils.create_udf_bulk_decode_traces"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0207307, "supported_languages": null}, "macro.fsc_utils.create_udfs": {"name": "create_udfs", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/create_udfs.sql", "original_file_path": "macros/create_udfs.sql", "unique_id": "macro.fsc_utils.create_udfs", "macro_sql": "{% macro create_udfs(drop_=False,schema=\"utils\") %}\n {% if var(\"UPDATE_UDFS_AND_SPS\") %}\n {% set name %}\n {{- fsc_utils.udf_configs(schema) -}}\n {% endset %}\n {% set udfs = fromyaml(name) %}\n {% set sql %}\n CREATE schema if NOT EXISTS {{ schema }};\n {%- for udf in udfs -%}\n {{- fsc_utils.create_or_drop_function_from_config(udf, drop_=drop_) -}}\n {% endfor %}\n {% endset %}\n {% do run_query(sql) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.fsc_utils.udf_configs", "macro.fsc_utils.create_or_drop_function_from_config", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0222402, "supported_languages": null}, "macro.fsc_utils.get_ancestors": {"name": "get_ancestors", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/datashares.sql", "original_file_path": "macros/datashares.sql", "unique_id": "macro.fsc_utils.get_ancestors", "macro_sql": "{%- macro get_ancestors(node, include_depth=false, exclude_source=false) -%}\n{#\n Return a list of ancestors for a node in a DAG.\n #}\n {%- for dep in node.depends_on.nodes | unique | list recursive %}\n {% if dep.startswith(\"model.\") and \"bronze__\" not in dep %}\n \"{{- loop.depth0 ~ '-'if include_depth else '' }}{{node.config.materialized }}-{{ dep -}}\",\n {{- loop(graph.nodes[dep].depends_on.nodes) -}}\n {% elif not exclude_source %}\n \"{{- loop.depth0 ~ '-'if include_depth else '' }}{{node.config.materialized }}-{{ dep -}}\",\n {%- endif -%}\n {%- endfor %}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0275812, "supported_languages": null}, "macro.fsc_utils.get_view_ddl": {"name": "get_view_ddl", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/datashares.sql", "original_file_path": "macros/datashares.sql", "unique_id": "macro.fsc_utils.get_view_ddl", "macro_sql": "{% macro get_view_ddl() %}\n{#\n Return a dictionary of view names and their DDL statements.\n The DDL statements are escaped to be used in a Snowflake query.\n The dictionary is converted to JSON to be used in a dbt macro..\n #}\n {% if execute %}\n {% set query %}\n SELECT\n CONCAT_WS('.', TABLE_SCHEMA, TABLE_NAME) as VIEW_NAME,\n VIEW_DEFINITION\n FROM {{target.database}}.INFORMATION_SCHEMA.VIEWS\n WHERE TABLE_SCHEMA NOT IN ('INFORMATION_SCHEMA', 'STREAMLINE')\n AND TABLE_SCHEMA NOT LIKE 'TEST_%'\n {%- endset -%}\n {%- set results = run_query(query) -%}\n {% set ddl = {} %}\n {% for key, value in results.rows %}\n {%- do ddl.update({key: value|replace(\"$$\", \"\\$\\$\")}) -%}\n {%- endfor -%}\n {{- tojson(ddl) -}}\n {%- endif -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0287676, "supported_languages": null}, "macro.fsc_utils.replace_database_references": {"name": "replace_database_references", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/datashares.sql", "original_file_path": "macros/datashares.sql", "unique_id": "macro.fsc_utils.replace_database_references", "macro_sql": "{% macro replace_database_references(references_to_replace, ddl) %}\n{#\n Return the DDL statement for a view with the references replaced.\n All items in references_to_replace are replaced with __NEW__,\n while all remaining references to the database are replaced with __SOURCE__.\n\n references_to_replace: a list of references to replace with __NEW__\n ddl: the DDL statement to be replaced\n\n#}\n {% set re = modules.re %}\n {% set outer = namespace(replaced=ddl) %}\n {% for key in references_to_replace %}\n {%- set original = re.compile(\"\\\\b\" ~ target.database ~ \".\" ~ key ~ \"\\\\b\", re.IGNORECASE) -%}\n {%- set replacement = \"__NEW__\" ~ \".\" ~ key -%}\n {% set outer.replaced = original.sub(replacement, outer.replaced) %}\n {%- endfor -%}\n {%- set original = re.compile(\"\\\\b\" ~ target.database ~ \".\" ~ \"\\\\b\", re.IGNORECASE) -%}\n {% set outer.replaced = original.sub(\"__SOURCE__.\", outer.replaced) %}\n {{- outer.replaced -}}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0304327, "supported_languages": null}, "macro.fsc_utils.generate_view_ddl": {"name": "generate_view_ddl", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/datashares.sql", "original_file_path": "macros/datashares.sql", "unique_id": "macro.fsc_utils.generate_view_ddl", "macro_sql": "{% macro generate_view_ddl(dag, schema) %}\n{#\n Return a list of DDL statements for views in a DAG.\n\n dag: a DAG of views\n schema: schemas to create schema DDL for\n #}\n {%- set ddl = fromjson(fsc_utils.get_view_ddl()) -%}\n {%- set created = {} -%}\n {%- set final_text = [] -%}\n {%- for view, deps in dag.items() -%}\n {%- for d in deps -%}\n {%- set table_name = d.split(\".\")[-1].replace(\"__\", \".\").upper() -%}\n {%- if ddl.get(table_name) and table_name not in created -%}\n {%- set replaced = fsc_utils.replace_database_references(ddl.keys(), ddl[table_name]) -%}\n {%- do final_text.append(replaced) -%}\n {%- do created.update({table_name:true}) -%}\n {%- endif -%}\n {%- endfor -%}\n {%- endfor -%}\n {%- set schema_ddl = [] -%}\n {%- for s in schema -%}\n {%- do schema_ddl.append(\"CREATE SCHEMA IF NOT EXISTS __NEW__.\" ~ s ~ \";\") -%}\n {%- endfor -%}\n {{- toyaml(schema_ddl + final_text) -}}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fsc_utils.get_view_ddl", "macro.fsc_utils.replace_database_references"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.03263, "supported_languages": null}, "macro.fsc_utils.generate_dag_and_schemas": {"name": "generate_dag_and_schemas", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/datashares.sql", "original_file_path": "macros/datashares.sql", "unique_id": "macro.fsc_utils.generate_dag_and_schemas", "macro_sql": "{% macro generate_dag_and_schemas(node_paths, materializations) %}\n{#\n Return a DAG of views and a list of schemas to create.\n\n node_paths: a list of node paths to include in the DAG\n materializations: a list of materializations to include in the DAG\n #}\n {%- set dag = {} -%}\n {%- set schema = [] -%}\n {%- for key, value in graph.nodes.items() -%}\n {%\n if value.refs\n and set(value.fqn).intersection(node_paths)\n and value.config.materialized in materializations\n and value.config.enabled\n and not value.sources\n and not key.endswith(\"_create_gold\")\n -%}\n {%- set name = value.schema + \".\" + value.alias -%}\n {%- set _result = fromyaml(\"[\" ~ fsc_utils.get_ancestors(value, exclude_source=true)[:-1] ~ \"]\") -%}\n {% if _result -%}\n {%- do _result.insert(0, key) -%}\n {%- do dag.update({name.upper() : _result | reverse|list}) -%}\n {% for d in _result -%}\n {%- if d.split(\".\")[-1].split(\"__\")[0] not in schema -%}\n {%- do schema.append(d.split(\".\")[-1].split(\"__\")[0]) -%}\n {%- endif -%}\n {%- endfor -%}\n {%- else -%}\n {%- do dag.update({name.upper() : [key] }) -%}\n {%- if value.schema not in schema -%}\n {%- do schema.append(value.schema) -%}\n {%- endif -%}\n {%- endif -%}\n {%- endif -%}\n {%- endfor -%}\n {%- set final = {\"dag\": dag, \"schema\": schema} -%}\n {{- tojson(final) -}}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fsc_utils.get_ancestors"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0360117, "supported_languages": null}, "macro.fsc_utils.generate_table_views_ddl": {"name": "generate_table_views_ddl", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/datashares.sql", "original_file_path": "macros/datashares.sql", "unique_id": "macro.fsc_utils.generate_table_views_ddl", "macro_sql": "{% macro generate_table_views_ddl(tables, schema) %}\n{#\n Return a list of DDL statements for views of tables from a list.\n\n tables: a list of tables to create views for\n schema: schemas to create schema DDL for\n #}\n {%- set schema_ddl = [] -%}\n {%- set view_ddl = [] -%}\n {% for s in schema %}\n {%- do schema_ddl.append(\"CREATE SCHEMA IF NOT EXISTS __NEW__.\" ~ s ~ \";\") -%}\n {%- endfor -%}\n {% for table in tables %}\n {%- do view_ddl.append(\"CREATE OR REPLACE VIEW __NEW__.\" ~ table ~ \" copy grants AS SELECT * FROM \" ~ \"__SOURCE__.\" ~ table ~\";\") -%}\n {%- endfor -%}\n {{- toyaml(schema_ddl + view_ddl) -}}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.037068, "supported_languages": null}, "macro.fsc_utils.generate_datashare_ddl": {"name": "generate_datashare_ddl", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/datashares.sql", "original_file_path": "macros/datashares.sql", "unique_id": "macro.fsc_utils.generate_datashare_ddl", "macro_sql": "{% macro generate_datashare_ddl() %}\n{#\n generate DDL for datashare\n\n Return: DDL for datashare\n #}\n {%- set gold_views = fromjson(fsc_utils.generate_dag_and_schemas([\"gold\"], [\"view\"])) -%}\n {%- set gold_views_ddl = fromyaml(fsc_utils.generate_view_ddl(gold_views[\"dag\"], gold_views[\"schema\"])) -%}\n {%- set gold_tables = fromjson(fsc_utils.generate_dag_and_schemas([\"gold\"], [\"incremental\", \"table\"])) -%}\n {%- set gold_tables_ddl = fromyaml(fsc_utils.generate_table_views_ddl(gold_tables[\"dag\"].keys(), gold_tables[\"schema\"])) -%}\n {%- set combined_ddl = gold_views_ddl + gold_tables_ddl -%}\n {%- do combined_ddl.insert(0, \"CREATE DATABASE IF NOT EXISTS __NEW__;\") -%}\n {{- \"BEGIN\\n\" ~ (combined_ddl | join(\"\\n\")) ~ \"\\nEND\" -}}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fsc_utils.generate_dag_and_schemas", "macro.fsc_utils.generate_view_ddl", "macro.fsc_utils.generate_table_views_ddl"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.038728, "supported_languages": null}, "macro.fsc_utils.generate_datashare_udf_ddl": {"name": "generate_datashare_udf_ddl", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/datashares.sql", "original_file_path": "macros/datashares.sql", "unique_id": "macro.fsc_utils.generate_datashare_udf_ddl", "macro_sql": "{% macro generate_datashare_udf_ddl() %}\n{#\n generate UDF DDL for datashare\n\n Return: UDF DDL for datashare\n #}\n {%- set schema = \"UTILS\" -%}\n {%- set udfs = fromyaml(fsc_utils.udf_configs(schema)) -%}\n {%- set combined_ddl = [] -%}\n {%- for udf in udfs -%}\n {% set name_ = udf [\"name\"] %}\n {% set signature = udf [\"signature\"] %}\n {% set return_type = udf [\"return_type\"] %}\n {% set sql_ = udf [\"sql\"] %}\n {% set options = udf [\"options\"] %}\n {% set api_integration = udf [\"api_integration\"] %}\n {% set func_type = udf [\"func_type\"] %}\n {% set exclude_from_datashare = udf.get(\"exclude_from_datashare\",False) %}\n {% if not exclude_from_datashare %}\n {%- set udf_ddl = fsc_utils.create_sql_function(\n name_ = name_,\n signature = signature,\n return_type = return_type,\n sql_ = sql_,\n options = options,\n api_integration = api_integration,\n func_type = func_type\n ).replace(\"\\\\\",\"\\\\\\\\\").replace(\"'\",\"\\\\'\") -%}\n {%- do combined_ddl.append(udf_ddl) -%} \n {% endif %} \n {% endfor %}\n {%- do combined_ddl.insert(0, \"CREATE DATABASE IF NOT EXISTS __NEW__;\") -%}\n {%- do combined_ddl.insert(1, \"USE DATABASE __NEW__;\") -%}\n {%- do combined_ddl.insert(2, \"CREATE SCHEMA IF NOT EXISTS \"~schema~\";\") -%}\n {{- \"'BEGIN','\" ~ (combined_ddl | join(\"','\")) ~ \"','END'\" -}}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.fsc_utils.udf_configs", "macro.fsc_utils.create_sql_function"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0417168, "supported_languages": null}, "macro.fsc_utils.get_query_tag": {"name": "get_query_tag", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/custom_query_tag.sql", "original_file_path": "macros/custom_query_tag.sql", "unique_id": "macro.fsc_utils.get_query_tag", "macro_sql": "{% macro get_query_tag() %}\n {# Get the full path of the model #}\n {% set model_path = model.path | string %}\n {% set folder_path = '/'.join(model_path.split('/')[:-1]) %}\n \n {# Get core folders from vars #}\n {% set core_folders = var('core_folders') %}\n \n {# Initialize is_core and check each path pattern #}\n {% set ns = namespace(is_core=false) %}\n \n {% for folder in core_folders %}\n {% if folder in folder_path %}\n {% set ns.is_core = true %}\n {% endif %}\n {% endfor %}\n \n {# Build the JSON query tag #}\n {% set tag_dict = {\n \"project\": project_name,\n \"model\": model.name,\n \"model_type\": \"core\" if ns.is_core else \"non_core\",\n \"invocation_id\": invocation_id,\n \"dbt_tags\": config.get('tags', [])\n } %}\n \n {% set query_tag = tojson(tag_dict) %}\n \n {# Return the properly escaped string #}\n {{ return(\"'\" ~ query_tag ~ \"'\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0441558, "supported_languages": null}, "macro.fsc_utils.set_query_tag": {"name": "set_query_tag", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/custom_query_tag.sql", "original_file_path": "macros/custom_query_tag.sql", "unique_id": "macro.fsc_utils.set_query_tag", "macro_sql": "{% macro set_query_tag() %}\n {% set tag = fsc_utils.get_query_tag() %}\n {% do run_query(\"alter session set query_tag = \" ~ tag) %}\n {{ return(\"\") }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fsc_utils.get_query_tag", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0446756, "supported_languages": null}, "macro.fsc_utils.udf_configs": {"name": "udf_configs", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/configs.yaml.sql", "original_file_path": "macros/streamline/configs.yaml.sql", "unique_id": "macro.fsc_utils.udf_configs", "macro_sql": "{% macro udf_configs(schema) %}\n\n{#\n UTILITY SCHEMA\n#}\n\n- name: {{ schema }}.udf_hex_to_int\n signature:\n - [hex, STRING]\n return_type: TEXT\n options: |\n NULL\n LANGUAGE PYTHON\n STRICT IMMUTABLE\n RUNTIME_VERSION = '3.8'\n HANDLER = 'hex_to_int'\n sql: |\n {{ fsc_utils.python_hex_to_int() | indent(4) }}\n- name: {{ schema }}.udf_hex_to_int\n signature:\n - [encoding, STRING]\n - [hex, STRING]\n return_type: TEXT\n options: |\n NULL\n LANGUAGE PYTHON\n STRICT IMMUTABLE\n RUNTIME_VERSION = '3.8'\n HANDLER = 'hex_to_int'\n sql: |\n {{ fsc_utils.python_udf_hex_to_int_with_encoding() | indent(4) }}\n\n- name: {{ schema }}.udf_hex_to_string\n signature:\n - [hex, STRING]\n return_type: TEXT\n options: |\n NULL\n LANGUAGE SQL\n STRICT IMMUTABLE\n sql: |\n SELECT\n LTRIM(regexp_replace(\n try_hex_decode_string(hex),\n '[\\x00-\\x1F\\x7F-\\x9F\\xAD]', '', 1))\n\n- name: {{ schema }}.udf_json_rpc_call\n signature:\n - [method, STRING]\n - [params, ARRAY]\n return_type: OBJECT\n options: |\n NULL\n LANGUAGE SQL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n sql: |\n {{ fsc_utils.sql_udf_json_rpc_call() }}\n exclude_from_datashare: true\n- name: {{ schema }}.udf_json_rpc_call\n signature:\n - [method, STRING]\n - [params, OBJECT]\n return_type: OBJECT\n options: |\n NULL\n LANGUAGE SQL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n sql: |\n {{ fsc_utils.sql_udf_json_rpc_call() }}\n exclude_from_datashare: true\n- name: {{ schema }}.udf_json_rpc_call\n signature:\n - [method, STRING]\n - [params, OBJECT]\n - [id, STRING]\n return_type: OBJECT\n options: |\n NULL\n LANGUAGE SQL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n sql: |\n {{ fsc_utils.sql_udf_json_rpc_call(False) }}\n exclude_from_datashare: true\n- name: {{ schema }}.udf_json_rpc_call\n signature:\n - [method, STRING]\n - [params, ARRAY]\n - [id, STRING]\n return_type: OBJECT\n options: |\n NULL\n LANGUAGE SQL\n RETURNS NULL ON NULL INPUT\n IMMUTABLE\n sql: |\n {{ fsc_utils.sql_udf_json_rpc_call(False) }}\n exclude_from_datashare: true\n\n- name: {{ schema }}.udf_evm_text_signature\n signature:\n - [abi, VARIANT]\n return_type: TEXT\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.8'\n HANDLER = 'get_simplified_signature'\n sql: |\n {{ fsc_utils.create_udf_evm_text_signature() | indent(4) }}\n\n- name: {{ schema }}.udf_keccak256\n signature:\n - [event_name, VARCHAR(255)]\n return_type: TEXT\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.8'\n PACKAGES = ('pycryptodome==3.15.0')\n HANDLER = 'udf_encode'\n sql: |\n {{ fsc_utils.create_udf_keccak256() | indent(4) }}\n\n- name: {{ schema }}.udf_decimal_adjust\n signature:\n - [input, string]\n - [adjustment, int]\n return_type: VARCHAR\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.8'\n HANDLER = 'custom_divide'\n sql: |\n {{ fsc_utils.create_udf_decimal_adjust() | indent(4) }}\n\n- name: {{ schema }}.udf_cron_to_prior_timestamps\n signature:\n - [workflow_name, STRING]\n - [workflow_schedule, STRING]\n return_type: TABLE(workflow_name STRING, workflow_schedule STRING, timestamp TIMESTAMP_NTZ)\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.8'\n PACKAGES = ('croniter')\n HANDLER = 'TimestampGenerator'\n sql: |\n {{ fsc_utils.create_udf_cron_to_prior_timestamps() | indent(4) }}\n\n- name: {{ schema }}.udf_transform_logs\n signature:\n - [decoded, VARIANT]\n return_type: VARIANT\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.8'\n HANDLER = 'transform'\n sql: |\n {{ fsc_utils.create_udf_transform_logs() | indent(4) }}\n\n- name: {{ schema }}.udf_base58_to_hex\n signature:\n - [base58, STRING]\n return_type: TEXT\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.8'\n HANDLER = 'transform_base58_to_hex'\n sql: |\n {{ fsc_utils.create_udf_base58_to_hex() | indent(4) }}\n\n- name: {{ schema }}.udf_hex_to_base58\n signature:\n - [input, STRING]\n return_type: TEXT\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.8'\n HANDLER = 'transform_hex_to_base58'\n sql: |\n {{ fsc_utils.create_udf_hex_to_base58() | indent(4) }}\n\n- name: {{ schema }}.udf_hex_to_bech32\n signature:\n - [input, STRING]\n - [hrp, STRING]\n return_type: TEXT\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.8'\n HANDLER = 'transform_hex_to_bech32'\n sql: |\n {{ fsc_utils.create_udf_hex_to_bech32() | indent(4) }}\n\n- name: {{ schema }}.udf_hex_to_algorand\n signature:\n - [input, STRING]\n return_type: TEXT\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.8'\n HANDLER = 'transform_hex_to_algorand'\n sql: |\n {{ fsc_utils.create_udf_hex_to_algorand() | indent(4) }}\n\n- name: {{ schema }}.udf_hex_to_tezos\n signature:\n - [input, STRING]\n - [prefix, STRING]\n return_type: TEXT\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.8'\n HANDLER = 'transform_hex_to_tezos'\n sql: |\n {{ fsc_utils.create_udf_hex_to_tezos() | indent(4) }}\n\n- name: {{ schema }}.udf_detect_overflowed_responses\n signature:\n - [file_url, STRING]\n - [index_cols, ARRAY]\n return_type: ARRAY\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.11'\n COMMENT = 'Detect overflowed responses larger than 16MB'\n PACKAGES = ('snowflake-snowpark-python', 'pandas')\n HANDLER = 'main'\n sql: |\n {{ fsc_utils.create_udf_detect_overflowed_responses() | indent(4) }}\n\n- name: {{ schema }}.udtf_flatten_overflowed_responses\n signature:\n - [file_url, STRING]\n - [index_cols, ARRAY]\n - [index_vals, ARRAY]\n return_type: |\n table(\n index_vals ARRAY,\n block_number NUMBER,\n metadata OBJECT,\n seq NUMBER,\n key STRING,\n path STRING,\n index NUMBER,\n value_ VARIANT\n )\n options: |\n LANGUAGE PYTHON\n RUNTIME_VERSION = '3.11'\n COMMENT = 'Flatten rows from a JSON file with overflowed responses larger than 16MB'\n PACKAGES = ('snowflake-snowpark-python', 'pandas', 'simplejson', 'numpy')\n HANDLER = 'FlattenRows'\n sql: |\n {{ fsc_utils.create_udtf_flatten_overflowed_responses() | indent(4) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fsc_utils.python_hex_to_int", "macro.fsc_utils.python_udf_hex_to_int_with_encoding", "macro.fsc_utils.sql_udf_json_rpc_call", "macro.fsc_utils.create_udf_evm_text_signature", "macro.fsc_utils.create_udf_keccak256", "macro.fsc_utils.create_udf_decimal_adjust", "macro.fsc_utils.create_udf_cron_to_prior_timestamps", "macro.fsc_utils.create_udf_transform_logs", "macro.fsc_utils.create_udf_base58_to_hex", "macro.fsc_utils.create_udf_hex_to_base58", "macro.fsc_utils.create_udf_hex_to_bech32", "macro.fsc_utils.create_udf_hex_to_algorand", "macro.fsc_utils.create_udf_hex_to_tezos", "macro.fsc_utils.create_udf_detect_overflowed_responses", "macro.fsc_utils.create_udtf_flatten_overflowed_responses"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0554576, "supported_languages": null}, "macro.fsc_utils.test_sequence_gaps": {"name": "test_sequence_gaps", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/tests.sql", "original_file_path": "macros/streamline/tests.sql", "unique_id": "macro.fsc_utils.test_sequence_gaps", "macro_sql": "{% test sequence_gaps(\n model,\n partition_by,\n column_name\n) %}\n{%- set partition_sql = partition_by | join(\", \") -%}\n{%- set previous_column = \"prev_\" ~ column_name -%}\nWITH source AS (\n SELECT\n {{ partition_sql + \",\" if partition_sql }}\n {{ column_name }},\n LAG(\n {{ column_name }},\n 1\n ) over (\n {{ \"PARTITION BY \" ~ partition_sql if partition_sql }}\n ORDER BY\n {{ column_name }} ASC\n ) AS {{ previous_column }}\n FROM\n {{ model }}\n)\nSELECT\n {{ partition_sql + \",\" if partition_sql }}\n {{ previous_column }},\n {{ column_name }},\n {{ column_name }} - {{ previous_column }}\n - 1 AS gap\nFROM\n source\nWHERE\n {{ column_name }} - {{ previous_column }} <> 1\nORDER BY\n gap DESC \n{% endtest %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0599365, "supported_languages": null}, "macro.fsc_utils.test_tx_block_count": {"name": "test_tx_block_count", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/tests.sql", "original_file_path": "macros/streamline/tests.sql", "unique_id": "macro.fsc_utils.test_tx_block_count", "macro_sql": "{% test tx_block_count(\n model,\n column_name\n) %}\n\nSELECT \n {{ column_name }}, \n COUNT(DISTINCT block_number) AS num_blocks\nFROM\n {{ model }}\nGROUP BY {{ column_name }}\nHAVING num_blocks > 1\n{% endtest %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0603004, "supported_languages": null}, "macro.fsc_utils.tx_gaps": {"name": "tx_gaps", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/tests.sql", "original_file_path": "macros/streamline/tests.sql", "unique_id": "macro.fsc_utils.tx_gaps", "macro_sql": "{% macro tx_gaps(\n model\n ) %}\n WITH block_base AS (\n SELECT\n block_number,\n tx_count\n FROM\n {{ ref('test_silver__blocks_full') }}\n ),\n model_name AS (\n SELECT\n block_number,\n COUNT(\n DISTINCT tx_hash\n ) AS model_tx_count\n FROM\n {{ model }}\n GROUP BY\n block_number\n )\nSELECT\n block_base.block_number,\n tx_count,\n model_name.block_number AS model_block_number,\n model_tx_count\nFROM\n block_base\n LEFT JOIN model_name\n ON block_base.block_number = model_name.block_number\nWHERE\n (\n tx_count <> model_tx_count\n )\n OR (\n model_tx_count IS NULL\n AND tx_count <> 0\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0606775, "supported_languages": null}, "macro.fsc_utils.recent_tx_gaps": {"name": "recent_tx_gaps", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/tests.sql", "original_file_path": "macros/streamline/tests.sql", "unique_id": "macro.fsc_utils.recent_tx_gaps", "macro_sql": "{% macro recent_tx_gaps(\n model\n ) %}\n WITH block_base AS (\n SELECT\n block_number,\n tx_count\n FROM\n {{ ref('test_silver__blocks_recent') }}\n ),\n model_name AS (\n SELECT\n block_number,\n COUNT(\n DISTINCT tx_hash\n ) AS model_tx_count\n FROM\n {{ model }}\n GROUP BY\n block_number\n )\nSELECT\n block_base.block_number,\n tx_count,\n model_name.block_number AS model_block_number,\n model_tx_count\nFROM\n block_base\n LEFT JOIN model_name\n ON block_base.block_number = model_name.block_number\nWHERE\n (\n tx_count <> model_tx_count\n )\n OR (\n model_tx_count IS NULL\n AND tx_count <> 0\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0610456, "supported_languages": null}, "macro.fsc_utils.test_recent_decoded_logs_match": {"name": "test_recent_decoded_logs_match", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/tests.sql", "original_file_path": "macros/streamline/tests.sql", "unique_id": "macro.fsc_utils.test_recent_decoded_logs_match", "macro_sql": "{% test recent_decoded_logs_match(\n model\n) %}\nSELECT\n block_number,\n _log_id\nFROM\n {{ model }}\n d\nWHERE\n NOT EXISTS (\n SELECT\n 1\n FROM\n {{ ref('silver__logs') }}\n l\n WHERE\n d.block_number = l.block_number\n AND d.tx_hash = l.tx_hash\n AND d.event_index = l.event_index\n AND d.contract_address = l.contract_address\n AND d.topics [0] :: STRING = l.topics [0] :: STRING\n ) \n{% endtest %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0614083, "supported_languages": null}, "macro.fsc_utils.sql_udf_json_rpc_call": {"name": "sql_udf_json_rpc_call", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/functions.sql", "original_file_path": "macros/streamline/functions.sql", "unique_id": "macro.fsc_utils.sql_udf_json_rpc_call", "macro_sql": "{% macro sql_udf_json_rpc_call(use_default_id=True ) %}\n SELECT IFF(method IS NULL or params IS NULL,\n NULL,\n {\n 'jsonrpc': '2.0',\n 'method': method,\n 'params': params\n {% if use_default_id %}\n , 'id': hash(method, params)::string\n {% else %}\n , 'id': id\n {% endif %}\n }\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0619278, "supported_languages": null}, "macro.fsc_utils.python_hex_to_int": {"name": "python_hex_to_int", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/functions.py.sql", "original_file_path": "macros/streamline/functions.py.sql", "unique_id": "macro.fsc_utils.python_hex_to_int", "macro_sql": "{% macro python_hex_to_int() %}\ndef hex_to_int(hex) -> str:\n \"\"\"\n Converts hex (of any size) to int (as a string). Snowflake and java script can only handle up to 64-bit (38 digits of precision)\n hex_to_int('200000000000000000000000000000211');\n >> 680564733841876926926749214863536423441\n hex_to_int('0x200000000000000000000000000000211');\n >> 680564733841876926926749214863536423441\n hex_to_int(NULL);\n >> NULL\n \"\"\"\n return (str(int(hex, 16)) if hex and hex != \"0x\" else None)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0751522, "supported_languages": null}, "macro.fsc_utils.python_udf_hex_to_int_with_encoding": {"name": "python_udf_hex_to_int_with_encoding", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/functions.py.sql", "original_file_path": "macros/streamline/functions.py.sql", "unique_id": "macro.fsc_utils.python_udf_hex_to_int_with_encoding", "macro_sql": "{% macro python_udf_hex_to_int_with_encoding() %}\ndef hex_to_int(encoding, hex) -> str:\n \"\"\"\n Converts hex (of any size) to int (as a string). Snowflake and java script can only handle up to 64-bit (38 digits of precision)\n hex_to_int('hex', '200000000000000000000000000000211');\n >> 680564733841876926926749214863536423441\n hex_to_int('hex', '0x200000000000000000000000000000211');\n >> 680564733841876926926749214863536423441\n hex_to_int('hex', NULL);\n >> NULL\n hex_to_int('s2c', 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffe5b83acf');\n >> -440911153\n \"\"\"\n if not hex:\n return None\n if encoding.lower() == 's2c':\n if hex[0:2].lower() != '0x':\n hex = f'0x{hex}'\n\n bits = len(hex[2:])*4\n value = int(hex, 0)\n if value & (1 << (bits-1)):\n value -= 1 << bits\n return str(value)\n else:\n return str(int(hex, 16))\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0754046, "supported_languages": null}, "macro.fsc_utils.create_udf_keccak256": {"name": "create_udf_keccak256", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/functions.py.sql", "original_file_path": "macros/streamline/functions.py.sql", "unique_id": "macro.fsc_utils.create_udf_keccak256", "macro_sql": "{% macro create_udf_keccak256() %}\nfrom Crypto.Hash import keccak\n\ndef udf_encode(event_name):\n keccak_hash = keccak.new(digest_bits=256)\n keccak_hash.update(event_name.encode('utf-8'))\n return '0x' + keccak_hash.hexdigest()\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.075578, "supported_languages": null}, "macro.fsc_utils.create_udf_evm_text_signature": {"name": "create_udf_evm_text_signature", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/functions.py.sql", "original_file_path": "macros/streamline/functions.py.sql", "unique_id": "macro.fsc_utils.create_udf_evm_text_signature", "macro_sql": "{% macro create_udf_evm_text_signature() %}\n\ndef get_simplified_signature(abi):\n def generate_signature(inputs):\n signature_parts = []\n for input_data in inputs:\n if 'components' in input_data:\n component_signature_parts = []\n components = input_data['components']\n component_signature_parts.extend(generate_signature(components))\n component_signature_parts[-1] = component_signature_parts[-1].rstrip(\",\")\n if input_data['type'].endswith('[]'):\n signature_parts.append(\"(\" + \"\".join(component_signature_parts) + \")[],\")\n else:\n signature_parts.append(\"(\" + \"\".join(component_signature_parts) + \"),\")\n else:\n signature_parts.append(input_data['type'].replace('enum ', '').replace(' payable', '') + \",\")\n return signature_parts\n\n signature_parts = [abi['name'] + \"(\"]\n signature_parts.extend(generate_signature(abi['inputs']))\n signature_parts[-1] = signature_parts[-1].rstrip(\",\") + \")\"\n return \"\".join(signature_parts)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.075826, "supported_languages": null}, "macro.fsc_utils.create_udf_decimal_adjust": {"name": "create_udf_decimal_adjust", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/functions.py.sql", "original_file_path": "macros/streamline/functions.py.sql", "unique_id": "macro.fsc_utils.create_udf_decimal_adjust", "macro_sql": "{% macro create_udf_decimal_adjust() %}\n\nfrom decimal import Decimal, ROUND_DOWN\n\ndef custom_divide(input, adjustment):\n try:\n if adjustment is None or input is None:\n return None\n\n # Perform the division using Decimal type\n result = Decimal(input) / pow(10, Decimal(adjustment))\n\n # Determine the number of decimal places in the result\n decimal_places = max(0, -result.as_tuple().exponent)\n\n # Convert the result to a string representation without scientific notation and with dynamic decimal precision\n result_str = \"{:.{prec}f}\".format(result, prec=decimal_places)\n\n return result_str\n except Exception as e:\n return None\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0760376, "supported_languages": null}, "macro.fsc_utils.create_udf_cron_to_prior_timestamps": {"name": "create_udf_cron_to_prior_timestamps", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/functions.py.sql", "original_file_path": "macros/streamline/functions.py.sql", "unique_id": "macro.fsc_utils.create_udf_cron_to_prior_timestamps", "macro_sql": "{% macro create_udf_cron_to_prior_timestamps() %}\nimport croniter\nimport datetime\n\nclass TimestampGenerator:\n\n def __init__(self):\n pass\n\n def process(self, workflow_name, workflow_schedule):\n for timestamp in self.generate_timestamps(workflow_name, workflow_schedule):\n yield (workflow_name, workflow_schedule, timestamp)\n\n def generate_timestamps(self, workflow_name, workflow_schedule):\n # Create a cron iterator object\n cron = croniter.croniter(workflow_schedule)\n\n # Generate timestamps for the prev 10 runs\n timestamps = []\n for i in range(10):\n prev_run = cron.get_prev(datetime.datetime)\n timestamps.append(prev_run)\n\n return timestamps\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0762668, "supported_languages": null}, "macro.fsc_utils.create_udf_transform_logs": {"name": "create_udf_transform_logs", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/functions.py.sql", "original_file_path": "macros/streamline/functions.py.sql", "unique_id": "macro.fsc_utils.create_udf_transform_logs", "macro_sql": "{% macro create_udf_transform_logs() %}\n\nfrom copy import deepcopy\n\ndef transform_tuple(components: list, values: list):\n transformed_values = []\n for i, component in enumerate(components):\n if i < len(values):\n if component[\"type\"] == \"tuple\":\n transformed_values.append({\"value\": transform_tuple(component[\"components\"], values[i]), **component})\n elif component[\"type\"] == \"tuple[]\":\n if not values[i]:\n transformed_values.append({\"value\": [], **component})\n continue\n sub_values = [transform_tuple(component[\"components\"], v) for v in values[i]]\n transformed_values.append({\"value\": sub_values, **component})\n else:\n transformed_values.append({\"value\": values[i], **component})\n return {item[\"name\"]: item[\"value\"] for item in transformed_values}\n\ndef transform_event(event: dict):\n new_event = deepcopy(event)\n if new_event.get(\"components\"):\n components = new_event.get(\"components\")\n\n if not new_event[\"value\"]:\n return new_event\n\n if isinstance(new_event[\"value\"][0], list):\n result_list = []\n for value_set in new_event[\"value\"]:\n result_list.append(transform_tuple(components, value_set))\n new_event[\"value\"] = result_list\n\n else:\n new_event[\"value\"] = transform_tuple(components, new_event[\"value\"])\n\n return new_event\n\n else:\n return event\n\ndef transform(events: dict):\n try:\n results = [\n transform_event(event) if event.get(\"decoded\") else event\n for event in events[\"data\"]\n ]\n events[\"data\"] = results\n return events\n except:\n return events\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0767245, "supported_languages": null}, "macro.fsc_utils.create_udf_base58_to_hex": {"name": "create_udf_base58_to_hex", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/functions.py.sql", "original_file_path": "macros/streamline/functions.py.sql", "unique_id": "macro.fsc_utils.create_udf_base58_to_hex", "macro_sql": "{% macro create_udf_base58_to_hex() %}\n\ndef transform_base58_to_hex(base58):\n if base58 is None:\n return 'Invalid input'\n\n ALPHABET = \"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\"\n base_count = len(ALPHABET)\n\n num = 0\n leading_zeros = 0\n\n for char in base58:\n if char == '1':\n leading_zeros += 1\n else:\n break\n\n for char in base58:\n num *= base_count\n if char in ALPHABET:\n num += ALPHABET.index(char)\n else:\n return 'Invalid character in input'\n\n hex_string = hex(num)[2:]\n\n if len(hex_string) % 2 != 0:\n hex_string = '0' + hex_string\n\n hex_leading_zeros = '00' * leading_zeros\n\n return '0x' + hex_leading_zeros + hex_string\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0769467, "supported_languages": null}, "macro.fsc_utils.create_udf_hex_to_base58": {"name": "create_udf_hex_to_base58", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/functions.py.sql", "original_file_path": "macros/streamline/functions.py.sql", "unique_id": "macro.fsc_utils.create_udf_hex_to_base58", "macro_sql": "{% macro create_udf_hex_to_base58() %}\n\ndef transform_hex_to_base58(input):\n if input is None or not input.startswith('0x'):\n return 'Invalid input'\n\n input = input[2:]\n\n ALPHABET = \"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\"\n byte_array = bytes.fromhex(input)\n num = int.from_bytes(byte_array, 'big')\n\n encoded = ''\n while num > 0:\n num, remainder = divmod(num, 58)\n encoded = ALPHABET[remainder] + encoded\n\n for byte in byte_array:\n if byte == 0:\n encoded = '1' + encoded\n else:\n break\n\n return encoded\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0771487, "supported_languages": null}, "macro.fsc_utils.create_udf_hex_to_bech32": {"name": "create_udf_hex_to_bech32", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/functions.py.sql", "original_file_path": "macros/streamline/functions.py.sql", "unique_id": "macro.fsc_utils.create_udf_hex_to_bech32", "macro_sql": "{% macro create_udf_hex_to_bech32() %}\n\ndef transform_hex_to_bech32(input, hrp=''):\n CHARSET = \"qpzry9x8gf2tvdw0s3jn54khce6mua7l\"\n\n def bech32_polymod(values):\n generator = [0x3b6a57b2, 0x26508e6d, 0x1ea119fa, 0x3d4233dd, 0x2a1462b3]\n checksum = 1\n for value in values:\n top = checksum >> 25\n checksum = ((checksum & 0x1ffffff) << 5) ^ value\n for i in range(5):\n checksum ^= generator[i] if ((top >> i) & 1) else 0\n return checksum\n\n def bech32_hrp_expand(hrp):\n return [ord(x) >> 5 for x in hrp] + [0] + [ord(x) & 31 for x in hrp]\n\n def bech32_create_checksum(hrp, data):\n values = bech32_hrp_expand(hrp) + data\n polymod = bech32_polymod(values + [0, 0, 0, 0, 0, 0]) ^ 1\n return [(polymod >> 5 * (5 - i)) & 31 for i in range(6)]\n\n def bech32_convertbits(data, from_bits, to_bits, pad=True):\n acc = 0\n bits = 0\n ret = []\n maxv = (1 << to_bits) - 1\n max_acc = (1 << (from_bits + to_bits - 1)) - 1\n for value in data:\n acc = ((acc << from_bits) | value) & max_acc\n bits += from_bits\n while bits >= to_bits:\n bits -= to_bits\n ret.append((acc >> bits) & maxv)\n if pad and bits:\n ret.append((acc << (to_bits - bits)) & maxv)\n return ret\n\n if input is None or not input.startswith('0x'):\n return 'Invalid input'\n\n input = input[2:]\n\n data = bytes.fromhex(input)\n data5bit = bech32_convertbits(list(data), 8, 5)\n\n if data5bit is None:\n return 'Data conversion failed'\n\n checksum = bech32_create_checksum(hrp, data5bit)\n\n return hrp + '1' + ''.join([CHARSET[d] for d in data5bit + checksum])\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0774612, "supported_languages": null}, "macro.fsc_utils.create_udf_hex_to_algorand": {"name": "create_udf_hex_to_algorand", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/functions.py.sql", "original_file_path": "macros/streamline/functions.py.sql", "unique_id": "macro.fsc_utils.create_udf_hex_to_algorand", "macro_sql": "{% macro create_udf_hex_to_algorand() %}\n\nimport hashlib\nimport base64\n\ndef transform_hex_to_algorand(input):\n if input is None or not input.startswith('0x'):\n return 'Invalid input'\n\n input = input[2:]\n public_key_bytes = bytearray.fromhex(input)\n\n sha512_256_hash = hashlib.new('sha512_256', public_key_bytes).digest()\n\n checksum = sha512_256_hash[-4:]\n\n algorand_address = base64.b32encode(public_key_bytes + checksum).decode('utf-8').rstrip('=')\n\n return algorand_address\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0776544, "supported_languages": null}, "macro.fsc_utils.create_udf_hex_to_tezos": {"name": "create_udf_hex_to_tezos", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/functions.py.sql", "original_file_path": "macros/streamline/functions.py.sql", "unique_id": "macro.fsc_utils.create_udf_hex_to_tezos", "macro_sql": "{% macro create_udf_hex_to_tezos() %}\n\nimport hashlib\n\ndef transform_hex_to_tezos(input, prefix):\n if input is None or not input.startswith('0x'):\n return 'Invalid input'\n\n input = input[2:]\n\n if len(input) != 40:\n return 'Invalid length'\n\n hash_bytes = bytes.fromhex(input)\n\n prefixes = {\n 'tz1': '06a19f', # Ed25519\n 'tz2': '06a1a1', # Secp256k1\n 'tz3': '06a1a4' # P-256\n }\n\n if prefix not in prefixes:\n return 'Invalid prefix: Must be tz1, tz2, or tz3'\n\n prefix_bytes = bytes.fromhex(prefixes[prefix])\n\n prefixed_hash = prefix_bytes + hash_bytes\n\n checksum = hashlib.sha256(hashlib.sha256(prefixed_hash).digest()).digest()[:4]\n\n full_hash = prefixed_hash + checksum\n\n tezos_address = transform_hex_to_base58(full_hash.hex())\n\n return tezos_address\n\ndef transform_hex_to_base58(input):\n if input is None:\n return None\n\n ALPHABET = \"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\"\n byte_array = bytes.fromhex(input)\n num = int.from_bytes(byte_array, 'big')\n\n encoded = ''\n while num > 0:\n num, remainder = divmod(num, 58)\n encoded = ALPHABET[remainder] + encoded\n\n for byte in byte_array:\n if byte == 0:\n encoded = '1' + encoded\n else:\n break\n\n return encoded\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0779154, "supported_languages": null}, "macro.fsc_utils.create_udf_detect_overflowed_responses": {"name": "create_udf_detect_overflowed_responses", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/functions.py.sql", "original_file_path": "macros/streamline/functions.py.sql", "unique_id": "macro.fsc_utils.create_udf_detect_overflowed_responses", "macro_sql": "{% macro create_udf_detect_overflowed_responses() %}\n\nimport pandas as pd\nfrom snowflake.snowpark.files import SnowflakeFile\n\nVARCHAR_MAX = 16_777_216\ndef main(file_url, index_cols):\n with SnowflakeFile.open(file_url, 'rb') as f:\n df = pd.read_json(f, lines=True, compression='gzip')\n data_length = df[\"data\"].astype(str).apply(len)\n return df[data_length > VARCHAR_MAX][index_cols].values.tolist()\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0780969, "supported_languages": null}, "macro.fsc_utils.create_udtf_flatten_overflowed_responses": {"name": "create_udtf_flatten_overflowed_responses", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/functions.py.sql", "original_file_path": "macros/streamline/functions.py.sql", "unique_id": "macro.fsc_utils.create_udtf_flatten_overflowed_responses", "macro_sql": "{% macro create_udtf_flatten_overflowed_responses() %}\n\nimport logging\nimport simplejson as json\n\nimport numpy as np\nimport pandas as pd\nfrom snowflake.snowpark.files import SnowflakeFile\n\nVARCHAR_MAX = 16_777_216\n\nlogger = logging.getLogger(\"udtf_flatten_overflowed_responses\")\n\nclass Flatten:\n \"\"\"\n Recursive function to flatten a nested JSON file\n \"\"\"\n\n def __init__(self, mode: str, exploded_key: list) -> None:\n self.mode = mode\n self.exploded_key = exploded_key\n\n def _flatten_response(\n self,\n response_key: str,\n responses: str,\n block_number: int,\n metadata: dict,\n seq_index: int = 0,\n path: str = \"\",\n ):\n \"\"\"\n Example:\n\n input: {\"a\":1, \"b\":[77,88], \"c\": {\"d\":\"X\"}}\n\n output:\n - SEQ: A unique sequence number associated with the input record; the sequence is not guaranteed to be gap-free or ordered in any particular way.\n - KEY: For maps or objects, this column contains the key to the exploded value.\n - PATH: The path to the element within a data structure which needs to be flattened.\n - INDEX: The index of the element, if it is an array; otherwise NULL.\n - VALUE_: The value of the element of the flattened array/object.\n\n \"\"\"\n exploded_data = []\n if self.mode == \"array\":\n check_mode = isinstance(responses, list)\n elif self.mode == \"dict\":\n check_mode = isinstance(responses, dict)\n elif self.mode == \"both\":\n check_mode = isinstance(responses, list) or isinstance(responses, dict)\n\n if check_mode:\n if isinstance(responses, dict):\n looped_keys = responses.keys()\n for key in looped_keys:\n next_path = f\"{path}.{key}\" if path else key\n index = None\n exploded_data.append(\n {\n \"block_number\": block_number,\n \"metadata\": metadata,\n \"seq\": seq_index,\n \"key\": key,\n \"path\": next_path,\n \"index\": index,\n \"value_\": responses[key],\n }\n )\n exploded_data.extend(\n self._flatten_response(\n key,\n responses[key],\n block_number,\n metadata,\n seq_index,\n next_path,\n )\n )\n\n elif isinstance(responses, list):\n looped_keys = range(len(responses))\n if response_key in self.exploded_key or len(self.exploded_key) == 0:\n for item_i, item in enumerate(responses):\n if response_key == \"result\":\n seq_index += 1\n index = item_i\n exploded_data.append(\n {\n \"block_number\": block_number,\n \"metadata\": metadata,\n \"seq\": seq_index,\n \"key\": None,\n \"path\": f\"{path}[{item_i}]\",\n \"index\": index,\n \"value_\": item,\n }\n )\n exploded_data.extend(\n self._flatten_response(\n item_i,\n item,\n block_number,\n metadata,\n seq_index,\n f\"{path}[{item_i}]\",\n )\n )\n\n return exploded_data\n\nclass FlattenRows:\n \"\"\"\n Recursive function to flatten a given JSON file from Snowflake stage\n \"\"\"\n def process(self, file_url: str, index_cols: list, index_vals: list):\n with SnowflakeFile.open(file_url, 'rb') as f:\n df = pd.read_json(f, lines=True, compression='gzip')\n\n df.set_index(index_cols, inplace=True, drop=False)\n df = df.loc[index_vals]\n\n flattener = Flatten(mode=\"both\", exploded_key=[])\n\n df[\"value_\"] = df.apply(\n lambda x: flattener._flatten_response(\n block_number=x[\"block_number\"], metadata=x[\"metadata\"], responses=x[\"data\"], response_key=None\n ),\n axis=\"columns\",\n )\n df[\"value_\"] = df[\"value_\"].apply(pd.DataFrame.from_records)\n df[\"index_cols\"] = df.index\n df = df[[\"index_cols\", \"value_\"]]\n flattened = pd.concat(\n df[\"value_\"].values.tolist(), keys=df[\"index_cols\"].values.tolist()\n ).droplevel(-1)\n\n cleansed = flattened.replace({np.nan: None})\n\n overflow = cleansed[\"value_\"].astype(str).apply(len) > VARCHAR_MAX\n\n cleansed.loc[overflow, [\"value_\"]] = None\n temp_index_cols = list(range(len(index_cols)))\n cleansed = cleansed.reset_index(names=temp_index_cols, drop=False)\n cleansed[\"index_cols\"] = cleansed[temp_index_cols].apply(list, axis=1)\n cleansed.drop(columns=temp_index_cols, inplace=True, errors=\"ignore\")\n return list(cleansed[np.roll(cleansed.columns.values, 1).tolist()].itertuples(index=False, name=None))\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0787585, "supported_languages": null}, "macro.fsc_utils.create_udf_bulk_rest_api_v2": {"name": "create_udf_bulk_rest_api_v2", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/udfs.sql", "original_file_path": "macros/streamline/udfs.sql", "unique_id": "macro.fsc_utils.create_udf_bulk_rest_api_v2", "macro_sql": "{% macro create_udf_bulk_rest_api_v2() %} \n {{ log(\"Creating udf udf_bulk_rest_api for target:\" ~ target.name ~ \", schema: \" ~ target.schema ~ \", DB: \" ~ target.database, info=True) }}\n {{ log(\"role:\" ~ target.role ~ \", user:\" ~ target.user, info=True) }}\n\n {% set sql %}\n CREATE OR REPLACE EXTERNAL FUNCTION streamline.udf_bulk_rest_api_v2(json object) returns array api_integration = \n {% if target.name == \"prod\" %} \n {{ log(\"Creating prod udf_bulk_rest_api_v2\", info=True) }}\n {{ var(\"API_INTEGRATION\") }} AS 'https://{{ var(\"EXTERNAL_FUNCTION_URI\") | lower }}udf_bulk_rest_api'\n {% elif target.name == \"dev\" %}\n {{ log(\"Creating dev udf_bulk_rest_api_v2\", info=True) }}\n {{ var(\"API_INTEGRATION\") }} AS 'https://{{ var(\"EXTERNAL_FUNCTION_URI\") | lower }}udf_bulk_rest_api'\n {% elif target.name == \"sbx\" %}\n {{ log(\"Creating stg udf_bulk_rest_api_v2\", info=True) }}\n {{ var(\"API_INTEGRATION\") }} AS 'https://{{ var(\"EXTERNAL_FUNCTION_URI\") | lower }}udf_bulk_rest_api'\n {% else %}\n {{ log(\"Creating default (dev) udf_bulk_rest_api_v2\", info=True) }}\n {{ var(\"config\")[\"dev\"][\"API_INTEGRATION\"] }} AS 'https://{{ var(\"config\")[\"dev\"][\"EXTERNAL_FUNCTION_URI\"] | lower }}udf_bulk_rest_api'\n {% endif %};\n {% endset %}\n {{ log(sql, info=True) }}\n {% do adapter.execute(sql) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.086892, "supported_languages": null}, "macro.fsc_utils.create_udf_bulk_decode_logs": {"name": "create_udf_bulk_decode_logs", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/udfs.sql", "original_file_path": "macros/streamline/udfs.sql", "unique_id": "macro.fsc_utils.create_udf_bulk_decode_logs", "macro_sql": "{% macro create_udf_bulk_decode_logs() %} \n {{ log(\"Creating udf udf_bulk_decode_logs_v2 for target:\" ~ target.name ~ \", schema: \" ~ target.schema ~ \", DB: \" ~ target.database, info=True) }}\n {{ log(\"role:\" ~ target.role ~ \", user:\" ~ target.user, info=True) }}\n\n {% set sql %}\n CREATE OR REPLACE EXTERNAL FUNCTION streamline.udf_bulk_decode_logs_v2(json object) returns array api_integration = \n {% if target.name == \"prod\" %} \n {{ log(\"Creating prod udf_bulk_decode_logs_v2\", info=True) }}\n {{ var(\"API_INTEGRATION\") }} AS 'https://{{ var(\"EXTERNAL_FUNCTION_URI\") | lower }}bulk_decode_logs'\n {% elif target.name == \"dev\" %}\n {{ log(\"Creating dev udf_bulk_decode_logs_v2\", info=True) }}\n {{ var(\"API_INTEGRATION\") }} AS 'https://{{ var(\"EXTERNAL_FUNCTION_URI\") | lower }}bulk_decode_logs'\n {% elif target.name == \"sbx\" %}\n {{ log(\"Creating stg udf_bulk_decode_logs_v2\", info=True) }}\n {{ var(\"API_INTEGRATION\") }} AS 'https://{{ var(\"EXTERNAL_FUNCTION_URI\") | lower }}bulk_decode_logs'\n {% else %}\n {{ log(\"Creating default (dev) udf_bulk_decode_logs_v2\", info=True) }}\n {{ var(\"config\")[\"dev\"][\"API_INTEGRATION\"] }} AS 'https://{{ var(\"config\")[\"dev\"][\"EXTERNAL_FUNCTION_URI\"] | lower }}bulk_decode_logs'\n {% endif %};\n {% endset %}\n {{ log(sql, info=True) }}\n {% do adapter.execute(sql) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.089842, "supported_languages": null}, "macro.fsc_utils.create_udf_bulk_decode_traces": {"name": "create_udf_bulk_decode_traces", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/udfs.sql", "original_file_path": "macros/streamline/udfs.sql", "unique_id": "macro.fsc_utils.create_udf_bulk_decode_traces", "macro_sql": "{% macro create_udf_bulk_decode_traces() %} \n {{ log(\"Creating udf udf_bulk_decode_traces_v2 for target:\" ~ target.name ~ \", schema: \" ~ target.schema ~ \", DB: \" ~ target.database, info=True) }}\n {{ log(\"role:\" ~ target.role ~ \", user:\" ~ target.user, info=True) }}\n\n {% set sql %}\n CREATE OR REPLACE EXTERNAL FUNCTION streamline.udf_bulk_decode_traces_v2(json object) returns array api_integration = \n {% if target.name == \"prod\" %} \n {{ log(\"Creating prod udf_bulk_decode_traces_v2\", info=True) }}\n {{ var(\"API_INTEGRATION\") }} AS 'https://{{ var(\"EXTERNAL_FUNCTION_URI\") | lower }}bulk_decode_traces'\n {% elif target.name == \"dev\" %}\n {{ log(\"Creating dev udf_bulk_decode_traces_v2\", info=True) }}\n {{ var(\"API_INTEGRATION\") }} AS 'https://{{ var(\"EXTERNAL_FUNCTION_URI\") | lower }}bulk_decode_traces'\n {% elif target.name == \"sbx\" %}\n {{ log(\"Creating stg udf_bulk_decode_traces_v2\", info=True) }}\n {{ var(\"API_INTEGRATION\") }} AS 'https://{{ var(\"EXTERNAL_FUNCTION_URI\") | lower }}bulk_decode_traces'\n {% else %}\n {{ log(\"Creating default (dev) udf_bulk_decode_traces_v2\", info=True) }}\n {{ var(\"config\")[\"dev\"][\"API_INTEGRATION\"] }} AS 'https://{{ var(\"config\")[\"dev\"][\"EXTERNAL_FUNCTION_URI\"] | lower }}bulk_decode_traces'\n {% endif %};\n {% endset %}\n {{ log(sql, info=True) }}\n {% do adapter.execute(sql) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0926075, "supported_languages": null}, "macro.fsc_utils.decode_logs_history": {"name": "decode_logs_history", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/models.sql", "original_file_path": "macros/streamline/models.sql", "unique_id": "macro.fsc_utils.decode_logs_history", "macro_sql": "{% macro decode_logs_history(\n start,\n stop\n ) %}\n WITH look_back AS (\n SELECT\n block_number\n FROM\n {{ ref(\"_max_block_by_date\") }}\n qualify ROW_NUMBER() over (\n ORDER BY\n block_number DESC\n ) = 1\n )\nSELECT\n l.block_number,\n l._log_id,\n A.abi AS abi,\n OBJECT_CONSTRUCT(\n 'topics',\n l.topics,\n 'data',\n l.data,\n 'address',\n l.contract_address\n ) AS DATA\nFROM\n {{ ref(\"silver__logs\") }}\n l\n INNER JOIN {{ ref(\"silver__complete_event_abis\") }} A\n ON A.parent_contract_address = l.contract_address\n AND A.event_signature = l.topics[0]:: STRING\n AND l.block_number BETWEEN A.start_block\n AND A.end_block\nWHERE\n (\n l.block_number BETWEEN {{ start }}\n AND {{ stop }}\n )\n AND l.block_number <= (\n SELECT\n block_number\n FROM\n look_back\n )\n AND _log_id NOT IN (\n SELECT\n _log_id\n FROM\n {{ ref(\"streamline__complete_decode_logs\") }}\n WHERE\n (\n block_number BETWEEN {{ start }}\n AND {{ stop }}\n )\n AND block_number <= (\n SELECT\n block_number\n FROM\n look_back\n )\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.096708, "supported_languages": null}, "macro.fsc_utils.block_reorg": {"name": "block_reorg", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/models.sql", "original_file_path": "macros/streamline/models.sql", "unique_id": "macro.fsc_utils.block_reorg", "macro_sql": "{% macro block_reorg(reorg_model_list, hours) %}\n {% set models = reorg_model_list.split(\",\") %}\n {% for model in models %}\n {% set sql %}\n DELETE FROM\n {{ ref(model) }} t\n WHERE\n t._inserted_timestamp > DATEADD(\n 'hour',\n -{{ hours }},\n SYSDATE()\n )\n AND NOT EXISTS (\n SELECT\n 1\n FROM\n {{ ref('silver__transactions') }}\n s\n WHERE s.block_number = t.block_number\n AND s.tx_hash = t.tx_hash\n );\n {% endset %}\n {% do run_query(sql) %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.09762, "supported_languages": null}, "macro.fsc_utils.streamline_external_table_query_v2": {"name": "streamline_external_table_query_v2", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/models.sql", "original_file_path": "macros/streamline/models.sql", "unique_id": "macro.fsc_utils.streamline_external_table_query_v2", "macro_sql": "{% macro streamline_external_table_query_v2(\n model,\n partition_function\n ) %}\n WITH meta AS (\n SELECT\n job_created_time AS _inserted_timestamp,\n file_name,\n {{ partition_function }} AS partition_key\n FROM\n TABLE(\n information_schema.external_table_file_registration_history(\n start_time => DATEADD('day', -3, CURRENT_TIMESTAMP()),\n table_name => '{{ source( \"bronze_streamline\", model) }}')\n ) A\n )\n SELECT\n s.*,\n b.file_name,\n _inserted_timestamp\n FROM\n {{ source(\n \"bronze_streamline\",\n model\n ) }}\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\n WHERE\n b.partition_key = s.partition_key\n AND DATA :error IS NULL\n AND DATA is not null\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0981572, "supported_languages": null}, "macro.fsc_utils.streamline_external_table_FR_query_v2": {"name": "streamline_external_table_FR_query_v2", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/models.sql", "original_file_path": "macros/streamline/models.sql", "unique_id": "macro.fsc_utils.streamline_external_table_FR_query_v2", "macro_sql": "{% macro streamline_external_table_FR_query_v2(\n model,\n partition_function\n ) %}\n WITH meta AS (\n SELECT\n registered_on AS _inserted_timestamp,\n file_name,\n {{ partition_function }} AS partition_key\n FROM\n TABLE(\n information_schema.external_table_files(\n table_name => '{{ source( \"bronze_streamline\", model) }}'\n )\n ) A\n )\nSELECT\n s.*,\n b.file_name,\n _inserted_timestamp\nFROM\n {{ source(\n \"bronze_streamline\",\n model\n ) }}\n s\n JOIN meta b\n ON b.file_name = metadata$filename\n AND b.partition_key = s.partition_key\nWHERE\n b.partition_key = s.partition_key\n AND DATA :error IS NULL\n AND DATA is not null\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.0986993, "supported_languages": null}, "macro.fsc_utils.drop_function": {"name": "drop_function", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/utils.sql", "original_file_path": "macros/streamline/utils.sql", "unique_id": "macro.fsc_utils.drop_function", "macro_sql": "{% macro drop_function(\n func_name,\n signature\n ) %}\n DROP FUNCTION IF EXISTS {{ func_name }}({{ fsc_utils.compile_signature(signature, drop_ = True) }});\n{% endmacro %}", "depends_on": {"macros": ["macro.fsc_utils.compile_signature"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1077716, "supported_languages": null}, "macro.fsc_utils.construct_api_route": {"name": "construct_api_route", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/utils.sql", "original_file_path": "macros/streamline/utils.sql", "unique_id": "macro.fsc_utils.construct_api_route", "macro_sql": "\n\n{%- macro construct_api_route(route) -%}\n 'https://{{ var(\"REST_API_ID_PROD\") if target.name == \"prod\" else var(\"REST_API_ID_DEV\") }}.execute-api.{{ var( aws_region, \"us-east-1\" ) }}.amazonaws.com/{{ target.name }}/{{ route }}'\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1084325, "supported_languages": null}, "macro.fsc_utils.compile_signature": {"name": "compile_signature", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/utils.sql", "original_file_path": "macros/streamline/utils.sql", "unique_id": "macro.fsc_utils.compile_signature", "macro_sql": "{%- macro compile_signature(\n params,\n drop_ = False\n ) -%}\n {% for name,\n data_type in params -%}\n {% if drop_ %}\n {{ data_type -}}\n {% else %}\n {{ name ~ \" \" ~ data_type -}}\n {% endif -%}\n {%-if not loop.last -%},\n {%- endif -%}\n {% endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.109147, "supported_languages": null}, "macro.fsc_utils.create_sql_function": {"name": "create_sql_function", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/utils.sql", "original_file_path": "macros/streamline/utils.sql", "unique_id": "macro.fsc_utils.create_sql_function", "macro_sql": "{% macro create_sql_function(\n name_,\n signature,\n return_type,\n sql_,\n api_integration = none,\n options = none,\n func_type = none\n ) %}\n CREATE OR REPLACE {{ func_type }} FUNCTION {{ name_ }}(\n {{- fsc_utils.compile_signature(signature) }}\n )\n COPY GRANTS\n RETURNS {{ return_type }}\n {% if options -%}\n {{ options }}\n {% endif %}\n {%- if api_integration -%}\n api_integration = {{ api_integration }}\n AS {{ fsc_utils.construct_api_route(sql_) ~ \";\" }}\n {% else -%}\n AS\n $$\n {{ sql_ }}\n $$;\n {%- endif -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fsc_utils.compile_signature", "macro.fsc_utils.construct_api_route"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1102297, "supported_languages": null}, "macro.fsc_utils.create_or_drop_function_from_config": {"name": "create_or_drop_function_from_config", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/utils.sql", "original_file_path": "macros/streamline/utils.sql", "unique_id": "macro.fsc_utils.create_or_drop_function_from_config", "macro_sql": "{%- macro create_or_drop_function_from_config(\n config,\n drop_ = False\n ) -%}\n {% set name_ = config [\"name\"] %}\n {% set signature = config [\"signature\"] %}\n {% set return_type = config [\"return_type\"] %}\n {% set sql_ = config [\"sql\"] %}\n {% set options = config [\"options\"] %}\n {% set api_integration = config [\"api_integration\"] %}\n {% set func_type = config [\"func_type\"] %}\n\n {% if not drop_ -%}\n {{ fsc_utils.create_sql_function(\n name_ = name_,\n signature = signature,\n return_type = return_type,\n sql_ = sql_,\n options = options,\n api_integration = api_integration,\n func_type = func_type\n ) }}\n {%- else -%}\n {{ fsc_utils.drop_function(\n name_,\n signature = signature,\n ) }}\n {%- endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.fsc_utils.create_sql_function", "macro.fsc_utils.drop_function"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1119566, "supported_languages": null}, "macro.fsc_utils.if_data_call_function_v2": {"name": "if_data_call_function_v2", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/utils.sql", "original_file_path": "macros/streamline/utils.sql", "unique_id": "macro.fsc_utils.if_data_call_function_v2", "macro_sql": "{% macro if_data_call_function_v2(\n func,\n target,\n params\n ) %}\n {% if var(\n \"STREAMLINE_INVOKE_STREAMS\"\n ) %}\n {% if execute %}\n {{ log(\n \"Running macro `if_data_call_function`: Calling udf \" ~ func ~ \" with params: \\n\" ~ params | tojson(indent=2) ~ \"\\n on \" ~ target,\n True\n ) }}\n {% endif %}\n SELECT\n {{ func }}( parse_json($${{ params | tojson }}$$) )\n WHERE\n EXISTS(\n SELECT\n 1\n FROM\n {{ target }}\n LIMIT\n 1\n )\n {% else %}\n {% if execute %}\n {{ log(\n \"Running macro `if_data_call_function`: NOOP\",\n False\n ) }}\n {% endif %}\n SELECT\n NULL\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.113149, "supported_languages": null}, "macro.fsc_utils.if_data_call_wait": {"name": "if_data_call_wait", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/streamline/utils.sql", "original_file_path": "macros/streamline/utils.sql", "unique_id": "macro.fsc_utils.if_data_call_wait", "macro_sql": "{% macro if_data_call_wait() %}\n {% if var(\n \"STREAMLINE_INVOKE_STREAMS\"\n ) %}\n {% set query %}\n SELECT\n 1\n WHERE\n EXISTS(\n SELECT\n 1\n FROM\n {{ model.schema ~ \".\" ~ model.alias }}\n LIMIT\n 1\n ) {% endset %}\n {% if execute %}\n {% set results = run_query(\n query\n ) %}\n {% if results %}\n {{ log(\n \"Waiting...\",\n info = True\n ) }}\n\n {% set wait_query %}\n SELECT\n system$wait(\n {{ var(\n \"WAIT\",\n 400\n ) }}\n ) {% endset %}\n {% do run_query(wait_query) %}\n {% else %}\n SELECT\n NULL;\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1145203, "supported_languages": null}, "macro.fsc_utils.get_merge_sql": {"name": "get_merge_sql", "resource_type": "macro", "package_name": "fsc_utils", "path": "macros/dbt/get_merge.sql", "original_file_path": "macros/dbt/get_merge.sql", "unique_id": "macro.fsc_utils.get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n {% set predicate_override = \"\" %}\n {% if incremental_predicates[0] == \"dynamic_range_predicate\" %}\n -- run some queries to dynamically determine the min + max of this 'date_column' in the new data\n {% set predicate_override = fsc_utils.dynamic_range_predicate(source, incremental_predicates[1], \"DBT_INTERNAL_DEST\") %}\n {% endif %}\n {% set predicates = [predicate_override] if predicate_override else incremental_predicates %}\n -- standard merge from here\n {% set merge_sql = dbt.get_merge_sql(target, source, unique_key, dest_columns, predicates) %}\n {{ return(merge_sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fsc_utils.dynamic_range_predicate", "macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1160316, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"name": "test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.116995, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"name": "default__test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.117798, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"name": "test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.118566, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"name": "default__test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1193225, "supported_languages": null}, "macro.dbt_utils.test_recency": {"name": "test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1205697, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"name": "default__test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1223936, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"name": "test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1234708, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"name": "default__test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1244588, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"name": "test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.125558, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"name": "default__test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1262693, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"name": "test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1273608, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"name": "default__test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as numeric) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1290164, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"name": "test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.130083, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"name": "default__test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1314113, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"name": "test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.132283, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"name": "default__test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.132892, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"name": "test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1343749, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"name": "default__test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1362777, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"name": "test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1370952, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"name": "default__test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1380663, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"name": "test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1428502, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"name": "default__test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1461287, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"name": "test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1470718, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"name": "default__test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1477747, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"name": "test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1494575, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"name": "default__test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1515415, "supported_languages": null}, "macro.dbt_utils.test_equality": {"name": "test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1527607, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"name": "default__test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None) %}\n\n{% set set_diff %}\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n{% endset %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = set_diff) }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{#-\nIf the compare_cols arg is provided, we can run this test without querying the\ninformation schema\u00a0\u2014 this allows the model to be an ephemeral model\n-#}\n\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model) | map(attribute='quoted') -%}\n{%- endif -%}\n\n{% set compare_cols_csv = compare_columns | join(', ') %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1546042, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"name": "test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1554694, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"name": "default__test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nselect *\nfrom (\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from {{ model }}\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1564617, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"name": "test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1578686, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"name": "default__test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.160158, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"name": "get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1610012, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"name": "default__get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n dbt.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.162346, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"name": "get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1629603, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"name": "default__get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1636362, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"name": "get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1642864, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"name": "default__get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1652362, "supported_languages": null}, "macro.dbt_utils.pivot": {"name": "pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1670272, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"name": "default__pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1688812, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"name": "get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1707237, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"name": "default__get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1738207, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"name": "deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.snowflake__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.175057, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"name": "default__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.175516, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"name": "redshift__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n {{ return(dbt_utils.default__deduplicate(relation, partition_by, order_by=order_by)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1759522, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"name": "postgres__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.176374, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"name": "snowflake__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1767235, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"name": "bigquery__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1770778, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"name": "get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1779282, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"name": "default__get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1794448, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"name": "width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.snowflake__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1815825, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"name": "default__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1825418, "supported_languages": null}, "macro.dbt_utils.redshift__width_bucket": {"name": "redshift__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.redshift__width_bucket", "macro_sql": "{% macro redshift__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is exactly at the bucket edge\n case\n when\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }} %\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1834996, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"name": "snowflake__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1838927, "supported_languages": null}, "macro.dbt_utils.unpivot": {"name": "unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1859827, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"name": "default__unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n select\n {%- for exclude_col in exclude %}\n {{ exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(col.column) }}\n {% else %}\n {{ col.column }}\n {% endif %}\n as {{ cast_to }}) as {{ value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1893983, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"name": "surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1901495, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"name": "default__surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.190648, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"name": "get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1913679, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"name": "default__get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1926174, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"name": "nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1932738, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"name": "default__nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1939678, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"name": "safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1945293, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"name": "default__safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1948118, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.195967, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.197198, "supported_languages": null}, "macro.dbt_utils.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1976657, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.198403, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"name": "get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.1995676, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"name": "default__get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2013102, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"name": "get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.203815, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"name": "default__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.204575, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"name": "bigquery__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2062156, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"name": "_bigquery__get_matching_schemata", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.207297, "supported_languages": null}, "macro.dbt_utils.safe_add": {"name": "safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2080097, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"name": "default__safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2091472, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"name": "get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.210331, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"name": "default__get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2120705, "supported_languages": null}, "macro.dbt_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.216578, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"name": "default__union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.223652, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"name": "degrees_to_radians", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2253487, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"name": "haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2259097, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"name": "default__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2270746, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"name": "bigquery__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.228772, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"name": "nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2294052, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"name": "default__nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2301137, "supported_languages": null}, "macro.dbt_utils.star": {"name": "star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.232153, "supported_languages": null}, "macro.dbt_utils.default__star": {"name": "default__star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2351084, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"name": "generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2359629, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"name": "default__generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{% if var('surrogate_key_treat_nulls_as_empty_strings', False) %}\n {% set default_null_value = \"\" %}\n{% else %}\n {% set default_null_value = '_dbt_utils_surrogate_key_null_'%}\n{% endif %}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2373343, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"name": "get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2382457, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"name": "default__get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.239778, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"name": "get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils.default__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2408147, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"name": "default__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2411315, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"name": "postgres__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2414663, "supported_languages": null}, "macro.dbt_utils.group_by": {"name": "group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2420208, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"name": "default__group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2425644, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"name": "get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2433474, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"name": "default__get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2442675, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2456503, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2465248, "supported_languages": null}, "macro.dbt_utils.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2469122, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.248003, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"name": "pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2485645, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"name": "default__pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2489083, "supported_languages": null}, "macro.dbt_utils.slugify": {"name": "slugify", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "unique_id": "macro.dbt_utils.slugify", "macro_sql": "{% macro slugify(string) %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.250164, "supported_languages": null}, "macro.dbt_utils._is_relation": {"name": "_is_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "unique_id": "macro.dbt_utils._is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2510724, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"name": "pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2516577, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"name": "default__pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2520688, "supported_languages": null}, "macro.dbt_utils.log_info": {"name": "log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.252581, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"name": "default__log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2529306, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"name": "_is_ephemeral", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "unique_id": "macro.dbt_utils._is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2545311, "supported_languages": null}, "macro.dbt_expectations.type_timestamp": {"name": "type_timestamp", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "unique_id": "macro.dbt_expectations.type_timestamp", "macro_sql": "\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt_expectations')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_expectations.snowflake__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.255253, "supported_languages": null}, "macro.dbt_expectations.default__type_timestamp": {"name": "default__type_timestamp", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "unique_id": "macro.dbt_expectations.default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() -%}\n timestamp\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2554305, "supported_languages": null}, "macro.dbt_expectations.snowflake__type_timestamp": {"name": "snowflake__type_timestamp", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "unique_id": "macro.dbt_expectations.snowflake__type_timestamp", "macro_sql": "{% macro snowflake__type_timestamp() -%}\n timestamp_ntz\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.255588, "supported_languages": null}, "macro.dbt_expectations.postgres__type_timestamp": {"name": "postgres__type_timestamp", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "unique_id": "macro.dbt_expectations.postgres__type_timestamp", "macro_sql": "{% macro postgres__type_timestamp() -%}\n timestamp without time zone\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.255744, "supported_languages": null}, "macro.dbt_expectations.type_datetime": {"name": "type_datetime", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "unique_id": "macro.dbt_expectations.type_datetime", "macro_sql": "{% macro type_datetime() -%}\n {{ return(adapter.dispatch('type_datetime', 'dbt_expectations')()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.snowflake__type_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.25607, "supported_languages": null}, "macro.dbt_expectations.default__type_datetime": {"name": "default__type_datetime", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "unique_id": "macro.dbt_expectations.default__type_datetime", "macro_sql": "{% macro default__type_datetime() -%}\n datetime\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.256357, "supported_languages": null}, "macro.dbt_expectations.snowflake__type_datetime": {"name": "snowflake__type_datetime", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "unique_id": "macro.dbt_expectations.snowflake__type_datetime", "macro_sql": "{% macro snowflake__type_datetime() -%}\n timestamp_ntz\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2565157, "supported_languages": null}, "macro.dbt_expectations.postgres__type_datetime": {"name": "postgres__type_datetime", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "unique_id": "macro.dbt_expectations.postgres__type_datetime", "macro_sql": "{% macro postgres__type_datetime() -%}\n timestamp without time zone\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2566714, "supported_languages": null}, "macro.dbt_expectations.group_by": {"name": "group_by", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/utils/groupby.sql", "original_file_path": "macros/utils/groupby.sql", "unique_id": "macro.dbt_expectations.group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_expectations')(n)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2572267, "supported_languages": null}, "macro.dbt_expectations.default__group_by": {"name": "default__group_by", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/utils/groupby.sql", "original_file_path": "macros/utils/groupby.sql", "unique_id": "macro.dbt_expectations.default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }}\n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2577422, "supported_languages": null}, "macro.dbt_expectations.log_natural": {"name": "log_natural", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/log_natural.sql", "original_file_path": "macros/math/log_natural.sql", "unique_id": "macro.dbt_expectations.log_natural", "macro_sql": "{% macro log_natural(x) -%}\n {{ adapter.dispatch('log_natural', 'dbt_expectations') (x) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.snowflake__log_natural"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2582912, "supported_languages": null}, "macro.dbt_expectations.default__log_natural": {"name": "default__log_natural", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/log_natural.sql", "original_file_path": "macros/math/log_natural.sql", "unique_id": "macro.dbt_expectations.default__log_natural", "macro_sql": "{% macro default__log_natural(x) -%}\n\n ln({{ x }})\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2585151, "supported_languages": null}, "macro.dbt_expectations.bigquery__log_natural": {"name": "bigquery__log_natural", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/log_natural.sql", "original_file_path": "macros/math/log_natural.sql", "unique_id": "macro.dbt_expectations.bigquery__log_natural", "macro_sql": "{% macro bigquery__log_natural(x) -%}\n\n ln({{ x }})\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2587295, "supported_languages": null}, "macro.dbt_expectations.snowflake__log_natural": {"name": "snowflake__log_natural", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/log_natural.sql", "original_file_path": "macros/math/log_natural.sql", "unique_id": "macro.dbt_expectations.snowflake__log_natural", "macro_sql": "{% macro snowflake__log_natural(x) -%}\n\n ln({{ x }})\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.25894, "supported_languages": null}, "macro.dbt_expectations.median": {"name": "median", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/median.sql", "original_file_path": "macros/math/median.sql", "unique_id": "macro.dbt_expectations.median", "macro_sql": "{% macro median(field) %}\n{{ dbt_expectations.percentile_cont(field, 0.5) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.percentile_cont"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.259344, "supported_languages": null}, "macro.dbt_expectations.percentile_cont": {"name": "percentile_cont", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/percentile_cont.sql", "original_file_path": "macros/math/percentile_cont.sql", "unique_id": "macro.dbt_expectations.percentile_cont", "macro_sql": "{% macro percentile_cont(field, quantile, partition=None) %}\n {{ adapter.dispatch('quantile', 'dbt_expectations') (field, quantile, partition) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.default__quantile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.260121, "supported_languages": null}, "macro.dbt_expectations.default__quantile": {"name": "default__quantile", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/percentile_cont.sql", "original_file_path": "macros/math/percentile_cont.sql", "unique_id": "macro.dbt_expectations.default__quantile", "macro_sql": "{% macro default__quantile(field, quantile, partition) -%}\n percentile_cont({{ quantile }}) within group (order by {{ field }})\n {%- if partition %}over(partition by {{ partition }}){% endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2605739, "supported_languages": null}, "macro.dbt_expectations.bigquery__quantile": {"name": "bigquery__quantile", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/percentile_cont.sql", "original_file_path": "macros/math/percentile_cont.sql", "unique_id": "macro.dbt_expectations.bigquery__quantile", "macro_sql": "{% macro bigquery__quantile(field, quantile, partition) -%}\n percentile_cont({{ field }}, {{ quantile }})\n over({%- if partition %}partition by {{ partition }}{% endif -%})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2610178, "supported_languages": null}, "macro.dbt_expectations.rand": {"name": "rand", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "unique_id": "macro.dbt_expectations.rand", "macro_sql": "{% macro rand() -%}\n {{ adapter.dispatch('rand', 'dbt_expectations') () }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.snowflake__rand"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2615945, "supported_languages": null}, "macro.dbt_expectations.default__rand": {"name": "default__rand", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "unique_id": "macro.dbt_expectations.default__rand", "macro_sql": "{% macro default__rand() -%}\n\n rand()\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.261756, "supported_languages": null}, "macro.dbt_expectations.bigquery__rand": {"name": "bigquery__rand", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "unique_id": "macro.dbt_expectations.bigquery__rand", "macro_sql": "{% macro bigquery__rand() -%}\n\n rand()\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2619135, "supported_languages": null}, "macro.dbt_expectations.snowflake__rand": {"name": "snowflake__rand", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "unique_id": "macro.dbt_expectations.snowflake__rand", "macro_sql": "{% macro snowflake__rand(seed) -%}\n\n uniform(0::float, 1::float, random())\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2620878, "supported_languages": null}, "macro.dbt_expectations.postgres__rand": {"name": "postgres__rand", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "unique_id": "macro.dbt_expectations.postgres__rand", "macro_sql": "{% macro postgres__rand() -%}\n\n random()\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2622776, "supported_languages": null}, "macro.dbt_expectations.redshift__rand": {"name": "redshift__rand", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "unique_id": "macro.dbt_expectations.redshift__rand", "macro_sql": "{% macro redshift__rand() -%}\n\n random()\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2624338, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_column_count_to_equal_other_table": {"name": "test_expect_table_column_count_to_equal_other_table", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_column_count_to_equal_other_table.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_column_count_to_equal_other_table.sql", "unique_id": "macro.dbt_expectations.test_expect_table_column_count_to_equal_other_table", "macro_sql": "{%- test expect_table_column_count_to_equal_other_table(model, compare_model) -%}\n{%- if execute -%}\n{%- set number_columns = (adapter.get_columns_in_relation(model) | length) -%}\n{%- set compare_number_columns = (adapter.get_columns_in_relation(compare_model) | length) -%}\nwith test_data as (\n\n select\n {{ number_columns }} as number_columns,\n {{ compare_number_columns }} as compare_number_columns\n\n)\nselect *\nfrom test_data\nwhere\n number_columns != compare_number_columns\n{%- endif -%}\n{%- endtest -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2635067, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_columns_to_contain_set": {"name": "test_expect_table_columns_to_contain_set", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_columns_to_contain_set.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_columns_to_contain_set.sql", "unique_id": "macro.dbt_expectations.test_expect_table_columns_to_contain_set", "macro_sql": "{%- test expect_table_columns_to_contain_set(model, column_list, transform=\"upper\") -%}\n{%- if execute -%}\n {%- set column_list = column_list | map(transform) | list -%}\n {%- set relation_column_names = dbt_expectations._get_column_list(model, transform) -%}\n {%- set matching_columns = dbt_expectations._list_intersect(column_list, relation_column_names) -%}\n with relation_columns as (\n\n {% for col_name in relation_column_names %}\n select cast('{{ col_name }}' as {{ dbt.type_string() }}) as relation_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n ),\n input_columns as (\n\n {% for col_name in column_list %}\n select cast('{{ col_name }}' as {{ dbt.type_string() }}) as input_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n )\n select *\n from\n input_columns i\n left join\n relation_columns r on r.relation_column = i.input_column\n where\n -- catch any column in input list that is not in the list of table columns\n r.relation_column is null\n{%- endif -%}\n{%- endtest -%}", "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_expectations._list_intersect", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2657876, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table_times_factor": {"name": "test_expect_table_row_count_to_equal_other_table_times_factor", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal_other_table_times_factor.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal_other_table_times_factor.sql", "unique_id": "macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table_times_factor", "macro_sql": "{%- test expect_table_row_count_to_equal_other_table_times_factor(model,\n compare_model,\n factor,\n group_by=None,\n compare_group_by=None,\n row_condition=None,\n compare_row_condition=None\n ) -%}\n {{ adapter.dispatch('test_expect_table_row_count_to_equal_other_table_times_factor',\n 'dbt_expectations') (model,\n compare_model,\n factor,\n group_by,\n compare_group_by,\n row_condition,\n compare_row_condition\n ) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_table_row_count_to_equal_other_table_times_factor"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2675123, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_table_row_count_to_equal_other_table_times_factor": {"name": "default__test_expect_table_row_count_to_equal_other_table_times_factor", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal_other_table_times_factor.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal_other_table_times_factor.sql", "unique_id": "macro.dbt_expectations.default__test_expect_table_row_count_to_equal_other_table_times_factor", "macro_sql": "\n\n{%- macro default__test_expect_table_row_count_to_equal_other_table_times_factor(model,\n compare_model,\n factor,\n group_by,\n compare_group_by,\n row_condition,\n compare_row_condition\n ) -%}\n\n{{ dbt_expectations.test_expect_table_row_count_to_equal_other_table(model,\n compare_model,\n group_by=group_by,\n compare_group_by=compare_group_by,\n factor=factor,\n row_condition=row_condition,\n compare_row_condition=compare_row_condition\n) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.268224, "supported_languages": null}, "macro.dbt_expectations._list_intersect": {"name": "_list_intersect", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/_list_intersect.sql", "original_file_path": "macros/schema_tests/table_shape/_list_intersect.sql", "unique_id": "macro.dbt_expectations._list_intersect", "macro_sql": "{%- macro _list_intersect(list1, list2) -%}\n{%- set matching_items = [] -%}\n{%- for itm in list1 -%}\n {%- if itm in list2 -%}\n {%- do matching_items.append(itm) -%}\n {%- endif -%}\n{%- endfor -%}\n{%- do return(matching_items) -%}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.269054, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_column_count_to_be_between": {"name": "test_expect_table_column_count_to_be_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_column_count_to_be_between.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_column_count_to_be_between.sql", "unique_id": "macro.dbt_expectations.test_expect_table_column_count_to_be_between", "macro_sql": "{%- test expect_table_column_count_to_be_between(model,\n min_value=None,\n max_value=None\n ) -%}\n{%- if min_value is none and max_value is none -%}\n{{ exceptions.raise_compiler_error(\n \"You have to provide either a min_value, max_value or both.\"\n) }}\n{%- endif -%}\n{%- if execute -%}\n{%- set number_actual_columns = (adapter.get_columns_in_relation(model) | length) -%}\n\n{%- set expression %}\n( 1=1\n{%- if min_value %} and number_actual_columns >= min_value{% endif %}\n{%- if max_value %} and number_actual_columns <= max_value{% endif %}\n)\n{% endset -%}\n\nwith test_data as (\n\n select\n {{ number_actual_columns }} as number_actual_columns,\n {{ min_value if min_value else 0 }} as min_value,\n {{ max_value if max_value else 0 }} as max_value\n\n)\nselect *\nfrom test_data\nwhere\n not {{ expression }}\n{%- endif -%}\n{%- endtest -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2709033, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_row_count_to_be_between": {"name": "test_expect_table_row_count_to_be_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_row_count_to_be_between.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_row_count_to_be_between.sql", "unique_id": "macro.dbt_expectations.test_expect_table_row_count_to_be_between", "macro_sql": "{%- test expect_table_row_count_to_be_between(model,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) -%}\n {{ adapter.dispatch('test_expect_table_row_count_to_be_between',\n 'dbt_expectations') (model,\n min_value,\n max_value,\n group_by,\n row_condition,\n strictly\n ) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_table_row_count_to_be_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2723203, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_table_row_count_to_be_between": {"name": "default__test_expect_table_row_count_to_be_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_row_count_to_be_between.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_row_count_to_be_between.sql", "unique_id": "macro.dbt_expectations.default__test_expect_table_row_count_to_be_between", "macro_sql": "\n\n{%- macro default__test_expect_table_row_count_to_be_between(model,\n min_value,\n max_value,\n group_by,\n row_condition,\n strictly\n ) -%}\n{% set expression %}\ncount(*)\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2730253, "supported_languages": null}, "macro.dbt_expectations.test_expect_row_values_to_have_recent_data": {"name": "test_expect_row_values_to_have_recent_data", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_row_values_to_have_recent_data.sql", "original_file_path": "macros/schema_tests/table_shape/expect_row_values_to_have_recent_data.sql", "unique_id": "macro.dbt_expectations.test_expect_row_values_to_have_recent_data", "macro_sql": "{% test expect_row_values_to_have_recent_data(model,\n column_name,\n datepart,\n interval,\n row_condition=None) %}\n\n {{ adapter.dispatch('test_expect_row_values_to_have_recent_data', 'dbt_expectations') (model,\n column_name,\n datepart,\n interval,\n row_condition) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_row_values_to_have_recent_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2747812, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_row_values_to_have_recent_data": {"name": "default__test_expect_row_values_to_have_recent_data", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_row_values_to_have_recent_data.sql", "original_file_path": "macros/schema_tests/table_shape/expect_row_values_to_have_recent_data.sql", "unique_id": "macro.dbt_expectations.default__test_expect_row_values_to_have_recent_data", "macro_sql": "{% macro default__test_expect_row_values_to_have_recent_data(model, column_name, datepart, interval, row_condition) %}\n{%- set default_start_date = '1970-01-01' -%}\nwith max_recency as (\n\n select max(cast({{ column_name }} as {{ dbt_expectations.type_timestamp() }})) as max_timestamp\n from\n {{ model }}\n where\n -- to exclude erroneous future dates\n cast({{ column_name }} as {{ dbt_expectations.type_timestamp() }}) <= {{ dbt_date.now() }}\n {% if row_condition %}\n and {{ row_condition }}\n {% endif %}\n)\nselect\n *\nfrom\n max_recency\nwhere\n -- if the row_condition excludes all rows, we need to compare against a default date\n -- to avoid false negatives\n coalesce(max_timestamp, cast('{{ default_start_date }}' as {{ dbt_expectations.type_timestamp() }}))\n <\n cast({{ dbt.dateadd(datepart, interval * -1, dbt_date.now()) }} as {{ dbt_expectations.type_timestamp() }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.type_timestamp", "macro.dbt_date.now", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2760706, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table": {"name": "test_expect_table_row_count_to_equal_other_table", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal_other_table.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal_other_table.sql", "unique_id": "macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table", "macro_sql": "{%- test expect_table_row_count_to_equal_other_table(model,\n compare_model,\n group_by=None,\n compare_group_by=None,\n factor=1,\n row_condition=None,\n compare_row_condition=None\n ) -%}\n\n {{ adapter.dispatch('test_expect_table_row_count_to_equal_other_table',\n 'dbt_expectations') (model,\n compare_model,\n group_by,\n compare_group_by,\n factor,\n row_condition,\n compare_row_condition\n ) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_table_row_count_to_equal_other_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.277626, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_table_row_count_to_equal_other_table": {"name": "default__test_expect_table_row_count_to_equal_other_table", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal_other_table.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal_other_table.sql", "unique_id": "macro.dbt_expectations.default__test_expect_table_row_count_to_equal_other_table", "macro_sql": "\n\n{%- macro default__test_expect_table_row_count_to_equal_other_table(model,\n compare_model,\n group_by,\n compare_group_by,\n factor,\n row_condition,\n compare_row_condition\n ) -%}\n{{ dbt_expectations.test_equal_expression(model, \"count(*)\",\n compare_model=compare_model,\n compare_expression=\"count(*) * \" + factor|string,\n group_by=group_by,\n compare_group_by=compare_group_by,\n row_condition=row_condition,\n compare_row_condition=compare_row_condition\n) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_expectations.test_equal_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2783546, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_aggregation_to_equal_other_table": {"name": "test_expect_table_aggregation_to_equal_other_table", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_aggregation_to_equal_other_table.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_aggregation_to_equal_other_table.sql", "unique_id": "macro.dbt_expectations.test_expect_table_aggregation_to_equal_other_table", "macro_sql": "{%- test expect_table_aggregation_to_equal_other_table(model,\n expression,\n compare_model,\n compare_expression=None,\n group_by=None,\n compare_group_by=None,\n row_condition=None,\n compare_row_condition=None,\n tolerance=0.0,\n tolerance_percent=None\n ) -%}\n\n\n{{ dbt_expectations.test_equal_expression(\n model,\n expression=expression,\n compare_model=compare_model,\n compare_expression=compare_expression,\n group_by=group_by,\n compare_group_by=compare_group_by,\n row_condition=row_condition,\n compare_row_condition=compare_row_condition,\n tolerance=tolerance,\n tolerance_percent=tolerance_percent\n) }}\n\n{%- endtest -%}", "depends_on": {"macros": ["macro.dbt_expectations.test_equal_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2795331, "supported_languages": null}, "macro.dbt_expectations._get_column_list": {"name": "_get_column_list", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/_get_column_list.sql", "original_file_path": "macros/schema_tests/table_shape/_get_column_list.sql", "unique_id": "macro.dbt_expectations._get_column_list", "macro_sql": "{%- macro _get_column_list(model, transform=\"upper\") -%}\n{%- set relation_columns = adapter.get_columns_in_relation(model) -%}\n{%- set relation_column_names = relation_columns | map(attribute=\"name\") | map(transform) | list -%}\n{%- do return(relation_column_names) -%}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.280313, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_columns_to_match_ordered_list": {"name": "test_expect_table_columns_to_match_ordered_list", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_columns_to_match_ordered_list.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_columns_to_match_ordered_list.sql", "unique_id": "macro.dbt_expectations.test_expect_table_columns_to_match_ordered_list", "macro_sql": "{%- test expect_table_columns_to_match_ordered_list(model, column_list, transform=\"upper\") -%}\n{%- if execute -%}\n {%- set column_list = column_list | map(transform) | list -%}\n {%- set relation_column_names = dbt_expectations._get_column_list(model, transform) -%}\n {%- set matching_columns = dbt_expectations._list_intersect(column_list, relation_column_names) -%}\n with relation_columns as (\n\n {% for col_name in relation_column_names %}\n select\n {{ loop.index }} as relation_column_idx,\n cast('{{ col_name }}' as {{ dbt.type_string() }}) as relation_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n ),\n input_columns as (\n\n {% for col_name in column_list %}\n select\n {{ loop.index }} as input_column_idx,\n cast('{{ col_name }}' as {{ dbt.type_string() }}) as input_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n )\n select *\n from\n relation_columns r\n full outer join\n input_columns i on r.relation_column = i.input_column and r.relation_column_idx = i.input_column_idx\n where\n -- catch any column in input list that is not in the sequence of table columns\n -- or any table column that is not in the input sequence\n r.relation_column is null or\n i.input_column is null\n\n{%- endif -%}\n{%- endtest -%}", "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_expectations._list_intersect", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2828388, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_to_exist": {"name": "test_expect_column_to_exist", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_column_to_exist.sql", "original_file_path": "macros/schema_tests/table_shape/expect_column_to_exist.sql", "unique_id": "macro.dbt_expectations.test_expect_column_to_exist", "macro_sql": "{%- test expect_column_to_exist(model, column_name, column_index=None, transform=\"upper\") -%}\n{%- if execute -%}\n\n {%- set column_name = column_name | map(transform) | join -%}\n {%- set relation_column_names = dbt_expectations._get_column_list(model, transform) -%}\n\n {%- set matching_column_index = relation_column_names.index(column_name) if column_name in relation_column_names else -1 %}\n\n {%- if column_index -%}\n\n {%- set column_index_0 = column_index - 1 if column_index > 0 else 0 -%}\n\n {%- set column_index_matches = true if matching_column_index == column_index_0 else false %}\n\n {%- else -%}\n\n {%- set column_index_matches = true -%}\n\n {%- endif %}\n\n with test_data as (\n\n select\n cast('{{ column_name }}' as {{ dbt.type_string() }}) as column_name,\n {{ matching_column_index }} as matching_column_index,\n {{ column_index_matches }} as column_index_matches\n\n )\n select *\n from test_data\n where\n not(matching_column_index >= 0 and column_index_matches)\n\n{%- endif -%}\n{%- endtest -%}", "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2850368, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_row_count_to_equal": {"name": "test_expect_table_row_count_to_equal", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal.sql", "unique_id": "macro.dbt_expectations.test_expect_table_row_count_to_equal", "macro_sql": "{%- test expect_table_row_count_to_equal(model,\n value,\n group_by=None,\n row_condition=None\n ) -%}\n {{ adapter.dispatch('test_expect_table_row_count_to_equal',\n 'dbt_expectations') (model,\n value,\n group_by,\n row_condition\n ) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_table_row_count_to_equal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2861142, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_table_row_count_to_equal": {"name": "default__test_expect_table_row_count_to_equal", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_row_count_to_equal.sql", "unique_id": "macro.dbt_expectations.default__test_expect_table_row_count_to_equal", "macro_sql": "\n\n\n\n{%- macro default__test_expect_table_row_count_to_equal(model,\n value,\n group_by,\n row_condition\n ) -%}\n{% set expression %}\ncount(*) = {{ value }}\n{% endset %}\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=group_by,\n row_condition=row_condition)\n }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2867217, "supported_languages": null}, "macro.dbt_expectations.test_expect_grouped_row_values_to_have_recent_data": {"name": "test_expect_grouped_row_values_to_have_recent_data", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_grouped_row_values_to_have_recent_data.sql", "original_file_path": "macros/schema_tests/table_shape/expect_grouped_row_values_to_have_recent_data.sql", "unique_id": "macro.dbt_expectations.test_expect_grouped_row_values_to_have_recent_data", "macro_sql": "{% test expect_grouped_row_values_to_have_recent_data(model,\n group_by,\n timestamp_column,\n datepart,\n interval,\n row_condition=None) %}\n\n {{ adapter.dispatch('test_expect_grouped_row_values_to_have_recent_data', 'dbt_expectations') (model,\n group_by,\n timestamp_column,\n datepart,\n interval,\n row_condition) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_grouped_row_values_to_have_recent_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2900639, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_grouped_row_values_to_have_recent_data": {"name": "default__test_expect_grouped_row_values_to_have_recent_data", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_grouped_row_values_to_have_recent_data.sql", "original_file_path": "macros/schema_tests/table_shape/expect_grouped_row_values_to_have_recent_data.sql", "unique_id": "macro.dbt_expectations.default__test_expect_grouped_row_values_to_have_recent_data", "macro_sql": "{% macro default__test_expect_grouped_row_values_to_have_recent_data(model,\n group_by,\n timestamp_column,\n datepart,\n interval,\n row_condition) %}\nwith latest_grouped_timestamps as (\n\n select\n {{ group_by | join(\",\") ~ \",\" if group_by }}\n max(1) as join_key,\n max(cast({{ timestamp_column }} as {{ dbt_expectations.type_timestamp() }})) as latest_timestamp_column\n from\n {{ model }}\n where\n -- to exclude erroneous future dates\n cast({{ timestamp_column }} as {{ dbt_expectations.type_timestamp() }}) <= {{ dbt_date.now() }}\n {% if row_condition %}\n and {{ row_condition }}\n {% endif %}\n\n {% if group_by -%}\n {{ dbt_expectations.group_by(group_by | length) }}\n {%- endif %}\n),\ntotal_row_counts as (\n\n select\n {{ group_by | join(\",\") ~ \",\" if group_by }}\n max(1) as join_key,\n count(*) as row_count\n from\n latest_grouped_timestamps\n {% if group_by -%}\n {{ dbt_expectations.group_by(group_by | length) }}\n {%- endif %}\n\n\n),\noutdated_grouped_timestamps as (\n\n select *\n from\n latest_grouped_timestamps\n where\n -- are the max timestamps per group older than the specified cutoff?\n latest_timestamp_column <\n cast(\n {{ dbt.dateadd(datepart, interval * -1, dbt_date.now()) }}\n as {{ dbt_expectations.type_timestamp() }}\n )\n\n),\nvalidation_errors as (\n\n select\n r.row_count,\n t.*\n from\n total_row_counts r\n left join\n outdated_grouped_timestamps t\n on\n {% for g in group_by %}\n r.{{ g }} = t.{{ g }} and\n {% endfor %}\n r.join_key = t.join_key\n where\n -- fail if either no rows were returned due to row_condition,\n -- or the recency test returned failed rows\n r.row_count = 0\n or\n t.join_key is not null\n\n)\nselect * from validation_errors\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.type_timestamp", "macro.dbt_date.now", "macro.dbt_expectations.group_by", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2923043, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_columns_to_match_set": {"name": "test_expect_table_columns_to_match_set", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_columns_to_match_set.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_columns_to_match_set.sql", "unique_id": "macro.dbt_expectations.test_expect_table_columns_to_match_set", "macro_sql": "{%- test expect_table_columns_to_match_set(model, column_list, transform=\"upper\") -%}\n{%- if execute -%}\n {%- set column_list = column_list | map(transform) | list -%}\n {%- set relation_column_names = dbt_expectations._get_column_list(model, transform) -%}\n {%- set matching_columns = dbt_expectations._list_intersect(column_list, relation_column_names) -%}\n with relation_columns as (\n\n {% for col_name in relation_column_names %}\n select cast('{{ col_name }}' as {{ dbt.type_string() }}) as relation_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n ),\n input_columns as (\n\n {% for col_name in column_list %}\n select cast('{{ col_name }}' as {{ dbt.type_string() }}) as input_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n )\n select *\n from\n relation_columns r\n full outer join\n input_columns i on r.relation_column = i.input_column\n where\n -- catch any column in input list that is not in the list of table columns\n -- or any table column that is not in the input list\n r.relation_column is null or\n i.input_column is null\n\n{%- endif -%}\n{%- endtest -%}", "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_expectations._list_intersect", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2945848, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_columns_to_not_contain_set": {"name": "test_expect_table_columns_to_not_contain_set", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_columns_to_not_contain_set.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_columns_to_not_contain_set.sql", "unique_id": "macro.dbt_expectations.test_expect_table_columns_to_not_contain_set", "macro_sql": "{%- test expect_table_columns_to_not_contain_set(model, column_list, transform=\"upper\") -%}\n{%- if execute -%}\n {%- set column_list = column_list | map(transform) | list -%}\n {%- set relation_column_names = dbt_expectations._get_column_list(model, transform) -%}\n {%- set matching_columns = dbt_expectations._list_intersect(column_list, relation_column_names) -%}\n with relation_columns as (\n\n {% for col_name in relation_column_names %}\n select cast('{{ col_name }}' as {{ dbt.type_string() }}) as relation_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n ),\n input_columns as (\n\n {% for col_name in column_list %}\n select cast('{{ col_name }}' as {{ dbt.type_string() }}) as input_column\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n )\n -- catch any column in input list that is in the list of table columns\n select *\n from\n input_columns i\n inner join\n relation_columns r on r.relation_column = i.input_column\n\n{%- endif -%}\n{%- endtest -%}", "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_expectations._list_intersect", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2967455, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_column_count_to_equal": {"name": "test_expect_table_column_count_to_equal", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_column_count_to_equal.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_column_count_to_equal.sql", "unique_id": "macro.dbt_expectations.test_expect_table_column_count_to_equal", "macro_sql": "{%- test expect_table_column_count_to_equal(model, value) -%}\n{%- if execute -%}\n{%- set number_actual_columns = (adapter.get_columns_in_relation(model) | length) -%}\nwith test_data as (\n\n select\n {{ number_actual_columns }} as number_actual_columns,\n {{ value }} as value\n\n)\nselect *\nfrom test_data\nwhere\n number_actual_columns != value\n{%- endif -%}\n{%- endtest -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2974765, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_be_null": {"name": "test_expect_column_values_to_not_be_null", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_not_be_null.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_not_be_null.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_be_null", "macro_sql": "{% test expect_column_values_to_not_be_null(model, column_name, row_condition=None) %}\n\n{% set expression = column_name ~ \" is not null\" %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2982936, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_between": {"name": "test_expect_column_values_to_be_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_between.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_between.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_between", "macro_sql": "{% test expect_column_values_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n row_condition=None,\n strictly=False\n ) %}\n\n{% set expression %}\n{{ column_name }}\n{% endset %}\n\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=None,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.2995906, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_null": {"name": "test_expect_column_values_to_be_null", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_null.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_null.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_null", "macro_sql": "{% test expect_column_values_to_be_null(model, column_name, row_condition=None) %}\n\n{% set expression = column_name ~ \" is null\" %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3004148, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_of_type": {"name": "test_expect_column_values_to_be_of_type", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_of_type.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_of_type.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_of_type", "macro_sql": "{%- test expect_column_values_to_be_of_type(model, column_name, column_type) -%}\n{{ dbt_expectations.test_expect_column_values_to_be_in_type_list(model, column_name, [column_type]) }}\n{%- endtest -%}", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_column_values_to_be_in_type_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.300867, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_in_set": {"name": "test_expect_column_values_to_be_in_set", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_in_set.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_in_set.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_in_set", "macro_sql": "{% test expect_column_values_to_be_in_set(model, column_name,\n value_set,\n quote_values=True,\n row_condition=None\n ) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field\n\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n),\nset_values as (\n\n {% for value in value_set -%}\n select\n {% if quote_values -%}\n cast('{{ value }}' as {{ dbt.type_string() }})\n {%- else -%}\n {{ value }}\n {%- endif %} as value_field\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n),\nvalidation_errors as (\n -- values from the model that are not in the set\n select\n v.value_field\n from\n all_values v\n left join\n set_values s on v.value_field = s.value_field\n where\n s.value_field is null\n\n)\n\nselect *\nfrom validation_errors\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3025253, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_unique": {"name": "test_expect_column_values_to_be_unique", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_unique.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_unique.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_unique", "macro_sql": "{% test expect_column_values_to_be_unique(model, column_name, row_condition=None) %}\n{{ dbt_expectations.test_expect_compound_columns_to_be_unique(model, [column_name], row_condition=row_condition) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.test_expect_compound_columns_to_be_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.303027, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_be_in_set": {"name": "test_expect_column_values_to_not_be_in_set", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_not_be_in_set.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_not_be_in_set.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_be_in_set", "macro_sql": "{% test expect_column_values_to_not_be_in_set(model, column_name,\n value_set,\n quote_values=True,\n row_condition=None\n ) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field\n\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n),\nset_values as (\n\n {% for value in value_set -%}\n select\n {% if quote_values -%}\n cast('{{ value }}' as {{ dbt.type_string() }})\n {%- else -%}\n {{ value }}\n {%- endif %} as value_field\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n),\nvalidation_errors as (\n -- values from the model that match the set\n select\n v.value_field\n from\n all_values v\n join\n set_values s on v.value_field = s.value_field\n\n)\n\nselect *\nfrom validation_errors\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3046582, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_decreasing": {"name": "test_expect_column_values_to_be_decreasing", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_decreasing.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_decreasing.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_decreasing", "macro_sql": "{% test expect_column_values_to_be_decreasing(model, column_name,\n sort_column=None,\n strictly=True,\n row_condition=None,\n group_by=None) %}\n\n{%- set sort_column = column_name if not sort_column else sort_column -%}\n{%- set operator = \"<\" if strictly else \"<=\" %}\nwith all_values as (\n\n select\n {{ sort_column }} as sort_column,\n {%- if group_by -%}\n {{ group_by | join(\", \") }},\n {%- endif %}\n {{ column_name }} as value_field\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n),\nadd_lag_values as (\n\n select\n sort_column,\n value_field,\n lag(value_field) over\n {%- if not group_by -%}\n (order by sort_column)\n {%- else -%}\n (partition by {{ group_by | join(\", \") }} order by sort_column)\n {%- endif %} as value_field_lag\n from\n all_values\n\n),\nvalidation_errors as (\n\n select\n *\n from\n add_lag_values\n where\n value_field_lag is not null\n and\n not (value_field {{ operator }} value_field_lag)\n\n)\nselect *\nfrom validation_errors\n{% endtest %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.306904, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_have_consistent_casing": {"name": "test_expect_column_values_to_have_consistent_casing", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_have_consistent_casing.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_have_consistent_casing.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_have_consistent_casing", "macro_sql": "{% test expect_column_values_to_have_consistent_casing(model, column_name, display_inconsistent_columns=False) %}\n\nwith test_data as (\n\n select\n distinct {{ column_name }} as distinct_values\n from\n {{ model }}\n\n ),\n {% if display_inconsistent_columns %}\n validation_errors as (\n\n select\n lower(distinct_values) as inconsistent_columns,\n count(distinct_values) as set_count_case_insensitive\n from\n test_data\n group by 1\n having\n count(distinct_values) > 1\n\n )\n select * from validation_errors\n {% else %}\n validation_errors as (\n\n select\n count(1) as set_count,\n count(distinct lower(distinct_values)) as set_count_case_insensitive\n from\n test_data\n\n )\n select *\n from\n validation_errors\n where\n set_count != set_count_case_insensitive\n {% endif %}\n {%- endtest -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3076727, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_increasing": {"name": "test_expect_column_values_to_be_increasing", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_increasing.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_increasing.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_increasing", "macro_sql": "{% test expect_column_values_to_be_increasing(model, column_name,\n sort_column=None,\n strictly=True,\n row_condition=None,\n group_by=None) %}\n\n{%- set sort_column = column_name if not sort_column else sort_column -%}\n{%- set operator = \">\" if strictly else \">=\" -%}\nwith all_values as (\n\n select\n {{ sort_column }} as sort_column,\n {%- if group_by -%}\n {{ group_by | join(\", \") }},\n {%- endif %}\n {{ column_name }} as value_field\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n),\nadd_lag_values as (\n\n select\n sort_column,\n {%- if group_by -%}\n {{ group_by | join(\", \") }},\n {%- endif %}\n value_field,\n lag(value_field) over\n {%- if not group_by -%}\n (order by sort_column)\n {%- else -%}\n (partition by {{ group_by | join(\", \") }} order by sort_column)\n {%- endif %} as value_field_lag\n from\n all_values\n\n),\nvalidation_errors as (\n select\n *\n from\n add_lag_values\n where\n value_field_lag is not null\n and\n not (value_field {{ operator }} value_field_lag)\n\n)\nselect *\nfrom validation_errors\n{% endtest %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3101099, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_in_type_list": {"name": "test_expect_column_values_to_be_in_type_list", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_in_type_list.sql", "original_file_path": "macros/schema_tests/column_values_basic/expect_column_values_to_be_in_type_list.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_in_type_list", "macro_sql": "{%- test expect_column_values_to_be_in_type_list(model, column_name, column_type_list) -%}\n{%- if execute -%}\n\n {%- set column_name = column_name | upper -%}\n {%- set columns_in_relation = adapter.get_columns_in_relation(model) -%}\n {%- set column_type_list = column_type_list| map(\"upper\") | list -%}\n with relation_columns as (\n\n {% for column in columns_in_relation %}\n select\n cast('{{ column.name | upper }}' as {{ dbt.type_string() }}) as relation_column,\n cast('{{ column.dtype | upper }}' as {{ dbt.type_string() }}) as relation_column_type\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n ),\n test_data as (\n\n select\n *\n from\n relation_columns\n where\n relation_column = '{{ column_name }}'\n and\n relation_column_type not in ('{{ column_type_list | join(\"', '\") }}')\n\n )\n select *\n from test_data\n\n{%- endif -%}\n{%- endtest -%}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3120654, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_match_regex": {"name": "test_expect_column_values_to_match_regex", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_match_regex.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_match_regex.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_match_regex", "macro_sql": "{% test expect_column_values_to_match_regex(model, column_name,\n regex,\n row_condition=None,\n is_raw=False\n ) %}\n\n{% set expression %}\n{{ dbt_expectations.regexp_instr(column_name, regex, is_raw=is_raw) }} > 0\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.regexp_instr", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3132358, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_value_lengths_to_equal": {"name": "test_expect_column_value_lengths_to_equal", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_value_lengths_to_equal.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_value_lengths_to_equal.sql", "unique_id": "macro.dbt_expectations.test_expect_column_value_lengths_to_equal", "macro_sql": "{% test expect_column_value_lengths_to_equal(model, column_name,\n value,\n row_condition=None\n ) %}\n\n{% set expression = length(column_name) ~ \" = \" ~ value %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.length", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.314156, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_match_regex_list": {"name": "test_expect_column_values_to_match_regex_list", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_match_regex_list.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_match_regex_list.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_match_regex_list", "macro_sql": "{% test expect_column_values_to_match_regex_list(model, column_name,\n regex_list,\n match_on=\"any\",\n row_condition=None,\n is_raw=False\n ) %}\n\n{% set expression %}\n {% for regex in regex_list %}\n {{ dbt_expectations.regexp_instr(column_name, regex, is_raw=is_raw) }} > 0\n {%- if not loop.last %}\n {{ \" and \" if match_on == \"all\" else \" or \"}}\n {% endif -%}\n {% endfor %}\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.regexp_instr", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.316117, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_match_like_pattern": {"name": "test_expect_column_values_to_not_match_like_pattern", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_like_pattern.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_like_pattern.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_match_like_pattern", "macro_sql": "{% test expect_column_values_to_not_match_like_pattern(model, column_name,\n like_pattern,\n row_condition=None\n ) %}\n\n{% set expression = dbt_expectations._get_like_pattern_expression(column_name, like_pattern, positive=False) %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations._get_like_pattern_expression", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.317098, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_value_lengths_to_be_between": {"name": "test_expect_column_value_lengths_to_be_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_value_lengths_to_be_between.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_value_lengths_to_be_between.sql", "unique_id": "macro.dbt_expectations.test_expect_column_value_lengths_to_be_between", "macro_sql": "{% test expect_column_value_lengths_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n row_condition=None,\n strictly=False\n ) %}\n{% set expression %}\n{{ length(column_name) }}\n{% endset %}\n\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=None,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.length", "macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3184714, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_match_like_pattern_list": {"name": "test_expect_column_values_to_not_match_like_pattern_list", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_like_pattern_list.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_like_pattern_list.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_match_like_pattern_list", "macro_sql": "{% test expect_column_values_to_not_match_like_pattern_list(model, column_name,\n like_pattern_list,\n match_on=\"any\",\n row_condition=None\n ) %}\n\n{% set expression %}\n {% for like_pattern in like_pattern_list %}\n {{ dbt_expectations._get_like_pattern_expression(column_name, like_pattern, positive=False) }}\n {%- if not loop.last %}\n {{ \" and \" if match_on == \"all\" else \" or \"}}\n {% endif -%}\n {% endfor %}\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations._get_like_pattern_expression", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.320251, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_match_regex": {"name": "test_expect_column_values_to_not_match_regex", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_regex.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_regex.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_match_regex", "macro_sql": "{% test expect_column_values_to_not_match_regex(model, column_name,\n regex,\n row_condition=None,\n is_raw=False\n ) %}\n\n{% set expression %}\n{{ dbt_expectations.regexp_instr(column_name, regex, is_raw=is_raw) }} = 0\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.regexp_instr", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3214004, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_match_like_pattern_list": {"name": "test_expect_column_values_to_match_like_pattern_list", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_match_like_pattern_list.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_match_like_pattern_list.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_match_like_pattern_list", "macro_sql": "{% test expect_column_values_to_match_like_pattern_list(model, column_name,\n like_pattern_list,\n match_on=\"any\",\n row_condition=None\n ) %}\n\n{% set expression %}\n {% for like_pattern in like_pattern_list %}\n {{ dbt_expectations._get_like_pattern_expression(column_name, like_pattern, positive=True) }}\n {%- if not loop.last %}\n {{ \" and \" if match_on == \"all\" else \" or \"}}\n {% endif -%}\n {% endfor %}\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations._get_like_pattern_expression", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.323174, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_match_regex_list": {"name": "test_expect_column_values_to_not_match_regex_list", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_regex_list.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_not_match_regex_list.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_not_match_regex_list", "macro_sql": "{% test expect_column_values_to_not_match_regex_list(model, column_name,\n regex_list,\n match_on=\"any\",\n row_condition=None,\n is_raw=False\n ) %}\n\n{% set expression %}\n{% for regex in regex_list %}\n{{ dbt_expectations.regexp_instr(column_name, regex, is_raw=is_raw) }} = 0\n{%- if not loop.last %}\n{{ \" and \" if match_on == \"all\" else \" or \"}}\n{% endif -%}\n{% endfor %}\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.regexp_instr", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3249798, "supported_languages": null}, "macro.dbt_expectations._get_like_pattern_expression": {"name": "_get_like_pattern_expression", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/string_matching/_get_like_pattern_expression.sql", "original_file_path": "macros/schema_tests/string_matching/_get_like_pattern_expression.sql", "unique_id": "macro.dbt_expectations._get_like_pattern_expression", "macro_sql": "{% macro _get_like_pattern_expression(column_name, like_pattern, positive) %}\n{{ column_name }} {{ \"not\" if not positive else \"\" }} like '{{ like_pattern }}'\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3255022, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_match_like_pattern": {"name": "test_expect_column_values_to_match_like_pattern", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/string_matching/expect_column_values_to_match_like_pattern.sql", "original_file_path": "macros/schema_tests/string_matching/expect_column_values_to_match_like_pattern.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_match_like_pattern", "macro_sql": "{% test expect_column_values_to_match_like_pattern(model, column_name,\n like_pattern,\n row_condition=None\n ) %}\n\n{% set expression = dbt_expectations._get_like_pattern_expression(column_name, like_pattern, positive=True) %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations._get_like_pattern_expression", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3264542, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_count_to_be_less_than": {"name": "test_expect_column_distinct_count_to_be_less_than", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_be_less_than.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_be_less_than.sql", "unique_id": "macro.dbt_expectations.test_expect_column_distinct_count_to_be_less_than", "macro_sql": "{% test expect_column_distinct_count_to_be_less_than(model,\n column_name,\n value,\n group_by=None,\n row_condition=None\n ) %}\n{% set expression %}\ncount(distinct {{ column_name }}) < {{ value }}\n{% endset %}\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=group_by,\n row_condition=row_condition)\n }}\n{%- endtest -%}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.327514, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_proportion_of_unique_values_to_be_between": {"name": "test_expect_column_proportion_of_unique_values_to_be_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_proportion_of_unique_values_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_proportion_of_unique_values_to_be_between.sql", "unique_id": "macro.dbt_expectations.test_expect_column_proportion_of_unique_values_to_be_between", "macro_sql": "{% test expect_column_proportion_of_unique_values_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n{% set expression %}\ncount(distinct {{ column_name }})/count({{ column_name }})\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3289719, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_unique_value_count_to_be_between": {"name": "test_expect_column_unique_value_count_to_be_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_unique_value_count_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_unique_value_count_to_be_between.sql", "unique_id": "macro.dbt_expectations.test_expect_column_unique_value_count_to_be_between", "macro_sql": "{% test expect_column_unique_value_count_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n{% set expression %}\ncount(distinct {{ column_name }})\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3303747, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_mean_to_be_between": {"name": "test_expect_column_mean_to_be_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_mean_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_mean_to_be_between.sql", "unique_id": "macro.dbt_expectations.test_expect_column_mean_to_be_between", "macro_sql": "{% test expect_column_mean_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n{% set expression %}\navg({{ column_name }})\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3317227, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_values_to_be_in_set": {"name": "test_expect_column_distinct_values_to_be_in_set", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_distinct_values_to_be_in_set.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_distinct_values_to_be_in_set.sql", "unique_id": "macro.dbt_expectations.test_expect_column_distinct_values_to_be_in_set", "macro_sql": "{% test expect_column_distinct_values_to_be_in_set(model,\n column_name,\n value_set,\n quote_values=True,\n row_condition=None\n ) %}\n\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n),\nset_values as (\n\n {% for value in value_set -%}\n select\n {% if quote_values -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif %} as value_field\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n\n),\nunique_set_values as (\n\n select distinct value_field\n from\n set_values\n\n),\nvalidation_errors as (\n -- values from the model that are not in the set\n select\n v.value_field\n from\n all_values v\n left join\n unique_set_values s on v.value_field = s.value_field\n where\n s.value_field is null\n\n)\n\nselect *\nfrom validation_errors\n\n{% endtest %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3333492, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_min_to_be_between": {"name": "test_expect_column_min_to_be_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_min_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_min_to_be_between.sql", "unique_id": "macro.dbt_expectations.test_expect_column_min_to_be_between", "macro_sql": "{% test expect_column_min_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n{% set expression %}\nmin({{ column_name }})\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3346837, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_sum_to_be_between": {"name": "test_expect_column_sum_to_be_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_sum_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_sum_to_be_between.sql", "unique_id": "macro.dbt_expectations.test_expect_column_sum_to_be_between", "macro_sql": "{% test expect_column_sum_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n{% set expression %}\nsum({{ column_name }})\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3360112, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_median_to_be_between": {"name": "test_expect_column_median_to_be_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_median_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_median_to_be_between.sql", "unique_id": "macro.dbt_expectations.test_expect_column_median_to_be_between", "macro_sql": "{% test expect_column_median_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n\n{% set expression %}\n{{ dbt_expectations.median(column_name) }}\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.median", "macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.337427, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_max_to_be_between": {"name": "test_expect_column_max_to_be_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_max_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_max_to_be_between.sql", "unique_id": "macro.dbt_expectations.test_expect_column_max_to_be_between", "macro_sql": "{% test expect_column_max_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n{% set expression %}\nmax({{ column_name }})\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.338756, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_count_to_be_greater_than": {"name": "test_expect_column_distinct_count_to_be_greater_than", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_be_greater_than.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_be_greater_than.sql", "unique_id": "macro.dbt_expectations.test_expect_column_distinct_count_to_be_greater_than", "macro_sql": "{% test expect_column_distinct_count_to_be_greater_than(model,\n column_name,\n value,\n group_by=None,\n row_condition=None\n ) %}\n{% set expression %}\ncount(distinct {{ column_name }}) > {{ value }}\n{% endset %}\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=group_by,\n row_condition=row_condition)\n }}\n{%- endtest -%}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3398182, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_count_to_equal": {"name": "test_expect_column_distinct_count_to_equal", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_equal.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_equal.sql", "unique_id": "macro.dbt_expectations.test_expect_column_distinct_count_to_equal", "macro_sql": "{% test expect_column_distinct_count_to_equal(model,\n column_name,\n value,\n group_by=None,\n row_condition=None\n ) %}\n{% set expression %}\ncount(distinct {{ column_name }}) = {{ value }}\n{% endset %}\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=group_by,\n row_condition=row_condition)\n }}\n{%- endtest -%}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3409739, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_quantile_values_to_be_between": {"name": "test_expect_column_quantile_values_to_be_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_quantile_values_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_quantile_values_to_be_between.sql", "unique_id": "macro.dbt_expectations.test_expect_column_quantile_values_to_be_between", "macro_sql": "{% test expect_column_quantile_values_to_be_between(model, column_name,\n quantile,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) %}\n\n{% set expression %}\n{{ dbt_expectations.percentile_cont(column_name, quantile) }}\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.percentile_cont", "macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3424752, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_count_to_equal_other_table": {"name": "test_expect_column_distinct_count_to_equal_other_table", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_equal_other_table.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_equal_other_table.sql", "unique_id": "macro.dbt_expectations.test_expect_column_distinct_count_to_equal_other_table", "macro_sql": "{% test expect_column_distinct_count_to_equal_other_table(model,\n compare_model,\n column_name,\n compare_column_name,\n row_condition=None,\n compare_row_condition=None\n ) %}\n{%- set expression -%}\ncount(distinct {{ column_name }})\n{%- endset -%}\n{%- set compare_expression -%}\n{%- if compare_column_name -%}\ncount(distinct {{ compare_column_name }})\n{%- else -%}\n{{ expression }}\n{%- endif -%}\n{%- endset -%}\n{{ dbt_expectations.test_equal_expression(\n model,\n expression=expression,\n compare_model=compare_model,\n compare_expression=compare_expression,\n row_condition=row_condition,\n compare_row_condition=compare_row_condition\n) }}\n{%- endtest -%}", "depends_on": {"macros": ["macro.dbt_expectations.test_equal_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3438706, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_most_common_value_to_be_in_set": {"name": "test_expect_column_most_common_value_to_be_in_set", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_most_common_value_to_be_in_set.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_most_common_value_to_be_in_set.sql", "unique_id": "macro.dbt_expectations.test_expect_column_most_common_value_to_be_in_set", "macro_sql": "{% test expect_column_most_common_value_to_be_in_set(model,\n column_name,\n value_set,\n top_n,\n quote_values=True,\n data_type=\"decimal\",\n row_condition=None\n ) -%}\n\n {{ adapter.dispatch('test_expect_column_most_common_value_to_be_in_set', 'dbt_expectations') (\n model, column_name, value_set, top_n, quote_values, data_type, row_condition\n ) }}\n\n{%- endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_column_most_common_value_to_be_in_set"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3465383, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_column_most_common_value_to_be_in_set": {"name": "default__test_expect_column_most_common_value_to_be_in_set", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_most_common_value_to_be_in_set.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_most_common_value_to_be_in_set.sql", "unique_id": "macro.dbt_expectations.default__test_expect_column_most_common_value_to_be_in_set", "macro_sql": "{% macro default__test_expect_column_most_common_value_to_be_in_set(model,\n column_name,\n value_set,\n top_n,\n quote_values,\n data_type,\n row_condition\n ) %}\n\nwith value_counts as (\n\n select\n {% if quote_values -%}\n {{ column_name }}\n {%- else -%}\n cast({{ column_name }} as {{ data_type }})\n {%- endif %} as value_field,\n count(*) as value_count\n\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n group by {% if quote_values -%}\n {{ column_name }}\n {%- else -%}\n cast({{ column_name }} as {{ data_type }})\n {%- endif %}\n\n),\nvalue_counts_ranked as (\n\n select\n *,\n row_number() over(order by value_count desc) as value_count_rank\n from\n value_counts\n\n),\nvalue_count_top_n as (\n\n select\n value_field\n from\n value_counts_ranked\n where\n value_count_rank = {{ top_n }}\n\n),\nset_values as (\n\n {% for value in value_set -%}\n select\n {% if quote_values -%}\n '{{ value }}'\n {%- else -%}\n cast({{ value }} as {{ data_type }})\n {%- endif %} as value_field\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n\n),\nunique_set_values as (\n\n select distinct value_field\n from\n set_values\n\n),\nvalidation_errors as (\n -- values from the model that are not in the set\n select\n value_field\n from\n value_count_top_n\n where\n value_field not in (select value_field from unique_set_values)\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3481607, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_values_to_contain_set": {"name": "test_expect_column_distinct_values_to_contain_set", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_distinct_values_to_contain_set.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_distinct_values_to_contain_set.sql", "unique_id": "macro.dbt_expectations.test_expect_column_distinct_values_to_contain_set", "macro_sql": "{% test expect_column_distinct_values_to_contain_set(model, column_name,\n value_set,\n quote_values=True,\n row_condition=None\n ) %}\n\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n),\nset_values as (\n\n {% for value in value_set -%}\n select\n {% if quote_values -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif %} as value_field\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n\n),\nunique_set_values as (\n\n select distinct value_field\n from\n set_values\n\n),\nvalidation_errors as (\n -- values in set that are not in the list of values from the model\n select\n s.value_field\n from\n unique_set_values s\n left join\n all_values v on s.value_field = v.value_field\n where\n v.value_field is null\n\n)\n\nselect *\nfrom validation_errors\n\n{% endtest %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3498273, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_values_to_equal_set": {"name": "test_expect_column_distinct_values_to_equal_set", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_distinct_values_to_equal_set.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_distinct_values_to_equal_set.sql", "unique_id": "macro.dbt_expectations.test_expect_column_distinct_values_to_equal_set", "macro_sql": "{% test expect_column_distinct_values_to_equal_set(model, column_name,\n value_set,\n quote_values=True,\n row_condition=None\n ) %}\n\nwith all_values as (\n\n select distinct\n {{ column_name }} as column_value\n\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n),\nset_values as (\n\n {% for value in value_set -%}\n select\n {% if quote_values -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif %} as value_field\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n\n),\nunique_set_values as (\n\n select distinct value_field\n from\n set_values\n\n),\nvalidation_errors as (\n\n select\n *\n from\n all_values v\n full outer join\n unique_set_values s on v.column_value = s.value_field\n where\n v.column_value is null or\n s.value_field is null\n\n)\n\nselect *\nfrom validation_errors\n\n{% endtest %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3514366, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_stdev_to_be_between": {"name": "test_expect_column_stdev_to_be_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_stdev_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_stdev_to_be_between.sql", "unique_id": "macro.dbt_expectations.test_expect_column_stdev_to_be_between", "macro_sql": "{% test expect_column_stdev_to_be_between(model, column_name,\n min_value=None,\n max_value=None,\n group_by=None,\n row_condition=None,\n strictly=False\n ) -%}\n {{ adapter.dispatch('test_expect_column_stdev_to_be_between', 'dbt_expectations') (\n model, column_name,\n min_value,\n max_value,\n group_by,\n row_condition,\n strictly\n ) }}\n{%- endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_column_stdev_to_be_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3534396, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_column_stdev_to_be_between": {"name": "default__test_expect_column_stdev_to_be_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_stdev_to_be_between.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_stdev_to_be_between.sql", "unique_id": "macro.dbt_expectations.default__test_expect_column_stdev_to_be_between", "macro_sql": "{% macro default__test_expect_column_stdev_to_be_between(\n model, column_name,\n min_value,\n max_value,\n group_by,\n row_condition,\n strictly\n ) %}\n\n{% set expression %}\nstddev({{ column_name }})\n{% endset %}\n{{ dbt_expectations.expression_between(model,\n expression=expression,\n min_value=min_value,\n max_value=max_value,\n group_by_columns=group_by,\n row_condition=row_condition,\n strictly=strictly\n ) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.354225, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_pair_values_to_be_in_set": {"name": "test_expect_column_pair_values_to_be_in_set", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/multi-column/expect_column_pair_values_to_be_in_set.sql", "original_file_path": "macros/schema_tests/multi-column/expect_column_pair_values_to_be_in_set.sql", "unique_id": "macro.dbt_expectations.test_expect_column_pair_values_to_be_in_set", "macro_sql": "{% test expect_column_pair_values_to_be_in_set(model,\n column_A,\n column_B,\n value_pairs_set,\n row_condition=None\n ) %}\n\n{% set expression %}\n{% for pair in value_pairs_set %}\n{%- if (pair | length) == 2 %}\n({{ column_A }} = {{ pair[0] }} and {{ column_B }} = {{ pair[1] }}){% if not loop.last %} or {% endif %}\n{% else %}\n{{ exceptions.raise_compiler_error(\n \"`value_pairs_set` argument for expect_column_pair_values_to_be_in_set test cannot have more than 2 item per element.\n Got: '\" ~ pair ~ \"'.'\"\n ) }}\n{% endif %}\n{% endfor %}\n{% endset %}\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3565998, "supported_languages": null}, "macro.dbt_expectations.test_expect_multicolumn_sum_to_equal": {"name": "test_expect_multicolumn_sum_to_equal", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/multi-column/expect_multicolumn_sum_to_equal.sql", "original_file_path": "macros/schema_tests/multi-column/expect_multicolumn_sum_to_equal.sql", "unique_id": "macro.dbt_expectations.test_expect_multicolumn_sum_to_equal", "macro_sql": "{% test expect_multicolumn_sum_to_equal(model,\n column_list,\n sum_total,\n group_by=None,\n row_condition=None\n ) %}\n\n{% set expression %}\n{% for column in column_list %}\nsum({{ column }}){% if not loop.last %} + {% endif %}\n{% endfor %} = {{ sum_total }}\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=group_by,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.35803, "supported_languages": null}, "macro.dbt_expectations.test_expect_compound_columns_to_be_unique": {"name": "test_expect_compound_columns_to_be_unique", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/multi-column/expect_compound_columns_to_be_unique.sql", "original_file_path": "macros/schema_tests/multi-column/expect_compound_columns_to_be_unique.sql", "unique_id": "macro.dbt_expectations.test_expect_compound_columns_to_be_unique", "macro_sql": "{% test expect_compound_columns_to_be_unique(model,\n column_list,\n quote_columns=False,\n ignore_row_if=\"all_values_are_missing\",\n row_condition=None\n ) %}\n{% if not column_list %}\n {{ exceptions.raise_compiler_error(\n \"`column_list` must be specified as a list of columns. Got: '\" ~ column_list ~\"'.'\"\n ) }}\n{% endif %}\n\n{% if not quote_columns %}\n {%- set columns=column_list %}\n{% elif quote_columns %}\n {%- set columns=[] %}\n {% for column in column_list -%}\n {% set columns = columns.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for expect_compound_columns_to_be_unique test must be one of [True, False] Got: '\" ~ quote_columns ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set row_condition_ext -%}\n\n {%- if row_condition %}\n {{ row_condition }} and\n {% endif -%}\n\n {{ dbt_expectations.ignore_row_if_expression(ignore_row_if, columns) }}\n\n{%- endset -%}\n\nwith validation_errors as (\n\n select\n {% for column in columns -%}\n {{ column }}{% if not loop.last %},{% endif %}\n {%- endfor %}\n from {{ model }}\n where\n 1=1\n {%- if row_condition_ext %}\n and {{ row_condition_ext }}\n {% endif %}\n group by\n {% for column in columns -%}\n {{ column }}{% if not loop.last %},{% endif %}\n {%- endfor %}\n having count(*) > 1\n\n)\nselect * from validation_errors\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.ignore_row_if_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.361749, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_pair_values_A_to_be_greater_than_B": {"name": "test_expect_column_pair_values_A_to_be_greater_than_B", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/multi-column/expect_column_pair_values_A_to_be_greater_than_B.sql", "original_file_path": "macros/schema_tests/multi-column/expect_column_pair_values_A_to_be_greater_than_B.sql", "unique_id": "macro.dbt_expectations.test_expect_column_pair_values_A_to_be_greater_than_B", "macro_sql": "{% test expect_column_pair_values_A_to_be_greater_than_B(model,\n column_A,\n column_B,\n or_equal=False,\n row_condition=None\n ) %}\n\n{% set operator = \">=\" if or_equal else \">\" %}\n{% set expression = column_A ~ \" \" ~ operator ~ \" \" ~ column_B %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3629742, "supported_languages": null}, "macro.dbt_expectations.test_expect_select_column_values_to_be_unique_within_record": {"name": "test_expect_select_column_values_to_be_unique_within_record", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/multi-column/expect_select_column_values_to_be_unique_within_record.sql", "original_file_path": "macros/schema_tests/multi-column/expect_select_column_values_to_be_unique_within_record.sql", "unique_id": "macro.dbt_expectations.test_expect_select_column_values_to_be_unique_within_record", "macro_sql": "{% test expect_select_column_values_to_be_unique_within_record(model,\n column_list,\n quote_columns=False,\n ignore_row_if=\"all_values_are_missing\",\n row_condition=None\n ) -%}\n {{ adapter.dispatch('test_expect_select_column_values_to_be_unique_within_record', 'dbt_expectations') (model, column_list, quote_columns, ignore_row_if, row_condition) }}\n{%- endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_select_column_values_to_be_unique_within_record"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3652751, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_select_column_values_to_be_unique_within_record": {"name": "default__test_expect_select_column_values_to_be_unique_within_record", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/multi-column/expect_select_column_values_to_be_unique_within_record.sql", "original_file_path": "macros/schema_tests/multi-column/expect_select_column_values_to_be_unique_within_record.sql", "unique_id": "macro.dbt_expectations.default__test_expect_select_column_values_to_be_unique_within_record", "macro_sql": "{% macro default__test_expect_select_column_values_to_be_unique_within_record(model,\n column_list,\n quote_columns,\n ignore_row_if,\n row_condition\n ) %}\n\n{% if not quote_columns %}\n {%- set columns=column_list %}\n{% elif quote_columns %}\n {%- set columns=[] %}\n {% for column in column_list -%}\n {% set columns = columns.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote_columns ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set row_condition_ext -%}\n\n {%- if row_condition %}\n {{ row_condition }} and\n {% endif -%}\n\n {{ dbt_expectations.ignore_row_if_expression(ignore_row_if, columns) }}\n\n{%- endset -%}\n\nwith column_values as (\n\n select\n row_number() over(order by 1) as row_index,\n {% for column in columns -%}\n {{ column }}{% if not loop.last %},{% endif %}\n {%- endfor %}\n from {{ model }}\n where\n 1=1\n {%- if row_condition_ext %}\n and {{ row_condition_ext }}\n {% endif %}\n\n),\nunpivot_columns as (\n\n {% for column in columns %}\n select row_index, '{{ column }}' as column_name, {{ column }} as column_value from column_values\n {% if not loop.last %}union all{% endif %}\n {% endfor %}\n),\nvalidation_errors as (\n\n select\n row_index,\n count(distinct column_value) as column_values\n from unpivot_columns\n group by 1\n having count(distinct column_value) < {{ columns | length }}\n\n)\nselect * from validation_errors\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.ignore_row_if_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3676593, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_pair_values_to_be_equal": {"name": "test_expect_column_pair_values_to_be_equal", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/multi-column/expect_column_pair_values_to_be_equal.sql", "original_file_path": "macros/schema_tests/multi-column/expect_column_pair_values_to_be_equal.sql", "unique_id": "macro.dbt_expectations.test_expect_column_pair_values_to_be_equal", "macro_sql": "{% test expect_column_pair_values_to_be_equal(model,\n column_A,\n column_B,\n row_condition=None\n ) %}\n\n{% set operator = \"=\" %}\n{% set expression = column_A ~ \" \" ~ operator ~ \" \" ~ column_B %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression,\n group_by_columns=None,\n row_condition=row_condition\n )\n }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3687475, "supported_languages": null}, "macro.dbt_expectations.test_expression_is_true": {"name": "test_expression_is_true", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/expression_is_true.sql", "original_file_path": "macros/schema_tests/_generalized/expression_is_true.sql", "unique_id": "macro.dbt_expectations.test_expression_is_true", "macro_sql": "{% test expression_is_true(model,\n expression,\n test_condition=\"= true\",\n group_by_columns=None,\n row_condition=None\n ) %}\n\n {{ dbt_expectations.expression_is_true(model, expression, test_condition, group_by_columns, row_condition) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.370278, "supported_languages": null}, "macro.dbt_expectations.expression_is_true": {"name": "expression_is_true", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/expression_is_true.sql", "original_file_path": "macros/schema_tests/_generalized/expression_is_true.sql", "unique_id": "macro.dbt_expectations.expression_is_true", "macro_sql": "{% macro expression_is_true(model,\n expression,\n test_condition=\"= true\",\n group_by_columns=None,\n row_condition=None\n ) %}\n {{ adapter.dispatch('expression_is_true', 'dbt_expectations') (model, expression, test_condition, group_by_columns, row_condition) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.default__expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3708744, "supported_languages": null}, "macro.dbt_expectations.default__expression_is_true": {"name": "default__expression_is_true", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/expression_is_true.sql", "original_file_path": "macros/schema_tests/_generalized/expression_is_true.sql", "unique_id": "macro.dbt_expectations.default__expression_is_true", "macro_sql": "{% macro default__expression_is_true(model, expression, test_condition, group_by_columns, row_condition) -%}\nwith grouped_expression as (\n select\n {% if group_by_columns %}\n {% for group_by_column in group_by_columns -%}\n {{ group_by_column }} as col_{{ loop.index }},\n {% endfor -%}\n {% endif %}\n {{ dbt_expectations.truth_expression(expression) }}\n from {{ model }}\n {%- if row_condition %}\n where\n {{ row_condition }}\n {% endif %}\n {% if group_by_columns %}\n group by\n {% for group_by_column in group_by_columns -%}\n {{ group_by_column }}{% if not loop.last %},{% endif %}\n {% endfor %}\n {% endif %}\n\n),\nvalidation_errors as (\n\n select\n *\n from\n grouped_expression\n where\n not(expression {{ test_condition }})\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro -%}", "depends_on": {"macros": ["macro.dbt_expectations.truth_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3721564, "supported_languages": null}, "macro.dbt_expectations.truth_expression": {"name": "truth_expression", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/_truth_expression.sql", "original_file_path": "macros/schema_tests/_generalized/_truth_expression.sql", "unique_id": "macro.dbt_expectations.truth_expression", "macro_sql": "{% macro truth_expression(expression) %}\n {{ adapter.dispatch('truth_expression', 'dbt_expectations') (expression) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.default__truth_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3726494, "supported_languages": null}, "macro.dbt_expectations.default__truth_expression": {"name": "default__truth_expression", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/_truth_expression.sql", "original_file_path": "macros/schema_tests/_generalized/_truth_expression.sql", "unique_id": "macro.dbt_expectations.default__truth_expression", "macro_sql": "{% macro default__truth_expression(expression) %}\n {{ expression }} as expression\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.372867, "supported_languages": null}, "macro.dbt_expectations.ignore_row_if_expression": {"name": "ignore_row_if_expression", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/_ignore_row_if_expression.sql", "original_file_path": "macros/schema_tests/_generalized/_ignore_row_if_expression.sql", "unique_id": "macro.dbt_expectations.ignore_row_if_expression", "macro_sql": "{% macro ignore_row_if_expression(ignore_row_if, columns) %}\n {{ adapter.dispatch('ignore_row_if_expression', 'dbt_expectations') (ignore_row_if, columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.default__ignore_row_if_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3736906, "supported_languages": null}, "macro.dbt_expectations.default__ignore_row_if_expression": {"name": "default__ignore_row_if_expression", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/_ignore_row_if_expression.sql", "original_file_path": "macros/schema_tests/_generalized/_ignore_row_if_expression.sql", "unique_id": "macro.dbt_expectations.default__ignore_row_if_expression", "macro_sql": "{% macro default__ignore_row_if_expression(ignore_row_if, columns) %}\n {%- set ignore_row_if_values = [\"all_values_are_missing\", \"any_value_is_missing\"] -%}\n {% if ignore_row_if not in ignore_row_if_values %}\n {{ exceptions.raise_compiler_error(\n \"`ignore_row_if` must be one of \" ~ (ignore_row_if_values | join(\", \")) ~ \". Got: '\" ~ ignore_row_if ~\"'.'\"\n ) }}\n {% endif %}\n\n {%- set op = \"and\" if ignore_row_if == \"all_values_are_missing\" else \"or\" -%}\n not (\n {% for column in columns -%}\n {{ column }} is null{% if not loop.last %} {{ op }} {% endif %}\n {% endfor %}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.37492, "supported_languages": null}, "macro.dbt_expectations.test_expression_between": {"name": "test_expression_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/expression_between.sql", "original_file_path": "macros/schema_tests/_generalized/expression_between.sql", "unique_id": "macro.dbt_expectations.test_expression_between", "macro_sql": "{% test expression_between(model,\n expression,\n min_value=None,\n max_value=None,\n group_by_columns=None,\n row_condition=None,\n strictly=False\n ) %}\n\n {{ dbt_expectations.expression_between(model, expression, min_value, max_value, group_by_columns, row_condition, strictly) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3767345, "supported_languages": null}, "macro.dbt_expectations.expression_between": {"name": "expression_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/expression_between.sql", "original_file_path": "macros/schema_tests/_generalized/expression_between.sql", "unique_id": "macro.dbt_expectations.expression_between", "macro_sql": "{% macro expression_between(model,\n expression,\n min_value,\n max_value,\n group_by_columns,\n row_condition,\n strictly\n ) %}\n\n{%- if min_value is none and max_value is none -%}\n{{ exceptions.raise_compiler_error(\n \"You have to provide either a min_value, max_value or both.\"\n) }}\n{%- endif -%}\n\n{%- set strict_operator = \"\" if strictly else \"=\" -%}\n\n{% set expression_min_max %}\n( 1=1\n{%- if min_value is not none %} and {{ expression | trim }} >{{ strict_operator }} {{ min_value }}{% endif %}\n{%- if max_value is not none %} and {{ expression | trim }} <{{ strict_operator }} {{ max_value }}{% endif %}\n)\n{% endset %}\n\n{{ dbt_expectations.expression_is_true(model,\n expression=expression_min_max,\n group_by_columns=group_by_columns,\n row_condition=row_condition)\n }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.378264, "supported_languages": null}, "macro.dbt_expectations.get_select": {"name": "get_select", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/equal_expression.sql", "original_file_path": "macros/schema_tests/_generalized/equal_expression.sql", "unique_id": "macro.dbt_expectations.get_select", "macro_sql": "{% macro get_select(model, expression, row_condition, group_by) -%}\n {{ adapter.dispatch('get_select', 'dbt_expectations') (model, expression, row_condition, group_by) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.default__get_select"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3842287, "supported_languages": null}, "macro.dbt_expectations.default__get_select": {"name": "default__get_select", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/equal_expression.sql", "original_file_path": "macros/schema_tests/_generalized/equal_expression.sql", "unique_id": "macro.dbt_expectations.default__get_select", "macro_sql": "\n\n{%- macro default__get_select(model, expression, row_condition, group_by) %}\n select\n {% if group_by %}\n {% for g in group_by -%}\n {{ g }} as col_{{ loop.index }},\n {% endfor -%}\n {% endif %}\n {{ expression }} as expression\n from\n {{ model }}\n {%- if row_condition %}\n where\n {{ row_condition }}\n {% endif %}\n {% if group_by %}\n group by\n {% for g in group_by -%}\n {{ loop.index }}{% if not loop.last %},{% endif %}\n {% endfor %}\n {% endif %}\n{% endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3853872, "supported_languages": null}, "macro.dbt_expectations.test_equal_expression": {"name": "test_equal_expression", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/equal_expression.sql", "original_file_path": "macros/schema_tests/_generalized/equal_expression.sql", "unique_id": "macro.dbt_expectations.test_equal_expression", "macro_sql": "{% test equal_expression(model, expression,\n compare_model=None,\n compare_expression=None,\n group_by=None,\n compare_group_by=None,\n row_condition=None,\n compare_row_condition=None,\n tolerance=0.0,\n tolerance_percent=None\n ) -%}\n\n {{ adapter.dispatch('test_equal_expression', 'dbt_expectations') (\n model,\n expression,\n compare_model,\n compare_expression,\n group_by,\n compare_group_by,\n row_condition,\n compare_row_condition,\n tolerance,\n tolerance_percent) }}\n{%- endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.default__test_equal_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3863473, "supported_languages": null}, "macro.dbt_expectations.default__test_equal_expression": {"name": "default__test_equal_expression", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/equal_expression.sql", "original_file_path": "macros/schema_tests/_generalized/equal_expression.sql", "unique_id": "macro.dbt_expectations.default__test_equal_expression", "macro_sql": "\n\n{%- macro default__test_equal_expression(\n model,\n expression,\n compare_model,\n compare_expression,\n group_by,\n compare_group_by,\n row_condition,\n compare_row_condition,\n tolerance,\n tolerance_percent) -%}\n\n {%- set compare_model = model if not compare_model else compare_model -%}\n {%- set compare_expression = expression if not compare_expression else compare_expression -%}\n {%- set compare_row_condition = row_condition if not compare_row_condition else compare_row_condition -%}\n {%- set compare_group_by = group_by if not compare_group_by else compare_group_by -%}\n\n {%- set n_cols = (group_by|length) if group_by else 0 %}\n with a as (\n {{ dbt_expectations.get_select(model, expression, row_condition, group_by) }}\n ),\n b as (\n {{ dbt_expectations.get_select(compare_model, compare_expression, compare_row_condition, compare_group_by) }}\n ),\n final as (\n\n select\n {% for i in range(1, n_cols + 1) -%}\n coalesce(a.col_{{ i }}, b.col_{{ i }}) as col_{{ i }},\n {% endfor %}\n a.expression,\n b.expression as compare_expression,\n abs(coalesce(a.expression, 0) - coalesce(b.expression, 0)) as expression_difference,\n abs(coalesce(a.expression, 0) - coalesce(b.expression, 0))/\n nullif(a.expression * 1.0, 0) as expression_difference_percent\n from\n {% if n_cols > 0 %}\n a\n full outer join\n b on\n {% for i in range(1, n_cols + 1) -%}\n a.col_{{ i }} = b.col_{{ i }} {% if not loop.last %}and{% endif %}\n {% endfor -%}\n {% else %}\n a cross join b\n {% endif %}\n )\n -- DEBUG:\n -- select * from final\n select\n *\n from final\n where\n {% if tolerance_percent %}\n expression_difference_percent > {{ tolerance_percent }}\n {% else %}\n expression_difference > {{ tolerance }}\n {% endif %}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_expectations.get_select"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3890204, "supported_languages": null}, "macro.dbt_expectations._get_metric_expression": {"name": "_get_metric_expression", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_moving_stdevs.sql", "original_file_path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_moving_stdevs.sql", "unique_id": "macro.dbt_expectations._get_metric_expression", "macro_sql": "{%- macro _get_metric_expression(metric_column, take_logs) -%}\n\n{%- if take_logs %}\n{%- set expr = \"nullif(\" ~ metric_column ~ \", 0)\" -%}\ncoalesce({{ dbt_expectations.log_natural(expr) }}, 0)\n{%- else -%}\ncoalesce({{ metric_column }}, 0)\n{%- endif %}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_expectations.log_natural"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.395044, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_within_n_moving_stdevs": {"name": "test_expect_column_values_to_be_within_n_moving_stdevs", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_moving_stdevs.sql", "original_file_path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_moving_stdevs.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_within_n_moving_stdevs", "macro_sql": "{% test expect_column_values_to_be_within_n_moving_stdevs(model,\n column_name,\n date_column_name,\n group_by=None,\n period='day',\n lookback_periods=1,\n trend_periods=7,\n test_periods=14,\n sigma_threshold=3,\n sigma_threshold_upper=None,\n sigma_threshold_lower=None,\n take_diffs=true,\n take_logs=true\n ) -%}\n {{ adapter.dispatch('test_expect_column_values_to_be_within_n_moving_stdevs', 'dbt_expectations') (model,\n column_name,\n date_column_name,\n group_by,\n period,\n lookback_periods,\n trend_periods,\n test_periods,\n sigma_threshold,\n sigma_threshold_upper,\n sigma_threshold_lower,\n take_diffs,\n take_logs\n ) }}\n{%- endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_moving_stdevs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3961377, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_moving_stdevs": {"name": "default__test_expect_column_values_to_be_within_n_moving_stdevs", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_moving_stdevs.sql", "original_file_path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_moving_stdevs.sql", "unique_id": "macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_moving_stdevs", "macro_sql": "{% macro default__test_expect_column_values_to_be_within_n_moving_stdevs(model,\n column_name,\n date_column_name,\n group_by,\n period,\n lookback_periods,\n trend_periods,\n test_periods,\n sigma_threshold,\n sigma_threshold_upper,\n sigma_threshold_lower,\n take_diffs,\n take_logs\n ) %}\n\n{%- set sigma_threshold_upper = sigma_threshold_upper if sigma_threshold_upper else sigma_threshold -%}\n{%- set sigma_threshold_lower = sigma_threshold_lower if sigma_threshold_lower else -1 * sigma_threshold -%}\n{%- set partition_by = \"partition by \" ~ (group_by | join(\",\")) if group_by -%}\n{%- set group_by_length = (group_by | length ) if group_by else 0 -%}\n\nwith metric_values as (\n\n with grouped_metric_values as (\n\n select\n {{ dbt.date_trunc(period, date_column_name) }} as metric_period,\n {{ group_by | join(\",\") ~ \",\" if group_by }}\n sum({{ column_name }}) as agg_metric_value\n from\n {{ model }}\n {{ dbt_expectations.group_by(1 + group_by_length) }}\n\n )\n {%- if take_diffs %}\n , grouped_metric_values_with_priors as (\n\n select\n *,\n lag(agg_metric_value, {{ lookback_periods }}) over(\n {{ partition_by }}\n order by metric_period) as prior_agg_metric_value\n from\n grouped_metric_values d\n\n )\n select\n *,\n {{ dbt_expectations._get_metric_expression(\"agg_metric_value\", take_logs) }}\n -\n {{ dbt_expectations._get_metric_expression(\"prior_agg_metric_value\", take_logs) }}\n as metric_test_value\n from\n grouped_metric_values_with_priors d\n\n {%- else %}\n\n select\n *,\n {{ dbt_expectations._get_metric_expression(\"agg_metric_value\", take_logs) }}\n as metric_test_value\n from\n grouped_metric_values\n\n {%- endif %}\n\n),\nmetric_moving_calcs as (\n\n select\n *,\n avg(metric_test_value)\n over({{ partition_by }}\n order by metric_period rows\n between {{ trend_periods }} preceding and 1 preceding) as metric_test_rolling_average,\n stddev(metric_test_value)\n over({{ partition_by }}\n order by metric_period rows\n between {{ trend_periods }} preceding and 1 preceding) as metric_test_rolling_stddev\n from\n metric_values\n\n),\nmetric_sigma as (\n\n select\n *,\n (metric_test_value - metric_test_rolling_average) as metric_test_delta,\n (metric_test_value - metric_test_rolling_average)/\n nullif(metric_test_rolling_stddev, 0) as metric_test_sigma\n from\n metric_moving_calcs\n\n)\nselect\n *\nfrom\n metric_sigma\nwhere\n\n metric_period >= cast(\n {{ dbt.dateadd(period, -test_periods, dbt.date_trunc(period, dbt_date.now())) }}\n as {{ dbt_expectations.type_timestamp() }})\n and\n metric_period < {{ dbt.date_trunc(period, dbt_date.now()) }}\n and\n\n not (\n metric_test_sigma >= {{ sigma_threshold_lower }} and\n metric_test_sigma <= {{ sigma_threshold_upper }}\n )\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt_expectations.group_by", "macro.dbt_expectations._get_metric_expression", "macro.dbt.dateadd", "macro.dbt_date.now", "macro.dbt_expectations.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.3992712, "supported_languages": null}, "macro.dbt_expectations.test_expect_row_values_to_have_data_for_every_n_datepart": {"name": "test_expect_row_values_to_have_data_for_every_n_datepart", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/distributional/expect_row_values_to_have_data_for_every_n_datepart.sql", "original_file_path": "macros/schema_tests/distributional/expect_row_values_to_have_data_for_every_n_datepart.sql", "unique_id": "macro.dbt_expectations.test_expect_row_values_to_have_data_for_every_n_datepart", "macro_sql": "{%- test expect_row_values_to_have_data_for_every_n_datepart(model,\n date_col,\n date_part=\"day\",\n interval=None,\n row_condition=None,\n exclusion_condition=None,\n test_start_date=None,\n test_end_date=None) -%}\n{% if not execute %}\n {{ return('') }}\n{% endif %}\n\n{% if not test_start_date or not test_end_date %}\n {% set sql %}\n\n select\n min({{ date_col }}) as start_{{ date_part }},\n max({{ date_col }}) as end_{{ date_part }}\n from {{ model }}\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n\n {% endset %}\n\n {%- set dr = run_query(sql) -%}\n {%- set db_start_date = dr.columns[0].values()[0].strftime('%Y-%m-%d') -%}\n {%- set db_end_date = dr.columns[1].values()[0].strftime('%Y-%m-%d') -%}\n\n{% endif %}\n\n{% if not test_start_date %}\n{% set start_date = db_start_date %}\n{% else %}\n{% set start_date = test_start_date %}\n{% endif %}\n\n\n{% if not test_end_date %}\n{% set end_date = db_end_date %}\n{% else %}\n{% set end_date = test_end_date %}\n{% endif %}\nwith base_dates as (\n\n {{ dbt_date.get_base_dates(start_date=start_date, end_date=end_date, datepart=date_part) }}\n {% if interval %}\n {#\n Filter the date spine created above down to the interval granularity using a modulo operation.\n The number of date_parts after the start_date divided by the integer interval will produce no remainder for the desired intervals,\n e.g. for 2-day interval from a starting Jan 1, 2020:\n params: start_date = '2020-01-01', date_part = 'day', interval = 2\n date spine created above: [2020-01-01, 2020-01-02, 2020-01-03, 2020-01-04, 2020-01-05, ...]\n The first parameter to the `mod` function would be the number of days between the start_date and the spine date, i.e. [0, 1, 2, 3, 4 ...]\n The second parameter to the `mod` function would be the integer interval, i.e. 2\n This modulo operation produces the following remainders: [0, 1, 0, 1, 0, ...]\n Filtering the spine only where this remainder == 0 will return a spine with every other day as desired, i.e. [2020-01-01, 2020-01-03, 2020-01-05, ...]\n #}\n where mod(\n cast({{ dbt.datediff(\"'\" ~ start_date ~ \"'\", 'date_' ~ date_part, date_part) }} as {{ dbt.type_int() }}),\n cast({{interval}} as {{ dbt.type_int() }})\n ) = 0\n {% endif %}\n\n),\nmodel_data as (\n\n select\n {% if not interval %}\n\n cast({{ dbt.date_trunc(date_part, date_col) }} as {{ dbt_expectations.type_datetime() }}) as date_{{ date_part }},\n\n {% else %}\n {#\n Use a modulo operator to determine the number of intervals that a date_col is away from the interval-date spine\n and subtracts that amount to effectively slice each date_col record into its corresponding spine bucket,\n e.g. given a date_col of with records [2020-01-01, 2020-01-02, 2020-01-03, 2020-01-11, 2020-01-12]\n if we want to slice these dates into their 2-day buckets starting Jan 1, 2020 (start_date = '2020-01-01', date_part='day', interval=2),\n the modulo operation described above will produce these remainders: [0, 1, 0, 0, 1]\n subtracting that number of days from the observations will produce records [2020-01-01, 2020-01-01, 2020-01-03, 2020-01-11, 2020-01-11],\n all of which align with records from the interval-date spine\n #}\n {{ dbt.dateadd(\n date_part,\n \"mod(\n cast(\" ~ dbt.datediff(\"'\" ~ start_date ~ \"'\", date_col, date_part) ~ \" as \" ~ dbt.type_int() ~ \" ),\n cast(\" ~ interval ~ \" as \" ~ dbt.type_int() ~ \" )\n ) * (-1)\",\n \"cast( \" ~ dbt.date_trunc(date_part, date_col) ~ \" as \" ~ dbt_expectations.type_datetime() ~ \")\"\n )}} as date_{{ date_part }},\n\n {% endif %}\n\n count(*) as row_cnt\n from\n {{ model }} f\n {% if row_condition %}\n where {{ row_condition }}\n {% endif %}\n group by\n date_{{date_part}}\n\n),\n\nfinal as (\n\n select\n cast(d.date_{{ date_part }} as {{ dbt_expectations.type_datetime() }}) as date_{{ date_part }},\n case when f.date_{{ date_part }} is null then true else false end as is_missing,\n coalesce(f.row_cnt, 0) as row_cnt\n from\n base_dates d\n left join\n model_data f on cast(d.date_{{ date_part }} as {{ dbt_expectations.type_datetime() }}) = f.date_{{ date_part }}\n)\nselect\n *\nfrom final\nwhere row_cnt = 0\n{% if exclusion_condition %}\n and {{ exclusion_condition }}\n{% endif %}\n{%- endtest -%}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt_date.get_base_dates", "macro.dbt.datediff", "macro.dbt.type_int", "macro.dbt.date_trunc", "macro.dbt_expectations.type_datetime", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.4064455, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_within_n_stdevs": {"name": "test_expect_column_values_to_be_within_n_stdevs", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_stdevs.sql", "original_file_path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_stdevs.sql", "unique_id": "macro.dbt_expectations.test_expect_column_values_to_be_within_n_stdevs", "macro_sql": "{% test expect_column_values_to_be_within_n_stdevs(model,\n column_name,\n group_by=None,\n sigma_threshold=3\n ) -%}\n {{\n adapter.dispatch('test_expect_column_values_to_be_within_n_stdevs', 'dbt_expectations') (\n model, column_name, group_by, sigma_threshold\n )\n }}\n{%- endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_stdevs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.407874, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_stdevs": {"name": "default__test_expect_column_values_to_be_within_n_stdevs", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_stdevs.sql", "original_file_path": "macros/schema_tests/distributional/expect_column_values_to_be_within_n_stdevs.sql", "unique_id": "macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_stdevs", "macro_sql": "{% macro default__test_expect_column_values_to_be_within_n_stdevs(model,\n column_name,\n group_by,\n sigma_threshold\n ) %}\n\nwith metric_values as (\n\n select\n {{ group_by | join(\",\") ~ \",\" if group_by }}\n sum({{ column_name }}) as {{ column_name }}\n from\n {{ model }}\n {% if group_by -%}\n {{ dbt_expectations.group_by(group_by | length) }}\n {%- endif %}\n\n),\nmetric_values_with_statistics as (\n\n select\n *,\n avg({{ column_name }}) over() as {{ column_name }}_average,\n stddev({{ column_name }}) over() as {{ column_name }}_stddev\n from\n metric_values\n\n),\nmetric_values_z_scores as (\n\n select\n *,\n ({{ column_name }} - {{ column_name }}_average)/\n nullif({{ column_name }}_stddev, 0) as {{ column_name }}_sigma\n from\n metric_values_with_statistics\n\n)\nselect\n *\nfrom\n metric_values_z_scores\nwhere\n abs({{ column_name }}_sigma) > {{ sigma_threshold }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.4090421, "supported_languages": null}, "macro.dbt_expectations.regexp_instr": {"name": "regexp_instr", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "unique_id": "macro.dbt_expectations.regexp_instr", "macro_sql": "{% macro regexp_instr(source_value, regexp, position=1, occurrence=1, is_raw=False) %}\n\n {{ adapter.dispatch('regexp_instr', 'dbt_expectations')(\n source_value, regexp, position, occurrence, is_raw\n ) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.snowflake__regexp_instr"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.410229, "supported_languages": null}, "macro.dbt_expectations.default__regexp_instr": {"name": "default__regexp_instr", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "unique_id": "macro.dbt_expectations.default__regexp_instr", "macro_sql": "{% macro default__regexp_instr(source_value, regexp, position, occurrence, is_raw) %}\nregexp_instr({{ source_value }}, '{{ regexp }}', {{ position }}, {{ occurrence }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.4106555, "supported_languages": null}, "macro.dbt_expectations.snowflake__regexp_instr": {"name": "snowflake__regexp_instr", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "unique_id": "macro.dbt_expectations.snowflake__regexp_instr", "macro_sql": "{% macro snowflake__regexp_instr(source_value, regexp, position, occurrence, is_raw) %}\n{%- set regexp = \"$$\" ~ regexp ~ \"$$\" if is_raw else \"'\" ~ regexp ~ \"'\" -%}\nregexp_instr({{ source_value }}, {{ regexp }}, {{ position }}, {{ occurrence }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.411307, "supported_languages": null}, "macro.dbt_expectations.bigquery__regexp_instr": {"name": "bigquery__regexp_instr", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "unique_id": "macro.dbt_expectations.bigquery__regexp_instr", "macro_sql": "{% macro bigquery__regexp_instr(source_value, regexp, position, occurrence, is_raw) %}\n{%- set regexp = \"r'\" ~ regexp ~ \"'\" if is_raw else \"'\" ~ regexp ~ \"'\" -%}\nregexp_instr({{ source_value }}, {{ regexp }}, {{ position }}, {{ occurrence }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.4119632, "supported_languages": null}, "macro.dbt_expectations.postgres__regexp_instr": {"name": "postgres__regexp_instr", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "unique_id": "macro.dbt_expectations.postgres__regexp_instr", "macro_sql": "{% macro postgres__regexp_instr(source_value, regexp, position, occurrence, is_raw) %}\narray_length((select regexp_matches({{ source_value }}, '{{ regexp }}')), 1)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.4123096, "supported_languages": null}, "macro.dbt_expectations.redshift__regexp_instr": {"name": "redshift__regexp_instr", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "unique_id": "macro.dbt_expectations.redshift__regexp_instr", "macro_sql": "{% macro redshift__regexp_instr(source_value, regexp, position, occurrence, is_raw) %}\nregexp_instr({{ source_value }}, '{{ regexp }}', {{ position }}, {{ occurrence }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.4127166, "supported_languages": null}, "macro.dbt_external_tables.spark__get_external_build_plan": {"name": "spark__get_external_build_plan", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/spark/get_external_build_plan.sql", "original_file_path": "macros/plugins/spark/get_external_build_plan.sql", "unique_id": "macro.dbt_external_tables.spark__get_external_build_plan", "macro_sql": "{% macro spark__get_external_build_plan(source_node) %}\n\n {% set build_plan = [] %}\n\n {% set old_relation = adapter.get_relation(\n database = none,\n schema = source_node.schema,\n identifier = source_node.identifier\n ) %}\n\n {% set create_or_replace = (old_relation is none or var('ext_full_refresh', false)) %}\n\n {% if create_or_replace %}\n {% set build_plan = build_plan + [\n dbt_external_tables.dropif(source_node), \n dbt_external_tables.create_external_table(source_node)\n ] %}\n {% else %}\n {% set build_plan = build_plan + dbt_external_tables.refresh_external_table(source_node) %}\n {% endif %}\n\n {% set recover_partitions = dbt_external_tables.recover_partitions(source_node) %}\n {% if recover_partitions %}\n {% set build_plan = build_plan + [\n recover_partitions\n ] %}\n {% endif %}\n\n {% do return(build_plan) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_external_tables.dropif", "macro.dbt_external_tables.create_external_table", "macro.dbt_external_tables.refresh_external_table", "macro.dbt_external_tables.recover_partitions"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.4149892, "supported_languages": null}, "macro.dbt_external_tables.spark__refresh_external_table": {"name": "spark__refresh_external_table", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/spark/refresh_external_table.sql", "original_file_path": "macros/plugins/spark/refresh_external_table.sql", "unique_id": "macro.dbt_external_tables.spark__refresh_external_table", "macro_sql": "{% macro spark__refresh_external_table(source_node) %}\n \n {% set refresh %}\n refresh table {{source(source_node.source_name, source_node.name)}}\n {% endset %}\n \n {% do return([refresh]) %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.4156642, "supported_languages": null}, "macro.dbt_external_tables.spark__create_external_table": {"name": "spark__create_external_table", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/spark/create_external_table.sql", "original_file_path": "macros/plugins/spark/create_external_table.sql", "unique_id": "macro.dbt_external_tables.spark__create_external_table", "macro_sql": "{% macro spark__create_external_table(source_node) %}\n\n {%- set columns = source_node.columns.values() -%}\n {%- set external = source_node.external -%}\n {%- set partitions = external.partitions -%}\n {%- set options = external.options -%}\n\n{# https://spark.apache.org/docs/latest/sql-data-sources-hive-tables.html #}\n create table {{source(source_node.source_name, source_node.name)}} \n {%- if columns|length > 0 %} (\n {% for column in columns %}\n {{column.name}} {{column.data_type}}\n {{- ',' if not loop.last -}}\n {% endfor %}\n ) {% endif -%}\n {% if external.using %} using {{external.using}} {%- endif %}\n {% if options -%} options (\n {%- for key, value in options.items() -%}\n '{{ key }}' = '{{value}}' {{- ', \\n' if not loop.last -}}\n {%- endfor -%}\n ) {%- endif %}\n {% if partitions -%} partitioned by (\n {%- for partition in partitions -%}\n {{partition.name}} {{partition.data_type}}{{', ' if not loop.last}}\n {%- endfor -%}\n ) {%- endif %}\n {% if external.row_format -%} row format {{external.row_format}} {%- endif %}\n {% if external.file_format -%} stored as {{external.file_format}} {%- endif %}\n {% if external.location -%} location '{{external.location}}' {%- endif %}\n {% if external.table_properties -%} tblproperties {{ external.table_properties }} {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.4197145, "supported_languages": null}, "macro.dbt_external_tables.spark__dropif": {"name": "spark__dropif", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/spark/helpers/dropif.sql", "original_file_path": "macros/plugins/spark/helpers/dropif.sql", "unique_id": "macro.dbt_external_tables.spark__dropif", "macro_sql": "{% macro spark__dropif(node) %}\n \n {% set ddl %}\n drop table if exists {{source(node.source_name, node.name)}}\n {% endset %}\n \n {{return(ddl)}}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.4203622, "supported_languages": null}, "macro.dbt_external_tables.spark__recover_partitions": {"name": "spark__recover_partitions", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/spark/helpers/recover_partitions.sql", "original_file_path": "macros/plugins/spark/helpers/recover_partitions.sql", "unique_id": "macro.dbt_external_tables.spark__recover_partitions", "macro_sql": "{% macro spark__recover_partitions(source_node) %}\n {# https://docs.databricks.com/sql/language-manual/sql-ref-syntax-ddl-alter-table.html #}\n\n {%- if source_node.external.partitions and source_node.external.using and source_node.external.using|lower != 'delta' -%}\n {% set ddl %}\n ALTER TABLE {{ source(source_node.source_name, source_node.name) }} RECOVER PARTITIONS\n {% endset %}\n {%- else -%}\n {% set ddl = none %}\n {%- endif -%}\n\n {{return(ddl)}}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.4216182, "supported_languages": null}, "macro.dbt_external_tables.recover_partitions": {"name": "recover_partitions", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/spark/helpers/recover_partitions.sql", "original_file_path": "macros/plugins/spark/helpers/recover_partitions.sql", "unique_id": "macro.dbt_external_tables.recover_partitions", "macro_sql": "{% macro recover_partitions(source_node) %}\n {{ return(adapter.dispatch('recover_partitions', 'dbt_external_tables')(source_node)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_external_tables.default__recover_partitions"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.4220738, "supported_languages": null}, "macro.dbt_external_tables.default__recover_partitions": {"name": "default__recover_partitions", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/spark/helpers/recover_partitions.sql", "original_file_path": "macros/plugins/spark/helpers/recover_partitions.sql", "unique_id": "macro.dbt_external_tables.default__recover_partitions", "macro_sql": "{% macro default__recover_partitions(source_node) %}\n /*{# \n We're dispatching this macro so that users can override it if required on other adapters\n but this will work for spark/databricks. \n #}*/\n\n {{ exceptions.raise_not_implemented('recover_partitions macro not implemented for adapter ' + adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.422455, "supported_languages": null}, "macro.dbt_external_tables.redshift__get_external_build_plan": {"name": "redshift__get_external_build_plan", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/redshift/get_external_build_plan.sql", "original_file_path": "macros/plugins/redshift/get_external_build_plan.sql", "unique_id": "macro.dbt_external_tables.redshift__get_external_build_plan", "macro_sql": "{% macro redshift__get_external_build_plan(source_node) %}\n\n {% set build_plan = [] %}\n \n {% set create_or_replace = (var('ext_full_refresh', false) or not redshift_is_ext_tbl(source_node)) %}\n \n {% if create_or_replace %}\n\n {% set build_plan = [\n dbt_external_tables.dropif(source_node),\n dbt_external_tables.create_external_table(source_node)\n ] + dbt_external_tables.refresh_external_table(source_node) \n %}\n \n {% else %}\n \n {% set build_plan = dbt_external_tables.refresh_external_table(source_node) %}\n \n {% endif %}\n \n {% do return(build_plan) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_external_tables.redshift_is_ext_tbl", "macro.dbt_external_tables.dropif", "macro.dbt_external_tables.create_external_table", "macro.dbt_external_tables.refresh_external_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.4239438, "supported_languages": null}, "macro.dbt_external_tables.redshift__refresh_external_table": {"name": "redshift__refresh_external_table", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/redshift/refresh_external_table.sql", "original_file_path": "macros/plugins/redshift/refresh_external_table.sql", "unique_id": "macro.dbt_external_tables.redshift__refresh_external_table", "macro_sql": "{% macro redshift__refresh_external_table(source_node) %}\n\n {%- set partitions = source_node.external.get('partitions',[]) -%}\n\n {%- if partitions -%}\n \n {%- set part_len = partitions|length -%}\n \n {%- set get_partitions_sql -%}\n \n select * from\n \n {%- for partition in partitions %} (\n \n {%- set part_num = loop.index -%}\n \n {%- if partition.vals.macro -%}\n {%- set vals = dbt_external_tables.render_from_context(partition.vals.macro, **partition.vals.args) -%}\n {%- elif partition.vals is string -%}\n {%- set vals = [partition.vals] -%}\n {%- else -%}\n {%- set vals = partition.vals -%}\n {%- endif -%}\n \n {%- for val in vals %}\n \n select\n '\"{{ partition.name }}\"' as name_{{ part_num }},\n '\"{{ val }}\"' as val_{{ part_num }},\n '\"{{ dbt_external_tables.render_from_context(partition.path_macro, partition.name, val) }}\"' as path_{{ part_num }}\n \n {{ 'union all' if not loop.last else ') ' }}\n \n {%- endfor -%}\n \n {{ 'cross join' if not loop.last }}\n \n {%- endfor -%}\n \n {%- endset -%}\n \n {%- set finals = [] -%}\n \n {%- if execute -%}\n {%- set results = run_query(get_partitions_sql) -%}\n {%- for row in results -%}\n \n {%- set partition_parts = [] -%}\n {%- set path_parts = [] -%}\n \n {%- for i in range(0, part_len) -%}\n {%- do partition_parts.append({\n 'name': row[i * 3][1:-1],\n 'value': row[i * 3 + 1][1:-1]\n }) -%}\n {%- do path_parts.append(row[i * 3 + 2][1:-1]) -%}\n {%- endfor -%}\n \n {%- set construct = {\n 'partition_by': partition_parts,\n 'path': path_parts | join('/')\n } -%}\n \n {% do finals.append(construct) %}\n {%- endfor -%}\n {%- endif -%}\n \n {%- set ddl = dbt_external_tables.redshift_alter_table_add_partitions(source_node, finals) -%}\n {{ return(ddl) }}\n \n {% else %}\n \n {% do return([]) %}\n \n {% endif %}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_external_tables.render_from_context", "macro.dbt.run_query", "macro.dbt_external_tables.redshift_alter_table_add_partitions"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.432009, "supported_languages": null}, "macro.dbt_external_tables.redshift__create_external_table": {"name": "redshift__create_external_table", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/redshift/create_external_table.sql", "original_file_path": "macros/plugins/redshift/create_external_table.sql", "unique_id": "macro.dbt_external_tables.redshift__create_external_table", "macro_sql": "{% macro redshift__create_external_table(source_node) %}\n\n {%- set columns = source_node.columns.values() -%}\n {%- set external = source_node.external -%}\n {%- set partitions = external.partitions -%}\n\n{# https://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_EXTERNAL_TABLE.html #}\n{# This assumes you have already created an external schema #}\n\n create external table {{source(source_node.source_name, source_node.name)}} (\n {% for column in columns %}\n {{adapter.quote(column.name)}} {{column.data_type}}\n {{- ',' if not loop.last -}}\n {% endfor %}\n )\n {% if partitions -%} partitioned by (\n {%- for partition in partitions -%}\n {{adapter.quote(partition.name)}} {{partition.data_type}}{{', ' if not loop.last}}\n {%- endfor -%}\n ) {%- endif %}\n {% if external.row_format -%} row format {{external.row_format}} {%- endif %}\n {% if external.file_format -%} stored as {{external.file_format}} {%- endif %}\n {% if external.location -%} location '{{external.location}}' {%- endif %}\n {% if external.table_properties -%} table properties {{external.table_properties}} {%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.434874, "supported_languages": null}, "macro.dbt_external_tables.render_from_context": {"name": "render_from_context", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/redshift/helpers/render_macro.sql", "original_file_path": "macros/plugins/redshift/helpers/render_macro.sql", "unique_id": "macro.dbt_external_tables.render_from_context", "macro_sql": "{% macro render_from_context(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called by macro '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n \n {{ return(package_context[name](*varargs, **kwargs)) }}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.4369657, "supported_languages": null}, "macro.dbt_external_tables.redshift__dropif": {"name": "redshift__dropif", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/redshift/helpers/dropif.sql", "original_file_path": "macros/plugins/redshift/helpers/dropif.sql", "unique_id": "macro.dbt_external_tables.redshift__dropif", "macro_sql": "{% macro redshift__dropif(node) %}\n \n {% set ddl %}\n drop table if exists {{source(node.source_name, node.name)}} cascade\n {% endset %}\n \n {{return(ddl)}}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.437585, "supported_languages": null}, "macro.dbt_external_tables.redshift__exit_transaction": {"name": "redshift__exit_transaction", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/redshift/helpers/transaction.sql", "original_file_path": "macros/plugins/redshift/helpers/transaction.sql", "unique_id": "macro.dbt_external_tables.redshift__exit_transaction", "macro_sql": "{% macro redshift__exit_transaction() %}\n {{ return('begin; commit;') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.4378965, "supported_languages": null}, "macro.dbt_external_tables.year_month_day": {"name": "year_month_day", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/redshift/helpers/paths.sql", "original_file_path": "macros/plugins/redshift/helpers/paths.sql", "unique_id": "macro.dbt_external_tables.year_month_day", "macro_sql": "{% macro year_month_day(name, value) %}\n {% set path = value.replace('-','/') %}\n {{return(path)}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.4385629, "supported_languages": null}, "macro.dbt_external_tables.key_value": {"name": "key_value", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/redshift/helpers/paths.sql", "original_file_path": "macros/plugins/redshift/helpers/paths.sql", "unique_id": "macro.dbt_external_tables.key_value", "macro_sql": "{% macro key_value(name, value) %}\n {% set path = name ~ '=' ~ value %}\n {{return(path)}}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.4389708, "supported_languages": null}, "macro.dbt_external_tables.value_only": {"name": "value_only", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/redshift/helpers/paths.sql", "original_file_path": "macros/plugins/redshift/helpers/paths.sql", "unique_id": "macro.dbt_external_tables.value_only", "macro_sql": "{% macro value_only(name, value) %}\n {% set path = value %}\n {{return(path)}}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.4393475, "supported_languages": null}, "macro.dbt_external_tables.redshift_alter_table_add_partitions": {"name": "redshift_alter_table_add_partitions", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/redshift/helpers/add_partitions.sql", "original_file_path": "macros/plugins/redshift/helpers/add_partitions.sql", "unique_id": "macro.dbt_external_tables.redshift_alter_table_add_partitions", "macro_sql": "{% macro redshift_alter_table_add_partitions(source_node, partitions) %}\n\n {{ log(\"Generating ADD PARTITION statement for partition set between \" \n ~ partitions[0]['path'] ~ \" and \" ~ (partitions|last)['path']) }}\n\n {% set ddl = [] %}\n \n {% if partitions|length > 0 %}\n \n {% set alter_table_add %}\n alter table {{source(source_node.source_name, source_node.name)}} add if not exists \n {% endset %}\n \n {%- set alters -%}\n\n {{ alter_table_add }}\n\n {%- for partition in partitions -%}\n\n {%- if loop.index0 != 0 and loop.index0 % 100 == 0 -%}\n\n ; {{ alter_table_add }}\n\n {%- endif -%}\n\n partition ({%- for part in partition.partition_by -%}{{ part.name }}='{{ part.value }}'{{', ' if not loop.last}}{%- endfor -%})\n location '{{ source_node.external.location }}/{{ partition.path }}/'\n\n {% endfor -%}\n \n {%- endset -%}\n \n {% set ddl = ddl + alters.split(';') %}\n\n {% else %}\n\n {{ log(\"No partitions to be added\") }}\n\n {% endif %}\n \n {% do return(ddl) %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.442581, "supported_languages": null}, "macro.dbt_external_tables.redshift_is_ext_tbl": {"name": "redshift_is_ext_tbl", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/redshift/helpers/is_ext_tbl.sql", "original_file_path": "macros/plugins/redshift/helpers/is_ext_tbl.sql", "unique_id": "macro.dbt_external_tables.redshift_is_ext_tbl", "macro_sql": "{% macro redshift_is_ext_tbl(node) %}\n\n {% set existing_relation = load_relation(node) %}\n \n {# external tables don't appear in information_schema.tables,\n so dbt doesn't cache them #}\n {% if existing_relation is none %}\n\n {% set find_ext_tbl %}\n \n select count(*) from svv_external_tables\n where schemaname = '{{node.schema}}'\n and tablename = '{{node.identifier}}'\n \n {% endset %}\n \n {% if execute %}\n {% set result = run_query(find_ext_tbl)[0][0] %}\n {% else %}\n {% set result = 0 %}\n {% endif %}\n\n {% set is_ext_tbl = (result > 0) %}\n {% do return(is_ext_tbl) %}\n \n {% else %}\n \n {% do return(false) %}\n \n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_relation", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.4445224, "supported_languages": null}, "macro.dbt_external_tables.sqlserver__get_external_build_plan": {"name": "sqlserver__get_external_build_plan", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/sqlserver/get_external_build_plan.sql", "original_file_path": "macros/plugins/sqlserver/get_external_build_plan.sql", "unique_id": "macro.dbt_external_tables.sqlserver__get_external_build_plan", "macro_sql": "{% macro sqlserver__get_external_build_plan(source_node) %}\n\n {% set build_plan = [] %}\n\n {% set old_relation = adapter.get_relation(\n database = source_node.database,\n schema = source_node.schema,\n identifier = source_node.identifier\n ) %}\n\n {% set create_or_replace = (old_relation is none or var('ext_full_refresh', false)) %}\n\n {% if create_or_replace %}\n {% set build_plan = build_plan + [ \n dbt_external_tables.dropif(source_node), \n dbt_external_tables.create_external_table(source_node)\n ] %}\n {% else %}\n {% set build_plan = build_plan + dbt_external_tables.refresh_external_table(source_node) %}\n {% endif %}\n {% do return(build_plan) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_external_tables.dropif", "macro.dbt_external_tables.create_external_table", "macro.dbt_external_tables.refresh_external_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.4462736, "supported_languages": null}, "macro.dbt_external_tables.sqlserver__create_external_table": {"name": "sqlserver__create_external_table", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/sqlserver/create_external_table.sql", "original_file_path": "macros/plugins/sqlserver/create_external_table.sql", "unique_id": "macro.dbt_external_tables.sqlserver__create_external_table", "macro_sql": "{% macro sqlserver__create_external_table(source_node) %}\n\n {%- set columns = source_node.columns.values() -%}\n {%- set external = source_node.external -%}\n\n {% if external.ansi_nulls is true -%} SET ANSI_NULLS ON; {%- endif %}\n {% if external.quoted_identifier is true -%} SET QUOTED_IDENTIFIER ON; {%- endif %}\n\n create external table {{source(source_node.source_name, source_node.name)}} (\n {% for column in columns %}\n {# TODO set nullity based on schema tests?? #}\n {%- set nullity = 'NOT NULL' if 'not_null' in columns.tests else 'NULL'-%}\n {{adapter.quote(column.name)}} {{column.data_type}} {{nullity}}\n {{- ',' if not loop.last -}}\n {% endfor %}\n )\n WITH (\n {# remove keys that are None (i.e. not defined for a given source) #}\n {%- for key, value in external.items() if value is not none and key not in ['ansi_nulls', 'quoted_identifier'] -%}\n {{key}} = \n {%- if key in [\"location\", \"schema_name\", \"object_name\"] -%}\n '{{value}}'\n {% elif key in [\"data_source\",\"file_format\"] -%}\n [{{value}}]\n {% else -%}\n {{value}}\n {%- endif -%}\n {{- ',' if not loop.last -}}\n {%- endfor -%}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.449329, "supported_languages": null}, "macro.dbt_external_tables.sqlserver__dropif": {"name": "sqlserver__dropif", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/sqlserver/helpers/dropif.sql", "original_file_path": "macros/plugins/sqlserver/helpers/dropif.sql", "unique_id": "macro.dbt_external_tables.sqlserver__dropif", "macro_sql": "{% macro sqlserver__dropif(node) %}\n \n {% set ddl %}\n if object_id ('{{source(node.source_name, node.name)}}') is not null\n begin\n drop external table {{source(node.source_name, node.name)}}\n end\n {% endset %}\n \n {{return(ddl)}}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.45011, "supported_languages": null}, "macro.dbt_external_tables.snowflake__get_external_build_plan": {"name": "snowflake__get_external_build_plan", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/snowflake/get_external_build_plan.sql", "original_file_path": "macros/plugins/snowflake/get_external_build_plan.sql", "unique_id": "macro.dbt_external_tables.snowflake__get_external_build_plan", "macro_sql": "{% macro snowflake__get_external_build_plan(source_node) %}\n\n {% set build_plan = [] %}\n \n {% set old_relation = adapter.get_relation(\n database = source_node.database,\n schema = source_node.schema,\n identifier = source_node.identifier\n ) %}\n \n {% set create_or_replace = (old_relation is none or var('ext_full_refresh', false)) %}\n\n {% if source_node.external.get('snowpipe', none) is not none %}\n \n {% if create_or_replace %}\n {% set build_plan = build_plan + [\n dbt_external_tables.snowflake_create_empty_table(source_node),\n dbt_external_tables.snowflake_get_copy_sql(source_node, explicit_transaction=true),\n dbt_external_tables.snowflake_create_snowpipe(source_node)\n ] %}\n {% else %}\n {% set build_plan = build_plan + dbt_external_tables.snowflake_refresh_snowpipe(source_node) %}\n {% endif %}\n \n {% else %}\n \n {% if create_or_replace %}\n {% set build_plan = build_plan + [dbt_external_tables.create_external_table(source_node)] %}\n {% else %}\n {% set build_plan = build_plan + dbt_external_tables.refresh_external_table(source_node) %}\n {% endif %}\n \n {% endif %}\n\n {% do return(build_plan) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_external_tables.snowflake_create_empty_table", "macro.dbt_external_tables.snowflake_get_copy_sql", "macro.dbt_external_tables.snowflake_create_snowpipe", "macro.dbt_external_tables.snowflake_refresh_snowpipe", "macro.dbt_external_tables.create_external_table", "macro.dbt_external_tables.refresh_external_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.453067, "supported_languages": null}, "macro.dbt_external_tables.snowflake__refresh_external_table": {"name": "snowflake__refresh_external_table", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/snowflake/refresh_external_table.sql", "original_file_path": "macros/plugins/snowflake/refresh_external_table.sql", "unique_id": "macro.dbt_external_tables.snowflake__refresh_external_table", "macro_sql": "{% macro snowflake__refresh_external_table(source_node) %}\n\n {% set external = source_node.external %}\n {% set snowpipe = source_node.external.get('snowpipe', none) %}\n \n {% set auto_refresh = external.get('auto_refresh', false) %}\n {% set partitions = external.get('partitions', none) %}\n \n {% set manual_refresh = (partitions and not auto_refresh) %}\n \n {% if manual_refresh %}\n\n {% set ddl %}\n begin;\n alter external table {{source(source_node.source_name, source_node.name)}} refresh;\n commit;\n {% endset %}\n \n {% do return([ddl]) %}\n \n {% else %}\n \n {% do return([]) %}\n \n {% endif %}\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.4550133, "supported_languages": null}, "macro.dbt_external_tables.snowflake__create_external_table": {"name": "snowflake__create_external_table", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/snowflake/create_external_table.sql", "original_file_path": "macros/plugins/snowflake/create_external_table.sql", "unique_id": "macro.dbt_external_tables.snowflake__create_external_table", "macro_sql": "{% macro snowflake__create_external_table(source_node) %}\n\n {%- set columns = source_node.columns.values() -%}\n {%- set external = source_node.external -%}\n {%- set partitions = external.partitions -%}\n\n {%- set is_csv = dbt_external_tables.is_csv(external.file_format) -%}\n\n{# https://docs.snowflake.net/manuals/sql-reference/sql/create-external-table.html #}\n{# This assumes you have already created an external stage #}\n create or replace external table {{source(source_node.source_name, source_node.name)}}\n {%- if columns or partitions -%}\n (\n {%- if partitions -%}{%- for partition in partitions %}\n {{partition.name}} {{partition.data_type}} as {{partition.expression}}{{- ',' if not loop.last or columns|length > 0 -}}\n {%- endfor -%}{%- endif -%}\n {%- for column in columns %}\n {%- set column_quoted = adapter.quote(column.name) if column.quote else column.name %}\n {%- set col_expression -%}\n {%- set col_id = 'value:c' ~ loop.index if is_csv else 'value:' ~ column_quoted -%}\n (case when is_null_value({{col_id}}) or lower({{col_id}}) = 'null' then null else {{col_id}} end)\n {%- endset %}\n {{column_quoted}} {{column.data_type}} as ({{col_expression}}::{{column.data_type}})\n {{- ',' if not loop.last -}}\n {% endfor %}\n )\n {%- endif -%}\n {% if partitions %} partition by ({{partitions|map(attribute='name')|join(', ')}}) {% endif %}\n location = {{external.location}} {# stage #}\n {% if external.auto_refresh in (true, false) -%}\n auto_refresh = {{external.auto_refresh}}\n {%- endif %}\n {% if external.pattern -%} pattern = '{{external.pattern}}' {%- endif %}\n {% if external.integration -%} integration = '{{external.integration}}' {%- endif %}\n file_format = {{external.file_format}}\n {% if external.table_format -%} table_format = '{{external.table_format}}' {%- endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_external_tables.is_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.4597776, "supported_languages": null}, "macro.dbt_external_tables.is_csv": {"name": "is_csv", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/snowflake/helpers/is_csv.sql", "original_file_path": "macros/plugins/snowflake/helpers/is_csv.sql", "unique_id": "macro.dbt_external_tables.is_csv", "macro_sql": "{% macro is_csv(file_format) %}\n\n{# From https://docs.snowflake.net/manuals/sql-reference/sql/create-external-table.html:\n\nImportant: The external table does not inherit the file format, if any, in the \nstage definition. You must explicitly specify any file format options for the \nexternal table using the FILE_FORMAT parameter.\n\nNote: FORMAT_NAME and TYPE are mutually exclusive; to avoid unintended behavior, \nyou should only specify one or the other when creating an external table.\n\n#}\n\n {% set ff_ltrimmed = file_format|lower|replace(' ','') %}\n\n {% if 'type=' in ff_ltrimmed %}\n \n {% if 'type=csv' in ff_ltrimmed %}\n\n {{return(true)}}\n\n {% else %}\n\n {{return(false)}}\n \n {% endif %}\n \n {% else %}\n \n {% set ff_standardized = ff_ltrimmed\n | replace('(','') | replace(')','')\n | replace('format_name=','') %}\n {% set fqn = ff_standardized.split('.') %}\n \n {% if fqn | length == 3 %}\n {% set ff_database, ff_schema, ff_identifier = fqn[0], fqn[1], fqn[2] %}\n {% elif fqn | length == 2 %}\n {% set ff_database, ff_schema, ff_identifier = target.database, fqn[0], fqn[1] %}\n {% else %}\n {% set ff_database, ff_schema, ff_identifier = target.database, target.schema, fqn[0] %}\n {% endif %}\n \n {% call statement('get_file_format', fetch_result = True) %}\n show file formats in {{ff_database}}.{{ff_schema}}\n {% endcall %}\n \n {% set ffs = load_result('get_file_format').table %}\n \n {% for ff in ffs %}\n \n {% if ff['name']|lower == ff_identifier and ff['type']|lower == 'csv' %}\n \n {{return(true)}}\n \n {% endif %}\n \n {% endfor %}\n \n {{return(false)}} \n \n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.4646306, "supported_languages": null}, "macro.dbt_external_tables.snowflake_get_copy_sql": {"name": "snowflake_get_copy_sql", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/snowflake/snowpipe/get_copy_sql.sql", "original_file_path": "macros/plugins/snowflake/snowpipe/get_copy_sql.sql", "unique_id": "macro.dbt_external_tables.snowflake_get_copy_sql", "macro_sql": "{% macro snowflake_get_copy_sql(source_node, explicit_transaction=false) %}\n{# This assumes you have already created an external stage #}\n\n {%- set columns = source_node.columns.values() -%}\n {%- set external = source_node.external -%}\n {%- set is_csv = dbt_external_tables.is_csv(external.file_format) %}\n {%- set copy_options = external.snowpipe.get('copy_options', none) -%}\n \n {%- if explicit_transaction -%} begin; {%- endif %}\n \n copy into {{source(source_node.source_name, source_node.name)}}\n from ( \n select\n {% if columns|length == 0 %}\n $1::variant as value,\n {% else -%}\n {%- for column in columns -%}\n {%- set col_expression -%}\n {%- if is_csv -%}nullif(${{loop.index}},''){# special case: get columns by ordinal position #}\n {%- else -%}nullif($1:{{column.name}},''){# standard behavior: get columns by name #}\n {%- endif -%}\n {%- endset -%}\n {{col_expression}}::{{column.data_type}} as {{column.name}},\n {% endfor -%}\n {% endif %}\n metadata$filename::varchar as metadata_filename,\n metadata$file_row_number::bigint as metadata_file_row_number,\n current_timestamp::timestamp as _dbt_copied_at\n from {{external.location}} {# stage #}\n )\n file_format = {{external.file_format}}\n {% if external.pattern -%} pattern = '{{external.pattern}}' {%- endif %}\n {% if copy_options %} {{copy_options}} {% endif %};\n \n {% if explicit_transaction -%} commit; {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_external_tables.is_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.4676316, "supported_languages": null}, "macro.dbt_external_tables.snowflake_refresh_snowpipe": {"name": "snowflake_refresh_snowpipe", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/snowflake/snowpipe/refresh_snowpipe.sql", "original_file_path": "macros/plugins/snowflake/snowpipe/refresh_snowpipe.sql", "unique_id": "macro.dbt_external_tables.snowflake_refresh_snowpipe", "macro_sql": "{% macro snowflake_refresh_snowpipe(source_node) %}\n\n {% set snowpipe = source_node.external.snowpipe %}\n {% set auto_ingest = snowpipe.get('auto_ingest', false) if snowpipe is mapping %}\n \n {% if auto_ingest is true %}\n \n {% do return([]) %}\n \n {% else %}\n \n {% set ddl %}\n alter pipe {{source(source_node.source_name, source_node.name)}} refresh\n {% endset %}\n \n {{ return([ddl]) }}\n \n {% endif %}\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.469036, "supported_languages": null}, "macro.dbt_external_tables.snowflake_create_snowpipe": {"name": "snowflake_create_snowpipe", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/snowflake/snowpipe/create_snowpipe.sql", "original_file_path": "macros/plugins/snowflake/snowpipe/create_snowpipe.sql", "unique_id": "macro.dbt_external_tables.snowflake_create_snowpipe", "macro_sql": "{% macro snowflake_create_snowpipe(source_node) %}\n\n {%- set external = source_node.external -%}\n {%- set snowpipe = external.snowpipe -%}\n\n{# https://docs.snowflake.com/en/sql-reference/sql/create-pipe.html #}\n create or replace pipe {{source(source_node.source_name, source_node.name)}}\n {% if snowpipe.auto_ingest -%} auto_ingest = {{snowpipe.auto_ingest}} {%- endif %}\n {% if snowpipe.aws_sns_topic -%} aws_sns_topic = '{{snowpipe.aws_sns_topic}}' {%- endif %}\n {% if snowpipe.integration -%} integration = '{{snowpipe.integration}}' {%- endif %}\n {% if snowpipe.error_integration -%} error_integration = '{{snowpipe.error_integration}}' {%- endif %}\n as {{ dbt_external_tables.snowflake_get_copy_sql(source_node) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_external_tables.snowflake_get_copy_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.4706678, "supported_languages": null}, "macro.dbt_external_tables.snowflake_create_empty_table": {"name": "snowflake_create_empty_table", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/snowflake/snowpipe/create_empty_table.sql", "original_file_path": "macros/plugins/snowflake/snowpipe/create_empty_table.sql", "unique_id": "macro.dbt_external_tables.snowflake_create_empty_table", "macro_sql": "{% macro snowflake_create_empty_table(source_node) %}\n\n {%- set columns = source_node.columns.values() %}\n\n create or replace table {{source(source_node.source_name, source_node.name)}} (\n {% if columns|length == 0 %}\n value variant,\n {% else -%}\n {%- for column in columns -%}\n {{column.name}} {{column.data_type}},\n {% endfor -%}\n {% endif %}\n metadata_filename varchar,\n metadata_file_row_number bigint,\n _dbt_copied_at timestamp\n );\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.4717853, "supported_languages": null}, "macro.dbt_external_tables.bigquery__get_external_build_plan": {"name": "bigquery__get_external_build_plan", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/bigquery/get_external_build_plan.sql", "original_file_path": "macros/plugins/bigquery/get_external_build_plan.sql", "unique_id": "macro.dbt_external_tables.bigquery__get_external_build_plan", "macro_sql": "{% macro bigquery__get_external_build_plan(source_node) %}\n\n {% set build_plan = [] %}\n \n {% set old_relation = adapter.get_relation(\n database = source_node.database,\n schema = source_node.schema,\n identifier = source_node.identifier\n ) %}\n \n {% set create_or_replace = (old_relation is none or var('ext_full_refresh', false)) %}\n\n {% if create_or_replace %}\n {% set build_plan = build_plan + [dbt_external_tables.create_external_table(source_node)] %}\n {% else %}\n {% set build_plan = build_plan + dbt_external_tables.refresh_external_table(source_node) %}\n {% endif %}\n\n {% do return(build_plan) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_external_tables.create_external_table", "macro.dbt_external_tables.refresh_external_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.473434, "supported_languages": null}, "macro.dbt_external_tables.bigquery__create_external_table": {"name": "bigquery__create_external_table", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/plugins/bigquery/create_external_table.sql", "original_file_path": "macros/plugins/bigquery/create_external_table.sql", "unique_id": "macro.dbt_external_tables.bigquery__create_external_table", "macro_sql": "{% macro bigquery__create_external_table(source_node) %}\n\n {%- set columns = source_node.columns.values() -%}\n {%- set external = source_node.external -%}\n {%- set partitions = external.partitions -%}\n {%- set options = external.options -%}\n \n {%- set uris = [] -%}\n {%- if options is mapping and options.get('uris', none) -%}\n {%- set uris = external.options.get('uris') -%}\n {%- else -%}\n {%- set uris = [external.location] -%}\n {%- endif -%}\n\n create or replace external table {{source(source_node.source_name, source_node.name)}}\n {%- if columns -%}(\n {% for column in columns %}\n {%- set column_quoted = adapter.quote(column.name) if column.quote else column.name %}\n {{column_quoted}} {{column.data_type}} {{- ',' if not loop.last -}}\n {%- endfor -%}\n )\n {% endif %}\n {% if options and options.get('hive_partition_uri_prefix', none) %}\n with partition columns {%- if partitions %} (\n {%- for partition in partitions %}\n {{partition.name}} {{partition.data_type}}{{',' if not loop.last}}\n {%- endfor -%}\n ) {% endif -%}\n {% endif %}\n options (\n uris = [{%- for uri in uris -%} '{{uri}}' {{- \",\" if not loop.last}} {%- endfor -%}]\n {%- if options is mapping -%}\n {%- for key, value in options.items() if key != 'uris' %}\n {%- if value is string -%}\n , {{key}} = '{{value}}'\n {%- else -%}\n , {{key}} = {{value}}\n {%- endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.4787366, "supported_languages": null}, "macro.dbt_external_tables.get_external_build_plan": {"name": "get_external_build_plan", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/common/get_external_build_plan.sql", "original_file_path": "macros/common/get_external_build_plan.sql", "unique_id": "macro.dbt_external_tables.get_external_build_plan", "macro_sql": "{% macro get_external_build_plan(source_node) %}\n {{ return(adapter.dispatch('get_external_build_plan', 'dbt_external_tables')(source_node)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_external_tables.snowflake__get_external_build_plan"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.479303, "supported_languages": null}, "macro.dbt_external_tables.default__get_external_build_plan": {"name": "default__get_external_build_plan", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/common/get_external_build_plan.sql", "original_file_path": "macros/common/get_external_build_plan.sql", "unique_id": "macro.dbt_external_tables.default__get_external_build_plan", "macro_sql": "{% macro default__get_external_build_plan(source_node) %}\n {{ exceptions.raise_compiler_error(\"Staging external sources is not implemented for the default adapter\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.4795868, "supported_languages": null}, "macro.dbt_external_tables.stage_external_sources": {"name": "stage_external_sources", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/common/stage_external_sources.sql", "original_file_path": "macros/common/stage_external_sources.sql", "unique_id": "macro.dbt_external_tables.stage_external_sources", "macro_sql": "{% macro stage_external_sources(select=none) %}\n\n {% set sources_to_stage = [] %}\n \n {% set source_nodes = graph.sources.values() if graph.sources else [] %}\n \n {% for node in source_nodes %}\n {% if node.external %}\n \n {% if select %}\n \n {% for src in select.split(' ') %}\n \n {% if '.' in src %}\n {% set src_s = src.split('.') %}\n {% if src_s[0] == node.source_name and src_s[1] == node.name %}\n {% do sources_to_stage.append(node) %}\n {% endif %}\n {% else %}\n {% if src == node.source_name %}\n {% do sources_to_stage.append(node) %}\n {% endif %}\n {% endif %}\n \n {% endfor %}\n \n {% else %}\n \n {% do sources_to_stage.append(node) %}\n \n {% endif %}\n {% endif %}\n \n {% endfor %}\n \n {% if sources_to_stage|length == 0 %}\n {% do log('No external sources selected', info = true) %}\n {% endif %}\n \n {% for node in sources_to_stage %}\n\n {% set loop_label = loop.index ~ ' of ' ~ loop.length %}\n\n {% do log(loop_label ~ ' START external source ' ~ node.schema ~ '.' ~ node.identifier, info = true) -%}\n \n {% set run_queue = dbt_external_tables.get_external_build_plan(node) %}\n \n {% do log(loop_label ~ ' SKIP', info = true) if run_queue == [] %}\n {% set width = flags.PRINTER_WIDTH %}\n \n {% for q in run_queue %}\n \n {% set q_msg = q|replace('\\n','')|replace('begin;','')|trim %}\n {% set q_log = q_msg[:width] ~ '... ' if q_msg|length > width else q_msg %}\n \n {% do log(loop_label ~ ' (' ~ loop.index ~ ') ' ~ q_log, info = true) %}\n {% set exit_txn = dbt_external_tables.exit_transaction() %}\n \n {% call statement('runner', fetch_result = True, auto_begin = False) %}\n {{ exit_txn }} {{ q }}\n {% endcall %}\n \n {% set runner = load_result('runner') %}\n {% set log_msg = runner['response'] if 'response' in runner.keys() else runner['status'] %}\n {% do log(loop_label ~ ' (' ~ loop.index ~ ') ' ~ log_msg, info = true) %}\n \n {% endfor %}\n \n {% endfor %}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_external_tables.get_external_build_plan", "macro.dbt_external_tables.exit_transaction", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.4886513, "supported_languages": null}, "macro.dbt_external_tables.refresh_external_table": {"name": "refresh_external_table", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/common/refresh_external_table.sql", "original_file_path": "macros/common/refresh_external_table.sql", "unique_id": "macro.dbt_external_tables.refresh_external_table", "macro_sql": "{% macro refresh_external_table(source_node) %}\n {{ return(adapter.dispatch('refresh_external_table', 'dbt_external_tables')(source_node)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_external_tables.snowflake__refresh_external_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.489232, "supported_languages": null}, "macro.dbt_external_tables.default__refresh_external_table": {"name": "default__refresh_external_table", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/common/refresh_external_table.sql", "original_file_path": "macros/common/refresh_external_table.sql", "unique_id": "macro.dbt_external_tables.default__refresh_external_table", "macro_sql": "{% macro default__refresh_external_table(source_node) %}\n {% do return([]) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.4895265, "supported_languages": null}, "macro.dbt_external_tables.create_external_table": {"name": "create_external_table", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/common/create_external_table.sql", "original_file_path": "macros/common/create_external_table.sql", "unique_id": "macro.dbt_external_tables.create_external_table", "macro_sql": "{% macro create_external_table(source_node) %}\n {{ adapter.dispatch('create_external_table', 'dbt_external_tables')(source_node) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_external_tables.snowflake__create_external_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.4900131, "supported_languages": null}, "macro.dbt_external_tables.default__create_external_table": {"name": "default__create_external_table", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/common/create_external_table.sql", "original_file_path": "macros/common/create_external_table.sql", "unique_id": "macro.dbt_external_tables.default__create_external_table", "macro_sql": "{% macro default__create_external_table(source_node) %}\n {{ exceptions.raise_compiler_error(\"External table creation is not implemented for the default adapter\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.4903204, "supported_languages": null}, "macro.dbt_external_tables.dropif": {"name": "dropif", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/common/helpers/dropif.sql", "original_file_path": "macros/common/helpers/dropif.sql", "unique_id": "macro.dbt_external_tables.dropif", "macro_sql": "{% macro dropif(node) %}\n {{ adapter.dispatch('dropif', 'dbt_external_tables')(node) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_external_tables.default__dropif"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.4908066, "supported_languages": null}, "macro.dbt_external_tables.default__dropif": {"name": "default__dropif", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/common/helpers/dropif.sql", "original_file_path": "macros/common/helpers/dropif.sql", "unique_id": "macro.dbt_external_tables.default__dropif", "macro_sql": "{% macro default__dropif() %}\n {{ exceptions.raise_compiler_error(\n \"Dropping external tables is not implemented for the default adapter\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.49108, "supported_languages": null}, "macro.dbt_external_tables.exit_transaction": {"name": "exit_transaction", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/common/helpers/transaction.sql", "original_file_path": "macros/common/helpers/transaction.sql", "unique_id": "macro.dbt_external_tables.exit_transaction", "macro_sql": "{% macro exit_transaction() %}\n {{ return(adapter.dispatch('exit_transaction', 'dbt_external_tables')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_external_tables.default__exit_transaction"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.4915514, "supported_languages": null}, "macro.dbt_external_tables.default__exit_transaction": {"name": "default__exit_transaction", "resource_type": "macro", "package_name": "dbt_external_tables", "path": "macros/common/helpers/transaction.sql", "original_file_path": "macros/common/helpers/transaction.sql", "unique_id": "macro.dbt_external_tables.default__exit_transaction", "macro_sql": "{% macro default__exit_transaction() %}\n {{ return('') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.4917922, "supported_languages": null}, "macro.dbt_date.get_date_dimension": {"name": "get_date_dimension", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/get_date_dimension.sql", "original_file_path": "macros/get_date_dimension.sql", "unique_id": "macro.dbt_date.get_date_dimension", "macro_sql": "{% macro get_date_dimension(start_date, end_date) %}\n {{ adapter.dispatch('get_date_dimension', 'dbt_date') (start_date, end_date) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__get_date_dimension"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5034275, "supported_languages": null}, "macro.dbt_date.default__get_date_dimension": {"name": "default__get_date_dimension", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/get_date_dimension.sql", "original_file_path": "macros/get_date_dimension.sql", "unique_id": "macro.dbt_date.default__get_date_dimension", "macro_sql": "{% macro default__get_date_dimension(start_date, end_date) %}\nwith base_dates as (\n {{ dbt_date.get_base_dates(start_date, end_date) }}\n),\ndates_with_prior_year_dates as (\n\n select\n cast(d.date_day as date) as date_day,\n cast({{ dbt.dateadd('year', -1 , 'd.date_day') }} as date) as prior_year_date_day,\n cast({{ dbt.dateadd('day', -364 , 'd.date_day') }} as date) as prior_year_over_year_date_day\n from\n \tbase_dates d\n\n)\nselect\n d.date_day,\n {{ dbt_date.yesterday('d.date_day') }} as prior_date_day,\n {{ dbt_date.tomorrow('d.date_day') }} as next_date_day,\n d.prior_year_date_day as prior_year_date_day,\n d.prior_year_over_year_date_day,\n {{ dbt_date.day_of_week('d.date_day', isoweek=false) }} as day_of_week,\n {{ dbt_date.day_of_week('d.date_day', isoweek=true) }} as day_of_week_iso,\n {{ dbt_date.day_name('d.date_day', short=false) }} as day_of_week_name,\n {{ dbt_date.day_name('d.date_day', short=true) }} as day_of_week_name_short,\n {{ dbt_date.day_of_month('d.date_day') }} as day_of_month,\n {{ dbt_date.day_of_year('d.date_day') }} as day_of_year,\n\n {{ dbt_date.week_start('d.date_day') }} as week_start_date,\n {{ dbt_date.week_end('d.date_day') }} as week_end_date,\n {{ dbt_date.week_start('d.prior_year_over_year_date_day') }} as prior_year_week_start_date,\n {{ dbt_date.week_end('d.prior_year_over_year_date_day') }} as prior_year_week_end_date,\n {{ dbt_date.week_of_year('d.date_day') }} as week_of_year,\n\n {{ dbt_date.iso_week_start('d.date_day') }} as iso_week_start_date,\n {{ dbt_date.iso_week_end('d.date_day') }} as iso_week_end_date,\n {{ dbt_date.iso_week_start('d.prior_year_over_year_date_day') }} as prior_year_iso_week_start_date,\n {{ dbt_date.iso_week_end('d.prior_year_over_year_date_day') }} as prior_year_iso_week_end_date,\n {{ dbt_date.iso_week_of_year('d.date_day') }} as iso_week_of_year,\n\n {{ dbt_date.week_of_year('d.prior_year_over_year_date_day') }} as prior_year_week_of_year,\n {{ dbt_date.iso_week_of_year('d.prior_year_over_year_date_day') }} as prior_year_iso_week_of_year,\n\n cast({{ dbt_date.date_part('month', 'd.date_day') }} as {{ dbt.type_int() }}) as month_of_year,\n {{ dbt_date.month_name('d.date_day', short=false) }} as month_name,\n {{ dbt_date.month_name('d.date_day', short=true) }} as month_name_short,\n\n cast({{ dbt.date_trunc('month', 'd.date_day') }} as date) as month_start_date,\n cast({{ last_day('d.date_day', 'month') }} as date) as month_end_date,\n\n cast({{ dbt.date_trunc('month', 'd.prior_year_date_day') }} as date) as prior_year_month_start_date,\n cast({{ last_day('d.prior_year_date_day', 'month') }} as date) as prior_year_month_end_date,\n\n cast({{ dbt_date.date_part('quarter', 'd.date_day') }} as {{ dbt.type_int() }}) as quarter_of_year,\n cast({{ dbt.date_trunc('quarter', 'd.date_day') }} as date) as quarter_start_date,\n cast({{ last_day('d.date_day', 'quarter') }} as date) as quarter_end_date,\n\n cast({{ dbt_date.date_part('year', 'd.date_day') }} as {{ dbt.type_int() }}) as year_number,\n cast({{ dbt.date_trunc('year', 'd.date_day') }} as date) as year_start_date,\n cast({{ last_day('d.date_day', 'year') }} as date) as year_end_date\nfrom\n dates_with_prior_year_dates d\norder by 1\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.get_base_dates", "macro.dbt.dateadd", "macro.dbt_date.yesterday", "macro.dbt_date.tomorrow", "macro.dbt_date.day_of_week", "macro.dbt_date.day_name", "macro.dbt_date.day_of_month", "macro.dbt_date.day_of_year", "macro.dbt_date.week_start", "macro.dbt_date.week_end", "macro.dbt_date.week_of_year", "macro.dbt_date.iso_week_start", "macro.dbt_date.iso_week_end", "macro.dbt_date.iso_week_of_year", "macro.dbt_date.date_part", "macro.dbt.type_int", "macro.dbt_date.month_name", "macro.dbt.date_trunc", "macro.dbt.last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5083919, "supported_languages": null}, "macro.dbt_date.postgres__get_date_dimension": {"name": "postgres__get_date_dimension", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/get_date_dimension.sql", "original_file_path": "macros/get_date_dimension.sql", "unique_id": "macro.dbt_date.postgres__get_date_dimension", "macro_sql": "{% macro postgres__get_date_dimension(start_date, end_date) %}\nwith base_dates as (\n {{ dbt_date.get_base_dates(start_date, end_date) }}\n),\ndates_with_prior_year_dates as (\n\n select\n cast(d.date_day as date) as date_day,\n cast({{ dbt.dateadd('year', -1 , 'd.date_day') }} as date) as prior_year_date_day,\n cast({{ dbt.dateadd('day', -364 , 'd.date_day') }} as date) as prior_year_over_year_date_day\n from\n \tbase_dates d\n\n)\nselect\n d.date_day,\n {{ dbt_date.yesterday('d.date_day') }} as prior_date_day,\n {{ dbt_date.tomorrow('d.date_day') }} as next_date_day,\n d.prior_year_date_day as prior_year_date_day,\n d.prior_year_over_year_date_day,\n {{ dbt_date.day_of_week('d.date_day', isoweek=true) }} as day_of_week,\n\n {{ dbt_date.day_name('d.date_day', short=false) }} as day_of_week_name,\n {{ dbt_date.day_name('d.date_day', short=true) }} as day_of_week_name_short,\n {{ dbt_date.day_of_month('d.date_day') }} as day_of_month,\n {{ dbt_date.day_of_year('d.date_day') }} as day_of_year,\n\n {{ dbt_date.week_start('d.date_day') }} as week_start_date,\n {{ dbt_date.week_end('d.date_day') }} as week_end_date,\n {{ dbt_date.week_start('d.prior_year_over_year_date_day') }} as prior_year_week_start_date,\n {{ dbt_date.week_end('d.prior_year_over_year_date_day') }} as prior_year_week_end_date,\n {{ dbt_date.week_of_year('d.date_day') }} as week_of_year,\n\n {{ dbt_date.iso_week_start('d.date_day') }} as iso_week_start_date,\n {{ dbt_date.iso_week_end('d.date_day') }} as iso_week_end_date,\n {{ dbt_date.iso_week_start('d.prior_year_over_year_date_day') }} as prior_year_iso_week_start_date,\n {{ dbt_date.iso_week_end('d.prior_year_over_year_date_day') }} as prior_year_iso_week_end_date,\n {{ dbt_date.iso_week_of_year('d.date_day') }} as iso_week_of_year,\n\n {{ dbt_date.week_of_year('d.prior_year_over_year_date_day') }} as prior_year_week_of_year,\n {{ dbt_date.iso_week_of_year('d.prior_year_over_year_date_day') }} as prior_year_iso_week_of_year,\n\n cast({{ dbt_date.date_part('month', 'd.date_day') }} as {{ dbt.type_int() }}) as month_of_year,\n {{ dbt_date.month_name('d.date_day', short=false) }} as month_name,\n {{ dbt_date.month_name('d.date_day', short=true) }} as month_name_short,\n\n cast({{ dbt.date_trunc('month', 'd.date_day') }} as date) as month_start_date,\n cast({{ last_day('d.date_day', 'month') }} as date) as month_end_date,\n\n cast({{ dbt.date_trunc('month', 'd.prior_year_date_day') }} as date) as prior_year_month_start_date,\n cast({{ last_day('d.prior_year_date_day', 'month') }} as date) as prior_year_month_end_date,\n\n cast({{ dbt_date.date_part('quarter', 'd.date_day') }} as {{ dbt.type_int() }}) as quarter_of_year,\n cast({{ dbt.date_trunc('quarter', 'd.date_day') }} as date) as quarter_start_date,\n {# last_day does not support quarter because postgresql does not support quarter interval. #}\n cast({{dbt.dateadd('day', '-1', dbt.dateadd('month', '3', dbt.date_trunc('quarter', 'd.date_day')))}} as date) as quarter_end_date,\n\n cast({{ dbt_date.date_part('year', 'd.date_day') }} as {{ dbt.type_int() }}) as year_number,\n cast({{ dbt.date_trunc('year', 'd.date_day') }} as date) as year_start_date,\n cast({{ last_day('d.date_day', 'year') }} as date) as year_end_date\nfrom\n dates_with_prior_year_dates d\norder by 1\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.get_base_dates", "macro.dbt.dateadd", "macro.dbt_date.yesterday", "macro.dbt_date.tomorrow", "macro.dbt_date.day_of_week", "macro.dbt_date.day_name", "macro.dbt_date.day_of_month", "macro.dbt_date.day_of_year", "macro.dbt_date.week_start", "macro.dbt_date.week_end", "macro.dbt_date.week_of_year", "macro.dbt_date.iso_week_start", "macro.dbt_date.iso_week_end", "macro.dbt_date.iso_week_of_year", "macro.dbt_date.date_part", "macro.dbt.type_int", "macro.dbt_date.month_name", "macro.dbt.date_trunc", "macro.dbt.last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.513236, "supported_languages": null}, "macro.dbt_date.get_base_dates": {"name": "get_base_dates", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/get_base_dates.sql", "original_file_path": "macros/get_base_dates.sql", "unique_id": "macro.dbt_date.get_base_dates", "macro_sql": "{% macro get_base_dates(start_date=None, end_date=None, n_dateparts=None, datepart=\"day\") %}\n {{ adapter.dispatch('get_base_dates', 'dbt_date') (start_date, end_date, n_dateparts, datepart) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__get_base_dates"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.515041, "supported_languages": null}, "macro.dbt_date.default__get_base_dates": {"name": "default__get_base_dates", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/get_base_dates.sql", "original_file_path": "macros/get_base_dates.sql", "unique_id": "macro.dbt_date.default__get_base_dates", "macro_sql": "{% macro default__get_base_dates(start_date, end_date, n_dateparts, datepart) %}\n\n{%- if start_date and end_date -%}\n{%- set start_date=\"cast('\" ~ start_date ~ \"' as \" ~ dbt.type_timestamp() ~ \")\" -%}\n{%- set end_date=\"cast('\" ~ end_date ~ \"' as \" ~ dbt.type_timestamp() ~ \")\" -%}\n\n{%- elif n_dateparts and datepart -%}\n\n{%- set start_date = dbt.dateadd(datepart, -1 * n_dateparts, dbt_date.today()) -%}\n{%- set end_date = dbt_date.tomorrow() -%}\n{%- endif -%}\n\nwith date_spine as\n(\n\n {{ dbt_date.date_spine(\n datepart=datepart,\n start_date=start_date,\n end_date=end_date,\n )\n }}\n\n)\nselect\n cast(d.date_{{ datepart }} as {{ dbt.type_timestamp() }}) as date_{{ datepart }}\nfrom\n date_spine d\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.dateadd", "macro.dbt_date.today", "macro.dbt_date.tomorrow", "macro.dbt_date.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5165813, "supported_languages": null}, "macro.dbt_date.bigquery__get_base_dates": {"name": "bigquery__get_base_dates", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/get_base_dates.sql", "original_file_path": "macros/get_base_dates.sql", "unique_id": "macro.dbt_date.bigquery__get_base_dates", "macro_sql": "{% macro bigquery__get_base_dates(start_date, end_date, n_dateparts, datepart) %}\n\n{%- if start_date and end_date -%}\n{%- set start_date=\"cast('\" ~ start_date ~ \"' as date )\" -%}\n{%- set end_date=\"cast('\" ~ end_date ~ \"' as date )\" -%}\n\n{%- elif n_dateparts and datepart -%}\n\n{%- set start_date = dbt.dateadd(datepart, -1 * n_dateparts, dbt_date.today()) -%}\n{%- set end_date = dbt_date.tomorrow() -%}\n{%- endif -%}\n\nwith date_spine as\n(\n\n {{ dbt_date.date_spine(\n datepart=datepart,\n start_date=start_date,\n end_date=end_date,\n )\n }}\n\n)\nselect\n cast(d.date_{{ datepart }} as {{ dbt.type_timestamp() }}) as date_{{ datepart }}\nfrom\n date_spine d\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt_date.today", "macro.dbt_date.tomorrow", "macro.dbt_date.date_spine", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.518016, "supported_languages": null}, "macro.dbt_date.from_unixtimestamp": {"name": "from_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "unique_id": "macro.dbt_date.from_unixtimestamp", "macro_sql": "{%- macro from_unixtimestamp(epochs, format=\"seconds\") -%}\n {{ adapter.dispatch('from_unixtimestamp', 'dbt_date') (epochs, format) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.snowflake__from_unixtimestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5199566, "supported_languages": null}, "macro.dbt_date.default__from_unixtimestamp": {"name": "default__from_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "unique_id": "macro.dbt_date.default__from_unixtimestamp", "macro_sql": "\n\n{%- macro default__from_unixtimestamp(epochs, format=\"seconds\") -%}\n {%- if format != \"seconds\" -%}\n {{ exceptions.raise_compiler_error(\n \"value \" ~ format ~ \" for `format` for from_unixtimestamp is not supported.\"\n )\n }}\n {% endif -%}\n to_timestamp({{ epochs }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.520562, "supported_languages": null}, "macro.dbt_date.postgres__from_unixtimestamp": {"name": "postgres__from_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "unique_id": "macro.dbt_date.postgres__from_unixtimestamp", "macro_sql": "\n\n{%- macro postgres__from_unixtimestamp(epochs, format=\"seconds\") -%}\n {%- if format != \"seconds\" -%}\n {{ exceptions.raise_compiler_error(\n \"value \" ~ format ~ \" for `format` for from_unixtimestamp is not supported.\"\n )\n }}\n {% endif -%}\n cast(to_timestamp({{ epochs }}) at time zone 'UTC' as timestamp)\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5211062, "supported_languages": null}, "macro.dbt_date.snowflake__from_unixtimestamp": {"name": "snowflake__from_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "unique_id": "macro.dbt_date.snowflake__from_unixtimestamp", "macro_sql": "\n\n{%- macro snowflake__from_unixtimestamp(epochs, format) -%}\n {%- if format == \"seconds\" -%}\n {%- set scale = 0 -%}\n {%- elif format == \"milliseconds\" -%}\n {%- set scale = 3 -%}\n {%- elif format == \"microseconds\" -%}\n {%- set scale = 6 -%}\n {%- else -%}\n {{ exceptions.raise_compiler_error(\n \"value \" ~ format ~ \" for `format` for from_unixtimestamp is not supported.\"\n )\n }}\n {% endif -%}\n to_timestamp_ntz({{ epochs }}, {{ scale }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5220804, "supported_languages": null}, "macro.dbt_date.bigquery__from_unixtimestamp": {"name": "bigquery__from_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "unique_id": "macro.dbt_date.bigquery__from_unixtimestamp", "macro_sql": "\n\n{%- macro bigquery__from_unixtimestamp(epochs, format) -%}\n {%- if format == \"seconds\" -%}\n timestamp_seconds({{ epochs }})\n {%- elif format == \"milliseconds\" -%}\n timestamp_millis({{ epochs }})\n {%- elif format == \"microseconds\" -%}\n timestamp_micros({{ epochs }})\n {%- else -%}\n {{ exceptions.raise_compiler_error(\n \"value \" ~ format ~ \" for `format` for from_unixtimestamp is not supported.\"\n )\n }}\n {% endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5228949, "supported_languages": null}, "macro.dbt_date.iso_week_end": {"name": "iso_week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "unique_id": "macro.dbt_date.iso_week_end", "macro_sql": "{%- macro iso_week_end(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('iso_week_end', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.snowflake__iso_week_end"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5237744, "supported_languages": null}, "macro.dbt_date._iso_week_end": {"name": "_iso_week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "unique_id": "macro.dbt_date._iso_week_end", "macro_sql": "{%- macro _iso_week_end(date, week_type) -%}\n{%- set dt = dbt_date.iso_week_start(date) -%}\n{{ dbt_date.n_days_away(6, dt) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.iso_week_start", "macro.dbt_date.n_days_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5242212, "supported_languages": null}, "macro.dbt_date.default__iso_week_end": {"name": "default__iso_week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "unique_id": "macro.dbt_date.default__iso_week_end", "macro_sql": "\n\n{%- macro default__iso_week_end(date) -%}\n{{ dbt_date._iso_week_end(date, 'isoweek') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_end"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.524512, "supported_languages": null}, "macro.dbt_date.snowflake__iso_week_end": {"name": "snowflake__iso_week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "unique_id": "macro.dbt_date.snowflake__iso_week_end", "macro_sql": "\n\n{%- macro snowflake__iso_week_end(date) -%}\n{{ dbt_date._iso_week_end(date, 'weekiso') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_end"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.524796, "supported_languages": null}, "macro.dbt_date.n_months_away": {"name": "n_months_away", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/n_months_away.sql", "original_file_path": "macros/calendar_date/n_months_away.sql", "unique_id": "macro.dbt_date.n_months_away", "macro_sql": "{%- macro n_months_away(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ dbt.date_trunc('month',\n dbt.dateadd('month', n,\n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.525485, "supported_languages": null}, "macro.dbt_date.iso_week_start": {"name": "iso_week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "unique_id": "macro.dbt_date.iso_week_start", "macro_sql": "{%- macro iso_week_start(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('iso_week_start', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.snowflake__iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5264003, "supported_languages": null}, "macro.dbt_date._iso_week_start": {"name": "_iso_week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "unique_id": "macro.dbt_date._iso_week_start", "macro_sql": "{%- macro _iso_week_start(date, week_type) -%}\ncast({{ dbt.date_trunc(week_type, date) }} as date)\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.526727, "supported_languages": null}, "macro.dbt_date.default__iso_week_start": {"name": "default__iso_week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "unique_id": "macro.dbt_date.default__iso_week_start", "macro_sql": "\n\n{%- macro default__iso_week_start(date) -%}\n{{ dbt_date._iso_week_start(date, 'isoweek') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5270102, "supported_languages": null}, "macro.dbt_date.snowflake__iso_week_start": {"name": "snowflake__iso_week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "unique_id": "macro.dbt_date.snowflake__iso_week_start", "macro_sql": "\n\n{%- macro snowflake__iso_week_start(date) -%}\n{{ dbt_date._iso_week_start(date, 'week') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5273104, "supported_languages": null}, "macro.dbt_date.postgres__iso_week_start": {"name": "postgres__iso_week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "unique_id": "macro.dbt_date.postgres__iso_week_start", "macro_sql": "\n\n{%- macro postgres__iso_week_start(date) -%}\n{{ dbt_date._iso_week_start(date, 'week') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5275931, "supported_languages": null}, "macro.dbt_date.next_month_name": {"name": "next_month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/next_month_name.sql", "original_file_path": "macros/calendar_date/next_month_name.sql", "unique_id": "macro.dbt_date.next_month_name", "macro_sql": "{%- macro next_month_name(short=True, tz=None) -%}\n{{ dbt_date.month_name(dbt_date.next_month(tz), short=short) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.month_name", "macro.dbt_date.next_month"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.528065, "supported_languages": null}, "macro.dbt_date.week_of_year": {"name": "week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_of_year.sql", "original_file_path": "macros/calendar_date/week_of_year.sql", "unique_id": "macro.dbt_date.week_of_year", "macro_sql": "{%- macro week_of_year(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('week_of_year', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.default__week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5289772, "supported_languages": null}, "macro.dbt_date.default__week_of_year": {"name": "default__week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_of_year.sql", "original_file_path": "macros/calendar_date/week_of_year.sql", "unique_id": "macro.dbt_date.default__week_of_year", "macro_sql": "{%- macro default__week_of_year(date) -%}\ncast({{ dbt_date.date_part('week', date) }} as {{ dbt.type_int() }})\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.529373, "supported_languages": null}, "macro.dbt_date.postgres__week_of_year": {"name": "postgres__week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_of_year.sql", "original_file_path": "macros/calendar_date/week_of_year.sql", "unique_id": "macro.dbt_date.postgres__week_of_year", "macro_sql": "\n\n{%- macro postgres__week_of_year(date) -%}\n{# postgresql 'week' returns isoweek. Use to_char instead.\n WW = the first week starts on the first day of the year #}\ncast(to_char({{ date }}, 'WW') as {{ dbt.type_int() }})\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5296814, "supported_languages": null}, "macro.dbt_date.week_start": {"name": "week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "unique_id": "macro.dbt_date.week_start", "macro_sql": "{%- macro week_start(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('week_start', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.snowflake__week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5305903, "supported_languages": null}, "macro.dbt_date.default__week_start": {"name": "default__week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "unique_id": "macro.dbt_date.default__week_start", "macro_sql": "{%- macro default__week_start(date) -%}\ncast({{ dbt.date_trunc('week', date) }} as date)\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5308986, "supported_languages": null}, "macro.dbt_date.snowflake__week_start": {"name": "snowflake__week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "unique_id": "macro.dbt_date.snowflake__week_start", "macro_sql": "\n\n{%- macro snowflake__week_start(date) -%}\n {#\n Get the day of week offset: e.g. if the date is a Sunday,\n dbt_date.day_of_week returns 1, so we subtract 1 to get a 0 offset\n #}\n {% set off_set = dbt_date.day_of_week(date, isoweek=False) ~ \" - 1\" %}\n cast({{ dbt.dateadd(\"day\", \"-1 * (\" ~ off_set ~ \")\", date) }} as date)\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.day_of_week", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5315065, "supported_languages": null}, "macro.dbt_date.postgres__week_start": {"name": "postgres__week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "unique_id": "macro.dbt_date.postgres__week_start", "macro_sql": "\n\n{%- macro postgres__week_start(date) -%}\n-- Sunday as week start date\ncast({{ dbt.dateadd('day', -1, dbt.date_trunc('week', dbt.dateadd('day', 1, date))) }} as date)\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5320356, "supported_languages": null}, "macro.dbt_date.iso_week_of_year": {"name": "iso_week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "unique_id": "macro.dbt_date.iso_week_of_year", "macro_sql": "{%- macro iso_week_of_year(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('iso_week_of_year', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.snowflake__iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5330274, "supported_languages": null}, "macro.dbt_date._iso_week_of_year": {"name": "_iso_week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "unique_id": "macro.dbt_date._iso_week_of_year", "macro_sql": "{%- macro _iso_week_of_year(date, week_type) -%}\ncast({{ dbt_date.date_part(week_type, date) }} as {{ dbt.type_int() }})\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5334377, "supported_languages": null}, "macro.dbt_date.default__iso_week_of_year": {"name": "default__iso_week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "unique_id": "macro.dbt_date.default__iso_week_of_year", "macro_sql": "\n\n{%- macro default__iso_week_of_year(date) -%}\n{{ dbt_date._iso_week_of_year(date, 'isoweek') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5337267, "supported_languages": null}, "macro.dbt_date.snowflake__iso_week_of_year": {"name": "snowflake__iso_week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "unique_id": "macro.dbt_date.snowflake__iso_week_of_year", "macro_sql": "\n\n{%- macro snowflake__iso_week_of_year(date) -%}\n{{ dbt_date._iso_week_of_year(date, 'weekiso') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5340116, "supported_languages": null}, "macro.dbt_date.postgres__iso_week_of_year": {"name": "postgres__iso_week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "unique_id": "macro.dbt_date.postgres__iso_week_of_year", "macro_sql": "\n\n{%- macro postgres__iso_week_of_year(date) -%}\n-- postgresql week is isoweek, the first week of a year containing January 4 of that year.\n{{ dbt_date._iso_week_of_year(date, 'week') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5343275, "supported_languages": null}, "macro.dbt_date.next_month_number": {"name": "next_month_number", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/next_month_number.sql", "original_file_path": "macros/calendar_date/next_month_number.sql", "unique_id": "macro.dbt_date.next_month_number", "macro_sql": "{%- macro next_month_number(tz=None) -%}\n{{ dbt_date.date_part('month', dbt_date.next_month(tz)) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt_date.next_month"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5347528, "supported_languages": null}, "macro.dbt_date.today": {"name": "today", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/today.sql", "original_file_path": "macros/calendar_date/today.sql", "unique_id": "macro.dbt_date.today", "macro_sql": "{%- macro today(tz=None) -%}\ncast({{ dbt_date.now(tz) }} as date)\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.now"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.535098, "supported_languages": null}, "macro.dbt_date.n_weeks_ago": {"name": "n_weeks_ago", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/n_weeks_ago.sql", "original_file_path": "macros/calendar_date/n_weeks_ago.sql", "unique_id": "macro.dbt_date.n_weeks_ago", "macro_sql": "{%- macro n_weeks_ago(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ dbt.date_trunc('week',\n dbt.dateadd('week', -1 * n,\n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5358245, "supported_languages": null}, "macro.dbt_date.n_days_away": {"name": "n_days_away", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/n_days_away.sql", "original_file_path": "macros/calendar_date/n_days_away.sql", "unique_id": "macro.dbt_date.n_days_away", "macro_sql": "{%- macro n_days_away(n, date=None, tz=None) -%}\n{{ dbt_date.n_days_ago(-1 * n, date, tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.n_days_ago"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5363348, "supported_languages": null}, "macro.dbt_date.last_month_number": {"name": "last_month_number", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/last_month_number.sql", "original_file_path": "macros/calendar_date/last_month_number.sql", "unique_id": "macro.dbt_date.last_month_number", "macro_sql": "{%- macro last_month_number(tz=None) -%}\n{{ dbt_date.date_part('month', dbt_date.last_month(tz)) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt_date.last_month"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5367677, "supported_languages": null}, "macro.dbt_date.now": {"name": "now", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/now.sql", "original_file_path": "macros/calendar_date/now.sql", "unique_id": "macro.dbt_date.now", "macro_sql": "{%- macro now(tz=None) -%}\n{{ dbt_date.convert_timezone(dbt.current_timestamp(), tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.convert_timezone", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5371606, "supported_languages": null}, "macro.dbt_date.next_week": {"name": "next_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/next_week.sql", "original_file_path": "macros/calendar_date/next_week.sql", "unique_id": "macro.dbt_date.next_week", "macro_sql": "{%- macro next_week(tz=None) -%}\n{{ dbt_date.n_weeks_away(1, tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.n_weeks_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5375333, "supported_languages": null}, "macro.dbt_date.round_timestamp": {"name": "round_timestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/round_timestamp.sql", "original_file_path": "macros/calendar_date/round_timestamp.sql", "unique_id": "macro.dbt_date.round_timestamp", "macro_sql": "{% macro round_timestamp(timestamp) %}\n {{ dbt.date_trunc(\"day\", dbt.dateadd(\"hour\", 12, timestamp)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5380073, "supported_languages": null}, "macro.dbt_date.next_month": {"name": "next_month", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/next_month.sql", "original_file_path": "macros/calendar_date/next_month.sql", "unique_id": "macro.dbt_date.next_month", "macro_sql": "{%- macro next_month(tz=None) -%}\n{{ dbt_date.n_months_away(1, tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.n_months_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5383773, "supported_languages": null}, "macro.dbt_date.n_days_ago": {"name": "n_days_ago", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/n_days_ago.sql", "original_file_path": "macros/calendar_date/n_days_ago.sql", "unique_id": "macro.dbt_date.n_days_ago", "macro_sql": "{%- macro n_days_ago(n, date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{%- set n = n|int -%}\ncast({{ dbt.dateadd('day', -1 * n, dt) }} as date)\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5392954, "supported_languages": null}, "macro.dbt_date.n_weeks_away": {"name": "n_weeks_away", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/n_weeks_away.sql", "original_file_path": "macros/calendar_date/n_weeks_away.sql", "unique_id": "macro.dbt_date.n_weeks_away", "macro_sql": "{%- macro n_weeks_away(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ dbt.date_trunc('week',\n dbt.dateadd('week', n,\n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5399725, "supported_languages": null}, "macro.dbt_date.periods_since": {"name": "periods_since", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/periods_since.sql", "original_file_path": "macros/calendar_date/periods_since.sql", "unique_id": "macro.dbt_date.periods_since", "macro_sql": "{%- macro periods_since(date_col, period_name='day', tz=None) -%}\n{{ dbt.datediff(date_col, dbt_date.now(tz), period_name) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.datediff", "macro.dbt_date.now"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5404968, "supported_languages": null}, "macro.dbt_date.day_of_week": {"name": "day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.day_of_week", "macro_sql": "{%- macro day_of_week(date, isoweek=true) -%}\n{{ adapter.dispatch('day_of_week', 'dbt_date') (date, isoweek) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.snowflake__day_of_week"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5431073, "supported_languages": null}, "macro.dbt_date.default__day_of_week": {"name": "default__day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.default__day_of_week", "macro_sql": "\n\n{%- macro default__day_of_week(date, isoweek) -%}\n\n {%- set dow = dbt_date.date_part('dayofweek', date) -%}\n\n {%- if isoweek -%}\n case\n -- Shift start of week from Sunday (0) to Monday (1)\n when {{ dow }} = 0 then 7\n else {{ dow }}\n end\n {%- else -%}\n {{ dow }} + 1\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.543719, "supported_languages": null}, "macro.dbt_date.snowflake__day_of_week": {"name": "snowflake__day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.snowflake__day_of_week", "macro_sql": "\n\n{%- macro snowflake__day_of_week(date, isoweek) -%}\n\n {%- if isoweek -%}\n {%- set dow_part = 'dayofweekiso' -%}\n {{ dbt_date.date_part(dow_part, date) }}\n {%- else -%}\n {%- set dow_part = 'dayofweek' -%}\n case\n when {{ dbt_date.date_part(dow_part, date) }} = 7 then 1\n else {{ dbt_date.date_part(dow_part, date) }} + 1\n end\n {%- endif -%}\n\n\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5445619, "supported_languages": null}, "macro.dbt_date.bigquery__day_of_week": {"name": "bigquery__day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.bigquery__day_of_week", "macro_sql": "\n\n{%- macro bigquery__day_of_week(date, isoweek) -%}\n\n {%- set dow = dbt_date.date_part('dayofweek', date) -%}\n\n {%- if isoweek -%}\n case\n -- Shift start of week from Sunday (1) to Monday (2)\n when {{ dow }} = 1 then 7\n else {{ dow }} - 1\n end\n {%- else -%}\n {{ dow }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5451465, "supported_languages": null}, "macro.dbt_date.postgres__day_of_week": {"name": "postgres__day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.postgres__day_of_week", "macro_sql": "\n\n\n{%- macro postgres__day_of_week(date, isoweek) -%}\n\n {%- if isoweek -%}\n {%- set dow_part = 'isodow' -%}\n -- Monday(1) to Sunday (7)\n cast({{ dbt_date.date_part(dow_part, date) }} as {{ dbt.type_int() }})\n {%- else -%}\n {%- set dow_part = 'dow' -%}\n -- Sunday(1) to Saturday (7)\n cast({{ dbt_date.date_part(dow_part, date) }} + 1 as {{ dbt.type_int() }})\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5460432, "supported_languages": null}, "macro.dbt_date.redshift__day_of_week": {"name": "redshift__day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.redshift__day_of_week", "macro_sql": "\n\n\n{%- macro redshift__day_of_week(date, isoweek) -%}\n\n {%- set dow = dbt_date.date_part('dayofweek', date) -%}\n\n {%- if isoweek -%}\n case\n -- Shift start of week from Sunday (0) to Monday (1)\n when {{ dow }} = 0 then 7\n else cast({{ dow }} as {{ dbt.type_bigint() }})\n end\n {%- else -%}\n cast({{ dow }} + 1 as {{ dbt.type_bigint() }})\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5468128, "supported_languages": null}, "macro.dbt_date.n_months_ago": {"name": "n_months_ago", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/n_months_ago.sql", "original_file_path": "macros/calendar_date/n_months_ago.sql", "unique_id": "macro.dbt_date.n_months_ago", "macro_sql": "{%- macro n_months_ago(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ dbt.date_trunc('month',\n dbt.dateadd('month', -1 * n,\n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5475538, "supported_languages": null}, "macro.dbt_date.tomorrow": {"name": "tomorrow", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/tomorrow.sql", "original_file_path": "macros/calendar_date/tomorrow.sql", "unique_id": "macro.dbt_date.tomorrow", "macro_sql": "{%- macro tomorrow(date=None, tz=None) -%}\n{{ dbt_date.n_days_away(1, date, tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.n_days_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5479867, "supported_languages": null}, "macro.dbt_date.day_of_year": {"name": "day_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "unique_id": "macro.dbt_date.day_of_year", "macro_sql": "{%- macro day_of_year(date) -%}\n{{ adapter.dispatch('day_of_year', 'dbt_date') (date) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__day_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5486088, "supported_languages": null}, "macro.dbt_date.default__day_of_year": {"name": "default__day_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "unique_id": "macro.dbt_date.default__day_of_year", "macro_sql": "\n\n{%- macro default__day_of_year(date) -%}\n {{ dbt_date.date_part('dayofyear', date) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5489, "supported_languages": null}, "macro.dbt_date.postgres__day_of_year": {"name": "postgres__day_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "unique_id": "macro.dbt_date.postgres__day_of_year", "macro_sql": "\n\n{%- macro postgres__day_of_year(date) -%}\n {{ dbt_date.date_part('doy', date) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5491996, "supported_languages": null}, "macro.dbt_date.redshift__day_of_year": {"name": "redshift__day_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "unique_id": "macro.dbt_date.redshift__day_of_year", "macro_sql": "\n\n{%- macro redshift__day_of_year(date) -%}\n cast({{ dbt_date.date_part('dayofyear', date) }} as {{ dbt.type_bigint() }})\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5495782, "supported_languages": null}, "macro.dbt_date.last_month_name": {"name": "last_month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/last_month_name.sql", "original_file_path": "macros/calendar_date/last_month_name.sql", "unique_id": "macro.dbt_date.last_month_name", "macro_sql": "{%- macro last_month_name(short=True, tz=None) -%}\n{{ dbt_date.month_name(dbt_date.last_month(tz), short=short) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.month_name", "macro.dbt_date.last_month"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.550063, "supported_languages": null}, "macro.dbt_date.yesterday": {"name": "yesterday", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/yesterday.sql", "original_file_path": "macros/calendar_date/yesterday.sql", "unique_id": "macro.dbt_date.yesterday", "macro_sql": "{%- macro yesterday(date=None, tz=None) -%}\n{{ dbt_date.n_days_ago(1, date, tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.n_days_ago"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5505064, "supported_languages": null}, "macro.dbt_date.last_week": {"name": "last_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/last_week.sql", "original_file_path": "macros/calendar_date/last_week.sql", "unique_id": "macro.dbt_date.last_week", "macro_sql": "{%- macro last_week(tz=None) -%}\n{{ dbt_date.n_weeks_ago(1, tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.n_weeks_ago"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.55087, "supported_languages": null}, "macro.dbt_date.week_end": {"name": "week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "unique_id": "macro.dbt_date.week_end", "macro_sql": "{%- macro week_end(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('week_end', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.snowflake__week_end"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.551735, "supported_languages": null}, "macro.dbt_date.default__week_end": {"name": "default__week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "unique_id": "macro.dbt_date.default__week_end", "macro_sql": "{%- macro default__week_end(date) -%}\n{{ last_day(date, 'week') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5521338, "supported_languages": null}, "macro.dbt_date.snowflake__week_end": {"name": "snowflake__week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "unique_id": "macro.dbt_date.snowflake__week_end", "macro_sql": "\n\n{%- macro snowflake__week_end(date) -%}\n{%- set dt = dbt_date.week_start(date) -%}\n{{ dbt_date.n_days_away(6, dt) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.week_start", "macro.dbt_date.n_days_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.552563, "supported_languages": null}, "macro.dbt_date.postgres__week_end": {"name": "postgres__week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "unique_id": "macro.dbt_date.postgres__week_end", "macro_sql": "\n\n{%- macro postgres__week_end(date) -%}\n{%- set dt = dbt_date.week_start(date) -%}\n{{ dbt_date.n_days_away(6, dt) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.week_start", "macro.dbt_date.n_days_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.552967, "supported_languages": null}, "macro.dbt_date.last_month": {"name": "last_month", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/last_month.sql", "original_file_path": "macros/calendar_date/last_month.sql", "unique_id": "macro.dbt_date.last_month", "macro_sql": "{%- macro last_month(tz=None) -%}\n{{ dbt_date.n_months_ago(1, tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.n_months_ago"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5533442, "supported_languages": null}, "macro.dbt_date.day_of_month": {"name": "day_of_month", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_month.sql", "original_file_path": "macros/calendar_date/day_of_month.sql", "unique_id": "macro.dbt_date.day_of_month", "macro_sql": "{%- macro day_of_month(date) -%}\n{{ dbt_date.date_part('day', date) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5537884, "supported_languages": null}, "macro.dbt_date.redshift__day_of_month": {"name": "redshift__day_of_month", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_month.sql", "original_file_path": "macros/calendar_date/day_of_month.sql", "unique_id": "macro.dbt_date.redshift__day_of_month", "macro_sql": "\n\n{%- macro redshift__day_of_month(date) -%}\ncast({{ dbt_date.date_part('day', date) }} as {{ dbt.type_bigint() }})\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5541608, "supported_languages": null}, "macro.dbt_date.month_name": {"name": "month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "unique_id": "macro.dbt_date.month_name", "macro_sql": "{%- macro month_name(date, short=True) -%}\n {{ adapter.dispatch('month_name', 'dbt_date') (date, short) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.snowflake__month_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5550268, "supported_languages": null}, "macro.dbt_date.default__month_name": {"name": "default__month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "unique_id": "macro.dbt_date.default__month_name", "macro_sql": "\n\n{%- macro default__month_name(date, short) -%}\n{%- set f = 'MON' if short else 'MONTH' -%}\n to_char({{ date }}, '{{ f }}')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.555455, "supported_languages": null}, "macro.dbt_date.bigquery__month_name": {"name": "bigquery__month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "unique_id": "macro.dbt_date.bigquery__month_name", "macro_sql": "\n\n{%- macro bigquery__month_name(date, short) -%}\n{%- set f = '%b' if short else '%B' -%}\n format_date('{{ f }}', cast({{ date }} as date))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.555871, "supported_languages": null}, "macro.dbt_date.snowflake__month_name": {"name": "snowflake__month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "unique_id": "macro.dbt_date.snowflake__month_name", "macro_sql": "\n\n{%- macro snowflake__month_name(date, short) -%}\n{%- set f = 'MON' if short else 'MMMM' -%}\n to_char({{ date }}, '{{ f }}')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5562925, "supported_languages": null}, "macro.dbt_date.postgres__month_name": {"name": "postgres__month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "unique_id": "macro.dbt_date.postgres__month_name", "macro_sql": "\n\n{%- macro postgres__month_name(date, short) -%}\n{# FM = Fill mode, which suppresses padding blanks #}\n{%- set f = 'FMMon' if short else 'FMMonth' -%}\n to_char({{ date }}, '{{ f }}')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5567122, "supported_languages": null}, "macro.dbt_date.convert_timezone": {"name": "convert_timezone", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "unique_id": "macro.dbt_date.convert_timezone", "macro_sql": "{%- macro convert_timezone(column, target_tz=None, source_tz=None) -%}\n{%- set source_tz = \"UTC\" if not source_tz else source_tz -%}\n{%- set target_tz = var(\"dbt_date:time_zone\") if not target_tz else target_tz -%}\n{{ adapter.dispatch('convert_timezone', 'dbt_date') (column, target_tz, source_tz) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.default__convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5583441, "supported_languages": null}, "macro.dbt_date.default__convert_timezone": {"name": "default__convert_timezone", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "unique_id": "macro.dbt_date.default__convert_timezone", "macro_sql": "{% macro default__convert_timezone(column, target_tz, source_tz) -%}\nconvert_timezone('{{ source_tz }}', '{{ target_tz }}',\n cast({{ column }} as {{ dbt.type_timestamp() }})\n)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.55876, "supported_languages": null}, "macro.dbt_date.bigquery__convert_timezone": {"name": "bigquery__convert_timezone", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "unique_id": "macro.dbt_date.bigquery__convert_timezone", "macro_sql": "{%- macro bigquery__convert_timezone(column, target_tz, source_tz=None) -%}\ntimestamp(datetime({{ column }}, '{{ target_tz}}'))\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5590754, "supported_languages": null}, "macro.dbt_date.spark__convert_timezone": {"name": "spark__convert_timezone", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "unique_id": "macro.dbt_date.spark__convert_timezone", "macro_sql": "{%- macro spark__convert_timezone(column, target_tz, source_tz) -%}\nfrom_utc_timestamp(\n to_utc_timestamp({{ column }}, '{{ source_tz }}'),\n '{{ target_tz }}'\n )\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5594254, "supported_languages": null}, "macro.dbt_date.postgres__convert_timezone": {"name": "postgres__convert_timezone", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "unique_id": "macro.dbt_date.postgres__convert_timezone", "macro_sql": "{% macro postgres__convert_timezone(column, target_tz, source_tz) -%}\ncast(\n cast({{ column }} as {{ dbt.type_timestamp() }})\n at time zone '{{ source_tz }}' at time zone '{{ target_tz }}' as {{ dbt.type_timestamp() }}\n)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.559916, "supported_languages": null}, "macro.dbt_date.redshift__convert_timezone": {"name": "redshift__convert_timezone", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "unique_id": "macro.dbt_date.redshift__convert_timezone", "macro_sql": "{%- macro redshift__convert_timezone(column, target_tz, source_tz) -%}\n{{ return(dbt_date.default__convert_timezone(column, target_tz, source_tz)) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.default__convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5603127, "supported_languages": null}, "macro.dbt_date.day_name": {"name": "day_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "unique_id": "macro.dbt_date.day_name", "macro_sql": "{%- macro day_name(date, short=True) -%}\n {{ adapter.dispatch('day_name', 'dbt_date') (date, short) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.snowflake__day_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5613856, "supported_languages": null}, "macro.dbt_date.default__day_name": {"name": "default__day_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "unique_id": "macro.dbt_date.default__day_name", "macro_sql": "\n\n{%- macro default__day_name(date, short) -%}\n{%- set f = 'Dy' if short else 'Day' -%}\n to_char({{ date }}, '{{ f }}')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5617983, "supported_languages": null}, "macro.dbt_date.snowflake__day_name": {"name": "snowflake__day_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "unique_id": "macro.dbt_date.snowflake__day_name", "macro_sql": "\n\n{%- macro snowflake__day_name(date, short) -%}\n {%- if short -%}\n dayname({{ date }})\n {%- else -%}\n -- long version not implemented on Snowflake so we're doing it manually :/\n case dayname({{ date }})\n when 'Mon' then 'Monday'\n when 'Tue' then 'Tuesday'\n when 'Wed' then 'Wednesday'\n when 'Thu' then 'Thursday'\n when 'Fri' then 'Friday'\n when 'Sat' then 'Saturday'\n when 'Sun' then 'Sunday'\n end\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5623517, "supported_languages": null}, "macro.dbt_date.bigquery__day_name": {"name": "bigquery__day_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "unique_id": "macro.dbt_date.bigquery__day_name", "macro_sql": "\n\n{%- macro bigquery__day_name(date, short) -%}\n{%- set f = '%a' if short else '%A' -%}\n format_date('{{ f }}', cast({{ date }} as date))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5627613, "supported_languages": null}, "macro.dbt_date.postgres__day_name": {"name": "postgres__day_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "unique_id": "macro.dbt_date.postgres__day_name", "macro_sql": "\n\n{%- macro postgres__day_name(date, short) -%}\n{# FM = Fill mode, which suppresses padding blanks #}\n{%- set f = 'FMDy' if short else 'FMDay' -%}\n to_char({{ date }}, '{{ f }}')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5631728, "supported_languages": null}, "macro.dbt_date.date_part": {"name": "date_part", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/date_part.sql", "original_file_path": "macros/calendar_date/date_part.sql", "unique_id": "macro.dbt_date.date_part", "macro_sql": "{% macro date_part(datepart, date) -%}\n {{ adapter.dispatch('date_part', 'dbt_date') (datepart, date) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5637474, "supported_languages": null}, "macro.dbt_date.default__date_part": {"name": "default__date_part", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/date_part.sql", "original_file_path": "macros/calendar_date/date_part.sql", "unique_id": "macro.dbt_date.default__date_part", "macro_sql": "{% macro default__date_part(datepart, date) -%}\n date_part('{{ datepart }}', {{ date }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5640182, "supported_languages": null}, "macro.dbt_date.bigquery__date_part": {"name": "bigquery__date_part", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/date_part.sql", "original_file_path": "macros/calendar_date/date_part.sql", "unique_id": "macro.dbt_date.bigquery__date_part", "macro_sql": "{% macro bigquery__date_part(datepart, date) -%}\n extract({{ datepart }} from {{ date }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.564306, "supported_languages": null}, "macro.dbt_date.to_unixtimestamp": {"name": "to_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "unique_id": "macro.dbt_date.to_unixtimestamp", "macro_sql": "{%- macro to_unixtimestamp(timestamp) -%}\n {{ adapter.dispatch('to_unixtimestamp', 'dbt_date') (timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.snowflake__to_unixtimestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.56487, "supported_languages": null}, "macro.dbt_date.default__to_unixtimestamp": {"name": "default__to_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "unique_id": "macro.dbt_date.default__to_unixtimestamp", "macro_sql": "\n\n{%- macro default__to_unixtimestamp(timestamp) -%}\n {{ dbt_date.date_part('epoch', timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5651515, "supported_languages": null}, "macro.dbt_date.snowflake__to_unixtimestamp": {"name": "snowflake__to_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "unique_id": "macro.dbt_date.snowflake__to_unixtimestamp", "macro_sql": "\n\n{%- macro snowflake__to_unixtimestamp(timestamp) -%}\n {{ dbt_date.date_part('epoch_seconds', timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.565448, "supported_languages": null}, "macro.dbt_date.bigquery__to_unixtimestamp": {"name": "bigquery__to_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "unique_id": "macro.dbt_date.bigquery__to_unixtimestamp", "macro_sql": "\n\n{%- macro bigquery__to_unixtimestamp(timestamp) -%}\n unix_seconds({{ timestamp }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5656579, "supported_languages": null}, "macro.dbt_date.get_fiscal_periods": {"name": "get_fiscal_periods", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/fiscal_date/get_fiscal_periods.sql", "original_file_path": "macros/fiscal_date/get_fiscal_periods.sql", "unique_id": "macro.dbt_date.get_fiscal_periods", "macro_sql": "{% macro get_fiscal_periods(dates, year_end_month, week_start_day, shift_year=1) %}\n{#\nThis macro requires you to pass in a ref to a date dimension, created via\ndbt_date.get_date_dimension()s\n#}\nwith fscl_year_dates_for_periods as (\n {{ dbt_date.get_fiscal_year_dates(dates, year_end_month, week_start_day, shift_year) }}\n),\nfscl_year_w13 as (\n\n select\n f.*,\n -- We count the weeks in a 13 week period\n -- and separate the 4-5-4 week sequences\n mod(cast(\n (f.fiscal_week_of_year-1) as {{ dbt.type_int() }}\n ), 13) as w13_number,\n -- Chop weeks into 13 week merch quarters\n cast(\n least(\n floor((f.fiscal_week_of_year-1)/13.0)\n , 3)\n as {{ dbt.type_int() }}) as quarter_number\n from\n fscl_year_dates_for_periods f\n\n),\nfscl_periods as (\n\n select\n f.date_day,\n f.fiscal_year_number,\n f.week_start_date,\n f.week_end_date,\n f.fiscal_week_of_year,\n case\n -- we move week 53 into the 3rd period of the quarter\n when f.fiscal_week_of_year = 53 then 3\n when f.w13_number between 0 and 3 then 1\n when f.w13_number between 4 and 8 then 2\n when f.w13_number between 9 and 12 then 3\n end as period_of_quarter,\n f.quarter_number\n from\n fscl_year_w13 f\n\n),\nfscl_periods_quarters as (\n\n select\n f.*,\n cast((\n (f.quarter_number * 3) + f.period_of_quarter\n ) as {{ dbt.type_int() }}) as fiscal_period_number\n from\n fscl_periods f\n\n)\nselect\n date_day,\n fiscal_year_number,\n week_start_date,\n week_end_date,\n fiscal_week_of_year,\n dense_rank() over(partition by fiscal_period_number order by fiscal_week_of_year) as fiscal_week_of_period,\n fiscal_period_number,\n quarter_number+1 as fiscal_quarter_number,\n period_of_quarter as fiscal_period_of_quarter\nfrom\n fscl_periods_quarters\norder by 1,2\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.get_fiscal_year_dates", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5670888, "supported_languages": null}, "macro.dbt_date.get_fiscal_year_dates": {"name": "get_fiscal_year_dates", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/fiscal_date/get_fiscal_year_dates.sql", "original_file_path": "macros/fiscal_date/get_fiscal_year_dates.sql", "unique_id": "macro.dbt_date.get_fiscal_year_dates", "macro_sql": "{% macro get_fiscal_year_dates(dates, year_end_month=12, week_start_day=1, shift_year=1) %}\n{{ adapter.dispatch('get_fiscal_year_dates', 'dbt_date') (dates, year_end_month, week_start_day, shift_year) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__get_fiscal_year_dates"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5694675, "supported_languages": null}, "macro.dbt_date.default__get_fiscal_year_dates": {"name": "default__get_fiscal_year_dates", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/fiscal_date/get_fiscal_year_dates.sql", "original_file_path": "macros/fiscal_date/get_fiscal_year_dates.sql", "unique_id": "macro.dbt_date.default__get_fiscal_year_dates", "macro_sql": "{% macro default__get_fiscal_year_dates(dates, year_end_month, week_start_day, shift_year) %}\n-- this gets all the dates within a fiscal year\n-- determined by the given year-end-month\n-- ending on the saturday closest to that month's end date\nwith date_dimension as (\n select * from {{ dates }}\n),\nyear_month_end as (\n\n select\n d.year_number - {{ shift_year }} as fiscal_year_number,\n d.month_end_date\n from\n date_dimension d\n where\n d.month_of_year = {{ year_end_month }}\n group by 1,2\n\n),\nweeks as (\n\n select\n d.year_number,\n d.month_of_year,\n d.date_day as week_start_date,\n cast({{ dbt.dateadd('day', 6, 'd.date_day') }} as date) as week_end_date\n from\n date_dimension d\n where\n d.day_of_week = {{ week_start_day }}\n\n),\n-- get all the weeks that start in the month the year ends\nyear_week_ends as (\n\n select\n d.year_number - {{ shift_year }} as fiscal_year_number,\n d.week_end_date\n from\n weeks d\n where\n d.month_of_year = {{ year_end_month }}\n group by\n 1,2\n\n),\n-- then calculate which Saturday is closest to month end\nweeks_at_month_end as (\n\n select\n d.fiscal_year_number,\n d.week_end_date,\n m.month_end_date,\n rank() over\n (partition by d.fiscal_year_number\n order by\n abs({{ dbt.datediff('d.week_end_date', 'm.month_end_date', 'day') }})\n\n ) as closest_to_month_end\n from\n year_week_ends d\n join\n year_month_end m on d.fiscal_year_number = m.fiscal_year_number\n),\nfiscal_year_range as (\n\n select\n w.fiscal_year_number,\n cast(\n {{ dbt.dateadd('day', 1,\n 'lag(w.week_end_date) over(order by w.week_end_date)') }}\n as date) as fiscal_year_start_date,\n w.week_end_date as fiscal_year_end_date\n from\n weeks_at_month_end w\n where\n w.closest_to_month_end = 1\n\n),\nfiscal_year_dates as (\n\n select\n d.date_day,\n m.fiscal_year_number,\n m.fiscal_year_start_date,\n m.fiscal_year_end_date,\n w.week_start_date,\n w.week_end_date,\n -- we reset the weeks of the year starting with the merch year start date\n dense_rank()\n over(\n partition by m.fiscal_year_number\n order by w.week_start_date\n ) as fiscal_week_of_year\n from\n date_dimension d\n join\n fiscal_year_range m on d.date_day between m.fiscal_year_start_date and m.fiscal_year_end_date\n join\n weeks w on d.date_day between w.week_start_date and w.week_end_date\n\n)\nselect * from fiscal_year_dates order by 1\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5706162, "supported_languages": null}, "macro.dbt_date.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/date_spine.sql", "original_file_path": "macros/_utils/date_spine.sql", "unique_id": "macro.dbt_date.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_date')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5717928, "supported_languages": null}, "macro.dbt_date.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/date_spine.sql", "original_file_path": "macros/_utils/date_spine.sql", "unique_id": "macro.dbt_date.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5730147, "supported_languages": null}, "macro.dbt_date.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/date_spine.sql", "original_file_path": "macros/_utils/date_spine.sql", "unique_id": "macro.dbt_date.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_date')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5734951, "supported_languages": null}, "macro.dbt_date.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/date_spine.sql", "original_file_path": "macros/_utils/date_spine.sql", "unique_id": "macro.dbt_date.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{\n dbt_date.generate_series(\n dbt_date.get_intervals_between(start_date, end_date, datepart)\n )\n }}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.generate_series", "macro.dbt_date.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5742323, "supported_languages": null}, "macro.dbt_date.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/generate_series.sql", "original_file_path": "macros/_utils/generate_series.sql", "unique_id": "macro.dbt_date.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_date')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5755723, "supported_languages": null}, "macro.dbt_date.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/generate_series.sql", "original_file_path": "macros/_utils/generate_series.sql", "unique_id": "macro.dbt_date.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.576544, "supported_languages": null}, "macro.dbt_date.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/generate_series.sql", "original_file_path": "macros/_utils/generate_series.sql", "unique_id": "macro.dbt_date.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_date')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5769286, "supported_languages": null}, "macro.dbt_date.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/generate_series.sql", "original_file_path": "macros/_utils/generate_series.sql", "unique_id": "macro.dbt_date.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_date.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1760113496.5780072, "supported_languages": null}}, "docs": {"doc.external_models.snapshot_proposal_id": {"name": "snapshot_proposal_id", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_proposals.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_proposals.md", "unique_id": "doc.external_models.snapshot_proposal_id", "block_contents": "A unique identifier for the proposal being voted on."}, "doc.external_models.snapshot_choices": {"name": "snapshot_choices", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_proposals.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_proposals.md", "unique_id": "doc.external_models.snapshot_choices", "block_contents": "An array containing the voting options on the proposal."}, "doc.external_models.snapshot_proposal_author": {"name": "snapshot_proposal_author", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_proposals.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_proposals.md", "unique_id": "doc.external_models.snapshot_proposal_author", "block_contents": "The address of the wallet that wrote the proposal."}, "doc.external_models.snapshot_proposal_title": {"name": "snapshot_proposal_title", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_proposals.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_proposals.md", "unique_id": "doc.external_models.snapshot_proposal_title", "block_contents": "The title or name of the proposal."}, "doc.external_models.snapshot_proposal_text": {"name": "snapshot_proposal_text", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_proposals.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_proposals.md", "unique_id": "doc.external_models.snapshot_proposal_text", "block_contents": "The body of the proposal."}, "doc.external_models.snapshot_network": {"name": "snapshot_network", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_proposals.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_proposals.md", "unique_id": "doc.external_models.snapshot_network", "block_contents": "The default network or blockchain used for the space."}, "doc.external_models.snapshot_network_id": {"name": "snapshot_network_id", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_proposals.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_proposals.md", "unique_id": "doc.external_models.snapshot_network_id", "block_contents": "The default network or blockchain unique identifier used for the space."}, "doc.external_models.snapshot_delay": {"name": "snapshot_delay", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_proposals.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_proposals.md", "unique_id": "doc.external_models.snapshot_delay", "block_contents": "The default number of hours of voting delay for the space. The voting delay is the time between proposal submission and the opening of voting."}, "doc.external_models.snapshot_quorum": {"name": "snapshot_quorum", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_proposals.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_proposals.md", "unique_id": "doc.external_models.snapshot_quorum", "block_contents": "The minimum amount of voting power for a proposal to pass."}, "doc.external_models.snapshot_voting_period": {"name": "snapshot_voting_period", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_proposals.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_proposals.md", "unique_id": "doc.external_models.snapshot_voting_period", "block_contents": "The default time in hours within a space for a proposal to be open for voting."}, "doc.external_models.snapshot_voting_type": {"name": "snapshot_voting_type", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_proposals.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_proposals.md", "unique_id": "doc.external_models.snapshot_voting_type", "block_contents": "The type of voting system used for this space. If this column is not null, the same voting system will be used for all proposals in this space."}, "doc.external_models.snapshot_proposal_start_time": {"name": "snapshot_proposal_start_time", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_proposals.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_proposals.md", "unique_id": "doc.external_models.snapshot_proposal_start_time", "block_contents": "The time at which voting on the proposal begins."}, "doc.external_models.snapshot_proposal_end_time": {"name": "snapshot_proposal_end_time", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_proposals.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_proposals.md", "unique_id": "doc.external_models.snapshot_proposal_end_time", "block_contents": "The time at which voting on the proposal ends."}, "doc.external_models.snapshot_proposal_created_at": {"name": "snapshot_proposal_created_at", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_proposals.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_proposals.md", "unique_id": "doc.external_models.snapshot_proposal_created_at", "block_contents": "The time at which the proposal was generated."}, "doc.external_models.snapshot_space_id": {"name": "snapshot_space_id", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_spaces.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_spaces.md", "unique_id": "doc.external_models.snapshot_space_id", "block_contents": "A way to identify which group, or space, on Snapshot a proposal belongs to."}, "doc.external_models.snapshot_space": {"name": "snapshot_space", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_spaces.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_spaces.md", "unique_id": "doc.external_models.snapshot_space", "block_contents": "The name of the space."}, "doc.external_models.snapshot_spaces_about": {"name": "snapshot_spaces_about", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_spaces.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_spaces.md", "unique_id": "doc.external_models.snapshot_spaces_about", "block_contents": "The description of the space."}, "doc.external_models.snapshot_spaces_symbol": {"name": "snapshot_spaces_symbol", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_spaces.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_spaces.md", "unique_id": "doc.external_models.snapshot_spaces_symbol", "block_contents": "The symbol of the space."}, "doc.external_models.snapshot_spaces_categories": {"name": "snapshot_spaces_categories", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_spaces.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_spaces.md", "unique_id": "doc.external_models.snapshot_spaces_categories", "block_contents": "The category of the space."}, "doc.external_models.snapshot_spaces_domain": {"name": "snapshot_spaces_domain", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_spaces.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_spaces.md", "unique_id": "doc.external_models.snapshot_spaces_domain", "block_contents": "The domain name of the space."}, "doc.external_models.snapshot_spaces_is_private": {"name": "snapshot_spaces_is_private", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_spaces.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_spaces.md", "unique_id": "doc.external_models.snapshot_spaces_is_private", "block_contents": "Boolean column to signal whether the space is private or not."}, "doc.external_models.snapshot_spaces_is_verified": {"name": "snapshot_spaces_is_verified", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_spaces.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_spaces.md", "unique_id": "doc.external_models.snapshot_spaces_is_verified", "block_contents": "Boolean column to signal whether the space is verified or not."}, "doc.external_models.snapshot_spaces_admins": {"name": "snapshot_spaces_admins", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_spaces.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_spaces.md", "unique_id": "doc.external_models.snapshot_spaces_admins", "block_contents": "An array of the admin addresses of the space."}, "doc.external_models.snapshot_spaces_members": {"name": "snapshot_spaces_members", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_spaces.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_spaces.md", "unique_id": "doc.external_models.snapshot_spaces_members", "block_contents": "An array of the member addresses of the space."}, "doc.external_models.snapshot_spaces_treasuries": {"name": "snapshot_spaces_treasuries", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_spaces.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_spaces.md", "unique_id": "doc.external_models.snapshot_spaces_treasuries", "block_contents": "An object showcasing treasury details for the space."}, "doc.external_models.snapshot_user_created_at": {"name": "snapshot_user_created_at", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_users.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_users.md", "unique_id": "doc.external_models.snapshot_user_created_at", "block_contents": "The time at which the user was created."}, "doc.external_models.snapshot_user_address": {"name": "snapshot_user_address", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_users.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_users.md", "unique_id": "doc.external_models.snapshot_user_address", "block_contents": "The address of the user."}, "doc.external_models.snapshot_user_name": {"name": "snapshot_user_name", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_users.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_users.md", "unique_id": "doc.external_models.snapshot_user_name", "block_contents": "The name of the user."}, "doc.external_models.snapshot_user_about": {"name": "snapshot_user_about", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_users.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_users.md", "unique_id": "doc.external_models.snapshot_user_about", "block_contents": "The description of the user."}, "doc.external_models.snapshot_user_avatar": {"name": "snapshot_user_avatar", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_users.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_users.md", "unique_id": "doc.external_models.snapshot_user_avatar", "block_contents": "The link for the avatar or profile picture of the user."}, "doc.external_models.snapshot_vote_id": {"name": "snapshot_vote_id", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_votes.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_votes.md", "unique_id": "doc.external_models.snapshot_vote_id", "block_contents": "A unique identifier assigned to a vote."}, "doc.external_models.snapshot_voter": {"name": "snapshot_voter", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_votes.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_votes.md", "unique_id": "doc.external_models.snapshot_voter", "block_contents": "The wallet address of the user that voted on a proposal."}, "doc.external_models.snapshot_vote_option": {"name": "snapshot_vote_option", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_votes.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_votes.md", "unique_id": "doc.external_models.snapshot_vote_option", "block_contents": "How the user voted on the proposal. Corresponds to the choices array."}, "doc.external_models.snapshot_voting_power": {"name": "snapshot_voting_power", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_votes.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_votes.md", "unique_id": "doc.external_models.snapshot_voting_power", "block_contents": "The amount of voting power one holds is proportional to the amount of the token they hold."}, "doc.external_models.snapshot_vote_timestamp": {"name": "snapshot_vote_timestamp", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_votes.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_votes.md", "unique_id": "doc.external_models.snapshot_vote_timestamp", "block_contents": "The time at which the vote was cast."}, "doc.external_models.snapshot_ipfs": {"name": "snapshot_ipfs", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/snapshot/snapshot_votes.md", "original_file_path": "models/doc_descriptions/snapshot/snapshot_votes.md", "unique_id": "doc.external_models.snapshot_ipfs", "block_contents": "The corresponding IPFS hash."}, "doc.external_models.__overview__": {"name": "__overview__", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/general/__overview__.md", "original_file_path": "models/doc_descriptions/general/__overview__.md", "unique_id": "doc.external_models.__overview__", "block_contents": "# Welcome to the Flipside Crypto External Models Documentation!\n\n## **What does this documentation cover?**\nThe documentation included here details the design of the External tables and views available via [Flipside Crypto](https://flipsidecrypto.xyz/). The models in the External database leverage non-Flipside curated datasets and APIs. While Flipside has the ability to host these datasets, we do not have authority over the data quality or structure of the outputs. For more information on how these models are built, please see [the github repository.](https://github.com/FlipsideCrypto/external-models)\n\n### **Quick Links to Table Documentation**\n\n**Token Flow: Starknet**\n\nNote: These tables ceased updating on Feburary 4th, 2024.\n\n[Token Flow Documentation](https://docs.tokenflow.live/)\n\n- [tokenflow_starknet__decoded_blocks](https://flipsidecrypto.github.io/external-models/#!/source/source.external_models.tokenflow_starknet_decoded.blocks)\n- [tokenflow_starknet__decoded_events](https://flipsidecrypto.github.io/external-models/#!/source/source.external_models.tokenflow_starknet_decoded.events)\n- [tokenflow_starknet__decoded_messages](https://flipsidecrypto.github.io/external-models/#!/source/source.external_models.tokenflow_starknet_decoded.messages)\n- [tokenflow_starknet__decoded_traces](https://flipsidecrypto.github.io/external-models/#!/source/source.external_models.tokenflow_starknet_decoded.traces)\n- [tokenflow_starknet__decoded_transactions](https://flipsidecrypto.github.io/external-models/#!/source/source.external_models.tokenflow_starknet_decoded.transactions)\n- [tokenflow_starknet__l1_data_blocks](https://flipsidecrypto.github.io/external-models/#!/source/source.external_models.tokenflow_starknet_l1_data.blocks)\n- [tokenflow_starknet__l1_data_contracts](https://flipsidecrypto.github.io/external-models/#!/source/source.external_models.tokenflow_starknet_l1_data.contracts)\n- [tokenflow_starknet__l1_data_messages](https://flipsidecrypto.github.io/external-models/#!/source/source.external_models.tokenflow_starknet_l1_data.messages)\n- [tokenflow_starknet__l1_data_storage_diffs](https://flipsidecrypto.github.io/external-models/#!/source/source.external_models.tokenflow_starknet_l1_data.storage_diffs)\n\n**DefiLlama**\n\n[DefiLlama Documentation](https://defillama.com/docs/api)\n\n- [defillama__dim_bridges](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.defillama__dim_bridges)\n- [defillama__dim_chains](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.defillama__dim_chains)\n- [defillama__dim_dexes](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.defillama__dim_dexes)\n- [defillama__dim_pools](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.defillama__dim_pools)\n- [defillama__dim_protocols](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.defillama__dim_protocols)\n- [defillama__dim_stablecoins](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.defillama__dim_stablecoins)\n- [defillama__fact_bridge_volume](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.defillama__fact_bridge_volume)\n- [defillama__fact_bridge_volume_by_chain](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.defillama__fact_bridge_volume_by_chain)\n- [defillama__fact_chain_tvl](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.defillama__fact_chain_tvl)\n- [defillama__fact_dex_volume](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.defillama__fact_dex_volume)\n- [defillama__fact_options_volume](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.defillama__fact_options_volume)\n- [defillama__fact_protocol_fees_revenue](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.defillama__fact_protocol_fees_revenue)\n- [defillama__fact_stablecoin_supply](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.defillama__fact_stablecoin_supply)\n- [defillama__fact_protocol_tvl](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.defillama__fact_protocol_tvl)\n- [defillama__fact_pool_yields](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.defillama__fact_pool_yields)\n- [defillama__fact_protocol_fees_revenue](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.defillama__fact_protocol_fees_revenue) \n- [defillama__fact_raises](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.defillama__fact_raises)\n- [defillama__ez_investors](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.defillama__ez_investors)\n\n**DeepNFTValue**\n\n[DeepNFTValue Documentation](https://deepnftvalue.readme.io/reference/getting-started-with-deepnftvalue-api)\n\n- [deepnftvalue__fact_collections](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.deepnftvalue__fact_collections)\n- [deepnftvalue__fact_tokens](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.deepnftvalue__fact_tokens)\n- [deepnftvalue__fact_valuations](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.deepnftvalue__fact_valuations)\n\n**Snapshot**\n\n[Snapshot Documentation](https://docs.snapshot.org/)\n\n- [snapshot__ez_snapshot](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.snapshot__ez_snapshot)\n- [snapshot__dim_spaces](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.snapshot__snapshot__dim_spaces)\n- [snapshot__dim_users](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.snapshot__dim_users)\n- [snapshot__fact_proposals](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.snapshot__fact_proposals)\n- [snapshot__fact_votes](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.snapshot__fact_votes)\n\n**Flashbots**\n\n[Flashbots Documentation](https://docs.flashbots.net/flashbots-protect/overview)\n\n- [flashbots__fact_mevshare_transactions](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.flashbots__fact_mevshare_transactions)\n- [flashbots__fact_protect_transactions](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.flashbots__fact_protect_transactions)\n\n**Blast Leaderboard**\n\n[Live Leaderboard Site](https://blast.io/en/leaderboard)\n\n- [blast__fact_leaderboard](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.blast__fact_leaderboard)\n\n**Token Lists**\n\n[Token Lists Documentation](https://tokenlists.org/)\n\n- [tokenlists__ez_verified_tokens](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.tokenlists__ez_verified_tokens)\n\n**LayerZero**\n\n[LayerZero Sybil Reporting Documentation](https://github.com/LayerZero-Labs/sybil-report/?tab=readme-ov-file)\n\n- [layerzero__fact_transactions_snapshot](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.layerzero__fact_transactions_snapshot)\n\n**Farcaster (Neynar)**\n- [dim_fids](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.farcaster__dim_fids)\n- [dim_fnames](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.farcaster__dim_fnames)\n- [dim_profile_with_addresses](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.farcaster__dim_profile_with_addresses)\n- [fact_blocks](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.farcaster__fact_blocks)\n- [fact_channel_follows](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.farcaster__fact_channel_follows)\n- [fact_casts](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.farcaster__fact_casts)\n- [fact_links](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.farcaster__fact_links)\n- [fact_reactions](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.farcaster__fact_reactions)\n- [fact_signers](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.farcaster__fact_signers)\n- [fact_storage](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.farcaster__fact_storage)\n- [fact_user_data](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.farcaster__fact_user_data)\n- [fact_verifications](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.farcaster__fact_verifications)\n- [fact_warpcast_power_users](https://flipsidecrypto.github.io/external-models/#!/model/model.external_models.farcaster__fact_warpcast_power_users)\n\n## **Helpful User-Defined Functions (UDFs)**\n\nUDFs are custom functions built by the Flipside team that can be used in your queries to make your life easier. \n\nPlease visit [LiveQuery Functions Overview](https://flipsidecrypto.github.io/livequery-models/#!/overview) for a full list of helpful UDFs.\n\n## **Data Model Overview**\n\n`EXTERNAL` is our blockchain-agonistic database for datasets derived from independently managed, external sources. While these models are built a few different ways, the primary method used is through calling internal functions that leverage curated datasets, such as Token Flow or DefiLlama's API endpoints, to create accessible sql models for the analytics community. These models follow our standard approach, built using three layers of sql models: **bronze, silver, and gold (or core).** However, when the models are built externally (non-Flipside), the naming conventions may vary and models will be placed into schemas based on the source.\n\n- Bronze: Data is loaded in from the source as a view\n- Silver: All necessary parsing, filtering, de-duping, and other transformations are done here\n- Gold (or core): Final views and tables that are available in Velocity\n\nThe dimension tables are sourced from a variety of on-chain and off-chain sources.\n\nConvenience views (denoted ez_) are a combination of different fact and dimension tables. \n\n\n## **Using dbt docs**\n### Navigation\n\nYou can use the ```Project``` and ```Database``` navigation tabs on the left side of the window to explore the models in the project.\n\n### Database Tab\n\nThis view shows relations (tables and views) grouped into database schemas. Note that ephemeral models are *not* shown in this interface, as they do not exist in the database.\n\n### Graph Exploration\n\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the Expand button at the top-right of this lineage pane, you'll be able to see all of the models that are used to build, or are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the ```--models``` and ```--exclude``` model selection syntax to filter the models in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n\n### **More information**\n- [Flipside](https://flipsidecrypto.xyz/)\n- [Velocity](https://app.flipsidecrypto.com/velocity?nav=Discover)\n- [Tutorials](https://docs.flipsidecrypto.com/our-data/tutorials)\n- [Github](https://github.com/FlipsideCrypto/external-models)\n- [What is dbt?](https://docs.getdbt.com/docs/introduction)"}, "doc.external_models.pk": {"name": "pk", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/general/export_columns.md", "original_file_path": "models/doc_descriptions/general/export_columns.md", "unique_id": "doc.external_models.pk", "block_contents": "The unique identifier for each row in the table."}, "doc.external_models.inserted_timestamp": {"name": "inserted_timestamp", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/general/export_columns.md", "original_file_path": "models/doc_descriptions/general/export_columns.md", "unique_id": "doc.external_models.inserted_timestamp", "block_contents": "The utc timestamp at which the row was inserted into the table."}, "doc.external_models.modified_timestamp": {"name": "modified_timestamp", "resource_type": "doc", "package_name": "external_models", "path": "doc_descriptions/general/export_columns.md", "original_file_path": "models/doc_descriptions/general/export_columns.md", "unique_id": "doc.external_models.modified_timestamp", "block_contents": "The utc timestamp at which the row was last modified."}, "doc.dbt.__overview__": {"name": "__overview__", "resource_type": "doc", "package_name": "dbt", "path": "overview.md", "original_file_path": "docs/overview.md", "unique_id": "doc.dbt.__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "doc.livequery_models.__livequery_models__": {"name": "__livequery_models__", "resource_type": "doc", "package_name": "livequery_models", "path": "doc_descriptions/general/__overview__.md", "original_file_path": "models/doc_descriptions/general/__overview__.md", "unique_id": "doc.livequery_models.__livequery_models__", "block_contents": "# Welcome to the Flipside Crypto LiveQuery Models Documentation!\n\n## **What does this documentation cover?**\nThe documentation included here details the design of the LiveQuery functions available via [Flipside Crypto](https://flipsidecrypto.xyz/). For more information on how these functions are built, please see [the github repository.](https://github.com/FlipsideCrypto/livequery-models)\n\n### **Overview of Available Functions**\n\n#### **UTILS Functions**\n\n- `livequery.utils.hex_to_int`: Use this UDF to transform any hex string to integer\n ```\n ex: Curve Swaps\n\n SELECT\n regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,\n livequery.utils.hex_to_int(segmented_data [1] :: STRING) :: INTEGER AS tokens_sold\n FROM\n optimism.core.fact_event_logs\n WHERE\n topics [0] :: STRING IN (\n '0x8b3e96f2b889fa771c53c981b40daf005f63f637f1869f707052d15a3dd97140',\n '0xd013ca23e77a65003c2c659c5442c00c805371b7fc1ebd4c206c41d1536bd90b'\n )\n ```\n- `livequery.utils.hex_encode_function` (coming soon)(Function VARCHAR): Use this UDF to hex encode any string\n ```\n ex: Decimals Function Signature\n\n SELECT\n `decimals` AS function_name,\n livequery.utils.hex_encode_function(`decimals()`) :: STRING AS text_sig,\n LEFT(text_sig,10) AS function_sig,\n '0x313ce567' AS expected_sig\n ```\n- `livequery.utils.evm_decode_logs` (coming soon)\n- `livequery.utils.udf_register_secret`\n\n#### **LIVE Functions & Examples**\n\n- `livequery.live.udf_api`(Method STRING, URL STRING, Headers OBJECT, Data OBJECT): Use this UDF to make a GET or POST request on any API\n ```\n ex: Defillama GET request -> working with the output (JSON flatten)\n\n WITH chain_base AS (\n SELECT\n livequery.live.udf_api(\n 'GET','https://api.llama.fi/chains',{},{}\n ) AS read\n )\n\n SELECT\n VALUE:chainId::STRING AS chain_id,\n VALUE:name::STRING AS chain,\n VALUE:tokenSymbol::STRING AS token_symbol\n FROM chain_base,\n LATERAL FLATTEN (input=> read:data)\n\n ex: Solana Token Metadata\n\n SELECT\n livequery.live.udf_api(\n 'GET',\n 'https://public-api.solscan.io/token/meta?tokenAddress=SPraYi59a21jEhqvPBbWuwmjA4vdTaSLbiRTefcHJSR',\n { },\n { }\n );\n\n ex: Running with multiple token addresses at the same time\n\n WITH solana_addresses AS (\n SELECT\n 'SPraYi59a21jEhqvPBbWuwmjA4vdTaSLbiRTefcHJSR' AS address\n UNION\n SELECT\n '4KbzSz2VF1LCvEaw8viq1335VgWzNjMd8rwQMsCkKHip'\n )\n SELECT\n livequery.live.udf_api(\n 'GET',\n concat(\n 'https://public-api.solscan.io/token/meta?tokenAddress=',\n address\n ),\n { },\n { }\n )\n FROM\n solana_addresses;\n\n ex: Hit Quicknode (see instructions below for how to register an API Key with Flipside securely)\n\n SELECT\n livequery.live.udf_api(\n 'POST',\n concat(\n 'http://sample-endpoint-name.network.quiknode.pro/',\n '{my_key}'\n ),\n {},\n { 'method' :'eth_blockNumber',\n 'params' :[],\n 'id' :1,\n 'jsonrpc' :'2.0' },\n 'quicknode'\n );\n ```\n\n##### **Registering and Using LiveQuery Credentials to Query Quicknode**\nWith LiveQuery you can safely store encrypted credentials, such as an API key, with Flipside, and query blockchain nodes directly via our SQL interface. Here\u2019s how:\n1. Sign up for a free [Quicknode API Account](https://www.quicknode.com/core-api)\n2. Navigate to ***Endpoints*** on the left hand side then click the ***Get Started*** tab and ***Copy*** the HTTP Provider Endpoint. Do not adjust the Setup or Security parameters.\n3. Visit [Ephit](https://science.flipsidecrypto.xyz/ephit) to obtain an Ephemeral query that will securely link your API Endpoint to Flipside's backend. This will allow you to refer to the URL securely in our application without referencing it or exposing keys directly.\n4. Fill out the form and click ***Submit this Credential***\n5. Paste the provided query into [Flipside](https://flipside.new) and query your node directly in the app with your submitted Credential (`{my_key}`).\n\n##### **API Endpoints available for use with LiveQuery:**\nPlease visit the Flipside discord or open a ticket for questions, concerns or more information.\n\n- Snapshot: [https://hub.snapshot.org/graphql](https://docs.snapshot.org/graphql-api)\n- Defillama: [https://api.llama.fi/](https://defillama.com/docs/api)\n- Defillama: [https://yields.llama.fi/](https://defillama.com/docs/api)\n- Defillama: [https://stablecoins.llama.fi/](https://defillama.com/docs/api)\n- Defillama: [https://bridges.llama.fi/](https://defillama.com/docs/api)\n- Defillama: [https://coins.llama.fi/](https://defillama.com/docs/api)\n- zkSync: [https://api.zksync.io/api/v0.2/](https://docs.zksync.io/apiv02-docs/)\n- DeepNFT Value: [https://api.deepnftvalue.com/v1](https://deepnftvalue.readme.io/reference/getting-started-with-deepnftvalue-api)\n- Zapper: [https://api.zapper.fi/v2/](https://api.zapper.fi/api/static/index.html#/Apps/AppsController_getApps)\n- Helius: [https://api.helius.xyz](https://docs.helius.xyz/introduction/why-helius)\n- Stargaze Name Service: [https://rest.stargaze-apis.com](https://github.com/public-awesome/names/blob/main/API.md)\n\n## **Using dbt docs**\n### Navigation\n\nYou can use the ```Project``` and ```Database``` navigation tabs on the left side of the window to explore the models in the project.\n\n### Database Tab\n\nThis view shows relations (tables and views) grouped into database schemas. Note that ephemeral models are *not* shown in this interface, as they do not exist in the database.\n\n### Graph Exploration\n\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the Expand button at the top-right of this lineage pane, you'll be able to see all of the models that are used to build, or are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the ```--models``` and ```--exclude``` model selection syntax to filter the models in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n### **More information**\n- [Flipside](https://flipsidecrypto.xyz/)\n- [Velocity](https://app.flipsidecrypto.com/velocity?nav=Discover)\n- [Tutorials](https://docs.flipsidecrypto.com/our-data/tutorials)\n- [Github](https://github.com/FlipsideCrypto/external-models)\n- [What is dbt?](https://docs.getdbt.com/docs/introduction)"}}, "exposures": {}, "metrics": {}, "groups": {}, "selectors": {"integration_tests": {"name": "integration_tests", "description": "Selector for integration tests", "definition": {"union": [{"method": "fqn", "value": "livequery_models.deploy.core._utils"}]}}}, "disabled": {"model.external_models.oklink__tam": [{"database": "EXTERNAL", "schema": "oklink", "name": "oklink__tam", "resource_type": "model", "package_name": "external_models", "path": "oklink/gold/oklink__tam.sql", "original_file_path": "models/oklink/gold/oklink__tam.sql", "unique_id": "model.external_models.oklink__tam", "fqn": ["external_models", "oklink", "gold", "oklink__tam"], "alias": "tam", "checksum": {"name": "sha256", "checksum": "db2335d4b34aa730c6c35303c5f49e0ccf45b7d151465e99b9993f30213021ba"}, "config": {"enabled": false, "alias": null, "schema": null, "database": null, "tags": ["oklink"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["as_of_date", "blockchain"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["oklink"], "description": "This model returns the total addressable market for each blockchain from as of date.", "columns": {"BLOCKCHAIN": {"name": "BLOCKCHAIN", "description": "The blockchain where tam is counted from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "METRIC": {"name": "METRIC", "description": "The metric name is always set as 'tam'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DESCRIPTION": {"name": "DESCRIPTION", "description": "The metric description", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AS_OF_DATE": {"name": "AS_OF_DATE", "description": "The date as of which the tam is counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TOTAL_ADDRESSES": {"name": "TOTAL_ADDRESSES", "description": "The number of addresses for the given blockchain and as of date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TAM_ID": {"name": "TAM_ID", "description": "The surrogate key for the tam", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/oklink/gold/oklink__tam.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": ["as_of_date", "blockchain"], "tags": ["oklink"], "enabled": false}, "created_at": 1760113501.6684706, "config_call_dict": {"materialized": "incremental", "unique_key": ["as_of_date", "blockchain"], "tags": ["oklink"], "enabled": false}, "relation_name": "EXTERNAL.oklink.tam", "raw_code": "-- depends_on: {{ ref('bronze__oklink') }}\n{{ config(\n materialized = 'incremental',\n unique_key = ['as_of_date', 'blockchain'],\n tags = ['oklink'],\n enabled = false\n) }}\n\nWITH source AS (\n\n SELECT\n date_day :: DATE AS as_of_date,\n blockchain,\n TRY_CAST(\n DATA :data [0] :totalAddresses :: STRING AS INT\n ) AS total_addresses,\n _inserted_timestamp\n FROM\n\n{% if is_incremental() %}\n{{ ref(\"bronze__oklink\") }}\n{% else %}\n {{ ref(\"bronze__oklink_FR\") }}\n{% endif %}\nWHERE\n metric = 'address'\n AND total_addresses IS NOT NULL\n\n{% if is_incremental() %}\nAND _inserted_timestamp > (\n SELECT\n MAX(_inserted_timestamp)\n FROM\n {{ this }}\n)\n{% endif %}\n)\nSELECT\n blockchain,\n 'tam' AS metric,\n 'The reported number of total_addresses as of the as_of_date' AS description,\n as_of_date,\n total_addresses,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(['blockchain', 'metric', 'as_of_date']) }} AS tam_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n source qualify ROW_NUMBER() over (\n PARTITION BY blockchain,\n as_of_date\n ORDER BY\n _inserted_timestamp DESC nulls last\n ) = 1", "language": "sql", "refs": [{"name": "bronze__oklink", "package": null, "version": null}, {"name": "bronze__oklink_FR", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.external_models.oklink__tx_count": [{"database": "EXTERNAL", "schema": "oklink", "name": "oklink__tx_count", "resource_type": "model", "package_name": "external_models", "path": "oklink/gold/oklink__tx_count.sql", "original_file_path": "models/oklink/gold/oklink__tx_count.sql", "unique_id": "model.external_models.oklink__tx_count", "fqn": ["external_models", "oklink", "gold", "oklink__tx_count"], "alias": "tx_count", "checksum": {"name": "sha256", "checksum": "071a909bffb38743898a814bc8cf920f258382ade3cbedd4d2390101ed12a3c7"}, "config": {"enabled": false, "alias": null, "schema": null, "database": null, "tags": ["oklink"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["block_date", "blockchain"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["oklink"], "description": "This model returns the number of transactions for each blockchain and block date", "columns": {"BLOCKCHAIN": {"name": "BLOCKCHAIN", "description": "The blockchain where tx count is counted from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "METRIC": {"name": "METRIC", "description": "The metric name is always set as 'tx_count'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DESCRIPTION": {"name": "DESCRIPTION", "description": "The metric description", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "BLOCK_DATE": {"name": "BLOCK_DATE", "description": "The date as of which the tx count is counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_COUNT": {"name": "TX_COUNT", "description": "The number of tx count for the given blockchain and as of date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "TX_COUNT_ID": {"name": "TX_COUNT_ID", "description": "The surrogate key for the tx count.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/oklink/gold/oklink__tx_count.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": ["block_date", "blockchain"], "tags": ["oklink"], "enabled": false}, "created_at": 1760113501.6836526, "config_call_dict": {"materialized": "incremental", "unique_key": ["block_date", "blockchain"], "tags": ["oklink"], "enabled": false}, "relation_name": "EXTERNAL.oklink.tx_count", "raw_code": "-- depends_on: {{ ref('bronze__oklink') }}\n{{ config(\n materialized = \"incremental\",\n unique_key = ['block_date', 'blockchain'],\n tags = ['oklink'],\n enabled = false\n) }}\n\nWITH source_data AS (\n\n SELECT\n date_day :: DATE AS as_of_date,\n blockchain,\n DATA,\n _inserted_timestamp\n FROM\n\n{% if is_incremental() %}\n{{ ref(\"bronze__oklink\") }}\n{% else %}\n {{ ref(\"bronze__oklink_FR\") }}\n{% endif %}\nWHERE\n metric = 'stats'\n AND DATA :code = '0'\n\n{% if is_incremental() %}\nAND _inserted_timestamp >= (\n SELECT\n MAX(_inserted_timestamp)\n FROM\n {{ this }}\n)\n{% endif %}\n),\nflattened_data AS (\n SELECT\n as_of_date,\n blockchain,\n _inserted_timestamp,\n TRY_CAST(\n stats.value :totalTransactionCount :: STRING AS INT\n ) AS tx_count\n FROM\n source_data,\n LATERAL FLATTEN(\n input => DATA :data [0] :statsHistoryList\n ) AS stats\n WHERE\n tx_count IS NOT NULL\n)\nSELECT\n blockchain,\n 'tx_count' AS metric,\n 'The reported number of totalTransactionCount on the as_of_date' AS description,\n as_of_date AS block_date,\n tx_count,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(['blockchain', 'metric', 'block_date']) }} AS tx_count_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp,\n '{{ invocation_id }}' AS _invocation_id\nFROM\n flattened_data qualify ROW_NUMBER() over (\n PARTITION BY tx_count_id\n ORDER BY\n _inserted_timestamp DESC\n ) = 1", "language": "sql", "refs": [{"name": "bronze__oklink", "package": null, "version": null}, {"name": "bronze__oklink_FR", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.external_models.oklink__active_users": [{"database": "EXTERNAL", "schema": "oklink", "name": "oklink__active_users", "resource_type": "model", "package_name": "external_models", "path": "oklink/gold/oklink__active_users.sql", "original_file_path": "models/oklink/gold/oklink__active_users.sql", "unique_id": "model.external_models.oklink__active_users", "fqn": ["external_models", "oklink", "gold", "oklink__active_users"], "alias": "active_users", "checksum": {"name": "sha256", "checksum": "2f105a6d38f2cafa9c3c5d6a93cf5fdc3dc196bdf6b137c2ae208aca55a66b45"}, "config": {"enabled": false, "alias": null, "schema": null, "database": null, "tags": ["oklink"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["as_of_date", "blockchain"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["oklink"], "description": "This model returns the active users for each blockchain from as of date.", "columns": {"BLOCKCHAIN": {"name": "BLOCKCHAIN", "description": "The blockchain where active_users are counted from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "METRIC": {"name": "METRIC", "description": "The metric name is always set as 'active_users'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DESCRIPTION": {"name": "DESCRIPTION", "description": "The metric description", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AS_OF_DATE": {"name": "AS_OF_DATE", "description": "The date as of which the active users are counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ACTIVE_USERS": {"name": "ACTIVE_USERS", "description": "The number of active users for the given blockchain and as of date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ACTIVE_USERS_ID": {"name": "ACTIVE_USERS_ID", "description": "The surrogate key for the active users.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/oklink/gold/oklink__active_users.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": ["as_of_date", "blockchain"], "tags": ["oklink"], "enabled": false}, "created_at": 1760113501.714691, "config_call_dict": {"materialized": "incremental", "unique_key": ["as_of_date", "blockchain"], "tags": ["oklink"], "enabled": false}, "relation_name": "EXTERNAL.oklink.active_users", "raw_code": "-- depends_on: {{ ref('bronze__oklink') }}\n{{ config(\n materialized = 'incremental',\n unique_key = ['as_of_date', 'blockchain'],\n tags = ['oklink'],\n enabled = false\n) }}\n\nWITH source AS (\n\n SELECT\n date_day :: DATE AS as_of_date,\n blockchain,\n TRY_CAST(\n DATA :data [0] :activeAddresses :: STRING AS INT\n ) AS active_users,\n _inserted_timestamp\n FROM\n\n{% if is_incremental() %}\n{{ ref(\"bronze__oklink\") }}\n{% else %}\n {{ ref(\"bronze__oklink_FR\") }}\n{% endif %}\nWHERE\n metric = 'address'\n AND active_users IS NOT NULL\n\n{% if is_incremental() %}\nAND _inserted_timestamp > (\n SELECT\n MAX(_inserted_timestamp)\n FROM\n {{ this }}\n)\n{% endif %}\n)\nSELECT\n blockchain,\n 'active_users' AS metric,\n 'The reported number of activeAddresses as of the as_of_date' AS description,\n as_of_date,\n active_users,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(['blockchain', 'metric', 'as_of_date']) }} AS active_users_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n source qualify ROW_NUMBER() over (\n PARTITION BY blockchain,\n as_of_date\n ORDER BY\n _inserted_timestamp DESC nulls last\n ) = 1", "language": "sql", "refs": [{"name": "bronze__oklink", "package": null, "version": null}, {"name": "bronze__oklink_FR", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.external_models.oklink__contracts": [{"database": "EXTERNAL", "schema": "oklink", "name": "oklink__contracts", "resource_type": "model", "package_name": "external_models", "path": "oklink/gold/oklink__contracts.sql", "original_file_path": "models/oklink/gold/oklink__contracts.sql", "unique_id": "model.external_models.oklink__contracts", "fqn": ["external_models", "oklink", "gold", "oklink__contracts"], "alias": "contracts", "checksum": {"name": "sha256", "checksum": "af0cbf1cfe38f724cbb06a6090028ab2cb9bac769c023978b01e31cfc7191208"}, "config": {"enabled": false, "alias": null, "schema": null, "database": null, "tags": ["oklink"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": ["as_of_date", "blockchain"], "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected", "copy_grants": true}, "tags": ["oklink"], "description": "This model returns the total deployed contracts for each blockchain from as of date.", "columns": {"BLOCKCHAIN": {"name": "BLOCKCHAIN", "description": "The blockchain where metric is from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "METRIC": {"name": "METRIC", "description": "The metric name is always set as 'contract_count'", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "DESCRIPTION": {"name": "DESCRIPTION", "description": "The metric description", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "AS_OF_DATE": {"name": "AS_OF_DATE", "description": "The date as of which the active users are counted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACT_COUNT": {"name": "CONTRACT_COUNT", "description": "The number of deployed contracts for the given blockchain and as of date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "CONTRACTS_ID": {"name": "CONTRACTS_ID", "description": "The surrogate key for the contracts", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "external_models://models/oklink/gold/oklink__contracts.yml", "build_path": null, "deferred": false, "unrendered_config": {"copy_grants": true, "persist_docs": {"relation": true, "columns": true}, "on_schema_change": "append_new_columns", "materialized": "incremental", "unique_key": ["as_of_date", "blockchain"], "tags": ["oklink"], "enabled": false}, "created_at": 1760113501.6989121, "config_call_dict": {"materialized": "incremental", "unique_key": ["as_of_date", "blockchain"], "tags": ["oklink"], "enabled": false}, "relation_name": "EXTERNAL.oklink.contracts", "raw_code": "-- depends_on: {{ ref('bronze__oklink') }}\n{{ config(\n materialized = 'incremental',\n unique_key = ['as_of_date', 'blockchain'],\n tags = ['oklink'],\n enabled = false\n) }}\n\nWITH source AS (\n\n SELECT\n date_day :: DATE AS as_of_date,\n blockchain,\n TRY_CAST(\n DATA :data [0] :contractAddresses :: STRING AS INT\n ) AS contract_count,\n _inserted_timestamp\n FROM\n\n{% if is_incremental() %}\n{{ ref(\"bronze__oklink\") }}\n{% else %}\n {{ ref(\"bronze__oklink_FR\") }}\n{% endif %}\nWHERE\n metric = 'address'\n AND contract_count IS NOT NULL\n\n{% if is_incremental() %}\nAND _inserted_timestamp > (\n SELECT\n MAX(_inserted_timestamp)\n FROM\n {{ this }}\n)\n{% endif %}\n)\nSELECT\n blockchain,\n 'contract_count' AS metric,\n 'The reported number of contractAddresses as of the as_of_date' AS description,\n as_of_date,\n contract_count,\n _inserted_timestamp,\n {{ dbt_utils.generate_surrogate_key(['blockchain', 'metric', 'as_of_date']) }} AS contracts_id,\n SYSDATE() AS inserted_timestamp,\n SYSDATE() AS modified_timestamp\nFROM\n source qualify ROW_NUMBER() over (\n PARTITION BY blockchain,\n as_of_date\n ORDER BY\n _inserted_timestamp DESC nulls last\n ) = 1", "language": "sql", "refs": [{"name": "bronze__oklink", "package": null, "version": null}, {"name": "bronze__oklink_FR", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "test.livequery_models.test_alchemy_nfts__report_spam_status_200.d062a6f454": [{"test_metadata": {"name": "test_udf", "kwargs": {"args": null, "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "report_spam", "model": "{{ get_where_subquery(ref('alchemy_nfts__alchemy_utils')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_alchemy_nfts", "name": "test_alchemy_nfts__report_spam_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_alchemy_nfts__report_spam_status_200.sql", "original_file_path": "models/deploy/marketplace/alchemy/alchemy_nfts__alchemy_utils.yml", "unique_id": "test.livequery_models.test_alchemy_nfts__report_spam_status_200.d062a6f454", "fqn": ["livequery_models", "deploy", "marketplace", "alchemy", "test_alchemy_nfts__report_spam_status_200"], "alias": "report_spam_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "enabled": false}, "created_at": 1760113503.496036, "config_call_dict": {"enabled": false}, "relation_name": "EXTERNAL.test_alchemy_nfts.report_spam_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}{{ config(enabled=False) }}", "language": "sql", "refs": [{"name": "alchemy_nfts__alchemy_utils", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "report_spam", "file_key_name": "models.alchemy_nfts__alchemy_utils", "attached_node": "model.livequery_models.alchemy_nfts__alchemy_utils"}], "test.livequery_models.test_blockpour_utils__get_status_200.438dcb4c49": [{"test_metadata": {"name": "test_udf", "kwargs": {"args": "'/v1/tokens/1/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', {\n 'blockNumber': 17767007\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "get", "model": "{{ get_where_subquery(ref('blockpour_utils__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_blockpour_utils", "name": "test_blockpour_utils__get_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_blockpour_utils__get_status_200.sql", "original_file_path": "models/deploy/marketplace/blockpour/blockpour_utils__.yml", "unique_id": "test.livequery_models.test_blockpour_utils__get_status_200.438dcb4c49", "fqn": ["livequery_models", "deploy", "marketplace", "blockpour", "test_blockpour_utils__get_status_200"], "alias": "get_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "enabled": false}, "created_at": 1760113503.5355515, "config_call_dict": {}, "relation_name": "EXTERNAL.test_blockpour_utils.get_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "blockpour_utils__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "get", "file_key_name": "models.blockpour_utils__", "attached_node": "model.livequery_models.blockpour_utils__"}], "test.livequery_models.test_blockpour_utils__post_status_200.8586093b49": [{"test_metadata": {"name": "test_udf", "kwargs": {"args": "'/v1/model/run', {\n 'slug': 'price.quote',\n 'version': '1.0',\n 'chainId': 1,\n 'blockNumber': 17767016,\n 'input': {}\n}\n", "assertions": ["result:status_code = 200", "result:error IS NULL"], "column_name": "post", "model": "{{ get_where_subquery(ref('blockpour_utils__')) }}"}, "namespace": null}, "database": "EXTERNAL", "schema": "test_blockpour_utils", "name": "test_blockpour_utils__post_status_200", "resource_type": "test", "package_name": "livequery_models", "path": "test_blockpour_utils__post_status_200.sql", "original_file_path": "models/deploy/marketplace/blockpour/blockpour_utils__.yml", "unique_id": "test.livequery_models.test_blockpour_utils__post_status_200.8586093b49", "fqn": ["livequery_models", "deploy", "marketplace", "blockpour", "test_blockpour_utils__post_status_200"], "alias": "post_status_200", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": true, "store_failures_as": "table", "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"store_failures": true, "enabled": false}, "created_at": 1760113503.541563, "config_call_dict": {}, "relation_name": "EXTERNAL.test_blockpour_utils.post_status_200", "raw_code": "{{ test_test_udf(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "blockpour_utils__", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.livequery_models.test_test_udf", "macro.dbt.get_where_subquery"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "post", "file_key_name": "models.blockpour_utils__", "attached_node": "model.livequery_models.blockpour_utils__"}]}, "parent_map": {"model.external_models.silver__tokenlists_verified_tokens": ["model.external_models.bronze__all_tokenlists"], "model.external_models.tokenlists__ez_verified_tokens": ["model.external_models.defillama__dim_chains", "model.external_models.silver__tokenlists_verified_tokens"], "model.external_models.bronze__all_tokenlists": ["seed.external_models.bronze__verified_tokenlist_seed"], "model.external_models.avalanche__fact_p_blocks": ["source.external_models.avalanche_share.p_blocks"], "model.external_models.avalanche__fact_x_transactions": ["source.external_models.avalanche_share.x_transactions"], "model.external_models.avalanche__fact_c_messages": ["source.external_models.avalanche_share.c_messages"], "model.external_models.avalanche__fact_x_vertices": ["source.external_models.avalanche_share.vertices"], "model.external_models.avalanche__dim_data_dictionary": ["source.external_models.avalanche_share.data_dictionary"], "model.external_models.avalanche__fact_x_blocks": ["source.external_models.avalanche_share.x_blocks"], "model.external_models.avalanche__fact_p_transactions": ["source.external_models.avalanche_share.p_transactions"], "model.external_models.avalanche__fact_utxos": ["source.external_models.avalanche_share.utxos"], "model.external_models.silver__polymarket_markets": ["model.external_models.bronze__polymarket_markets"], "model.external_models.polymarket__dim_markets": ["model.external_models.silver__polymarket_markets"], "model.external_models.bronze__polymarket_markets": [], "model.external_models.silver__dates": [], "model.external_models.silver_aptos__lync": ["model.external_models.bronze_aptos__lync_data"], "model.external_models.bronze_aptos__lync_data": [], "model.external_models.bronze_aptos__shinam_data": ["source.external_models.external_bronze.aptos_shinam"], "model.external_models.silver_aptos__shinam": ["model.external_models.bronze_aptos__shinam_data"], "model.external_models.silver__dnv_tokens": ["model.external_models.bronze__dnv_tokens"], "model.external_models.silver__dnv_valuations": ["model.external_models.bronze__streamline_fr_valuations", "model.external_models.bronze__streamline_valuations"], "model.external_models.silver__dnv_collections": ["model.external_models.bronze__dnv_collections"], "model.external_models.silver__dnv_token_requests": ["model.external_models.bronze__dnv_collection_slugs"], "model.external_models.deepnftvalue__fact_tokens": ["model.external_models.silver__dnv_tokens"], "model.external_models.deepnftvalue__fact_collections": ["model.external_models.silver__dnv_collections"], "model.external_models.deepnftvalue__fact_valuations": ["model.external_models.silver__dnv_valuations"], "model.external_models.bronze__dnv_collections": ["model.external_models.bronze__dnv_collection_slugs"], "model.external_models.bronze__dnv_tokens": ["model.external_models.silver__dnv_token_requests", "source.external_models.crosschain_silver.apis_keys"], "model.external_models.bronze__streamline_valuations": ["source.external_models.bronze_streamline.valuations_parquet"], "model.external_models.bronze__dnv_collection_slugs": [], "model.external_models.bronze__streamline_fr_valuations": ["source.external_models.bronze_streamline.valuations_parquet"], "model.external_models.silver__snapshot_proposals": ["model.external_models.bronze__defillama_chains", "model.external_models.bronze__snapshot_proposals"], "model.external_models.silver__snapshot_users": ["model.external_models.bronze__snapshot_users"], "model.external_models.silver__snapshot_votes": ["model.external_models.bronze__snapshot_votes"], "model.external_models.silver__snapshot_spaces": ["model.external_models.bronze__snapshot_spaces"], "model.external_models.snapshot__fact_votes": ["model.external_models.silver__snapshot_votes"], "model.external_models.snapshot__dim_users": ["model.external_models.silver__snapshot_users"], "model.external_models.snapshot__ez_snapshot": ["model.external_models.silver__snapshot_proposals", "model.external_models.silver__snapshot_votes"], "model.external_models.snapshot__fact_proposals": ["model.external_models.silver__snapshot_proposals"], "model.external_models.snapshot__dim_spaces": ["model.external_models.silver__snapshot_spaces"], "model.external_models.bronze__snapshot_users": ["source.external_models.crosschain_silver.apis_keys"], "model.external_models.bronze__snapshot_proposals": [], "model.external_models.bronze__snapshot_votes": ["source.external_models.crosschain_silver.apis_keys"], "model.external_models.bronze__snapshot_spaces": [], "model.external_models.streamline__oklink_complete": ["model.external_models.bronze__oklink", "model.external_models.bronze__oklink_FR"], "model.external_models.streamline__oklink_metrics": ["source.external_models.crosschain_core.dim_dates"], "model.external_models.streamline__oklink_realtime": ["model.external_models.streamline__oklink_complete", "model.external_models.streamline__oklink_metrics"], "model.external_models.bronze__oklink_FR": ["source.external_models.bronze_streamline.oklink"], "model.external_models.bronze__oklink": ["source.external_models.bronze_streamline.oklink"], "model.external_models.silver__defillama_dex_volume": [], "model.external_models.silver__defillama_chains_tvl": ["model.external_models.bronze__defillama_chains"], "model.external_models.silver__defillama_perp_daily_volume": ["model.external_models.silver__defillama_perp_metrics"], "model.external_models.silver__defillama_bridge_volume_by_chain": ["model.external_models.bronze__defillama_bridges", "source.external_models.crosschain_defi.ez_bridge_activity"], "model.external_models.silver__defillama_protocol_tvl_history": ["model.external_models.bronze__defillama_protocol_tvl_history", "model.external_models.defillama__dim_protocols"], "model.external_models.silver__defillama_protocol_tvl": ["model.external_models.bronze__defillama_protocol_tvl", "model.external_models.silver__defillama_protocol_tvl_history"], "model.external_models.silver__defillama_protocols": ["model.external_models.bronze__defillama_protocols", "model.external_models.bronze__defillama_protocols_FR"], "model.external_models.silver__defillama_options_notional": [], "model.external_models.silver__defillama_bridge_volume": ["model.external_models.bronze__defillama_bridges"], "model.external_models.silver__defillama_investors": ["model.external_models.silver__defillama_raises"], "model.external_models.silver__defillama_protocol_fees": [], "model.external_models.silver__defillama_stablecoin_supply": ["model.external_models.bronze__defillama_stablecoin_supply", "model.external_models.bronze__defillama_stablecoins"], "model.external_models.silver__defillama_pool_yields": [], "model.external_models.silver__defillama_protocol_revenue": [], "model.external_models.silver__defillama_stablecoin_metrics": ["model.external_models.bronze__defillama_stablecoin_metrics", "model.external_models.bronze__defillama_stablecoin_metrics_FR"], "model.external_models.silver__defillama_perp_metrics": ["model.external_models.bronze__defillama_perp_metrics", "model.external_models.bronze__defillama_perp_metrics_FR"], "model.external_models.silver__defillama_options_premium": [], "model.external_models.silver__defillama_usdt_usdc_supply": ["model.external_models.bronze__defillama_stablecoins", "model.external_models.bronze__defillama_usdc_usdt_supply"], "model.external_models.silver__defillama_raises": ["model.external_models.bronze__defillama_raises"], "model.external_models.streamline__defillama_protocol_historical_complete": ["model.external_models.bronze__defillama_protocol_historical", "model.external_models.bronze__defillama_protocol_historical_FR"], "model.external_models.streamline__defillama_protocol_historical": ["model.external_models.defillama__dim_protocols", "model.external_models.streamline__defillama_protocol_historical_complete", "seed.external_models.bronze__defillama_protocol_tvl_historical_response_sizes"], "model.external_models.streamline__defillama_perp_metrics": ["model.external_models.bronze__defillama_perps"], "model.external_models.streamline__defillama_protocols": [], "model.external_models.streamline__defillama_stablecoin_metrics": ["model.external_models.bronze__defillama_stablecoins"], "model.external_models.bronze__defillama_perp_metrics_FR": ["source.external_models.bronze_streamline.defillama_perp_metrics"], "model.external_models.bronze__defillama_stablecoin_metrics_FR": ["source.external_models.bronze_streamline.defillama_stablecoin_metrics"], "model.external_models.bronze__defillama_protocols_FR": ["source.external_models.bronze_streamline.defillama_protocols"], "model.external_models.bronze__defillama_protocols": ["source.external_models.bronze_streamline.defillama_protocols"], "model.external_models.bronze__defillama_perp_metrics": ["source.external_models.bronze_streamline.defillama_perp_metrics"], "model.external_models.bronze__defillama_stablecoin_metrics": ["source.external_models.bronze_streamline.defillama_stablecoin_metrics"], "model.external_models.bronze__defillama_protocol_historical_FR": ["source.external_models.bronze_streamline.defillama_protocol_historical"], "model.external_models.bronze__defillama_protocol_historical": ["source.external_models.bronze_streamline.defillama_protocol_historical"], "model.external_models.defillama__fact_pool_yields": ["model.external_models.silver__defillama_pool_yields"], "model.external_models.defillama__fact_protocol_fees_revenue": ["model.external_models.silver__defillama_protocol_fees", "model.external_models.silver__defillama_protocol_revenue"], "model.external_models.defillama__dim_stablecoins": ["model.external_models.bronze__defillama_stablecoins"], "model.external_models.defillama__ez_investors": ["model.external_models.silver__defillama_investors"], "model.external_models.defillama__dim_perps": ["model.external_models.bronze__defillama_perps"], "model.external_models.defillama__dim_chains": ["model.external_models.bronze__defillama_chainlist"], "model.external_models.defillama__ez_stablecoin_metrics": ["model.external_models.bronze__defillama_stablecoins", "model.external_models.silver__defillama_stablecoin_metrics"], "model.external_models.defillama__fact_raises": ["model.external_models.silver__defillama_raises"], "model.external_models.defillama__dim_protocols": ["model.external_models.silver__defillama_protocols"], "model.external_models.defillama__fact_dex_volume": ["model.external_models.silver__defillama_dex_volume"], "model.external_models.defillama__fact_chain_tvl": ["model.external_models.silver__defillama_chains_tvl"], "model.external_models.defillama__fact_protocol_tvl": ["model.external_models.silver__defillama_protocol_tvl"], "model.external_models.defillama__fact_stablecoin_supply": ["model.external_models.silver__defillama_stablecoin_supply"], "model.external_models.defillama__dim_bridges": ["model.external_models.bronze__defillama_bridges"], "model.external_models.defillama__dim_dexes": ["model.external_models.bronze__defillama_dexes"], "model.external_models.defillama__fact_bridge_volume": ["model.external_models.silver__defillama_bridge_volume"], "model.external_models.defillama__dim_pools": ["seed.external_models.bronze__defillama_api_pools_20230209_131432"], "model.external_models.defillama__fact_usdt_usdc_supply": ["model.external_models.silver__defillama_usdt_usdc_supply"], "model.external_models.defillama__fact_options_volume": ["model.external_models.silver__defillama_options_notional", "model.external_models.silver__defillama_options_premium"], "model.external_models.defillama__fact_perp_volume": ["model.external_models.silver__defillama_perp_daily_volume"], "model.external_models.defillama__fact_bridge_volume_by_chain": ["model.external_models.silver__defillama_bridge_volume_by_chain"], "model.external_models.bronze__defillama_dexes": [], "model.external_models.bronze__defillama_stablecoin_supply": ["model.external_models.bronze__defillama_stablecoins"], "model.external_models.bronze__defillama_chains": [], "model.external_models.bronze__defillama_bridges": [], "model.external_models.bronze__defillama_stablecoins": [], "model.external_models.bronze__defillama_raises": [], "model.external_models.bronze__defillama_protocol_tvl": [], "model.external_models.bronze__defillama_protocol_tvl_history": ["model.external_models.bronze__defillama_protocol_historical", "model.external_models.bronze__defillama_protocol_historical_FR"], "model.external_models.bronze__defillama_chainlist": [], "model.external_models.bronze__defillama_perps": [], "model.external_models.bronze__defillama_usdc_usdt_supply": ["seed.external_models.bronze__defillama_usdt_usdc_chain_seed"], "model.external_models.streamline__bitquery_realtime": ["model.external_models.streamline__bitquery_complete", "model.external_models.streamline__bitquery_metrics"], "model.external_models.streamline__bitquery_complete": ["model.external_models.bronze__bitquery", "model.external_models.bronze__bitquery_FR"], "model.external_models.streamline__bitquery_metrics": ["source.external_models.crosschain_core.dim_dates"], "model.external_models.bitquery__active_users": ["model.external_models.bronze__bitquery", "model.external_models.bronze__bitquery_FR"], "model.external_models.bitquery__tx_count": ["model.external_models.bronze__bitquery", "model.external_models.bronze__bitquery_FR"], "model.external_models.bronze__bitquery_FR": ["source.external_models.bronze_streamline.bitquery"], "model.external_models.bronze__bitquery": ["source.external_models.bronze_streamline.bitquery"], "model.external_models.silver__artemis": ["model.external_models.bronze__artemis", "model.external_models.bronze__artemis_FR"], "model.external_models.streamline__artemis_metrics": ["source.external_models.crosschain_core.dim_dates"], "model.external_models.streamline__artemis_realtime": ["model.external_models.streamline__artemis_complete", "model.external_models.streamline__artemis_metrics"], "model.external_models.streamline__artemis_complete": ["model.external_models.bronze__artemis", "model.external_models.bronze__artemis_FR"], "model.external_models.artemis__tx_count": ["model.external_models.silver__artemis"], "model.external_models.artemis__active_users": ["model.external_models.silver__artemis"], "model.external_models.bronze__artemis_FR": ["source.external_models.bronze_streamline.artemis"], "model.external_models.bronze__artemis": ["source.external_models.bronze_streamline.artemis"], "model.external_models.blast__fact_leaderboard": ["model.external_models.bronze__blast_leaderboard"], "model.external_models.bronze__blast_leaderboard": [], "model.external_models.tokenflow_starknet__decoded_events": ["source.external_models.starknet_snapshot.events"], "model.external_models.tokenflow_starknet__decoded_traces": ["source.external_models.starknet_snapshot.traces"], "model.external_models.tokenflow_starknet__l1_data_blocks": ["source.external_models.starknet_snapshot.l1_blocks"], "model.external_models.tokenflow_starknet__decoded_blocks": ["source.external_models.starknet_snapshot.blocks"], "model.external_models.tokenflow_starknet__decoded_messages": ["source.external_models.starknet_snapshot.messages"], "model.external_models.tokenflow_starknet__l1_data_contracts": ["source.external_models.starknet_snapshot.l1_contracts"], "model.external_models.tokenflow_starknet__l1_data_messages": ["source.external_models.starknet_snapshot.l1_messages"], "model.external_models.tokenflow_starknet__l1_data_storage_diffs": ["source.external_models.starknet_snapshot.l1_storage_diffs"], "model.external_models.tokenflow_starknet__decoded_transactions": ["source.external_models.starknet_snapshot.transactions"], "model.external_models.farcaster__fact_blocks": ["source.external_models.external_bronze.farcaster_blocks"], "model.external_models.farcaster__fact_channel_follows": ["source.external_models.external_bronze.farcaster_channel_follows"], "model.external_models.farcaster__fact_reactions": ["source.external_models.external_bronze.farcaster_reactions"], "model.external_models.farcaster__fact_user_data": ["source.external_models.external_bronze.farcaster_user_data"], "model.external_models.farcaster__dim_profile_with_addresses": ["source.external_models.external_bronze.farcaster_profile_with_addresses"], "model.external_models.farcaster__dim_fnames": ["source.external_models.external_bronze.farcaster_fnames"], "model.external_models.farcaster__fact_storage": ["source.external_models.external_bronze.farcaster_storage"], "model.external_models.farcaster__fact_casts": ["source.external_models.external_bronze.farcaster_casts"], "model.external_models.farcaster__fact_links": ["source.external_models.external_bronze.farcaster_links"], "model.external_models.farcaster__fact_warpcast_power_users": ["source.external_models.external_bronze.farcaster_warpcast_power_users"], "model.external_models.farcaster__fact_signers": ["source.external_models.external_bronze.farcaster_signers"], "model.external_models.farcaster__dim_fids": ["source.external_models.external_bronze.farcaster_fids"], "model.external_models.farcaster__fact_verifications": ["source.external_models.external_bronze.farcaster_verifications"], "model.external_models.silver__layerzero_txs_snapshot": ["model.external_models.bronze__layerzero_txs_snapshot1"], "model.external_models.layerzero__fact_transactions_snapshot": ["model.external_models.silver__layerzero_txs_snapshot"], "model.external_models.bronze__layerzero_txs_snapshot1": ["source.external_models.layerzero.transactions"], "model.external_models.silver__flashbots_mev_txs": ["model.external_models.bronze__flashbots_mev_txs", "model.external_models.bronze__flashbots_mev_txs_fr"], "model.external_models.silver__flashbots_protect_txs": ["model.external_models.bronze__flashbots_protect_txs", "model.external_models.bronze__flashbots_protect_txs_fr"], "model.external_models.flashbots__fact_protect_transactions": ["model.external_models.silver__flashbots_protect_txs"], "model.external_models.flashbots__fact_mevshare_transactions": ["model.external_models.silver__flashbots_mev_txs"], "model.external_models.bronze__flashbots_mev_txs": ["source.external_models.flashbots.mev"], "model.external_models.bronze__flashbots_mev_txs_fr": ["source.external_models.flashbots.mev"], "model.external_models.bronze__flashbots_protect_txs_fr": ["source.external_models.flashbots.protect"], "model.external_models.bronze__flashbots_protect_txs": ["source.external_models.flashbots.protect"], "seed.external_models.bronze__defillama_api_pools_20230209_131432": [], "seed.external_models.bronze__defillama_protocol_tvl_historical_response_sizes": [], "seed.external_models.bronze__defillama_usdt_usdc_chain_seed": [], "seed.external_models.bronze__verified_tokenlist_seed": [], "operation.external_models.external_models-on-run-start-0": [], "operation.external_models.external_models-on-run-end-0": [], "model.livequery_models.live__allow_list": ["model.livequery_models.live"], "model.livequery_models._eth__decoded_logs": ["source.livequery_models.ethereum_core.ez_decoded_event_logs"], "model.livequery_models._eth__logs": ["source.livequery_models.ethereum_core.fact_event_logs"], "model.livequery_models._evm__abi_map": ["source.livequery_models.crosschain.dim_evm_event_abis"], "model.livequery_models._evm__contracts_map": ["source.livequery_models.crosschain.dim_contracts"], "model.livequery_models._evm__native_symbol_map": [], "model.livequery_models.gnosis__mainnet": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.fantom__mainnet": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.ethereum__mainnet": ["model.livequery_models._eth__decoded_logs", "model.livequery_models._eth__logs", "model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.bsc__testnet": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.avalanche_c__testnet": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.ethereum__sepolia": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.harmony__mainnet": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.avalanche_c__mainnet": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.optimism__goerli": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.harmony__testnet": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.optimism__mainnet": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.base__goerli": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.polygon__mainnet": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.polygon__testnet": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.arbitrum_nova__mainnet": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.base__mainnet": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.ethereum__goerli": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.polygon_zkevm__mainnet": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.celo__mainnet": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.bsc__mainnet": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.arbitrum_one__mainnet": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.arbitrum_one__goerli": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.polygon_zkevm__testnet": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map", "model.livequery_models.live", "model.livequery_models.utils"], "model.livequery_models.transpose__": ["model.livequery_models.live"], "model.livequery_models.credmark_utils__": ["model.livequery_models.live"], "model.livequery_models.opensea__": ["model.livequery_models.live"], "model.livequery_models.stakingrewards__": ["model.livequery_models.live"], "model.livequery_models.subquery__": ["model.livequery_models.live"], "model.livequery_models.topshot__": ["model.livequery_models.live"], "model.livequery_models.allday__": ["model.livequery_models.live"], "model.livequery_models.coingecko__": ["model.livequery_models.live"], "model.livequery_models.dapplooker__": ["model.livequery_models.live"], "model.livequery_models.claude_utils__claude_utils": ["model.livequery_models.live"], "model.livequery_models.claude__": ["model.livequery_models.live"], "model.livequery_models.strangelove__": ["model.livequery_models.live"], "model.livequery_models.fred__": ["model.livequery_models.live"], "model.livequery_models.espn__": ["model.livequery_models.live"], "model.livequery_models.solscan__": ["model.livequery_models.live"], "model.livequery_models.dappradar__": ["model.livequery_models.live"], "model.livequery_models.covalent__": ["model.livequery_models.live"], "model.livequery_models.deepnftvalue__": ["model.livequery_models.live"], "model.livequery_models.github_utils__github_utils": ["model.livequery_models.live"], "model.livequery_models.github_actions__github_utils": ["model.livequery_models.github_utils__github_utils", "model.livequery_models.live"], "model.livequery_models.nftscan__": ["model.livequery_models.live"], "model.livequery_models.chainbase_utils__": ["model.livequery_models.live"], "model.livequery_models.snapshot__": ["model.livequery_models.live"], "model.livequery_models.reservoir__": ["model.livequery_models.live"], "model.livequery_models.defillama__": ["model.livequery_models.live"], "model.livequery_models.bitquery__": ["model.livequery_models.live"], "model.livequery_models.helius_apis__helius_utils": ["model.livequery_models.helius_utils__helius_utils", "model.livequery_models.live"], "model.livequery_models.helius_utils__helius_utils": ["model.livequery_models.live"], "model.livequery_models.helius_das__helius_utils": ["model.livequery_models.helius_utils__helius_utils", "model.livequery_models.live"], "model.livequery_models.playgrounds__": ["model.livequery_models.live"], "model.livequery_models.zettablock__": ["model.livequery_models.live"], "model.livequery_models.quicknode_polygon_tokens__quicknode_utils": ["model.livequery_models.live", "model.livequery_models.quicknode_utils__quicknode_utils"], "model.livequery_models.quicknode_ethereum_nfts__quicknode_utils": ["model.livequery_models.live", "model.livequery_models.quicknode_utils__quicknode_utils"], "model.livequery_models.quicknode_utils__quicknode_utils": ["model.livequery_models.live"], "model.livequery_models.quicknode_solana_nfts__quicknode_utils": ["model.livequery_models.live", "model.livequery_models.quicknode_utils__quicknode_utils"], "model.livequery_models.quicknode_ethereum_tokens__quicknode_utils": ["model.livequery_models.live", "model.livequery_models.quicknode_utils__quicknode_utils"], "model.livequery_models.quicknode_polygon_nfts__quicknode_utils": ["model.livequery_models.live", "model.livequery_models.quicknode_utils__quicknode_utils"], "model.livequery_models.footprint_utils__footprint_utils": ["model.livequery_models.live"], "model.livequery_models.cmc__": ["model.livequery_models.live"], "model.livequery_models.apilayer__": ["model.livequery_models.live"], "model.livequery_models.zapper__": ["model.livequery_models.live"], "model.livequery_models.alchemy_tokens__alchemy_utils": ["model.livequery_models.alchemy_utils__alchemy_utils", "model.livequery_models.live"], "model.livequery_models.alchemy_transfers__alchemy_utils": ["model.livequery_models.alchemy_utils__alchemy_utils", "model.livequery_models.live"], "model.livequery_models.alchemy_nfts__alchemy_utils": ["model.livequery_models.alchemy_utils__alchemy_utils", "model.livequery_models.live"], "model.livequery_models.alchemy_utils__alchemy_utils": ["model.livequery_models.live"], "model.livequery_models.blockpour_utils__": ["model.livequery_models.live"], "model.livequery_models.live": ["model.livequery_models._live", "model.livequery_models._utils", "model.livequery_models.utils"], "model.livequery_models._utils": [], "model.livequery_models.secrets": ["model.livequery_models._utils", "model.livequery_models.live"], "model.livequery_models._live": [], "model.livequery_models.utils": ["model.livequery_models._utils"], "analysis.livequery_models.test_create_or_drop_function_from_config": [], "analysis.livequery_models.test_functions": [], "analysis.livequery_models.generate_test_udf_skeleton": [], "analysis.livequery_models.test_crud_udfs_in_schema": ["model.livequery_models._evm__abi_map", "model.livequery_models._evm__contracts_map", "model.livequery_models._evm__native_symbol_map"], "analysis.livequery_models.test_functions_py": [], "seed.livequery_models.live__verified_api_endpoints": [], "operation.livequery_models.livequery_models-on-run-start-0": [], "operation.livequery_models.livequery_models-on-run-end-0": [], "model.fsc_utils._datashare___create_udfs": [], "model.fsc_utils._datashare___create_gold": [], "test.external_models.not_null_silver__tokenlists_verified_tokens_API_URL.4d6117cb50": ["model.external_models.silver__tokenlists_verified_tokens"], "test.external_models.not_null_silver__tokenlists_verified_tokens_ADDRESS.d10abba80e": ["model.external_models.silver__tokenlists_verified_tokens"], "test.external_models.not_null_silver__tokenlists_verified_tokens_CHAIN_ID.8fdd7cfe55": ["model.external_models.silver__tokenlists_verified_tokens"], "test.external_models.dbt_utils_unique_combination_of_columns_silver__tokenlists_verified_tokens_API_URL__LOWER_ADDRESS___CHAIN_ID.ce00ef40ce": ["model.external_models.silver__tokenlists_verified_tokens"], "test.external_models.not_null_bronze__all_tokenlists_API_URL.4f84b31250": ["model.external_models.bronze__all_tokenlists"], "test.external_models.not_null_bronze__all_tokenlists_REQUEST.1e7047c6c4": ["model.external_models.bronze__all_tokenlists"], "test.external_models.dbt_utils_unique_combination_of_columns_bronze__all_tokenlists_API_URL__REQUEST.3ed201dea9": ["model.external_models.bronze__all_tokenlists"], "test.external_models.not_null_silver__polymarket_markets_CONDITION_ID.d534ff72dc": ["model.external_models.silver__polymarket_markets"], "test.external_models.not_null_silver__polymarket_markets__INSERTED_TIMESTAMP.3927deb926": ["model.external_models.silver__polymarket_markets"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_markets__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.eb4c915e91": ["model.external_models.silver__polymarket_markets"], "test.external_models.dbt_utils_unique_combination_of_columns_silver__polymarket_markets_CONDITION_ID.079735fed9": ["model.external_models.silver__polymarket_markets"], "test.external_models.not_null_bronze__polymarket_markets_CONDITION_ID.e746168184": ["model.external_models.bronze__polymarket_markets"], "test.external_models.not_null_bronze__polymarket_markets__INSERTED_TIMESTAMP.b2e066aada": ["model.external_models.bronze__polymarket_markets"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__polymarket_markets__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.de6501ee0b": ["model.external_models.bronze__polymarket_markets"], "test.external_models.not_null_silver_aptos__lync_metric.3d12e974b6": ["model.external_models.silver_aptos__lync"], "test.external_models.not_null_silver_aptos__lync_metric_count.902d0116f3": ["model.external_models.silver_aptos__lync"], "test.external_models.not_null_silver_aptos__lync_metric_amount.26188f96dc": ["model.external_models.silver_aptos__lync"], "test.external_models.not_null_silver_aptos__lync_metric_amount_in_usd.c567ac53f1": ["model.external_models.silver_aptos__lync"], "test.external_models.not_null_silver_aptos__shinam_metric_date.e87ed95074": ["model.external_models.silver_aptos__shinam"], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver_aptos__shinam_metric_date__day__3.d346ecf718": ["model.external_models.silver_aptos__shinam"], "test.external_models.not_null_silver__snapshot_proposals_PROPOSAL_ID.7025c6df25": ["model.external_models.silver__snapshot_proposals"], "test.external_models.not_null_silver__snapshot_proposals_CREATED_AT.6da88af9f6": ["model.external_models.silver__snapshot_proposals"], "test.external_models.not_null_silver__snapshot_proposals_PROPOSAL_START_TIME.9f5c3c7f1b": ["model.external_models.silver__snapshot_proposals"], "test.external_models.not_null_silver__snapshot_proposals_PROPOSAL_END_TIME.5f14be541b": ["model.external_models.silver__snapshot_proposals"], "test.external_models.not_null_silver__snapshot_proposals__INSERTED_TIMESTAMP.9b86eaedeb": ["model.external_models.silver__snapshot_proposals"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__snapshot_proposals__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.7931ee3896": ["model.external_models.silver__snapshot_proposals"], "test.external_models.dbt_utils_unique_combination_of_columns_silver__snapshot_proposals_PROPOSAL_ID.07e9b3a85b": ["model.external_models.silver__snapshot_proposals"], "test.external_models.not_null_silver__snapshot_users_ADDRESS.1dd18cb68e": ["model.external_models.silver__snapshot_users"], "test.external_models.not_null_silver__snapshot_users_CREATED_AT.0499e8afe9": ["model.external_models.silver__snapshot_users"], "test.external_models.not_null_silver__snapshot_users__INSERTED_TIMESTAMP.909a06b730": ["model.external_models.silver__snapshot_users"], "test.external_models.dbt_utils_unique_combination_of_columns_silver__snapshot_users_ADDRESS.9ea8a0645c": ["model.external_models.silver__snapshot_users"], "test.external_models.not_null_silver__snapshot_spaces_SPACE_ID.1e98e6593b": ["model.external_models.silver__snapshot_spaces"], "test.external_models.not_null_silver__snapshot_spaces_SPACE.b594675078": ["model.external_models.silver__snapshot_spaces"], "test.external_models.not_null_silver__snapshot_spaces__INSERTED_TIMESTAMP.9c97d87460": ["model.external_models.silver__snapshot_spaces"], "test.external_models.dbt_utils_unique_combination_of_columns_silver__snapshot_spaces_SPACE_ID.176897c79d": ["model.external_models.silver__snapshot_spaces"], "test.external_models.not_null_silver__snapshot_votes_VOTE_TIMESTAMP.bc2c7ab8f4": ["model.external_models.silver__snapshot_votes"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__snapshot_votes_VOTE_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.449807ec08": ["model.external_models.silver__snapshot_votes"], "test.external_models.not_null_silver__snapshot_votes_VOTER.f83f2638d0": ["model.external_models.silver__snapshot_votes"], "test.external_models.dbt_expectations_expect_column_values_to_match_regex_silver__snapshot_votes_VOTER__0_xX_0_9a_fA_F_.441303a55c": ["model.external_models.silver__snapshot_votes"], "test.external_models.not_null_silver__snapshot_votes_PROPOSAL_ID.a2a1e3cd20": ["model.external_models.silver__snapshot_votes"], "test.external_models.not_null_silver__snapshot_votes_VOTE_OPTION.749d690de9": ["model.external_models.silver__snapshot_votes"], "test.external_models.not_null_silver__snapshot_votes_VOTE_ID.3e87d455f6": ["model.external_models.silver__snapshot_votes"], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__snapshot_votes__INSERTED_TIMESTAMP__day__1.f824a44d33": ["model.external_models.silver__snapshot_votes"], "test.external_models.dbt_utils_unique_combination_of_columns_silver__snapshot_votes_VOTE_ID.2d7a58900a": ["model.external_models.silver__snapshot_votes"], "test.external_models.not_null_bronze__snapshot_votes_ID.03d01283f1": ["model.external_models.bronze__snapshot_votes"], "test.external_models.not_null_bronze__snapshot_votes_PROPOSAL_ID.fd52925536": ["model.external_models.bronze__snapshot_votes"], "test.external_models.not_null_bronze__snapshot_votes_VOTER.4c90295a96": ["model.external_models.bronze__snapshot_votes"], "test.external_models.not_null_bronze__snapshot_votes_VOTE_TIMESTAMP.3fa3f796a9": ["model.external_models.bronze__snapshot_votes"], "test.external_models.not_null_bronze__snapshot_votes_VOTE_OPTION.55945386d3": ["model.external_models.bronze__snapshot_votes"], "test.external_models.not_null_bronze__snapshot_votes__INSERTED_TIMESTAMP.22e6f3ebe5": ["model.external_models.bronze__snapshot_votes"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_votes__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.ca2bd30b51": ["model.external_models.bronze__snapshot_votes"], "test.external_models.dbt_utils_unique_combination_of_columns_bronze__snapshot_votes_ID.58b906fcef": ["model.external_models.bronze__snapshot_votes"], "test.external_models.not_null_bronze__snapshot_proposals_PROPOSAL_ID.43feeab1b7": ["model.external_models.bronze__snapshot_proposals"], "test.external_models.not_null_bronze__snapshot_proposals_CHOICES.9871e8bf95": ["model.external_models.bronze__snapshot_proposals"], "test.external_models.not_null_bronze__snapshot_proposals_SPACE_ID.226caec17f": ["model.external_models.bronze__snapshot_proposals"], "test.external_models.not_null_bronze__snapshot_proposals_CREATED_AT.159e8e2d9c": ["model.external_models.bronze__snapshot_proposals"], "test.external_models.not_null_bronze__snapshot_proposals_PROPOSAL_START_TIME.e3ff173f25": ["model.external_models.bronze__snapshot_proposals"], "test.external_models.not_null_bronze__snapshot_proposals_PROPOSAL_END_TIME.4cc9d3d569": ["model.external_models.bronze__snapshot_proposals"], "test.external_models.not_null_bronze__snapshot_proposals__INSERTED_TIMESTAMP.aa2872ddc3": ["model.external_models.bronze__snapshot_proposals"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_proposals__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.fbe74d6bb1": ["model.external_models.bronze__snapshot_proposals"], "test.external_models.dbt_utils_unique_combination_of_columns_bronze__snapshot_proposals_PROPOSAL_ID.4df591b4ac": ["model.external_models.bronze__snapshot_proposals"], "test.external_models.not_null_bronze__snapshot_spaces_SPACE_ID.a2937f04fc": ["model.external_models.bronze__snapshot_spaces"], "test.external_models.not_null_bronze__snapshot_spaces_SPACE.30110840bc": ["model.external_models.bronze__snapshot_spaces"], "test.external_models.not_null_bronze__snapshot_spaces__INSERTED_TIMESTAMP.b2a2ca6dee": ["model.external_models.bronze__snapshot_spaces"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_spaces__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.4a33bbc621": ["model.external_models.bronze__snapshot_spaces"], "test.external_models.dbt_utils_unique_combination_of_columns_bronze__snapshot_spaces_SPACE_ID.dcac8f89f2": ["model.external_models.bronze__snapshot_spaces"], "test.external_models.not_null_bronze__snapshot_users_ADDRESS.ca42f3f763": ["model.external_models.bronze__snapshot_users"], "test.external_models.not_null_bronze__snapshot_users_CREATED_AT.2912f9578e": ["model.external_models.bronze__snapshot_users"], "test.external_models.not_null_bronze__snapshot_users__INSERTED_TIMESTAMP.6fb9280682": ["model.external_models.bronze__snapshot_users"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_users__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.61c6d4b19e": ["model.external_models.bronze__snapshot_users"], "test.external_models.dbt_utils_unique_combination_of_columns_bronze__snapshot_users_ADDRESS.9c829aad58": ["model.external_models.bronze__snapshot_users"], "test.external_models.not_null_oklink__tam_BLOCKCHAIN.9dd7cae40c": [], "test.external_models.not_null_oklink__tam_AS_OF_DATE.f23bba1c8a": [], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_oklink__tam_AS_OF_DATE__day__2.b259a4cc0c": [], "test.external_models.not_null_oklink__tam_TOTAL_ADDRESSES.0794bb787c": [], "test.external_models.unique_oklink__tam_TAM_ID.5d0ddefb2f": [], "test.external_models.not_null_oklink__tx_count_BLOCKCHAIN.19d8c11da9": [], "test.external_models.not_null_oklink__tx_count_BLOCK_DATE.ab2e1232d8": [], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_oklink__tx_count_BLOCK_DATE__day__2.e0da2858e8": [], "test.external_models.not_null_oklink__tx_count_TX_COUNT.24ad5901d0": [], "test.external_models.unique_oklink__tx_count_TX_COUNT_ID.e3c27d411d": [], "test.external_models.not_null_oklink__contracts_BLOCKCHAIN.7ac207cc5f": [], "test.external_models.not_null_oklink__contracts_AS_OF_DATE.cd51b05b30": [], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_oklink__contracts_AS_OF_DATE__day__2.18e13a0259": [], "test.external_models.not_null_oklink__contracts_CONTRACT_COUNT.addc0fff5d": [], "test.external_models.unique_oklink__contracts_CONTRACTS_ID.068241a2ef": [], "test.external_models.not_null_oklink__active_users_BLOCKCHAIN.7d537a456c": [], "test.external_models.not_null_oklink__active_users_AS_OF_DATE.8148b5f03c": [], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_oklink__active_users_AS_OF_DATE__day__2.7a6b7c52ae": [], "test.external_models.not_null_oklink__active_users_ACTIVE_USERS.3011289ebb": [], "test.external_models.unique_oklink__active_users_ACTIVE_USERS_ID.60d02a848d": [], "test.external_models.not_null_silver__defillama_raises_RAISE_ID.a6c9cfda9b": ["model.external_models.silver__defillama_raises"], "test.external_models.not_null_silver__defillama_raises_PROJECT_NAME.e6a6854bbb": ["model.external_models.silver__defillama_raises"], "test.external_models.not_null_silver__defillama_raises_FUNDING_DATE.055464c7e9": ["model.external_models.silver__defillama_raises"], "test.external_models.not_null_silver__defillama_raises__INSERTED_TIMESTAMP.09318375f6": ["model.external_models.silver__defillama_raises"], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_raises_RAISE_ID.cbd412cee8": ["model.external_models.silver__defillama_raises"], "test.external_models.not_null_silver__defillama_protocol_fees_CHAIN.d434098292": ["model.external_models.silver__defillama_protocol_fees"], "test.external_models.not_null_silver__defillama_protocol_fees__INSERTED_TIMESTAMP.ce25594587": ["model.external_models.silver__defillama_protocol_fees"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocol_fees__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.5acc5c41a2": ["model.external_models.silver__defillama_protocol_fees"], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocol_fees__INSERTED_TIMESTAMP__day__2.0405088cbd": ["model.external_models.silver__defillama_protocol_fees"], "test.external_models.not_null_silver__defillama_protocol_fees_ID.e292c7143d": ["model.external_models.silver__defillama_protocol_fees"], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_protocol_fees_ID.03cc375156": ["model.external_models.silver__defillama_protocol_fees"], "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_BRIDGE_ID.a614975e3c": ["model.external_models.silver__defillama_bridge_volume_by_chain"], "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_BRIDGE.b6f114b68a": ["model.external_models.silver__defillama_bridge_volume_by_chain"], "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_CHAIN.eff9323ee0": ["model.external_models.silver__defillama_bridge_volume_by_chain"], "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_DATE.c6d68128a2": ["model.external_models.silver__defillama_bridge_volume_by_chain"], "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_DEPOSIT_TXS.047faf98b4": ["model.external_models.silver__defillama_bridge_volume_by_chain"], "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_DEPOSIT_USD.615b5cbf42": ["model.external_models.silver__defillama_bridge_volume_by_chain"], "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_WITHDRAW_TXS.7117c612b3": ["model.external_models.silver__defillama_bridge_volume_by_chain"], "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_WITHDRAW_USD.279d267331": ["model.external_models.silver__defillama_bridge_volume_by_chain"], "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_INSERTED_TIMESTAMP.88d1482ef7": ["model.external_models.silver__defillama_bridge_volume_by_chain"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_bridge_volume_by_chain_INSERTED_TIMESTAMP__TIMESTAMP_NTZ.886365f9bf": ["model.external_models.silver__defillama_bridge_volume_by_chain"], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_bridge_volume_by_chain_INSERTED_TIMESTAMP__day__2.84922787bf": ["model.external_models.silver__defillama_bridge_volume_by_chain"], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_bridge_volume_by_chain_defillama_bridge_vol_by_chain_id.335bdf13f6": ["model.external_models.silver__defillama_bridge_volume_by_chain"], "test.external_models.not_null_silver__defillama_options_notional_CHAIN.17704c94d3": ["model.external_models.silver__defillama_options_notional"], "test.external_models.not_null_silver__defillama_options_notional__INSERTED_TIMESTAMP.1b2760a764": ["model.external_models.silver__defillama_options_notional"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_options_notional__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.954e6abb0e": ["model.external_models.silver__defillama_options_notional"], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_options_notional__INSERTED_TIMESTAMP__day__2.bfa1ced883": ["model.external_models.silver__defillama_options_notional"], "test.external_models.not_null_silver__defillama_options_notional_ID.797f360571": ["model.external_models.silver__defillama_options_notional"], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_options_notional_ID.4ed2e3fa3f": ["model.external_models.silver__defillama_options_notional"], "test.external_models.not_null_silver__defillama_bridge_volume_BRIDGE_ID.e186492e1d": ["model.external_models.silver__defillama_bridge_volume"], "test.external_models.not_null_silver__defillama_bridge_volume_BRIDGE.2758ecc03f": ["model.external_models.silver__defillama_bridge_volume"], "test.external_models.not_null_silver__defillama_bridge_volume__INSERTED_TIMESTAMP.2d38284c8d": ["model.external_models.silver__defillama_bridge_volume"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_bridge_volume__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.98985142f9": ["model.external_models.silver__defillama_bridge_volume"], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_bridge_volume__INSERTED_TIMESTAMP__day__2.6817773edd": ["model.external_models.silver__defillama_bridge_volume"], "test.external_models.not_null_silver__defillama_bridge_volume_ID.553904b651": ["model.external_models.silver__defillama_bridge_volume"], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_bridge_volume_BRIDGE_ID__TIMESTAMP.84d1376ea1": ["model.external_models.silver__defillama_bridge_volume"], "test.external_models.not_null_silver__defillama_perp_metrics_timestamp.472db55af5": ["model.external_models.silver__defillama_perp_metrics"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_timestamp__DATE.81996737ac": ["model.external_models.silver__defillama_perp_metrics"], "test.external_models.not_null_silver__defillama_perp_metrics_protocol_id.14c6ac4f05": ["model.external_models.silver__defillama_perp_metrics"], "test.external_models.not_null_silver__defillama_perp_metrics_category.03f85efead": ["model.external_models.silver__defillama_perp_metrics"], "test.external_models.not_null_silver__defillama_perp_metrics_name.7b2aa5872c": ["model.external_models.silver__defillama_perp_metrics"], "test.external_models.not_null_silver__defillama_perp_metrics_display_name.f6a537f455": ["model.external_models.silver__defillama_perp_metrics"], "test.external_models.not_null_silver__defillama_perp_metrics_module.1ee1cd9d64": ["model.external_models.silver__defillama_perp_metrics"], "test.external_models.not_null_silver__defillama_perp_metrics_logo.cd14f778d5": ["model.external_models.silver__defillama_perp_metrics"], "test.external_models.not_null_silver__defillama_perp_metrics_chains.3ef0fddd80": ["model.external_models.silver__defillama_perp_metrics"], "test.external_models.not_null_silver__defillama_perp_metrics_protocol_type.4823df5948": ["model.external_models.silver__defillama_perp_metrics"], "test.external_models.not_null_silver__defillama_perp_metrics_methodology_url.0bf67e7b14": ["model.external_models.silver__defillama_perp_metrics"], "test.external_models.not_null_silver__defillama_perp_metrics_methodology.8dfe586cb6": ["model.external_models.silver__defillama_perp_metrics"], "test.external_models.not_null_silver__defillama_perp_metrics_protocol_slug.2cb6a79b30": ["model.external_models.silver__defillama_perp_metrics"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_24h__FLOAT.8ec5c7045d": ["model.external_models.silver__defillama_perp_metrics"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_48h_to_24h__FLOAT.ebb833856d": ["model.external_models.silver__defillama_perp_metrics"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_7d__FLOAT.8b6e748f8b": ["model.external_models.silver__defillama_perp_metrics"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_30d__FLOAT.27077c7b0e": ["model.external_models.silver__defillama_perp_metrics"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_all_time__FLOAT.896c72813b": ["model.external_models.silver__defillama_perp_metrics"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_change_1d__FLOAT.f2337eadc0": ["model.external_models.silver__defillama_perp_metrics"], "test.external_models.not_null_silver__defillama_perp_metrics_total_data_chart_breakdown.eeccb8e45f": ["model.external_models.silver__defillama_perp_metrics"], "test.external_models.not_null_silver__defillama_perp_metrics_defillama_perp_metrics_id.ec9ff8860a": ["model.external_models.silver__defillama_perp_metrics"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics__inserted_timestamp__TIMESTAMP_NTZ.07b57d6775": ["model.external_models.silver__defillama_perp_metrics"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_inserted_timestamp__TIMESTAMP_NTZ.c65246177c": ["model.external_models.silver__defillama_perp_metrics"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_modified_timestamp__TIMESTAMP_NTZ.5559f95279": ["model.external_models.silver__defillama_perp_metrics"], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_perp_metrics_protocol_id__timestamp.132646d40b": ["model.external_models.silver__defillama_perp_metrics"], "test.external_models.not_null_silver__defillama_stablecoin_metrics__INSERTED_TIMESTAMP.e75bd7f082": ["model.external_models.silver__defillama_stablecoin_metrics"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_stablecoin_metrics__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.0771cb7209": ["model.external_models.silver__defillama_stablecoin_metrics"], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_stablecoin_metrics__INSERTED_TIMESTAMP__day__2.f04ba5a494": ["model.external_models.silver__defillama_stablecoin_metrics"], "test.external_models.not_null_silver__defillama_stablecoin_metrics_DATE_DAY.897365ca0a": ["model.external_models.silver__defillama_stablecoin_metrics"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_stablecoin_metrics_DATE_DAY__DATE.2ef937fbbe": ["model.external_models.silver__defillama_stablecoin_metrics"], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_stablecoin_metrics_DATE_DAY__day__2.62280edb3d": ["model.external_models.silver__defillama_stablecoin_metrics"], "test.external_models.not_null_silver__defillama_stablecoin_metrics_DEFILLAMA_STABLECOIN_METRICS_ID.1e22190956": ["model.external_models.silver__defillama_stablecoin_metrics"], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_stablecoin_metrics_DEFILLAMA_STABLECOIN_METRICS_ID.658e9db88b": ["model.external_models.silver__defillama_stablecoin_metrics"], "test.external_models.not_null_silver__defillama_usdt_usdc_supply__INSERTED_TIMESTAMP.f669b526df": ["model.external_models.silver__defillama_usdt_usdc_supply"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_usdt_usdc_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.9f973f7fd3": ["model.external_models.silver__defillama_usdt_usdc_supply"], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_usdt_usdc_supply__INSERTED_TIMESTAMP__day__2.08f1f58f98": ["model.external_models.silver__defillama_usdt_usdc_supply"], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_usdt_usdc_supply_DEFILLAMA_USDC_USDT_SUPPLY_ID.7a5a092f00": ["model.external_models.silver__defillama_usdt_usdc_supply"], "test.external_models.not_null_silver__defillama_protocol_tvl__INSERTED_TIMESTAMP.df3fc95018": ["model.external_models.silver__defillama_protocol_tvl"], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocol_tvl__INSERTED_TIMESTAMP__day__1.fcd40b4f7c": ["model.external_models.silver__defillama_protocol_tvl"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocol_tvl__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.67afb5c2b5": ["model.external_models.silver__defillama_protocol_tvl"], "test.external_models.not_null_silver__defillama_protocol_tvl_DEFILLAMA_TVL_ID.42ecdf436d": ["model.external_models.silver__defillama_protocol_tvl"], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_protocol_tvl_DEFILLAMA_TVL_ID.8db584bebb": ["model.external_models.silver__defillama_protocol_tvl"], "test.external_models.not_null_silver__defillama_perp_daily_volume_date.ed62238679": ["model.external_models.silver__defillama_perp_daily_volume"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_date__DATE.fb8b5499bd": ["model.external_models.silver__defillama_perp_daily_volume"], "test.external_models.not_null_silver__defillama_perp_daily_volume_chain.45bd739186": ["model.external_models.silver__defillama_perp_daily_volume"], "test.external_models.not_null_silver__defillama_perp_daily_volume_protocol_id.cdcfe05028": ["model.external_models.silver__defillama_perp_daily_volume"], "test.external_models.not_null_silver__defillama_perp_daily_volume_protocol_slug.5e56702a0d": ["model.external_models.silver__defillama_perp_daily_volume"], "test.external_models.not_null_silver__defillama_perp_daily_volume_protocol.d43869ecf4": ["model.external_models.silver__defillama_perp_daily_volume"], "test.external_models.not_null_silver__defillama_perp_daily_volume_volume.dda7a42480": ["model.external_models.silver__defillama_perp_daily_volume"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_volume__FLOAT.227148bece": ["model.external_models.silver__defillama_perp_daily_volume"], "test.external_models.not_null_silver__defillama_perp_daily_volume_defillama_perp_metrics_id.fc9e7a49b1": ["model.external_models.silver__defillama_perp_daily_volume"], "test.external_models.not_null_silver__defillama_perp_daily_volume_defillama_perp_daily_volume_id.050418fda4": ["model.external_models.silver__defillama_perp_daily_volume"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume__inserted_timestamp__TIMESTAMP_NTZ.a7334119d7": ["model.external_models.silver__defillama_perp_daily_volume"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_inserted_timestamp__TIMESTAMP_NTZ.f65eb01509": ["model.external_models.silver__defillama_perp_daily_volume"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_modified_timestamp__TIMESTAMP_NTZ.23255c8acd": ["model.external_models.silver__defillama_perp_daily_volume"], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_perp_daily_volume_protocol_id__date__chain.acc3fd514c": ["model.external_models.silver__defillama_perp_daily_volume"], "test.external_models.not_null_silver__defillama_investors_INVESTOR.2b2a8c6e9a": ["model.external_models.silver__defillama_investors"], "test.external_models.not_null_silver__defillama_investors__INSERTED_TIMESTAMP.a9348ff319": ["model.external_models.silver__defillama_investors"], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_investors_INVESTOR.a7623080b4": ["model.external_models.silver__defillama_investors"], "test.external_models.not_null_silver__defillama_stablecoin_supply__INSERTED_TIMESTAMP.7e00b9d5c5": ["model.external_models.silver__defillama_stablecoin_supply"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_stablecoin_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.3653e5a1cf": ["model.external_models.silver__defillama_stablecoin_supply"], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_stablecoin_supply__INSERTED_TIMESTAMP__day__2.8028729672": ["model.external_models.silver__defillama_stablecoin_supply"], "test.external_models.not_null_silver__defillama_stablecoin_supply_DEFILLAMA_STABLECOIN_SUPPLY_ID.072450f5e2": ["model.external_models.silver__defillama_stablecoin_supply"], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_stablecoin_supply_DEFILLAMA_STABLECOIN_SUPPLY_ID.7bf8bbe21c": ["model.external_models.silver__defillama_stablecoin_supply"], "test.external_models.not_null_silver__defillama_dex_volume_CHAIN.99ef0dec7d": ["model.external_models.silver__defillama_dex_volume"], "test.external_models.not_null_silver__defillama_dex_volume__INSERTED_TIMESTAMP.1ccec92206": ["model.external_models.silver__defillama_dex_volume"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_dex_volume__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.8e26780493": ["model.external_models.silver__defillama_dex_volume"], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_dex_volume__INSERTED_TIMESTAMP__day__1.bef8fa61d0": ["model.external_models.silver__defillama_dex_volume"], "test.external_models.not_null_silver__defillama_dex_volume_ID.4eac69b2aa": ["model.external_models.silver__defillama_dex_volume"], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_dex_volume_ID.93100978dc": ["model.external_models.silver__defillama_dex_volume"], "test.external_models.not_null_silver__defillama_pool_yields__INSERTED_TIMESTAMP.cf82b3d544": ["model.external_models.silver__defillama_pool_yields"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_pool_yields__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.1a6d978404": ["model.external_models.silver__defillama_pool_yields"], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_pool_yields__INSERTED_TIMESTAMP__day__2.2f63a4fa45": ["model.external_models.silver__defillama_pool_yields"], "test.external_models.not_null_silver__defillama_pool_yields_TIMESTAMP.37b3272aba": ["model.external_models.silver__defillama_pool_yields"], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_pool_yields_DEFILLAMA_YIELD_ID.b59e60eeda": ["model.external_models.silver__defillama_pool_yields"], "test.external_models.not_null_silver__defillama_protocols__INSERTED_TIMESTAMP.59c4e95c9c": ["model.external_models.silver__defillama_protocols"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocols__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.54e4afda8f": ["model.external_models.silver__defillama_protocols"], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocols__INSERTED_TIMESTAMP__day__2.420a65084a": ["model.external_models.silver__defillama_protocols"], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_protocols_DEFILLAMA_PROTOCOLS_ID.8a2a9bf6a7": ["model.external_models.silver__defillama_protocols"], "test.external_models.not_null_silver__defillama_chains_tvl__INSERTED_TIMESTAMP.72b4261db1": ["model.external_models.silver__defillama_chains_tvl"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_chains_tvl__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.a067d1eac2": ["model.external_models.silver__defillama_chains_tvl"], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_chains_tvl__INSERTED_TIMESTAMP__day__2.187b24cdd3": ["model.external_models.silver__defillama_chains_tvl"], "test.external_models.not_null_silver__defillama_chains_tvl_ID.4053d1c479": ["model.external_models.silver__defillama_chains_tvl"], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_chains_tvl_CHAIN__TIMESTAMP.1bc2091543": ["model.external_models.silver__defillama_chains_tvl"], "test.external_models.not_null_silver__defillama_options_premium_CHAIN.a58ffe7b2b": ["model.external_models.silver__defillama_options_premium"], "test.external_models.not_null_silver__defillama_options_premium__INSERTED_TIMESTAMP.3d9bd5a105": ["model.external_models.silver__defillama_options_premium"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_options_premium__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.2280d7f2a6": ["model.external_models.silver__defillama_options_premium"], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_options_premium__INSERTED_TIMESTAMP__day__2.b0dc92c970": ["model.external_models.silver__defillama_options_premium"], "test.external_models.not_null_silver__defillama_options_premium_ID.8c8d1dbefe": ["model.external_models.silver__defillama_options_premium"], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_options_premium_ID.f2c952c29e": ["model.external_models.silver__defillama_options_premium"], "test.external_models.not_null_silver__defillama_protocol_revenue_CHAIN.aaf93a9585": ["model.external_models.silver__defillama_protocol_revenue"], "test.external_models.not_null_silver__defillama_protocol_revenue__INSERTED_TIMESTAMP.960b8d7b66": ["model.external_models.silver__defillama_protocol_revenue"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocol_revenue__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.2025c52a03": ["model.external_models.silver__defillama_protocol_revenue"], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocol_revenue__INSERTED_TIMESTAMP__day__2.9255e527b7": ["model.external_models.silver__defillama_protocol_revenue"], "test.external_models.not_null_silver__defillama_protocol_revenue_ID.fc3053c7bf": ["model.external_models.silver__defillama_protocol_revenue"], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_protocol_revenue_ID.f28e235429": ["model.external_models.silver__defillama_protocol_revenue"], "test.external_models.not_null_silver__defillama_protocol_tvl_history_timestamp.603a6ed60f": ["model.external_models.silver__defillama_protocol_tvl_history"], "test.external_models.not_null_silver__defillama_protocol_tvl_history_protocol_id.e8f35f7758": ["model.external_models.silver__defillama_protocol_tvl_history"], "test.external_models.not_null_silver__defillama_protocol_tvl_history_chain.00929371cd": ["model.external_models.silver__defillama_protocol_tvl_history"], "test.external_models.not_null_silver__defillama_protocol_tvl_history_chain_tvl.dd69677c11": ["model.external_models.silver__defillama_protocol_tvl_history"], "test.external_models.unique_silver__defillama_protocol_tvl_history_defillama_protocol_tvl_history_id.7a26f80f27": ["model.external_models.silver__defillama_protocol_tvl_history"], "test.external_models.not_null_silver__defillama_protocol_tvl_history_defillama_protocol_tvl_history_id.0c1700be63": ["model.external_models.silver__defillama_protocol_tvl_history"], "test.external_models.not_null_silver__defillama_protocol_tvl_history__inserted_timestamp.3a00bdcdaf": ["model.external_models.silver__defillama_protocol_tvl_history"], "test.external_models.not_null_defillama__ez_stablecoin_metrics_chain.a31537394e": ["model.external_models.defillama__ez_stablecoin_metrics"], "test.external_models.not_null_defillama__ez_stablecoin_metrics_date_day.8be6c5ded3": ["model.external_models.defillama__ez_stablecoin_metrics"], "test.external_models.not_null_defillama__ez_stablecoin_metrics_stablecoin_id.550d95d3ce": ["model.external_models.defillama__ez_stablecoin_metrics"], "test.external_models.not_null_defillama__ez_stablecoin_metrics_stablecoin.8bd8a24860": ["model.external_models.defillama__ez_stablecoin_metrics"], "test.external_models.not_null_defillama__ez_stablecoin_metrics_symbol.b7badaccb5": ["model.external_models.defillama__ez_stablecoin_metrics"], "test.external_models.not_null_defillama__ez_stablecoin_metrics_peg_type.17890d14ad": ["model.external_models.defillama__ez_stablecoin_metrics"], "test.external_models.not_null_defillama__ez_stablecoin_metrics_peg_mechanism.4ca9af4400": ["model.external_models.defillama__ez_stablecoin_metrics"], "test.external_models.unique_defillama__ez_stablecoin_metrics_ez_stablecoin_metrics_id.bf19235079": ["model.external_models.defillama__ez_stablecoin_metrics"], "test.external_models.not_null_defillama__ez_stablecoin_metrics_ez_stablecoin_metrics_id.adf99e97ff": ["model.external_models.defillama__ez_stablecoin_metrics"], "test.external_models.not_null_defillama__ez_stablecoin_metrics_inserted_timestamp.20f593d022": ["model.external_models.defillama__ez_stablecoin_metrics"], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_defillama__ez_stablecoin_metrics_inserted_timestamp__day__2.acb8be47e0": ["model.external_models.defillama__ez_stablecoin_metrics"], "test.external_models.not_null_defillama__ez_stablecoin_metrics_modified_timestamp.d90908e883": ["model.external_models.defillama__ez_stablecoin_metrics"], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_defillama__ez_stablecoin_metrics_modified_timestamp__day__2.a305d6efe9": ["model.external_models.defillama__ez_stablecoin_metrics"], "test.external_models.dbt_utils_unique_combination_of_columns_defillama__fact_usdt_usdc_supply_DEFILLAMA_FACT_USDT_USDC_SUPPLY_ID.af85cd2773": ["model.external_models.defillama__fact_usdt_usdc_supply"], "test.external_models.not_null_defillama__dim_protocols_MODIFIED_TIMESTAMP.2e3ecb0b3e": ["model.external_models.defillama__dim_protocols"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_defillama__dim_protocols_MODIFIED_TIMESTAMP__TIMESTAMP_NTZ.390f2a37c8": ["model.external_models.defillama__dim_protocols"], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_defillama__dim_protocols_MODIFIED_TIMESTAMP__day__2.6fbd64af1e": ["model.external_models.defillama__dim_protocols"], "test.external_models.not_null_defillama__dim_protocols_INSERTED_TIMESTAMP.46acb9a7da": ["model.external_models.defillama__dim_protocols"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_defillama__dim_protocols_INSERTED_TIMESTAMP__TIMESTAMP_NTZ.3e63f796d0": ["model.external_models.defillama__dim_protocols"], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_defillama__dim_protocols_INSERTED_TIMESTAMP__day__2.0f727fed14": ["model.external_models.defillama__dim_protocols"], "test.external_models.not_null_bronze__defillama_dexes_DEX_ID.279f415a10": ["model.external_models.bronze__defillama_dexes"], "test.external_models.not_null_bronze__defillama_dexes_DEX.773f1f75f7": ["model.external_models.bronze__defillama_dexes"], "test.external_models.not_null_bronze__defillama_dexes__INSERTED_TIMESTAMP.27d26ad6e1": ["model.external_models.bronze__defillama_dexes"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_dexes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.6158c95d98": ["model.external_models.bronze__defillama_dexes"], "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_dexes_DEX_ID__DEX.a9bfc87b1f": ["model.external_models.bronze__defillama_dexes"], "test.external_models.not_null_bronze__defillama_chains_CHAIN.c988effa27": ["model.external_models.bronze__defillama_chains"], "test.external_models.not_null_bronze__defillama_chains__INSERTED_TIMESTAMP.826ea39a44": ["model.external_models.bronze__defillama_chains"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_chains__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.4cb489c21f": ["model.external_models.bronze__defillama_chains"], "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_chains_CHAIN.545e1a28c1": ["model.external_models.bronze__defillama_chains"], "test.external_models.not_null_bronze__defillama_stablecoins_STABLECOIN_ID.2e0b05c5d2": ["model.external_models.bronze__defillama_stablecoins"], "test.external_models.not_null_bronze__defillama_stablecoins_STABLECOIN.64b104eca3": ["model.external_models.bronze__defillama_stablecoins"], "test.external_models.not_null_bronze__defillama_stablecoins__INSERTED_TIMESTAMP.e8667d321e": ["model.external_models.bronze__defillama_stablecoins"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_stablecoins__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.258f8a2290": ["model.external_models.bronze__defillama_stablecoins"], "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_stablecoins_STABLECOIN_ID.626bc22a29": ["model.external_models.bronze__defillama_stablecoins"], "test.external_models.not_null_bronze__defillama_stablecoin_supply__INSERTED_TIMESTAMP.466594afa2": ["model.external_models.bronze__defillama_stablecoin_supply"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_stablecoin_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.22ec5016c6": ["model.external_models.bronze__defillama_stablecoin_supply"], "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_stablecoin_supply_STABLECOIN_ID__TIMESTAMP.a73b0531bc": ["model.external_models.bronze__defillama_stablecoin_supply"], "test.external_models.not_null_bronze__defillama_protocol_tvl_PROTOCOL_ID.45da76f0c4": ["model.external_models.bronze__defillama_protocol_tvl"], "test.external_models.not_null_bronze__defillama_protocol_tvl__INSERTED_TIMESTAMP.2237722b25": ["model.external_models.bronze__defillama_protocol_tvl"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_protocol_tvl__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.3adf7c0003": ["model.external_models.bronze__defillama_protocol_tvl"], "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_protocol_tvl_PROTOCOL_ID__CHAIN___INSERTED_TIMESTAMP.5be1ec25fb": ["model.external_models.bronze__defillama_protocol_tvl"], "test.external_models.not_null_bronze__defillama_perps_protocol_id.1c27f19c82": ["model.external_models.bronze__defillama_perps"], "test.external_models.not_null_bronze__defillama_perps_protocol_slug.b54442faae": ["model.external_models.bronze__defillama_perps"], "test.external_models.not_null_bronze__defillama_perps_category.966373d4f7": ["model.external_models.bronze__defillama_perps"], "test.external_models.not_null_bronze__defillama_perps_name.f711db516d": ["model.external_models.bronze__defillama_perps"], "test.external_models.not_null_bronze__defillama_perps_display_name.38f88c8b75": ["model.external_models.bronze__defillama_perps"], "test.external_models.not_null_bronze__defillama_perps__inserted_timestamp.7d33dc4b81": ["model.external_models.bronze__defillama_perps"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_perps__inserted_timestamp__TIMESTAMP_NTZ.b78bef6168": ["model.external_models.bronze__defillama_perps"], "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_perps_protocol_id.1b75f4d8fa": ["model.external_models.bronze__defillama_perps"], "test.external_models.not_null_bronze__defillama_raises_RAISE_ID.5d70470335": ["model.external_models.bronze__defillama_raises"], "test.external_models.not_null_bronze__defillama_raises_PROJECT_NAME.b9ae7b7f38": ["model.external_models.bronze__defillama_raises"], "test.external_models.not_null_bronze__defillama_raises_FUNDING_DATE.36da197012": ["model.external_models.bronze__defillama_raises"], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_bronze__defillama_raises_FUNDING_DATE__day__30.ca1b778724": ["model.external_models.bronze__defillama_raises"], "test.external_models.not_null_bronze__defillama_raises__INSERTED_TIMESTAMP.92aefadf98": ["model.external_models.bronze__defillama_raises"], "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_raises_RAISE_ID.c194c48903": ["model.external_models.bronze__defillama_raises"], "test.external_models.not_null_bronze__defillama_protocol_tvl_history_PROTOCOL_ID.f49602e496": ["model.external_models.bronze__defillama_protocol_tvl_history"], "test.external_models.not_null_bronze__defillama_protocol_tvl_history__INSERTED_TIMESTAMP.8740370390": ["model.external_models.bronze__defillama_protocol_tvl_history"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_protocol_tvl_history__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.565c8d7976": ["model.external_models.bronze__defillama_protocol_tvl_history"], "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_protocol_tvl_history_PROTOCOL_ID___INSERTED_TIMESTAMP.604bc47379": ["model.external_models.bronze__defillama_protocol_tvl_history"], "test.external_models.not_null_bronze__defillama_chainlist_CHAIN_ID.25192577da": ["model.external_models.bronze__defillama_chainlist"], "test.external_models.not_null_bronze__defillama_chainlist_CHAIN.5780be5d54": ["model.external_models.bronze__defillama_chainlist"], "test.external_models.not_null_bronze__defillama_chainlist__INSERTED_TIMESTAMP.540820d90f": ["model.external_models.bronze__defillama_chainlist"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_chainlist__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.d348817d21": ["model.external_models.bronze__defillama_chainlist"], "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_chainlist_CHAIN_ID.7ce0a0b603": ["model.external_models.bronze__defillama_chainlist"], "test.external_models.not_null_bronze__defillama_usdc_usdt_supply__INSERTED_TIMESTAMP.5706d592c1": ["model.external_models.bronze__defillama_usdc_usdt_supply"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_usdc_usdt_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.e35111402d": ["model.external_models.bronze__defillama_usdc_usdt_supply"], "test.external_models.not_null_bronze__defillama_bridges_BRIDGE_ID.2ba6c21db0": ["model.external_models.bronze__defillama_bridges"], "test.external_models.not_null_bronze__defillama_bridges_BRIDGE.d073e2edb8": ["model.external_models.bronze__defillama_bridges"], "test.external_models.not_null_bronze__defillama_bridges__INSERTED_TIMESTAMP.cf3a9c3ab5": ["model.external_models.bronze__defillama_bridges"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_bridges__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.47c9c197a2": ["model.external_models.bronze__defillama_bridges"], "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_bridges_BRIDGE_ID.ec12df5019": ["model.external_models.bronze__defillama_bridges"], "test.external_models.not_null_bitquery__active_users_BLOCKCHAIN.914a87f4a8": ["model.external_models.bitquery__active_users"], "test.external_models.not_null_bitquery__active_users_METRIC.4a978e38ec": ["model.external_models.bitquery__active_users"], "test.external_models.not_null_bitquery__active_users_AS_OF_DATE.24e6f16d52": ["model.external_models.bitquery__active_users"], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_bitquery__active_users_AS_OF_DATE__day__2.640f33ae24": ["model.external_models.bitquery__active_users"], "test.external_models.not_null_bitquery__active_users_ACTIVE_USERS.c10bdbc8ad": ["model.external_models.bitquery__active_users"], "test.external_models.dbt_utils_unique_combination_of_columns_bitquery__active_users_BLOCKCHAIN__METRIC__AS_OF_DATE.6fcc49b831": ["model.external_models.bitquery__active_users"], "test.external_models.not_null_bitquery__tx_count_BLOCKCHAIN.8ae6357142": ["model.external_models.bitquery__tx_count"], "test.external_models.not_null_bitquery__tx_count_METRIC.74279a41fa": ["model.external_models.bitquery__tx_count"], "test.external_models.not_null_bitquery__tx_count_BLOCK_DATE.fbbe8ebf2c": ["model.external_models.bitquery__tx_count"], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_bitquery__tx_count_BLOCK_DATE__day__2.706e3ce251": ["model.external_models.bitquery__tx_count"], "test.external_models.not_null_bitquery__tx_count_TX_COUNT.5a8345b648": ["model.external_models.bitquery__tx_count"], "test.external_models.dbt_utils_unique_combination_of_columns_bitquery__tx_count_BLOCKCHAIN__METRIC__BLOCK_DATE.ec78a68947": ["model.external_models.bitquery__tx_count"], "test.external_models.not_null_silver__artemis_metric_date.9a93f8e63b": ["model.external_models.silver__artemis"], "test.external_models.not_null_silver__artemis_blockchain.a0d0dfb71d": ["model.external_models.silver__artemis"], "test.external_models.unique_silver__artemis_artemis_id.7cc15da134": ["model.external_models.silver__artemis"], "test.external_models.not_null_silver__artemis_artemis_id.d82126688b": ["model.external_models.silver__artemis"], "test.external_models.not_null_silver__artemis__inserted_timestamp.a6a732f820": ["model.external_models.silver__artemis"], "test.external_models.not_null_artemis__active_users_BLOCKCHAIN.686f55f021": ["model.external_models.artemis__active_users"], "test.external_models.not_null_artemis__active_users_BLOCK_DATE.d56135f9af": ["model.external_models.artemis__active_users"], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_artemis__active_users_BLOCK_DATE__day__3.e4b3cfa665": ["model.external_models.artemis__active_users"], "test.external_models.not_null_artemis__active_users_ACTIVE_USERS.450401b050": ["model.external_models.artemis__active_users"], "test.external_models.unique_artemis__active_users_ACTIVE_USERS_ID.0ba8dead1c": ["model.external_models.artemis__active_users"], "test.external_models.not_null_artemis__tx_count_BLOCKCHAIN.d0c8a33dfe": ["model.external_models.artemis__tx_count"], "test.external_models.not_null_artemis__tx_count_BLOCK_DATE.dbafcdce9a": ["model.external_models.artemis__tx_count"], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_artemis__tx_count_BLOCK_DATE__day__3.9e9badb9b2": ["model.external_models.artemis__tx_count"], "test.external_models.not_null_artemis__tx_count_TX_COUNT.f3522b67b1": ["model.external_models.artemis__tx_count"], "test.external_models.unique_artemis__tx_count_TX_COUNT_ID.3fc82084e9": ["model.external_models.artemis__tx_count"], "test.external_models.not_null_bronze__blast_leaderboard_RANK.367c836ca7": ["model.external_models.bronze__blast_leaderboard"], "test.external_models.not_null_bronze__blast_leaderboard__INSERTED_TIMESTAMP.04332ff14b": ["model.external_models.bronze__blast_leaderboard"], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__blast_leaderboard__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.d51e63d1b6": ["model.external_models.bronze__blast_leaderboard"], "test.external_models.not_null_bronze__blast_leaderboard_ID.bb6f4cfb18": ["model.external_models.bronze__blast_leaderboard"], "test.external_models.dbt_utils_unique_combination_of_columns_bronze__blast_leaderboard_ID.c3d87330d2": ["model.external_models.bronze__blast_leaderboard"], "test.external_models.not_null_farcaster__fact_storage_UPDATED_AT.b84533d887": ["model.external_models.farcaster__fact_storage"], "test.external_models.not_null_farcaster__fact_blocks_CREATED_AT.3347167eb8": ["model.external_models.farcaster__fact_blocks"], "test.external_models.not_null_farcaster__fact_channel_follows_UPDATED_AT.da206c58b8": ["model.external_models.farcaster__fact_channel_follows"], "test.external_models.not_null_farcaster__fact_signers_UPDATED_AT.2a27e46c6b": ["model.external_models.farcaster__fact_signers"], "test.external_models.not_null_farcaster__fact_casts_UPDATED_AT.5d8dd8bd95": ["model.external_models.farcaster__fact_casts"], "test.external_models.not_null_farcaster__fact_reactions_UPDATED_AT.9a07cc8175": ["model.external_models.farcaster__fact_reactions"], "test.external_models.not_null_farcaster__dim_fnames_UPDATED_AT.724d9bd760": ["model.external_models.farcaster__dim_fnames"], "test.external_models.not_null_farcaster__fact_warpcast_power_users_UPDATED_AT.8008850037": ["model.external_models.farcaster__fact_warpcast_power_users"], "test.external_models.not_null_farcaster__dim_profile_with_addresses_UPDATED_AT.f3f9b1c1b0": ["model.external_models.farcaster__dim_profile_with_addresses"], "test.external_models.not_null_farcaster__fact_user_data_UPDATED_AT.c07d179892": ["model.external_models.farcaster__fact_user_data"], "test.external_models.not_null_farcaster__fact_links_UPDATED_AT.ea41f8a298": ["model.external_models.farcaster__fact_links"], "test.external_models.not_null_farcaster__dim_fids_UPDATED_AT.da0373fe59": ["model.external_models.farcaster__dim_fids"], "test.external_models.not_null_farcaster__fact_verifications_UPDATED_AT.8ec3d8c803": ["model.external_models.farcaster__fact_verifications"], "test.external_models.not_null_silver__layerzero_txs_snapshot_SOURCE_TRANSACTION_HASH.a657c2b14d": ["model.external_models.silver__layerzero_txs_snapshot"], "test.external_models.dbt_utils_unique_combination_of_columns_silver__layerzero_txs_snapshot_LAYERZERO_TXS_SNAPSHOT_ID.e37099fee0": ["model.external_models.silver__layerzero_txs_snapshot"], "test.external_models.not_null_silver__flashbots_mev_txs__INSERTED_TIMESTAMP.6abaa9d8f7": ["model.external_models.silver__flashbots_mev_txs"], "test.external_models.not_null_silver__flashbots_mev_txs_BLOCK_TIME.43b2a3dd1c": ["model.external_models.silver__flashbots_mev_txs"], "test.external_models.dbt_utils_unique_combination_of_columns_silver__flashbots_mev_txs__ID.a3773be3b5": ["model.external_models.silver__flashbots_mev_txs"], "test.external_models.not_null_silver__flashbots_protect_txs__INSERTED_TIMESTAMP.730aafbaf5": ["model.external_models.silver__flashbots_protect_txs"], "test.external_models.dbt_utils_unique_combination_of_columns_silver__flashbots_protect_txs__ID.cea004070b": ["model.external_models.silver__flashbots_protect_txs"], "test.livequery_models.test_transpose__get_status_200.8721d94682": ["model.livequery_models.transpose__"], "test.livequery_models.test_credmark_utils__get_status_200.d1548e1f6e": ["model.livequery_models.credmark_utils__"], "test.livequery_models.test_opensea__get_status_200.5de63cfbb1": ["model.livequery_models.opensea__"], "test.livequery_models.test_stakingrewards__query_status_200.144a35304b": ["model.livequery_models.stakingrewards__"], "test.livequery_models.test_subquery__graphql_status_200.b25433a976": ["model.livequery_models.subquery__"], "test.livequery_models.test_topshot__graphql_status_200.fb93e3b220": ["model.livequery_models.topshot__"], "test.livequery_models.test_allday__graphql_status_200.8cfd62f9a1": ["model.livequery_models.allday__"], "test.livequery_models.test_coingecko__get_status_200.047f15c956": ["model.livequery_models.coingecko__"], "test.livequery_models.test_dapplooker__get_chart_status_202.4fedf28822": ["model.livequery_models.dapplooker__"], "test.livequery_models.test_claude__post_messages_only_one_message.ff8a12fc1b": ["model.livequery_models.claude__"], "test.livequery_models.test_claude__post_messages_with_model.7b5774fbf2": ["model.livequery_models.claude__"], "test.livequery_models.test_claude__post_messages_with_all_params.0917a032d2": ["model.livequery_models.claude__"], "test.livequery_models.test_claude__count_message_tokens.f5bafb2bce": ["model.livequery_models.claude__"], "test.livequery_models.test_claude__list_models.8516d777c7": ["model.livequery_models.claude__"], "test.livequery_models.test_claude__get_model.1f65c29a92": ["model.livequery_models.claude__"], "test.livequery_models.test_claude__post_messages_batch.e4ee537ae3": ["model.livequery_models.claude__"], "test.livequery_models.test_claude__list_message_batches.f5d6c40b59": ["model.livequery_models.claude__"], "test.livequery_models.test_claude__list_message_batches_with_before.aae86d2911": ["model.livequery_models.claude__"], "test.livequery_models.test_claude__list_message_batches_with_after.0e42b728e7": ["model.livequery_models.claude__"], "test.livequery_models.test_claude__get_message_batch.b52b8b8d04": ["model.livequery_models.claude__"], "test.livequery_models.test_claude__get_message_batch_results.ecc8ad465c": ["model.livequery_models.claude__"], "test.livequery_models.test_claude_utils__post_status_200.a32a62cfdf": ["model.livequery_models.claude_utils__claude_utils"], "test.livequery_models.test_strangelove__get_status_200.0a58865924": ["model.livequery_models.strangelove__"], "test.livequery_models.test_fred__get_series_status_200.51822e30ca": ["model.livequery_models.fred__"], "test.livequery_models.test_espn__get_status_200.b4f84cc829": ["model.livequery_models.espn__"], "test.livequery_models.test_solscan_public_api_get__get_status_200.388381be71": ["model.livequery_models.solscan__"], "test.livequery_models.test_dappradar__get_status_200.979ea475dc": ["model.livequery_models.dappradar__"], "test.livequery_models.test_covalent__get_status_200.bb43bb7f69": ["model.livequery_models.covalent__"], "test.livequery_models.test_deepnftvalue__get_status_200.49fba544bb": ["model.livequery_models.deepnftvalue__"], "test.livequery_models.test_github_utils__octocat_status_200.3573395088": ["model.livequery_models.github_utils__github_utils"], "test.livequery_models.test_github_actions__workflows_status_200.1cc531bd94": ["model.livequery_models.github_actions__github_utils"], "test.livequery_models.test_github_actions__runs_status_200.2d145a41cb": ["model.livequery_models.github_actions__github_utils"], "test.livequery_models.test_github_actions__workflow_runs_status_200.abcfd5d553": ["model.livequery_models.github_actions__github_utils"], "test.livequery_models.test_nftscan__get_status_200.33868e0f0d": ["model.livequery_models.nftscan__"], "test.livequery_models.test_chainbase_utils__get_status_200.07b6733652": ["model.livequery_models.chainbase_utils__"], "test.livequery_models.test_snapshot__query_status_200.35a2cffb40": ["model.livequery_models.snapshot__"], "test.livequery_models.test_reservoir__get_status_200.cb905ea233": ["model.livequery_models.reservoir__"], "test.livequery_models.test_defillama__get_status_200.90864f8f89": ["model.livequery_models.defillama__"], "test.livequery_models.test_bitquery__graphql_status_200.11917beb18": ["model.livequery_models.bitquery__"], "test.livequery_models.test_helius_apis__token_metadata_status_200.c2bafa3fb0": ["model.livequery_models.helius_apis__helius_utils"], "test.livequery_models.test_helius_apis__balances_status_200.d668884644": ["model.livequery_models.helius_apis__helius_utils"], "test.livequery_models.test_helius_apis__parse_transactions_status_200.71053900da": ["model.livequery_models.helius_apis__helius_utils"], "test.livequery_models.test_helius_das__get_asset_status_200.3e65208714": ["model.livequery_models.helius_das__helius_utils"], "test.livequery_models.test_helius_das__get_signatures_for_asset_status_200.529a6b605d": ["model.livequery_models.helius_das__helius_utils"], "test.livequery_models.test_helius_das__search_assets_status_200.2373c30616": ["model.livequery_models.helius_das__helius_utils"], "test.livequery_models.test_helius_das__get_asset_proof_status_200.2ed48f9fe3": ["model.livequery_models.helius_das__helius_utils"], "test.livequery_models.test_helius_das__get_assets_by_owner_status_200.6f2f1ef95c": ["model.livequery_models.helius_das__helius_utils"], "test.livequery_models.test_helius_das__get_assets_by_authority_status_200.c9ac02b165": ["model.livequery_models.helius_das__helius_utils"], "test.livequery_models.test_helius_das__get_assets_by_creator_status_200.e8cb071d3a": ["model.livequery_models.helius_das__helius_utils"], "test.livequery_models.test_helius_das__get_assets_by_group_status_200.fe5813195d": ["model.livequery_models.helius_das__helius_utils"], "test.livequery_models.test_playgrounds__query_subgraph_status_200_liquidity_pools.dfcb23f707": ["model.livequery_models.playgrounds__"], "test.livequery_models.test_playgrounds__query_subgraph_status_200_total_pool_count.86c8b9c6ee": ["model.livequery_models.playgrounds__"], "test.livequery_models.test_quicknode_solana_nfts__fetch_nfts_status_200.94f0e0082e": ["model.livequery_models.quicknode_solana_nfts__quicknode_utils"], "test.livequery_models.test_quicknode_solana_nfts__fetch_nfts_by_creator_status_200.70f38f0e31": ["model.livequery_models.quicknode_solana_nfts__quicknode_utils"], "test.livequery_models.test_quicknode_polygon_tokens__get_token_metadata_by_contract_address_status_200.529daa7446": ["model.livequery_models.quicknode_polygon_tokens__quicknode_utils"], "test.livequery_models.test_quicknode_polygon_tokens__get_token_metadata_by_symbol_status_200.d60e37734e": ["model.livequery_models.quicknode_polygon_tokens__quicknode_utils"], "test.livequery_models.test_quicknode_polygon_tokens__get_transactions_by_address_status_200.194093aade": ["model.livequery_models.quicknode_polygon_tokens__quicknode_utils"], "test.livequery_models.test_quicknode_polygon_tokens__get_wallet_token_balance_status_200.2bffddb733": ["model.livequery_models.quicknode_polygon_tokens__quicknode_utils"], "test.livequery_models.test_quicknode_polygon_tokens__get_wallet_token_transactions_status_200.57669f1a96": ["model.livequery_models.quicknode_polygon_tokens__quicknode_utils"], "test.livequery_models.test_quicknode_ethereum_nfts__fetch_nft_collection_details_status_200.5a3e5bd53e": ["model.livequery_models.quicknode_ethereum_nfts__quicknode_utils"], "test.livequery_models.test_quicknode_ethereum_nfts__fetch_nfts_status_200.e34b6fbe64": ["model.livequery_models.quicknode_ethereum_nfts__quicknode_utils"], "test.livequery_models.test_quicknode_ethereum_nfts__fetch_nfts_by_collection_status_200.ba7f5aeceb": ["model.livequery_models.quicknode_ethereum_nfts__quicknode_utils"], "test.livequery_models.test_quicknode_ethereum_nfts__get_transfers_by_nft_status_200.2e5143d642": ["model.livequery_models.quicknode_ethereum_nfts__quicknode_utils"], "test.livequery_models.test_quicknode_ethereum_nfts__verify_nfts_owner_status_200.34afbca510": ["model.livequery_models.quicknode_ethereum_nfts__quicknode_utils"], "test.livequery_models.test_quicknode_polygon_nfts__fetch_nft_collection_details_status_200.b69737052b": ["model.livequery_models.quicknode_polygon_nfts__quicknode_utils"], "test.livequery_models.test_quicknode_polygon_nfts__fetch_nfts_status_200.2d1f2ae9d6": ["model.livequery_models.quicknode_polygon_nfts__quicknode_utils"], "test.livequery_models.test_quicknode_polygon_nfts__fetch_nfts_by_collection_status_200.8286191e06": ["model.livequery_models.quicknode_polygon_nfts__quicknode_utils"], "test.livequery_models.test_quicknode_polygon_nfts__get_transfers_by_nft_status_200.2f6ba1e185": ["model.livequery_models.quicknode_polygon_nfts__quicknode_utils"], "test.livequery_models.test_quicknode_polygon_nfts__verify_nfts_owner_status_200.e87bb12c13": ["model.livequery_models.quicknode_polygon_nfts__quicknode_utils"], "test.livequery_models.test_quicknode_ethereum_tokens__get_token_metadata_by_contract_address_status_200.3d5c91f8e2": ["model.livequery_models.quicknode_ethereum_tokens__quicknode_utils"], "test.livequery_models.test_quicknode_ethereum_tokens__get_token_metadata_by_symbol_status_200.c34c43a92d": ["model.livequery_models.quicknode_ethereum_tokens__quicknode_utils"], "test.livequery_models.test_quicknode_ethereum_tokens__get_transactions_by_address_status_200.29d4ecb431": ["model.livequery_models.quicknode_ethereum_tokens__quicknode_utils"], "test.livequery_models.test_quicknode_ethereum_tokens__get_wallet_token_balance_status_200.9cda095850": ["model.livequery_models.quicknode_ethereum_tokens__quicknode_utils"], "test.livequery_models.test_quicknode_ethereum_tokens__get_wallet_token_transactions_status_200.990e59cd6c": ["model.livequery_models.quicknode_ethereum_tokens__quicknode_utils"], "test.livequery_models.test_footprint_utils__get_status_200_v2_protocol_info.4d260facf4": ["model.livequery_models.footprint_utils__footprint_utils"], "test.livequery_models.test_cmc__get_status_200.1e44de8c9e": ["model.livequery_models.cmc__"], "test.livequery_models.test_apilayer__get_status_200.f739b0d36b": ["model.livequery_models.apilayer__"], "test.livequery_models.test_alchemy_tokens__get_token_allowance_status_200.65ce803e24": ["model.livequery_models.alchemy_tokens__alchemy_utils"], "test.livequery_models.test_alchemy_tokens__get_token_balances_status_200.bdaa3fdabb": ["model.livequery_models.alchemy_tokens__alchemy_utils"], "test.livequery_models.test_alchemy_tokens__get_token_metadata_status_200.ff08820c76": ["model.livequery_models.alchemy_tokens__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__get_nfts_status_200.34e3001576": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__get_owners_for_token_status_200.c534c2579d": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__get_owners_for_collection_status_200.3cdb9f0962": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__is_holder_of_collection_status_200.d94f7ae355": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__get_contracts_for_owner_status_200.29e9e60296": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__get_nft_metadata_status_200.aad531a83a": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__get_nft_metadata_batch_status_200.44d0ef0140": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__get_contract_metadata_status_200.0a9337a17a": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__get_contract_metadata_batch_status_200.78a02ffe28": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__invalidate_contract_status_200.1ac32b4945": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__reingest_contract_status_200.3c2c45fd00": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__search_contract_metadata_status_200.1e97937b32": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__get_nfts_for_collection_status_200.f7ff9b5ee5": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__get_spam_contracts_status_200.b9dfb4e306": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__is_spam_contract_status_200.91af21989f": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__is_airdrop_status_200.58ce4f1bdc": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__get_floor_price_status_200.f2125d71e4": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__get_nft_sales_status_200.223f727f9f": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__compute_rarity_status_200.942425aa31": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_nfts__summarize_nft_attributes_status_200.99d7f57e35": ["model.livequery_models.alchemy_nfts__alchemy_utils"], "test.livequery_models.test_alchemy_transfers__get_asset_transfers_status_200.f1f3f416e4": ["model.livequery_models.alchemy_transfers__alchemy_utils"], "test.livequery_models.test__live_udf_api_post_data_object.208f9d5456": ["model.livequery_models.live"], "test.livequery_models.test__live_udf_api_post_data_array.f30e6de8c8": ["model.livequery_models.live"], "test.livequery_models.test__live_udf_api_post_data_string.e2159319bb": ["model.livequery_models.live"], "test.livequery_models.test___utils_udf_introspect.79bd27a18b": ["model.livequery_models._utils"], "test.livequery_models.test__utils_udf_json_rpc_call.0b87c6050e": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_dict_true_1.3bf42c4e1b": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_dict_true_2.764afd6db8": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_dict_true_space.11f0932fc3": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_dict_true_special.4eef6cb355": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_dict_true_array.614d53ca8a": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_dict_false_1.e2e07ad77a": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_dict_false_2.58739709ab": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_dict_false_space.1167d3f089": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_dict_false_special.0cd3cb5826": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_dict_false_array.9524cea2e8": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_dict_1.1d75f92e0e": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_dict_2.60da312d8c": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_dict_space.d5e1917fd6": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_dict_special.6f25d30fd9": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_dict_array.25f6af5cf8": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_array_true_1.f1dc90fd5d": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_array_true_2.4c09ca3de2": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_array_true_space.c150fa3544": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_array_true_special.14abbd82f3": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_array_true_array.559475a80a": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_array_false_1.ffe0d93235": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_array_false_2.f6e4d9a06a": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_array_false_space.c46a422a10": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_array_false_special.ad3b4ce496": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_array_false_array.979bfafd11": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_array_1.bae96ece17": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_array_2.ff2898d4a2": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_array_space.67b6f51498": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_array_special.746423269a": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_urlencode_array_array.3d05dcb6a9": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_int_to_binary.46856460db": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_int_to_binary_large_number.feba996e3b": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_binary_to_int.907b20f381": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_binary_to_int_large_number.926bff44e9": ["model.livequery_models.utils"], "test.livequery_models.test__utils_udf_evm_decode_log.b6fedb07e9": ["model.livequery_models.utils"], "source.external_models.bronze_streamline.bitquery": [], "source.external_models.bronze_streamline.oklink": [], "source.external_models.bronze_streamline.artemis": [], "source.external_models.bronze_streamline.defillama_protocol_historical": [], "source.external_models.bronze_streamline.valuations_parquet": [], "source.external_models.bronze_streamline.defillama_stablecoin_metrics": [], "source.external_models.bronze_streamline.defillama_protocols": [], "source.external_models.bronze_streamline.defillama_perp_metrics": [], "source.external_models.tokenflow_eth.blocks": [], "source.external_models.tokenflow_eth.calls": [], "source.external_models.tokenflow_eth.events": [], "source.external_models.tokenflow_eth.state_diffs": [], "source.external_models.tokenflow_eth.storage_diffs": [], "source.external_models.tokenflow_eth.storage_reads": [], "source.external_models.tokenflow_eth.tokens_allowance_diffs": [], "source.external_models.tokenflow_eth.tokens_balance_diffs": [], "source.external_models.tokenflow_eth.tokens_metadata": [], "source.external_models.tokenflow_eth.transactions": [], "source.external_models.crosschain_silver.apis_keys": [], "source.external_models.crosschain_core.dim_dates": [], "source.external_models.crosschain_defi.ez_bridge_activity": [], "source.external_models.ethereum_silver.nft_transfers": [], "source.external_models.starknet_snapshot.blocks": [], "source.external_models.starknet_snapshot.events": [], "source.external_models.starknet_snapshot.messages": [], "source.external_models.starknet_snapshot.traces": [], "source.external_models.starknet_snapshot.transactions": [], "source.external_models.starknet_snapshot.l1_blocks": [], "source.external_models.starknet_snapshot.l1_contracts": [], "source.external_models.starknet_snapshot.l1_messages": [], "source.external_models.starknet_snapshot.l1_storage_diffs": [], "source.external_models.flashbots.mev": [], "source.external_models.flashbots.protect": [], "source.external_models.layerzero.transactions": [], "source.external_models.external_bronze.farcaster_blocks": [], "source.external_models.external_bronze.farcaster_casts": [], "source.external_models.external_bronze.farcaster_fids": [], "source.external_models.external_bronze.farcaster_fnames": [], "source.external_models.external_bronze.farcaster_links": [], "source.external_models.external_bronze.farcaster_signers": [], "source.external_models.external_bronze.farcaster_storage": [], "source.external_models.external_bronze.farcaster_reactions": [], "source.external_models.external_bronze.farcaster_user_data": [], "source.external_models.external_bronze.farcaster_verifications": [], "source.external_models.external_bronze.farcaster_channel_follows": [], "source.external_models.external_bronze.farcaster_profile_with_addresses": [], "source.external_models.external_bronze.farcaster_warpcast_power_users": [], "source.external_models.external_bronze.aptos_shinam": [], "source.external_models.avalanche_share.c_blocks": [], "source.external_models.avalanche_share.c_messages": [], "source.external_models.avalanche_share.c_transactions": [], "source.external_models.avalanche_share.c_internal_transactions": [], "source.external_models.avalanche_share.c_receipts": [], "source.external_models.avalanche_share.data_dictionary": [], "source.external_models.avalanche_share.p_blocks": [], "source.external_models.avalanche_share.p_transactions": [], "source.external_models.avalanche_share.utxos": [], "source.external_models.avalanche_share.vertices": [], "source.external_models.avalanche_share.x_blocks": [], "source.external_models.avalanche_share.x_transactions": [], "source.livequery_models.crosschain.dim_date_hours": [], "source.livequery_models.crosschain.dim_contracts": [], "source.livequery_models.crosschain.dim_evm_event_abis": [], "source.livequery_models.ethereum_core.fact_event_logs": [], "source.livequery_models.ethereum_core.ez_decoded_event_logs": []}, "child_map": {"model.external_models.silver__tokenlists_verified_tokens": ["model.external_models.tokenlists__ez_verified_tokens", "test.external_models.dbt_utils_unique_combination_of_columns_silver__tokenlists_verified_tokens_API_URL__LOWER_ADDRESS___CHAIN_ID.ce00ef40ce", "test.external_models.not_null_silver__tokenlists_verified_tokens_ADDRESS.d10abba80e", "test.external_models.not_null_silver__tokenlists_verified_tokens_API_URL.4d6117cb50", "test.external_models.not_null_silver__tokenlists_verified_tokens_CHAIN_ID.8fdd7cfe55"], "model.external_models.tokenlists__ez_verified_tokens": [], "model.external_models.bronze__all_tokenlists": ["model.external_models.silver__tokenlists_verified_tokens", "test.external_models.dbt_utils_unique_combination_of_columns_bronze__all_tokenlists_API_URL__REQUEST.3ed201dea9", "test.external_models.not_null_bronze__all_tokenlists_API_URL.4f84b31250", "test.external_models.not_null_bronze__all_tokenlists_REQUEST.1e7047c6c4"], "model.external_models.avalanche__fact_p_blocks": [], "model.external_models.avalanche__fact_x_transactions": [], "model.external_models.avalanche__fact_c_messages": [], "model.external_models.avalanche__fact_x_vertices": [], "model.external_models.avalanche__dim_data_dictionary": [], "model.external_models.avalanche__fact_x_blocks": [], "model.external_models.avalanche__fact_p_transactions": [], "model.external_models.avalanche__fact_utxos": [], "model.external_models.silver__polymarket_markets": ["model.external_models.polymarket__dim_markets", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_markets__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.eb4c915e91", "test.external_models.dbt_utils_unique_combination_of_columns_silver__polymarket_markets_CONDITION_ID.079735fed9", "test.external_models.not_null_silver__polymarket_markets_CONDITION_ID.d534ff72dc", "test.external_models.not_null_silver__polymarket_markets__INSERTED_TIMESTAMP.3927deb926"], "model.external_models.polymarket__dim_markets": [], "model.external_models.bronze__polymarket_markets": ["model.external_models.silver__polymarket_markets", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__polymarket_markets__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.de6501ee0b", "test.external_models.not_null_bronze__polymarket_markets_CONDITION_ID.e746168184", "test.external_models.not_null_bronze__polymarket_markets__INSERTED_TIMESTAMP.b2e066aada"], "model.external_models.silver__dates": [], "model.external_models.silver_aptos__lync": ["test.external_models.not_null_silver_aptos__lync_metric.3d12e974b6", "test.external_models.not_null_silver_aptos__lync_metric_amount.26188f96dc", "test.external_models.not_null_silver_aptos__lync_metric_amount_in_usd.c567ac53f1", "test.external_models.not_null_silver_aptos__lync_metric_count.902d0116f3"], "model.external_models.bronze_aptos__lync_data": ["model.external_models.silver_aptos__lync"], "model.external_models.bronze_aptos__shinam_data": ["model.external_models.silver_aptos__shinam"], "model.external_models.silver_aptos__shinam": ["test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver_aptos__shinam_metric_date__day__3.d346ecf718", "test.external_models.not_null_silver_aptos__shinam_metric_date.e87ed95074"], "model.external_models.silver__dnv_tokens": ["model.external_models.deepnftvalue__fact_tokens"], "model.external_models.silver__dnv_valuations": ["model.external_models.deepnftvalue__fact_valuations"], "model.external_models.silver__dnv_collections": ["model.external_models.deepnftvalue__fact_collections"], "model.external_models.silver__dnv_token_requests": ["model.external_models.bronze__dnv_tokens"], "model.external_models.deepnftvalue__fact_tokens": [], "model.external_models.deepnftvalue__fact_collections": [], "model.external_models.deepnftvalue__fact_valuations": [], "model.external_models.bronze__dnv_collections": ["model.external_models.silver__dnv_collections"], "model.external_models.bronze__dnv_tokens": ["model.external_models.silver__dnv_tokens"], "model.external_models.bronze__streamline_valuations": ["model.external_models.silver__dnv_valuations"], "model.external_models.bronze__dnv_collection_slugs": ["model.external_models.bronze__dnv_collections", "model.external_models.silver__dnv_token_requests"], "model.external_models.bronze__streamline_fr_valuations": ["model.external_models.silver__dnv_valuations"], "model.external_models.silver__snapshot_proposals": ["model.external_models.snapshot__ez_snapshot", "model.external_models.snapshot__fact_proposals", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__snapshot_proposals__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.7931ee3896", "test.external_models.dbt_utils_unique_combination_of_columns_silver__snapshot_proposals_PROPOSAL_ID.07e9b3a85b", "test.external_models.not_null_silver__snapshot_proposals_CREATED_AT.6da88af9f6", "test.external_models.not_null_silver__snapshot_proposals_PROPOSAL_END_TIME.5f14be541b", "test.external_models.not_null_silver__snapshot_proposals_PROPOSAL_ID.7025c6df25", "test.external_models.not_null_silver__snapshot_proposals_PROPOSAL_START_TIME.9f5c3c7f1b", "test.external_models.not_null_silver__snapshot_proposals__INSERTED_TIMESTAMP.9b86eaedeb"], "model.external_models.silver__snapshot_users": ["model.external_models.snapshot__dim_users", "test.external_models.dbt_utils_unique_combination_of_columns_silver__snapshot_users_ADDRESS.9ea8a0645c", "test.external_models.not_null_silver__snapshot_users_ADDRESS.1dd18cb68e", "test.external_models.not_null_silver__snapshot_users_CREATED_AT.0499e8afe9", "test.external_models.not_null_silver__snapshot_users__INSERTED_TIMESTAMP.909a06b730"], "model.external_models.silver__snapshot_votes": ["model.external_models.snapshot__ez_snapshot", "model.external_models.snapshot__fact_votes", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__snapshot_votes_VOTE_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.449807ec08", "test.external_models.dbt_expectations_expect_column_values_to_match_regex_silver__snapshot_votes_VOTER__0_xX_0_9a_fA_F_.441303a55c", "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__snapshot_votes__INSERTED_TIMESTAMP__day__1.f824a44d33", "test.external_models.dbt_utils_unique_combination_of_columns_silver__snapshot_votes_VOTE_ID.2d7a58900a", "test.external_models.not_null_silver__snapshot_votes_PROPOSAL_ID.a2a1e3cd20", "test.external_models.not_null_silver__snapshot_votes_VOTER.f83f2638d0", "test.external_models.not_null_silver__snapshot_votes_VOTE_ID.3e87d455f6", "test.external_models.not_null_silver__snapshot_votes_VOTE_OPTION.749d690de9", "test.external_models.not_null_silver__snapshot_votes_VOTE_TIMESTAMP.bc2c7ab8f4"], "model.external_models.silver__snapshot_spaces": ["model.external_models.snapshot__dim_spaces", "test.external_models.dbt_utils_unique_combination_of_columns_silver__snapshot_spaces_SPACE_ID.176897c79d", "test.external_models.not_null_silver__snapshot_spaces_SPACE.b594675078", "test.external_models.not_null_silver__snapshot_spaces_SPACE_ID.1e98e6593b", "test.external_models.not_null_silver__snapshot_spaces__INSERTED_TIMESTAMP.9c97d87460"], "model.external_models.snapshot__fact_votes": [], "model.external_models.snapshot__dim_users": [], "model.external_models.snapshot__ez_snapshot": [], "model.external_models.snapshot__fact_proposals": [], "model.external_models.snapshot__dim_spaces": [], "model.external_models.bronze__snapshot_users": ["model.external_models.silver__snapshot_users", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_users__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.61c6d4b19e", "test.external_models.dbt_utils_unique_combination_of_columns_bronze__snapshot_users_ADDRESS.9c829aad58", "test.external_models.not_null_bronze__snapshot_users_ADDRESS.ca42f3f763", "test.external_models.not_null_bronze__snapshot_users_CREATED_AT.2912f9578e", "test.external_models.not_null_bronze__snapshot_users__INSERTED_TIMESTAMP.6fb9280682"], "model.external_models.bronze__snapshot_proposals": ["model.external_models.silver__snapshot_proposals", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_proposals__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.fbe74d6bb1", "test.external_models.dbt_utils_unique_combination_of_columns_bronze__snapshot_proposals_PROPOSAL_ID.4df591b4ac", "test.external_models.not_null_bronze__snapshot_proposals_CHOICES.9871e8bf95", "test.external_models.not_null_bronze__snapshot_proposals_CREATED_AT.159e8e2d9c", "test.external_models.not_null_bronze__snapshot_proposals_PROPOSAL_END_TIME.4cc9d3d569", "test.external_models.not_null_bronze__snapshot_proposals_PROPOSAL_ID.43feeab1b7", "test.external_models.not_null_bronze__snapshot_proposals_PROPOSAL_START_TIME.e3ff173f25", "test.external_models.not_null_bronze__snapshot_proposals_SPACE_ID.226caec17f", "test.external_models.not_null_bronze__snapshot_proposals__INSERTED_TIMESTAMP.aa2872ddc3"], "model.external_models.bronze__snapshot_votes": ["model.external_models.silver__snapshot_votes", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_votes__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.ca2bd30b51", "test.external_models.dbt_utils_unique_combination_of_columns_bronze__snapshot_votes_ID.58b906fcef", "test.external_models.not_null_bronze__snapshot_votes_ID.03d01283f1", "test.external_models.not_null_bronze__snapshot_votes_PROPOSAL_ID.fd52925536", "test.external_models.not_null_bronze__snapshot_votes_VOTER.4c90295a96", "test.external_models.not_null_bronze__snapshot_votes_VOTE_OPTION.55945386d3", "test.external_models.not_null_bronze__snapshot_votes_VOTE_TIMESTAMP.3fa3f796a9", "test.external_models.not_null_bronze__snapshot_votes__INSERTED_TIMESTAMP.22e6f3ebe5"], "model.external_models.bronze__snapshot_spaces": ["model.external_models.silver__snapshot_spaces", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_spaces__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.4a33bbc621", "test.external_models.dbt_utils_unique_combination_of_columns_bronze__snapshot_spaces_SPACE_ID.dcac8f89f2", "test.external_models.not_null_bronze__snapshot_spaces_SPACE.30110840bc", "test.external_models.not_null_bronze__snapshot_spaces_SPACE_ID.a2937f04fc", "test.external_models.not_null_bronze__snapshot_spaces__INSERTED_TIMESTAMP.b2a2ca6dee"], "model.external_models.streamline__oklink_complete": ["model.external_models.streamline__oklink_realtime"], "model.external_models.streamline__oklink_metrics": ["model.external_models.streamline__oklink_realtime"], "model.external_models.streamline__oklink_realtime": [], "model.external_models.bronze__oklink_FR": ["model.external_models.streamline__oklink_complete"], "model.external_models.bronze__oklink": ["model.external_models.streamline__oklink_complete"], "model.external_models.silver__defillama_dex_volume": ["model.external_models.defillama__fact_dex_volume", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_dex_volume__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.8e26780493", "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_dex_volume__INSERTED_TIMESTAMP__day__1.bef8fa61d0", "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_dex_volume_ID.93100978dc", "test.external_models.not_null_silver__defillama_dex_volume_CHAIN.99ef0dec7d", "test.external_models.not_null_silver__defillama_dex_volume_ID.4eac69b2aa", "test.external_models.not_null_silver__defillama_dex_volume__INSERTED_TIMESTAMP.1ccec92206"], "model.external_models.silver__defillama_chains_tvl": ["model.external_models.defillama__fact_chain_tvl", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_chains_tvl__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.a067d1eac2", "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_chains_tvl__INSERTED_TIMESTAMP__day__2.187b24cdd3", "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_chains_tvl_CHAIN__TIMESTAMP.1bc2091543", "test.external_models.not_null_silver__defillama_chains_tvl_ID.4053d1c479", "test.external_models.not_null_silver__defillama_chains_tvl__INSERTED_TIMESTAMP.72b4261db1"], "model.external_models.silver__defillama_perp_daily_volume": ["model.external_models.defillama__fact_perp_volume", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume__inserted_timestamp__TIMESTAMP_NTZ.a7334119d7", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_date__DATE.fb8b5499bd", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_inserted_timestamp__TIMESTAMP_NTZ.f65eb01509", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_modified_timestamp__TIMESTAMP_NTZ.23255c8acd", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_volume__FLOAT.227148bece", "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_perp_daily_volume_protocol_id__date__chain.acc3fd514c", "test.external_models.not_null_silver__defillama_perp_daily_volume_chain.45bd739186", "test.external_models.not_null_silver__defillama_perp_daily_volume_date.ed62238679", "test.external_models.not_null_silver__defillama_perp_daily_volume_defillama_perp_daily_volume_id.050418fda4", "test.external_models.not_null_silver__defillama_perp_daily_volume_defillama_perp_metrics_id.fc9e7a49b1", "test.external_models.not_null_silver__defillama_perp_daily_volume_protocol.d43869ecf4", "test.external_models.not_null_silver__defillama_perp_daily_volume_protocol_id.cdcfe05028", "test.external_models.not_null_silver__defillama_perp_daily_volume_protocol_slug.5e56702a0d", "test.external_models.not_null_silver__defillama_perp_daily_volume_volume.dda7a42480"], "model.external_models.silver__defillama_bridge_volume_by_chain": ["model.external_models.defillama__fact_bridge_volume_by_chain", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_bridge_volume_by_chain_INSERTED_TIMESTAMP__TIMESTAMP_NTZ.886365f9bf", "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_bridge_volume_by_chain_INSERTED_TIMESTAMP__day__2.84922787bf", "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_bridge_volume_by_chain_defillama_bridge_vol_by_chain_id.335bdf13f6", "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_BRIDGE.b6f114b68a", "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_BRIDGE_ID.a614975e3c", "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_CHAIN.eff9323ee0", "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_DATE.c6d68128a2", "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_DEPOSIT_TXS.047faf98b4", "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_DEPOSIT_USD.615b5cbf42", "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_INSERTED_TIMESTAMP.88d1482ef7", "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_WITHDRAW_TXS.7117c612b3", "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_WITHDRAW_USD.279d267331"], "model.external_models.silver__defillama_protocol_tvl_history": ["model.external_models.silver__defillama_protocol_tvl", "test.external_models.not_null_silver__defillama_protocol_tvl_history__inserted_timestamp.3a00bdcdaf", "test.external_models.not_null_silver__defillama_protocol_tvl_history_chain.00929371cd", "test.external_models.not_null_silver__defillama_protocol_tvl_history_chain_tvl.dd69677c11", "test.external_models.not_null_silver__defillama_protocol_tvl_history_defillama_protocol_tvl_history_id.0c1700be63", "test.external_models.not_null_silver__defillama_protocol_tvl_history_protocol_id.e8f35f7758", "test.external_models.not_null_silver__defillama_protocol_tvl_history_timestamp.603a6ed60f", "test.external_models.unique_silver__defillama_protocol_tvl_history_defillama_protocol_tvl_history_id.7a26f80f27"], "model.external_models.silver__defillama_protocol_tvl": ["model.external_models.defillama__fact_protocol_tvl", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocol_tvl__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.67afb5c2b5", "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocol_tvl__INSERTED_TIMESTAMP__day__1.fcd40b4f7c", "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_protocol_tvl_DEFILLAMA_TVL_ID.8db584bebb", "test.external_models.not_null_silver__defillama_protocol_tvl_DEFILLAMA_TVL_ID.42ecdf436d", "test.external_models.not_null_silver__defillama_protocol_tvl__INSERTED_TIMESTAMP.df3fc95018"], "model.external_models.silver__defillama_protocols": ["model.external_models.defillama__dim_protocols", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocols__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.54e4afda8f", "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocols__INSERTED_TIMESTAMP__day__2.420a65084a", "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_protocols_DEFILLAMA_PROTOCOLS_ID.8a2a9bf6a7", "test.external_models.not_null_silver__defillama_protocols__INSERTED_TIMESTAMP.59c4e95c9c"], "model.external_models.silver__defillama_options_notional": ["model.external_models.defillama__fact_options_volume", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_options_notional__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.954e6abb0e", "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_options_notional__INSERTED_TIMESTAMP__day__2.bfa1ced883", "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_options_notional_ID.4ed2e3fa3f", "test.external_models.not_null_silver__defillama_options_notional_CHAIN.17704c94d3", "test.external_models.not_null_silver__defillama_options_notional_ID.797f360571", "test.external_models.not_null_silver__defillama_options_notional__INSERTED_TIMESTAMP.1b2760a764"], "model.external_models.silver__defillama_bridge_volume": ["model.external_models.defillama__fact_bridge_volume", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_bridge_volume__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.98985142f9", "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_bridge_volume__INSERTED_TIMESTAMP__day__2.6817773edd", "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_bridge_volume_BRIDGE_ID__TIMESTAMP.84d1376ea1", "test.external_models.not_null_silver__defillama_bridge_volume_BRIDGE.2758ecc03f", "test.external_models.not_null_silver__defillama_bridge_volume_BRIDGE_ID.e186492e1d", "test.external_models.not_null_silver__defillama_bridge_volume_ID.553904b651", "test.external_models.not_null_silver__defillama_bridge_volume__INSERTED_TIMESTAMP.2d38284c8d"], "model.external_models.silver__defillama_investors": ["model.external_models.defillama__ez_investors", "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_investors_INVESTOR.a7623080b4", "test.external_models.not_null_silver__defillama_investors_INVESTOR.2b2a8c6e9a", "test.external_models.not_null_silver__defillama_investors__INSERTED_TIMESTAMP.a9348ff319"], "model.external_models.silver__defillama_protocol_fees": ["model.external_models.defillama__fact_protocol_fees_revenue", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocol_fees__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.5acc5c41a2", "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocol_fees__INSERTED_TIMESTAMP__day__2.0405088cbd", "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_protocol_fees_ID.03cc375156", "test.external_models.not_null_silver__defillama_protocol_fees_CHAIN.d434098292", "test.external_models.not_null_silver__defillama_protocol_fees_ID.e292c7143d", "test.external_models.not_null_silver__defillama_protocol_fees__INSERTED_TIMESTAMP.ce25594587"], "model.external_models.silver__defillama_stablecoin_supply": ["model.external_models.defillama__fact_stablecoin_supply", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_stablecoin_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.3653e5a1cf", "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_stablecoin_supply__INSERTED_TIMESTAMP__day__2.8028729672", "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_stablecoin_supply_DEFILLAMA_STABLECOIN_SUPPLY_ID.7bf8bbe21c", "test.external_models.not_null_silver__defillama_stablecoin_supply_DEFILLAMA_STABLECOIN_SUPPLY_ID.072450f5e2", "test.external_models.not_null_silver__defillama_stablecoin_supply__INSERTED_TIMESTAMP.7e00b9d5c5"], "model.external_models.silver__defillama_pool_yields": ["model.external_models.defillama__fact_pool_yields", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_pool_yields__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.1a6d978404", "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_pool_yields__INSERTED_TIMESTAMP__day__2.2f63a4fa45", "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_pool_yields_DEFILLAMA_YIELD_ID.b59e60eeda", "test.external_models.not_null_silver__defillama_pool_yields_TIMESTAMP.37b3272aba", "test.external_models.not_null_silver__defillama_pool_yields__INSERTED_TIMESTAMP.cf82b3d544"], "model.external_models.silver__defillama_protocol_revenue": ["model.external_models.defillama__fact_protocol_fees_revenue", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocol_revenue__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.2025c52a03", "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocol_revenue__INSERTED_TIMESTAMP__day__2.9255e527b7", "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_protocol_revenue_ID.f28e235429", "test.external_models.not_null_silver__defillama_protocol_revenue_CHAIN.aaf93a9585", "test.external_models.not_null_silver__defillama_protocol_revenue_ID.fc3053c7bf", "test.external_models.not_null_silver__defillama_protocol_revenue__INSERTED_TIMESTAMP.960b8d7b66"], "model.external_models.silver__defillama_stablecoin_metrics": ["model.external_models.defillama__ez_stablecoin_metrics", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_stablecoin_metrics_DATE_DAY__DATE.2ef937fbbe", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_stablecoin_metrics__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.0771cb7209", "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_stablecoin_metrics_DATE_DAY__day__2.62280edb3d", "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_stablecoin_metrics__INSERTED_TIMESTAMP__day__2.f04ba5a494", "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_stablecoin_metrics_DEFILLAMA_STABLECOIN_METRICS_ID.658e9db88b", "test.external_models.not_null_silver__defillama_stablecoin_metrics_DATE_DAY.897365ca0a", "test.external_models.not_null_silver__defillama_stablecoin_metrics_DEFILLAMA_STABLECOIN_METRICS_ID.1e22190956", "test.external_models.not_null_silver__defillama_stablecoin_metrics__INSERTED_TIMESTAMP.e75bd7f082"], "model.external_models.silver__defillama_perp_metrics": ["model.external_models.silver__defillama_perp_daily_volume", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics__inserted_timestamp__TIMESTAMP_NTZ.07b57d6775", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_change_1d__FLOAT.f2337eadc0", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_inserted_timestamp__TIMESTAMP_NTZ.c65246177c", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_modified_timestamp__TIMESTAMP_NTZ.5559f95279", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_timestamp__DATE.81996737ac", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_24h__FLOAT.8ec5c7045d", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_30d__FLOAT.27077c7b0e", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_48h_to_24h__FLOAT.ebb833856d", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_7d__FLOAT.8b6e748f8b", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_all_time__FLOAT.896c72813b", "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_perp_metrics_protocol_id__timestamp.132646d40b", "test.external_models.not_null_silver__defillama_perp_metrics_category.03f85efead", "test.external_models.not_null_silver__defillama_perp_metrics_chains.3ef0fddd80", "test.external_models.not_null_silver__defillama_perp_metrics_defillama_perp_metrics_id.ec9ff8860a", "test.external_models.not_null_silver__defillama_perp_metrics_display_name.f6a537f455", "test.external_models.not_null_silver__defillama_perp_metrics_logo.cd14f778d5", "test.external_models.not_null_silver__defillama_perp_metrics_methodology.8dfe586cb6", "test.external_models.not_null_silver__defillama_perp_metrics_methodology_url.0bf67e7b14", "test.external_models.not_null_silver__defillama_perp_metrics_module.1ee1cd9d64", "test.external_models.not_null_silver__defillama_perp_metrics_name.7b2aa5872c", "test.external_models.not_null_silver__defillama_perp_metrics_protocol_id.14c6ac4f05", "test.external_models.not_null_silver__defillama_perp_metrics_protocol_slug.2cb6a79b30", "test.external_models.not_null_silver__defillama_perp_metrics_protocol_type.4823df5948", "test.external_models.not_null_silver__defillama_perp_metrics_timestamp.472db55af5", "test.external_models.not_null_silver__defillama_perp_metrics_total_data_chart_breakdown.eeccb8e45f"], "model.external_models.silver__defillama_options_premium": ["model.external_models.defillama__fact_options_volume", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_options_premium__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.2280d7f2a6", "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_options_premium__INSERTED_TIMESTAMP__day__2.b0dc92c970", "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_options_premium_ID.f2c952c29e", "test.external_models.not_null_silver__defillama_options_premium_CHAIN.a58ffe7b2b", "test.external_models.not_null_silver__defillama_options_premium_ID.8c8d1dbefe", "test.external_models.not_null_silver__defillama_options_premium__INSERTED_TIMESTAMP.3d9bd5a105"], "model.external_models.silver__defillama_usdt_usdc_supply": ["model.external_models.defillama__fact_usdt_usdc_supply", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_usdt_usdc_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.9f973f7fd3", "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_usdt_usdc_supply__INSERTED_TIMESTAMP__day__2.08f1f58f98", "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_usdt_usdc_supply_DEFILLAMA_USDC_USDT_SUPPLY_ID.7a5a092f00", "test.external_models.not_null_silver__defillama_usdt_usdc_supply__INSERTED_TIMESTAMP.f669b526df"], "model.external_models.silver__defillama_raises": ["model.external_models.defillama__fact_raises", "model.external_models.silver__defillama_investors", "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_raises_RAISE_ID.cbd412cee8", "test.external_models.not_null_silver__defillama_raises_FUNDING_DATE.055464c7e9", "test.external_models.not_null_silver__defillama_raises_PROJECT_NAME.e6a6854bbb", "test.external_models.not_null_silver__defillama_raises_RAISE_ID.a6c9cfda9b", "test.external_models.not_null_silver__defillama_raises__INSERTED_TIMESTAMP.09318375f6"], "model.external_models.streamline__defillama_protocol_historical_complete": ["model.external_models.streamline__defillama_protocol_historical"], "model.external_models.streamline__defillama_protocol_historical": [], "model.external_models.streamline__defillama_perp_metrics": [], "model.external_models.streamline__defillama_protocols": [], "model.external_models.streamline__defillama_stablecoin_metrics": [], "model.external_models.bronze__defillama_perp_metrics_FR": ["model.external_models.silver__defillama_perp_metrics"], "model.external_models.bronze__defillama_stablecoin_metrics_FR": ["model.external_models.silver__defillama_stablecoin_metrics"], "model.external_models.bronze__defillama_protocols_FR": ["model.external_models.silver__defillama_protocols"], "model.external_models.bronze__defillama_protocols": ["model.external_models.silver__defillama_protocols"], "model.external_models.bronze__defillama_perp_metrics": ["model.external_models.silver__defillama_perp_metrics"], "model.external_models.bronze__defillama_stablecoin_metrics": ["model.external_models.silver__defillama_stablecoin_metrics"], "model.external_models.bronze__defillama_protocol_historical_FR": ["model.external_models.bronze__defillama_protocol_tvl_history", "model.external_models.streamline__defillama_protocol_historical_complete"], "model.external_models.bronze__defillama_protocol_historical": ["model.external_models.bronze__defillama_protocol_tvl_history", "model.external_models.streamline__defillama_protocol_historical_complete"], "model.external_models.defillama__fact_pool_yields": [], "model.external_models.defillama__fact_protocol_fees_revenue": [], "model.external_models.defillama__dim_stablecoins": [], "model.external_models.defillama__ez_investors": [], "model.external_models.defillama__dim_perps": [], "model.external_models.defillama__dim_chains": ["model.external_models.tokenlists__ez_verified_tokens"], "model.external_models.defillama__ez_stablecoin_metrics": ["test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_defillama__ez_stablecoin_metrics_inserted_timestamp__day__2.acb8be47e0", "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_defillama__ez_stablecoin_metrics_modified_timestamp__day__2.a305d6efe9", "test.external_models.not_null_defillama__ez_stablecoin_metrics_chain.a31537394e", "test.external_models.not_null_defillama__ez_stablecoin_metrics_date_day.8be6c5ded3", "test.external_models.not_null_defillama__ez_stablecoin_metrics_ez_stablecoin_metrics_id.adf99e97ff", "test.external_models.not_null_defillama__ez_stablecoin_metrics_inserted_timestamp.20f593d022", "test.external_models.not_null_defillama__ez_stablecoin_metrics_modified_timestamp.d90908e883", "test.external_models.not_null_defillama__ez_stablecoin_metrics_peg_mechanism.4ca9af4400", "test.external_models.not_null_defillama__ez_stablecoin_metrics_peg_type.17890d14ad", "test.external_models.not_null_defillama__ez_stablecoin_metrics_stablecoin.8bd8a24860", "test.external_models.not_null_defillama__ez_stablecoin_metrics_stablecoin_id.550d95d3ce", "test.external_models.not_null_defillama__ez_stablecoin_metrics_symbol.b7badaccb5", "test.external_models.unique_defillama__ez_stablecoin_metrics_ez_stablecoin_metrics_id.bf19235079"], "model.external_models.defillama__fact_raises": [], "model.external_models.defillama__dim_protocols": ["model.external_models.silver__defillama_protocol_tvl_history", "model.external_models.streamline__defillama_protocol_historical", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_defillama__dim_protocols_INSERTED_TIMESTAMP__TIMESTAMP_NTZ.3e63f796d0", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_defillama__dim_protocols_MODIFIED_TIMESTAMP__TIMESTAMP_NTZ.390f2a37c8", "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_defillama__dim_protocols_INSERTED_TIMESTAMP__day__2.0f727fed14", "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_defillama__dim_protocols_MODIFIED_TIMESTAMP__day__2.6fbd64af1e", "test.external_models.not_null_defillama__dim_protocols_INSERTED_TIMESTAMP.46acb9a7da", "test.external_models.not_null_defillama__dim_protocols_MODIFIED_TIMESTAMP.2e3ecb0b3e"], "model.external_models.defillama__fact_dex_volume": [], "model.external_models.defillama__fact_chain_tvl": [], "model.external_models.defillama__fact_protocol_tvl": [], "model.external_models.defillama__fact_stablecoin_supply": [], "model.external_models.defillama__dim_bridges": [], "model.external_models.defillama__dim_dexes": [], "model.external_models.defillama__fact_bridge_volume": [], "model.external_models.defillama__dim_pools": [], "model.external_models.defillama__fact_usdt_usdc_supply": ["test.external_models.dbt_utils_unique_combination_of_columns_defillama__fact_usdt_usdc_supply_DEFILLAMA_FACT_USDT_USDC_SUPPLY_ID.af85cd2773"], "model.external_models.defillama__fact_options_volume": [], "model.external_models.defillama__fact_perp_volume": [], "model.external_models.defillama__fact_bridge_volume_by_chain": [], "model.external_models.bronze__defillama_dexes": ["model.external_models.defillama__dim_dexes", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_dexes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.6158c95d98", "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_dexes_DEX_ID__DEX.a9bfc87b1f", "test.external_models.not_null_bronze__defillama_dexes_DEX.773f1f75f7", "test.external_models.not_null_bronze__defillama_dexes_DEX_ID.279f415a10", "test.external_models.not_null_bronze__defillama_dexes__INSERTED_TIMESTAMP.27d26ad6e1"], "model.external_models.bronze__defillama_stablecoin_supply": ["model.external_models.silver__defillama_stablecoin_supply", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_stablecoin_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.22ec5016c6", "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_stablecoin_supply_STABLECOIN_ID__TIMESTAMP.a73b0531bc", "test.external_models.not_null_bronze__defillama_stablecoin_supply__INSERTED_TIMESTAMP.466594afa2"], "model.external_models.bronze__defillama_chains": ["model.external_models.silver__defillama_chains_tvl", "model.external_models.silver__snapshot_proposals", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_chains__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.4cb489c21f", "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_chains_CHAIN.545e1a28c1", "test.external_models.not_null_bronze__defillama_chains_CHAIN.c988effa27", "test.external_models.not_null_bronze__defillama_chains__INSERTED_TIMESTAMP.826ea39a44"], "model.external_models.bronze__defillama_bridges": ["model.external_models.defillama__dim_bridges", "model.external_models.silver__defillama_bridge_volume", "model.external_models.silver__defillama_bridge_volume_by_chain", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_bridges__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.47c9c197a2", "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_bridges_BRIDGE_ID.ec12df5019", "test.external_models.not_null_bronze__defillama_bridges_BRIDGE.d073e2edb8", "test.external_models.not_null_bronze__defillama_bridges_BRIDGE_ID.2ba6c21db0", "test.external_models.not_null_bronze__defillama_bridges__INSERTED_TIMESTAMP.cf3a9c3ab5"], "model.external_models.bronze__defillama_stablecoins": ["model.external_models.bronze__defillama_stablecoin_supply", "model.external_models.defillama__dim_stablecoins", "model.external_models.defillama__ez_stablecoin_metrics", "model.external_models.silver__defillama_stablecoin_supply", "model.external_models.silver__defillama_usdt_usdc_supply", "model.external_models.streamline__defillama_stablecoin_metrics", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_stablecoins__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.258f8a2290", "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_stablecoins_STABLECOIN_ID.626bc22a29", "test.external_models.not_null_bronze__defillama_stablecoins_STABLECOIN.64b104eca3", "test.external_models.not_null_bronze__defillama_stablecoins_STABLECOIN_ID.2e0b05c5d2", "test.external_models.not_null_bronze__defillama_stablecoins__INSERTED_TIMESTAMP.e8667d321e"], "model.external_models.bronze__defillama_raises": ["model.external_models.silver__defillama_raises", "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_bronze__defillama_raises_FUNDING_DATE__day__30.ca1b778724", "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_raises_RAISE_ID.c194c48903", "test.external_models.not_null_bronze__defillama_raises_FUNDING_DATE.36da197012", "test.external_models.not_null_bronze__defillama_raises_PROJECT_NAME.b9ae7b7f38", "test.external_models.not_null_bronze__defillama_raises_RAISE_ID.5d70470335", "test.external_models.not_null_bronze__defillama_raises__INSERTED_TIMESTAMP.92aefadf98"], "model.external_models.bronze__defillama_protocol_tvl": ["model.external_models.silver__defillama_protocol_tvl", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_protocol_tvl__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.3adf7c0003", "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_protocol_tvl_PROTOCOL_ID__CHAIN___INSERTED_TIMESTAMP.5be1ec25fb", "test.external_models.not_null_bronze__defillama_protocol_tvl_PROTOCOL_ID.45da76f0c4", "test.external_models.not_null_bronze__defillama_protocol_tvl__INSERTED_TIMESTAMP.2237722b25"], "model.external_models.bronze__defillama_protocol_tvl_history": ["model.external_models.silver__defillama_protocol_tvl_history", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_protocol_tvl_history__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.565c8d7976", "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_protocol_tvl_history_PROTOCOL_ID___INSERTED_TIMESTAMP.604bc47379", "test.external_models.not_null_bronze__defillama_protocol_tvl_history_PROTOCOL_ID.f49602e496", "test.external_models.not_null_bronze__defillama_protocol_tvl_history__INSERTED_TIMESTAMP.8740370390"], "model.external_models.bronze__defillama_chainlist": ["model.external_models.defillama__dim_chains", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_chainlist__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.d348817d21", "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_chainlist_CHAIN_ID.7ce0a0b603", "test.external_models.not_null_bronze__defillama_chainlist_CHAIN.5780be5d54", "test.external_models.not_null_bronze__defillama_chainlist_CHAIN_ID.25192577da", "test.external_models.not_null_bronze__defillama_chainlist__INSERTED_TIMESTAMP.540820d90f"], "model.external_models.bronze__defillama_perps": ["model.external_models.defillama__dim_perps", "model.external_models.streamline__defillama_perp_metrics", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_perps__inserted_timestamp__TIMESTAMP_NTZ.b78bef6168", "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_perps_protocol_id.1b75f4d8fa", "test.external_models.not_null_bronze__defillama_perps__inserted_timestamp.7d33dc4b81", "test.external_models.not_null_bronze__defillama_perps_category.966373d4f7", "test.external_models.not_null_bronze__defillama_perps_display_name.38f88c8b75", "test.external_models.not_null_bronze__defillama_perps_name.f711db516d", "test.external_models.not_null_bronze__defillama_perps_protocol_id.1c27f19c82", "test.external_models.not_null_bronze__defillama_perps_protocol_slug.b54442faae"], "model.external_models.bronze__defillama_usdc_usdt_supply": ["model.external_models.silver__defillama_usdt_usdc_supply", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_usdc_usdt_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.e35111402d", "test.external_models.not_null_bronze__defillama_usdc_usdt_supply__INSERTED_TIMESTAMP.5706d592c1"], "model.external_models.streamline__bitquery_realtime": [], "model.external_models.streamline__bitquery_complete": ["model.external_models.streamline__bitquery_realtime"], "model.external_models.streamline__bitquery_metrics": ["model.external_models.streamline__bitquery_realtime"], "model.external_models.bitquery__active_users": ["test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_bitquery__active_users_AS_OF_DATE__day__2.640f33ae24", "test.external_models.dbt_utils_unique_combination_of_columns_bitquery__active_users_BLOCKCHAIN__METRIC__AS_OF_DATE.6fcc49b831", "test.external_models.not_null_bitquery__active_users_ACTIVE_USERS.c10bdbc8ad", "test.external_models.not_null_bitquery__active_users_AS_OF_DATE.24e6f16d52", "test.external_models.not_null_bitquery__active_users_BLOCKCHAIN.914a87f4a8", "test.external_models.not_null_bitquery__active_users_METRIC.4a978e38ec"], "model.external_models.bitquery__tx_count": ["test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_bitquery__tx_count_BLOCK_DATE__day__2.706e3ce251", "test.external_models.dbt_utils_unique_combination_of_columns_bitquery__tx_count_BLOCKCHAIN__METRIC__BLOCK_DATE.ec78a68947", "test.external_models.not_null_bitquery__tx_count_BLOCKCHAIN.8ae6357142", "test.external_models.not_null_bitquery__tx_count_BLOCK_DATE.fbbe8ebf2c", "test.external_models.not_null_bitquery__tx_count_METRIC.74279a41fa", "test.external_models.not_null_bitquery__tx_count_TX_COUNT.5a8345b648"], "model.external_models.bronze__bitquery_FR": ["model.external_models.bitquery__active_users", "model.external_models.bitquery__tx_count", "model.external_models.streamline__bitquery_complete"], "model.external_models.bronze__bitquery": ["model.external_models.bitquery__active_users", "model.external_models.bitquery__tx_count", "model.external_models.streamline__bitquery_complete"], "model.external_models.silver__artemis": ["model.external_models.artemis__active_users", "model.external_models.artemis__tx_count", "test.external_models.not_null_silver__artemis__inserted_timestamp.a6a732f820", "test.external_models.not_null_silver__artemis_artemis_id.d82126688b", "test.external_models.not_null_silver__artemis_blockchain.a0d0dfb71d", "test.external_models.not_null_silver__artemis_metric_date.9a93f8e63b", "test.external_models.unique_silver__artemis_artemis_id.7cc15da134"], "model.external_models.streamline__artemis_metrics": ["model.external_models.streamline__artemis_realtime"], "model.external_models.streamline__artemis_realtime": [], "model.external_models.streamline__artemis_complete": ["model.external_models.streamline__artemis_realtime"], "model.external_models.artemis__tx_count": ["test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_artemis__tx_count_BLOCK_DATE__day__3.9e9badb9b2", "test.external_models.not_null_artemis__tx_count_BLOCKCHAIN.d0c8a33dfe", "test.external_models.not_null_artemis__tx_count_BLOCK_DATE.dbafcdce9a", "test.external_models.not_null_artemis__tx_count_TX_COUNT.f3522b67b1", "test.external_models.unique_artemis__tx_count_TX_COUNT_ID.3fc82084e9"], "model.external_models.artemis__active_users": ["test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_artemis__active_users_BLOCK_DATE__day__3.e4b3cfa665", "test.external_models.not_null_artemis__active_users_ACTIVE_USERS.450401b050", "test.external_models.not_null_artemis__active_users_BLOCKCHAIN.686f55f021", "test.external_models.not_null_artemis__active_users_BLOCK_DATE.d56135f9af", "test.external_models.unique_artemis__active_users_ACTIVE_USERS_ID.0ba8dead1c"], "model.external_models.bronze__artemis_FR": ["model.external_models.silver__artemis", "model.external_models.streamline__artemis_complete"], "model.external_models.bronze__artemis": ["model.external_models.silver__artemis", "model.external_models.streamline__artemis_complete"], "model.external_models.blast__fact_leaderboard": [], "model.external_models.bronze__blast_leaderboard": ["model.external_models.blast__fact_leaderboard", "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__blast_leaderboard__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.d51e63d1b6", "test.external_models.dbt_utils_unique_combination_of_columns_bronze__blast_leaderboard_ID.c3d87330d2", "test.external_models.not_null_bronze__blast_leaderboard_ID.bb6f4cfb18", "test.external_models.not_null_bronze__blast_leaderboard_RANK.367c836ca7", "test.external_models.not_null_bronze__blast_leaderboard__INSERTED_TIMESTAMP.04332ff14b"], "model.external_models.tokenflow_starknet__decoded_events": [], "model.external_models.tokenflow_starknet__decoded_traces": [], "model.external_models.tokenflow_starknet__l1_data_blocks": [], "model.external_models.tokenflow_starknet__decoded_blocks": [], "model.external_models.tokenflow_starknet__decoded_messages": [], "model.external_models.tokenflow_starknet__l1_data_contracts": [], "model.external_models.tokenflow_starknet__l1_data_messages": [], "model.external_models.tokenflow_starknet__l1_data_storage_diffs": [], "model.external_models.tokenflow_starknet__decoded_transactions": [], "model.external_models.farcaster__fact_blocks": ["test.external_models.not_null_farcaster__fact_blocks_CREATED_AT.3347167eb8"], "model.external_models.farcaster__fact_channel_follows": ["test.external_models.not_null_farcaster__fact_channel_follows_UPDATED_AT.da206c58b8"], "model.external_models.farcaster__fact_reactions": ["test.external_models.not_null_farcaster__fact_reactions_UPDATED_AT.9a07cc8175"], "model.external_models.farcaster__fact_user_data": ["test.external_models.not_null_farcaster__fact_user_data_UPDATED_AT.c07d179892"], "model.external_models.farcaster__dim_profile_with_addresses": ["test.external_models.not_null_farcaster__dim_profile_with_addresses_UPDATED_AT.f3f9b1c1b0"], "model.external_models.farcaster__dim_fnames": ["test.external_models.not_null_farcaster__dim_fnames_UPDATED_AT.724d9bd760"], "model.external_models.farcaster__fact_storage": ["test.external_models.not_null_farcaster__fact_storage_UPDATED_AT.b84533d887"], "model.external_models.farcaster__fact_casts": ["test.external_models.not_null_farcaster__fact_casts_UPDATED_AT.5d8dd8bd95"], "model.external_models.farcaster__fact_links": ["test.external_models.not_null_farcaster__fact_links_UPDATED_AT.ea41f8a298"], "model.external_models.farcaster__fact_warpcast_power_users": ["test.external_models.not_null_farcaster__fact_warpcast_power_users_UPDATED_AT.8008850037"], "model.external_models.farcaster__fact_signers": ["test.external_models.not_null_farcaster__fact_signers_UPDATED_AT.2a27e46c6b"], "model.external_models.farcaster__dim_fids": ["test.external_models.not_null_farcaster__dim_fids_UPDATED_AT.da0373fe59"], "model.external_models.farcaster__fact_verifications": ["test.external_models.not_null_farcaster__fact_verifications_UPDATED_AT.8ec3d8c803"], "model.external_models.silver__layerzero_txs_snapshot": ["model.external_models.layerzero__fact_transactions_snapshot", "test.external_models.dbt_utils_unique_combination_of_columns_silver__layerzero_txs_snapshot_LAYERZERO_TXS_SNAPSHOT_ID.e37099fee0", "test.external_models.not_null_silver__layerzero_txs_snapshot_SOURCE_TRANSACTION_HASH.a657c2b14d"], "model.external_models.layerzero__fact_transactions_snapshot": [], "model.external_models.bronze__layerzero_txs_snapshot1": ["model.external_models.silver__layerzero_txs_snapshot"], "model.external_models.silver__flashbots_mev_txs": ["model.external_models.flashbots__fact_mevshare_transactions", "test.external_models.dbt_utils_unique_combination_of_columns_silver__flashbots_mev_txs__ID.a3773be3b5", "test.external_models.not_null_silver__flashbots_mev_txs_BLOCK_TIME.43b2a3dd1c", "test.external_models.not_null_silver__flashbots_mev_txs__INSERTED_TIMESTAMP.6abaa9d8f7"], "model.external_models.silver__flashbots_protect_txs": ["model.external_models.flashbots__fact_protect_transactions", "test.external_models.dbt_utils_unique_combination_of_columns_silver__flashbots_protect_txs__ID.cea004070b", "test.external_models.not_null_silver__flashbots_protect_txs__INSERTED_TIMESTAMP.730aafbaf5"], "model.external_models.flashbots__fact_protect_transactions": [], "model.external_models.flashbots__fact_mevshare_transactions": [], "model.external_models.bronze__flashbots_mev_txs": ["model.external_models.silver__flashbots_mev_txs"], "model.external_models.bronze__flashbots_mev_txs_fr": ["model.external_models.silver__flashbots_mev_txs"], "model.external_models.bronze__flashbots_protect_txs_fr": ["model.external_models.silver__flashbots_protect_txs"], "model.external_models.bronze__flashbots_protect_txs": ["model.external_models.silver__flashbots_protect_txs"], "seed.external_models.bronze__defillama_api_pools_20230209_131432": ["model.external_models.defillama__dim_pools"], "seed.external_models.bronze__defillama_protocol_tvl_historical_response_sizes": ["model.external_models.streamline__defillama_protocol_historical"], "seed.external_models.bronze__defillama_usdt_usdc_chain_seed": ["model.external_models.bronze__defillama_usdc_usdt_supply"], "seed.external_models.bronze__verified_tokenlist_seed": ["model.external_models.bronze__all_tokenlists"], "operation.external_models.external_models-on-run-start-0": [], "operation.external_models.external_models-on-run-end-0": [], "model.livequery_models.live__allow_list": [], "model.livequery_models._eth__decoded_logs": ["model.livequery_models.ethereum__mainnet"], "model.livequery_models._eth__logs": ["model.livequery_models.ethereum__mainnet"], "model.livequery_models._evm__abi_map": ["analysis.livequery_models.test_crud_udfs_in_schema", "model.livequery_models.arbitrum_nova__mainnet", "model.livequery_models.arbitrum_one__goerli", "model.livequery_models.arbitrum_one__mainnet", "model.livequery_models.avalanche_c__mainnet", "model.livequery_models.avalanche_c__testnet", "model.livequery_models.base__goerli", "model.livequery_models.base__mainnet", "model.livequery_models.bsc__mainnet", "model.livequery_models.bsc__testnet", "model.livequery_models.celo__mainnet", "model.livequery_models.ethereum__goerli", "model.livequery_models.ethereum__mainnet", "model.livequery_models.ethereum__sepolia", "model.livequery_models.fantom__mainnet", "model.livequery_models.gnosis__mainnet", "model.livequery_models.harmony__mainnet", "model.livequery_models.harmony__testnet", "model.livequery_models.optimism__goerli", "model.livequery_models.optimism__mainnet", "model.livequery_models.polygon__mainnet", "model.livequery_models.polygon__testnet", "model.livequery_models.polygon_zkevm__mainnet", "model.livequery_models.polygon_zkevm__testnet"], "model.livequery_models._evm__contracts_map": ["analysis.livequery_models.test_crud_udfs_in_schema", "model.livequery_models.arbitrum_nova__mainnet", "model.livequery_models.arbitrum_one__goerli", "model.livequery_models.arbitrum_one__mainnet", "model.livequery_models.avalanche_c__mainnet", "model.livequery_models.avalanche_c__testnet", "model.livequery_models.base__goerli", "model.livequery_models.base__mainnet", "model.livequery_models.bsc__mainnet", "model.livequery_models.bsc__testnet", "model.livequery_models.celo__mainnet", "model.livequery_models.ethereum__goerli", "model.livequery_models.ethereum__mainnet", "model.livequery_models.ethereum__sepolia", "model.livequery_models.fantom__mainnet", "model.livequery_models.gnosis__mainnet", "model.livequery_models.harmony__mainnet", "model.livequery_models.harmony__testnet", "model.livequery_models.optimism__goerli", "model.livequery_models.optimism__mainnet", "model.livequery_models.polygon__mainnet", "model.livequery_models.polygon__testnet", "model.livequery_models.polygon_zkevm__mainnet", "model.livequery_models.polygon_zkevm__testnet"], "model.livequery_models._evm__native_symbol_map": ["analysis.livequery_models.test_crud_udfs_in_schema", "model.livequery_models.arbitrum_nova__mainnet", "model.livequery_models.arbitrum_one__goerli", "model.livequery_models.arbitrum_one__mainnet", "model.livequery_models.avalanche_c__mainnet", "model.livequery_models.avalanche_c__testnet", "model.livequery_models.base__goerli", "model.livequery_models.base__mainnet", "model.livequery_models.bsc__mainnet", "model.livequery_models.bsc__testnet", "model.livequery_models.celo__mainnet", "model.livequery_models.ethereum__goerli", "model.livequery_models.ethereum__mainnet", "model.livequery_models.ethereum__sepolia", "model.livequery_models.fantom__mainnet", "model.livequery_models.gnosis__mainnet", "model.livequery_models.harmony__mainnet", "model.livequery_models.harmony__testnet", "model.livequery_models.optimism__goerli", "model.livequery_models.optimism__mainnet", "model.livequery_models.polygon__mainnet", "model.livequery_models.polygon__testnet", "model.livequery_models.polygon_zkevm__mainnet", "model.livequery_models.polygon_zkevm__testnet"], "model.livequery_models.gnosis__mainnet": [], "model.livequery_models.fantom__mainnet": [], "model.livequery_models.ethereum__mainnet": [], "model.livequery_models.bsc__testnet": [], "model.livequery_models.avalanche_c__testnet": [], "model.livequery_models.ethereum__sepolia": [], "model.livequery_models.harmony__mainnet": [], "model.livequery_models.avalanche_c__mainnet": [], "model.livequery_models.optimism__goerli": [], "model.livequery_models.harmony__testnet": [], "model.livequery_models.optimism__mainnet": [], "model.livequery_models.base__goerli": [], "model.livequery_models.polygon__mainnet": [], "model.livequery_models.polygon__testnet": [], "model.livequery_models.arbitrum_nova__mainnet": [], "model.livequery_models.base__mainnet": [], "model.livequery_models.ethereum__goerli": [], "model.livequery_models.polygon_zkevm__mainnet": [], "model.livequery_models.celo__mainnet": [], "model.livequery_models.bsc__mainnet": [], "model.livequery_models.arbitrum_one__mainnet": [], "model.livequery_models.arbitrum_one__goerli": [], "model.livequery_models.polygon_zkevm__testnet": [], "model.livequery_models.transpose__": ["test.livequery_models.test_transpose__get_status_200.8721d94682"], "model.livequery_models.credmark_utils__": ["test.livequery_models.test_credmark_utils__get_status_200.d1548e1f6e"], "model.livequery_models.opensea__": ["test.livequery_models.test_opensea__get_status_200.5de63cfbb1"], "model.livequery_models.stakingrewards__": ["test.livequery_models.test_stakingrewards__query_status_200.144a35304b"], "model.livequery_models.subquery__": ["test.livequery_models.test_subquery__graphql_status_200.b25433a976"], "model.livequery_models.topshot__": ["test.livequery_models.test_topshot__graphql_status_200.fb93e3b220"], "model.livequery_models.allday__": ["test.livequery_models.test_allday__graphql_status_200.8cfd62f9a1"], "model.livequery_models.coingecko__": ["test.livequery_models.test_coingecko__get_status_200.047f15c956"], "model.livequery_models.dapplooker__": ["test.livequery_models.test_dapplooker__get_chart_status_202.4fedf28822"], "model.livequery_models.claude_utils__claude_utils": ["test.livequery_models.test_claude_utils__post_status_200.a32a62cfdf"], "model.livequery_models.claude__": ["test.livequery_models.test_claude__count_message_tokens.f5bafb2bce", "test.livequery_models.test_claude__get_message_batch.b52b8b8d04", "test.livequery_models.test_claude__get_message_batch_results.ecc8ad465c", "test.livequery_models.test_claude__get_model.1f65c29a92", "test.livequery_models.test_claude__list_message_batches.f5d6c40b59", "test.livequery_models.test_claude__list_message_batches_with_after.0e42b728e7", "test.livequery_models.test_claude__list_message_batches_with_before.aae86d2911", "test.livequery_models.test_claude__list_models.8516d777c7", "test.livequery_models.test_claude__post_messages_batch.e4ee537ae3", "test.livequery_models.test_claude__post_messages_only_one_message.ff8a12fc1b", "test.livequery_models.test_claude__post_messages_with_all_params.0917a032d2", "test.livequery_models.test_claude__post_messages_with_model.7b5774fbf2"], "model.livequery_models.strangelove__": ["test.livequery_models.test_strangelove__get_status_200.0a58865924"], "model.livequery_models.fred__": ["test.livequery_models.test_fred__get_series_status_200.51822e30ca"], "model.livequery_models.espn__": ["test.livequery_models.test_espn__get_status_200.b4f84cc829"], "model.livequery_models.solscan__": ["test.livequery_models.test_solscan_public_api_get__get_status_200.388381be71"], "model.livequery_models.dappradar__": ["test.livequery_models.test_dappradar__get_status_200.979ea475dc"], "model.livequery_models.covalent__": ["test.livequery_models.test_covalent__get_status_200.bb43bb7f69"], "model.livequery_models.deepnftvalue__": ["test.livequery_models.test_deepnftvalue__get_status_200.49fba544bb"], "model.livequery_models.github_utils__github_utils": ["model.livequery_models.github_actions__github_utils", "test.livequery_models.test_github_utils__octocat_status_200.3573395088"], "model.livequery_models.github_actions__github_utils": ["test.livequery_models.test_github_actions__runs_status_200.2d145a41cb", "test.livequery_models.test_github_actions__workflow_runs_status_200.abcfd5d553", "test.livequery_models.test_github_actions__workflows_status_200.1cc531bd94"], "model.livequery_models.nftscan__": ["test.livequery_models.test_nftscan__get_status_200.33868e0f0d"], "model.livequery_models.chainbase_utils__": ["test.livequery_models.test_chainbase_utils__get_status_200.07b6733652"], "model.livequery_models.snapshot__": ["test.livequery_models.test_snapshot__query_status_200.35a2cffb40"], "model.livequery_models.reservoir__": ["test.livequery_models.test_reservoir__get_status_200.cb905ea233"], "model.livequery_models.defillama__": ["test.livequery_models.test_defillama__get_status_200.90864f8f89"], "model.livequery_models.bitquery__": ["test.livequery_models.test_bitquery__graphql_status_200.11917beb18"], "model.livequery_models.helius_apis__helius_utils": ["test.livequery_models.test_helius_apis__balances_status_200.d668884644", "test.livequery_models.test_helius_apis__parse_transactions_status_200.71053900da", "test.livequery_models.test_helius_apis__token_metadata_status_200.c2bafa3fb0"], "model.livequery_models.helius_utils__helius_utils": ["model.livequery_models.helius_apis__helius_utils", "model.livequery_models.helius_das__helius_utils"], "model.livequery_models.helius_das__helius_utils": ["test.livequery_models.test_helius_das__get_asset_proof_status_200.2ed48f9fe3", "test.livequery_models.test_helius_das__get_asset_status_200.3e65208714", "test.livequery_models.test_helius_das__get_assets_by_authority_status_200.c9ac02b165", "test.livequery_models.test_helius_das__get_assets_by_creator_status_200.e8cb071d3a", "test.livequery_models.test_helius_das__get_assets_by_group_status_200.fe5813195d", "test.livequery_models.test_helius_das__get_assets_by_owner_status_200.6f2f1ef95c", "test.livequery_models.test_helius_das__get_signatures_for_asset_status_200.529a6b605d", "test.livequery_models.test_helius_das__search_assets_status_200.2373c30616"], "model.livequery_models.playgrounds__": ["test.livequery_models.test_playgrounds__query_subgraph_status_200_liquidity_pools.dfcb23f707", "test.livequery_models.test_playgrounds__query_subgraph_status_200_total_pool_count.86c8b9c6ee"], "model.livequery_models.zettablock__": [], "model.livequery_models.quicknode_polygon_tokens__quicknode_utils": ["test.livequery_models.test_quicknode_polygon_tokens__get_token_metadata_by_contract_address_status_200.529daa7446", "test.livequery_models.test_quicknode_polygon_tokens__get_token_metadata_by_symbol_status_200.d60e37734e", "test.livequery_models.test_quicknode_polygon_tokens__get_transactions_by_address_status_200.194093aade", "test.livequery_models.test_quicknode_polygon_tokens__get_wallet_token_balance_status_200.2bffddb733", "test.livequery_models.test_quicknode_polygon_tokens__get_wallet_token_transactions_status_200.57669f1a96"], "model.livequery_models.quicknode_ethereum_nfts__quicknode_utils": ["test.livequery_models.test_quicknode_ethereum_nfts__fetch_nft_collection_details_status_200.5a3e5bd53e", "test.livequery_models.test_quicknode_ethereum_nfts__fetch_nfts_by_collection_status_200.ba7f5aeceb", "test.livequery_models.test_quicknode_ethereum_nfts__fetch_nfts_status_200.e34b6fbe64", "test.livequery_models.test_quicknode_ethereum_nfts__get_transfers_by_nft_status_200.2e5143d642", "test.livequery_models.test_quicknode_ethereum_nfts__verify_nfts_owner_status_200.34afbca510"], "model.livequery_models.quicknode_utils__quicknode_utils": ["model.livequery_models.quicknode_ethereum_nfts__quicknode_utils", "model.livequery_models.quicknode_ethereum_tokens__quicknode_utils", "model.livequery_models.quicknode_polygon_nfts__quicknode_utils", "model.livequery_models.quicknode_polygon_tokens__quicknode_utils", "model.livequery_models.quicknode_solana_nfts__quicknode_utils"], "model.livequery_models.quicknode_solana_nfts__quicknode_utils": ["test.livequery_models.test_quicknode_solana_nfts__fetch_nfts_by_creator_status_200.70f38f0e31", "test.livequery_models.test_quicknode_solana_nfts__fetch_nfts_status_200.94f0e0082e"], "model.livequery_models.quicknode_ethereum_tokens__quicknode_utils": ["test.livequery_models.test_quicknode_ethereum_tokens__get_token_metadata_by_contract_address_status_200.3d5c91f8e2", "test.livequery_models.test_quicknode_ethereum_tokens__get_token_metadata_by_symbol_status_200.c34c43a92d", "test.livequery_models.test_quicknode_ethereum_tokens__get_transactions_by_address_status_200.29d4ecb431", "test.livequery_models.test_quicknode_ethereum_tokens__get_wallet_token_balance_status_200.9cda095850", "test.livequery_models.test_quicknode_ethereum_tokens__get_wallet_token_transactions_status_200.990e59cd6c"], "model.livequery_models.quicknode_polygon_nfts__quicknode_utils": ["test.livequery_models.test_quicknode_polygon_nfts__fetch_nft_collection_details_status_200.b69737052b", "test.livequery_models.test_quicknode_polygon_nfts__fetch_nfts_by_collection_status_200.8286191e06", "test.livequery_models.test_quicknode_polygon_nfts__fetch_nfts_status_200.2d1f2ae9d6", "test.livequery_models.test_quicknode_polygon_nfts__get_transfers_by_nft_status_200.2f6ba1e185", "test.livequery_models.test_quicknode_polygon_nfts__verify_nfts_owner_status_200.e87bb12c13"], "model.livequery_models.footprint_utils__footprint_utils": ["test.livequery_models.test_footprint_utils__get_status_200_v2_protocol_info.4d260facf4"], "model.livequery_models.cmc__": ["test.livequery_models.test_cmc__get_status_200.1e44de8c9e"], "model.livequery_models.apilayer__": ["test.livequery_models.test_apilayer__get_status_200.f739b0d36b"], "model.livequery_models.zapper__": [], "model.livequery_models.alchemy_tokens__alchemy_utils": ["test.livequery_models.test_alchemy_tokens__get_token_allowance_status_200.65ce803e24", "test.livequery_models.test_alchemy_tokens__get_token_balances_status_200.bdaa3fdabb", "test.livequery_models.test_alchemy_tokens__get_token_metadata_status_200.ff08820c76"], "model.livequery_models.alchemy_transfers__alchemy_utils": ["test.livequery_models.test_alchemy_transfers__get_asset_transfers_status_200.f1f3f416e4"], "model.livequery_models.alchemy_nfts__alchemy_utils": ["test.livequery_models.test_alchemy_nfts__compute_rarity_status_200.942425aa31", "test.livequery_models.test_alchemy_nfts__get_contract_metadata_batch_status_200.78a02ffe28", "test.livequery_models.test_alchemy_nfts__get_contract_metadata_status_200.0a9337a17a", "test.livequery_models.test_alchemy_nfts__get_contracts_for_owner_status_200.29e9e60296", "test.livequery_models.test_alchemy_nfts__get_floor_price_status_200.f2125d71e4", "test.livequery_models.test_alchemy_nfts__get_nft_metadata_batch_status_200.44d0ef0140", "test.livequery_models.test_alchemy_nfts__get_nft_metadata_status_200.aad531a83a", "test.livequery_models.test_alchemy_nfts__get_nft_sales_status_200.223f727f9f", "test.livequery_models.test_alchemy_nfts__get_nfts_for_collection_status_200.f7ff9b5ee5", "test.livequery_models.test_alchemy_nfts__get_nfts_status_200.34e3001576", "test.livequery_models.test_alchemy_nfts__get_owners_for_collection_status_200.3cdb9f0962", "test.livequery_models.test_alchemy_nfts__get_owners_for_token_status_200.c534c2579d", "test.livequery_models.test_alchemy_nfts__get_spam_contracts_status_200.b9dfb4e306", "test.livequery_models.test_alchemy_nfts__invalidate_contract_status_200.1ac32b4945", "test.livequery_models.test_alchemy_nfts__is_airdrop_status_200.58ce4f1bdc", "test.livequery_models.test_alchemy_nfts__is_holder_of_collection_status_200.d94f7ae355", "test.livequery_models.test_alchemy_nfts__is_spam_contract_status_200.91af21989f", "test.livequery_models.test_alchemy_nfts__reingest_contract_status_200.3c2c45fd00", "test.livequery_models.test_alchemy_nfts__search_contract_metadata_status_200.1e97937b32", "test.livequery_models.test_alchemy_nfts__summarize_nft_attributes_status_200.99d7f57e35"], "model.livequery_models.alchemy_utils__alchemy_utils": ["model.livequery_models.alchemy_nfts__alchemy_utils", "model.livequery_models.alchemy_tokens__alchemy_utils", "model.livequery_models.alchemy_transfers__alchemy_utils"], "model.livequery_models.blockpour_utils__": [], "model.livequery_models.live": ["model.livequery_models.alchemy_nfts__alchemy_utils", "model.livequery_models.alchemy_tokens__alchemy_utils", "model.livequery_models.alchemy_transfers__alchemy_utils", "model.livequery_models.alchemy_utils__alchemy_utils", "model.livequery_models.allday__", "model.livequery_models.apilayer__", "model.livequery_models.arbitrum_nova__mainnet", "model.livequery_models.arbitrum_one__goerli", "model.livequery_models.arbitrum_one__mainnet", "model.livequery_models.avalanche_c__mainnet", "model.livequery_models.avalanche_c__testnet", "model.livequery_models.base__goerli", "model.livequery_models.base__mainnet", "model.livequery_models.bitquery__", "model.livequery_models.blockpour_utils__", "model.livequery_models.bsc__mainnet", "model.livequery_models.bsc__testnet", "model.livequery_models.celo__mainnet", "model.livequery_models.chainbase_utils__", "model.livequery_models.claude__", "model.livequery_models.claude_utils__claude_utils", "model.livequery_models.cmc__", "model.livequery_models.coingecko__", "model.livequery_models.covalent__", "model.livequery_models.credmark_utils__", "model.livequery_models.dapplooker__", "model.livequery_models.dappradar__", "model.livequery_models.deepnftvalue__", "model.livequery_models.defillama__", "model.livequery_models.espn__", "model.livequery_models.ethereum__goerli", "model.livequery_models.ethereum__mainnet", "model.livequery_models.ethereum__sepolia", "model.livequery_models.fantom__mainnet", "model.livequery_models.footprint_utils__footprint_utils", "model.livequery_models.fred__", "model.livequery_models.github_actions__github_utils", "model.livequery_models.github_utils__github_utils", "model.livequery_models.gnosis__mainnet", "model.livequery_models.harmony__mainnet", "model.livequery_models.harmony__testnet", "model.livequery_models.helius_apis__helius_utils", "model.livequery_models.helius_das__helius_utils", "model.livequery_models.helius_utils__helius_utils", "model.livequery_models.live__allow_list", "model.livequery_models.nftscan__", "model.livequery_models.opensea__", "model.livequery_models.optimism__goerli", "model.livequery_models.optimism__mainnet", "model.livequery_models.playgrounds__", "model.livequery_models.polygon__mainnet", "model.livequery_models.polygon__testnet", "model.livequery_models.polygon_zkevm__mainnet", "model.livequery_models.polygon_zkevm__testnet", "model.livequery_models.quicknode_ethereum_nfts__quicknode_utils", "model.livequery_models.quicknode_ethereum_tokens__quicknode_utils", "model.livequery_models.quicknode_polygon_nfts__quicknode_utils", "model.livequery_models.quicknode_polygon_tokens__quicknode_utils", "model.livequery_models.quicknode_solana_nfts__quicknode_utils", "model.livequery_models.quicknode_utils__quicknode_utils", "model.livequery_models.reservoir__", "model.livequery_models.secrets", "model.livequery_models.snapshot__", "model.livequery_models.solscan__", "model.livequery_models.stakingrewards__", "model.livequery_models.strangelove__", "model.livequery_models.subquery__", "model.livequery_models.topshot__", "model.livequery_models.transpose__", "model.livequery_models.zapper__", "model.livequery_models.zettablock__", "test.livequery_models.test__live_udf_api_post_data_array.f30e6de8c8", "test.livequery_models.test__live_udf_api_post_data_object.208f9d5456", "test.livequery_models.test__live_udf_api_post_data_string.e2159319bb"], "model.livequery_models._utils": ["model.livequery_models.live", "model.livequery_models.secrets", "model.livequery_models.utils", "test.livequery_models.test___utils_udf_introspect.79bd27a18b"], "model.livequery_models.secrets": [], "model.livequery_models._live": ["model.livequery_models.live"], "model.livequery_models.utils": ["model.livequery_models.arbitrum_nova__mainnet", "model.livequery_models.arbitrum_one__goerli", "model.livequery_models.arbitrum_one__mainnet", "model.livequery_models.avalanche_c__mainnet", "model.livequery_models.avalanche_c__testnet", "model.livequery_models.base__goerli", "model.livequery_models.base__mainnet", "model.livequery_models.bsc__mainnet", "model.livequery_models.bsc__testnet", "model.livequery_models.celo__mainnet", "model.livequery_models.ethereum__goerli", "model.livequery_models.ethereum__mainnet", "model.livequery_models.ethereum__sepolia", "model.livequery_models.fantom__mainnet", "model.livequery_models.gnosis__mainnet", "model.livequery_models.harmony__mainnet", "model.livequery_models.harmony__testnet", "model.livequery_models.live", "model.livequery_models.optimism__goerli", "model.livequery_models.optimism__mainnet", "model.livequery_models.polygon__mainnet", "model.livequery_models.polygon__testnet", "model.livequery_models.polygon_zkevm__mainnet", "model.livequery_models.polygon_zkevm__testnet", "test.livequery_models.test__utils_udf_binary_to_int.907b20f381", "test.livequery_models.test__utils_udf_binary_to_int_large_number.926bff44e9", "test.livequery_models.test__utils_udf_evm_decode_log.b6fedb07e9", "test.livequery_models.test__utils_udf_int_to_binary.46856460db", "test.livequery_models.test__utils_udf_int_to_binary_large_number.feba996e3b", "test.livequery_models.test__utils_udf_json_rpc_call.0b87c6050e", "test.livequery_models.test__utils_udf_urlencode_array_1.bae96ece17", "test.livequery_models.test__utils_udf_urlencode_array_2.ff2898d4a2", "test.livequery_models.test__utils_udf_urlencode_array_array.3d05dcb6a9", "test.livequery_models.test__utils_udf_urlencode_array_false_1.ffe0d93235", "test.livequery_models.test__utils_udf_urlencode_array_false_2.f6e4d9a06a", "test.livequery_models.test__utils_udf_urlencode_array_false_array.979bfafd11", "test.livequery_models.test__utils_udf_urlencode_array_false_space.c46a422a10", "test.livequery_models.test__utils_udf_urlencode_array_false_special.ad3b4ce496", "test.livequery_models.test__utils_udf_urlencode_array_space.67b6f51498", "test.livequery_models.test__utils_udf_urlencode_array_special.746423269a", "test.livequery_models.test__utils_udf_urlencode_array_true_1.f1dc90fd5d", "test.livequery_models.test__utils_udf_urlencode_array_true_2.4c09ca3de2", "test.livequery_models.test__utils_udf_urlencode_array_true_array.559475a80a", "test.livequery_models.test__utils_udf_urlencode_array_true_space.c150fa3544", "test.livequery_models.test__utils_udf_urlencode_array_true_special.14abbd82f3", "test.livequery_models.test__utils_udf_urlencode_dict_1.1d75f92e0e", "test.livequery_models.test__utils_udf_urlencode_dict_2.60da312d8c", "test.livequery_models.test__utils_udf_urlencode_dict_array.25f6af5cf8", "test.livequery_models.test__utils_udf_urlencode_dict_false_1.e2e07ad77a", "test.livequery_models.test__utils_udf_urlencode_dict_false_2.58739709ab", "test.livequery_models.test__utils_udf_urlencode_dict_false_array.9524cea2e8", "test.livequery_models.test__utils_udf_urlencode_dict_false_space.1167d3f089", "test.livequery_models.test__utils_udf_urlencode_dict_false_special.0cd3cb5826", "test.livequery_models.test__utils_udf_urlencode_dict_space.d5e1917fd6", "test.livequery_models.test__utils_udf_urlencode_dict_special.6f25d30fd9", "test.livequery_models.test__utils_udf_urlencode_dict_true_1.3bf42c4e1b", "test.livequery_models.test__utils_udf_urlencode_dict_true_2.764afd6db8", "test.livequery_models.test__utils_udf_urlencode_dict_true_array.614d53ca8a", "test.livequery_models.test__utils_udf_urlencode_dict_true_space.11f0932fc3", "test.livequery_models.test__utils_udf_urlencode_dict_true_special.4eef6cb355"], "analysis.livequery_models.test_create_or_drop_function_from_config": [], "analysis.livequery_models.test_functions": [], "analysis.livequery_models.generate_test_udf_skeleton": [], "analysis.livequery_models.test_crud_udfs_in_schema": [], "analysis.livequery_models.test_functions_py": [], "seed.livequery_models.live__verified_api_endpoints": [], "operation.livequery_models.livequery_models-on-run-start-0": [], "operation.livequery_models.livequery_models-on-run-end-0": [], "model.fsc_utils._datashare___create_udfs": [], "model.fsc_utils._datashare___create_gold": [], "test.external_models.not_null_silver__tokenlists_verified_tokens_API_URL.4d6117cb50": [], "test.external_models.not_null_silver__tokenlists_verified_tokens_ADDRESS.d10abba80e": [], "test.external_models.not_null_silver__tokenlists_verified_tokens_CHAIN_ID.8fdd7cfe55": [], "test.external_models.dbt_utils_unique_combination_of_columns_silver__tokenlists_verified_tokens_API_URL__LOWER_ADDRESS___CHAIN_ID.ce00ef40ce": [], "test.external_models.not_null_bronze__all_tokenlists_API_URL.4f84b31250": [], "test.external_models.not_null_bronze__all_tokenlists_REQUEST.1e7047c6c4": [], "test.external_models.dbt_utils_unique_combination_of_columns_bronze__all_tokenlists_API_URL__REQUEST.3ed201dea9": [], "test.external_models.not_null_silver__polymarket_markets_CONDITION_ID.d534ff72dc": [], "test.external_models.not_null_silver__polymarket_markets__INSERTED_TIMESTAMP.3927deb926": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__polymarket_markets__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.eb4c915e91": [], "test.external_models.dbt_utils_unique_combination_of_columns_silver__polymarket_markets_CONDITION_ID.079735fed9": [], "test.external_models.not_null_bronze__polymarket_markets_CONDITION_ID.e746168184": [], "test.external_models.not_null_bronze__polymarket_markets__INSERTED_TIMESTAMP.b2e066aada": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__polymarket_markets__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.de6501ee0b": [], "test.external_models.not_null_silver_aptos__lync_metric.3d12e974b6": [], "test.external_models.not_null_silver_aptos__lync_metric_count.902d0116f3": [], "test.external_models.not_null_silver_aptos__lync_metric_amount.26188f96dc": [], "test.external_models.not_null_silver_aptos__lync_metric_amount_in_usd.c567ac53f1": [], "test.external_models.not_null_silver_aptos__shinam_metric_date.e87ed95074": [], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver_aptos__shinam_metric_date__day__3.d346ecf718": [], "test.external_models.not_null_silver__snapshot_proposals_PROPOSAL_ID.7025c6df25": [], "test.external_models.not_null_silver__snapshot_proposals_CREATED_AT.6da88af9f6": [], "test.external_models.not_null_silver__snapshot_proposals_PROPOSAL_START_TIME.9f5c3c7f1b": [], "test.external_models.not_null_silver__snapshot_proposals_PROPOSAL_END_TIME.5f14be541b": [], "test.external_models.not_null_silver__snapshot_proposals__INSERTED_TIMESTAMP.9b86eaedeb": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__snapshot_proposals__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.7931ee3896": [], "test.external_models.dbt_utils_unique_combination_of_columns_silver__snapshot_proposals_PROPOSAL_ID.07e9b3a85b": [], "test.external_models.not_null_silver__snapshot_users_ADDRESS.1dd18cb68e": [], "test.external_models.not_null_silver__snapshot_users_CREATED_AT.0499e8afe9": [], "test.external_models.not_null_silver__snapshot_users__INSERTED_TIMESTAMP.909a06b730": [], "test.external_models.dbt_utils_unique_combination_of_columns_silver__snapshot_users_ADDRESS.9ea8a0645c": [], "test.external_models.not_null_silver__snapshot_spaces_SPACE_ID.1e98e6593b": [], "test.external_models.not_null_silver__snapshot_spaces_SPACE.b594675078": [], "test.external_models.not_null_silver__snapshot_spaces__INSERTED_TIMESTAMP.9c97d87460": [], "test.external_models.dbt_utils_unique_combination_of_columns_silver__snapshot_spaces_SPACE_ID.176897c79d": [], "test.external_models.not_null_silver__snapshot_votes_VOTE_TIMESTAMP.bc2c7ab8f4": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__snapshot_votes_VOTE_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.449807ec08": [], "test.external_models.not_null_silver__snapshot_votes_VOTER.f83f2638d0": [], "test.external_models.dbt_expectations_expect_column_values_to_match_regex_silver__snapshot_votes_VOTER__0_xX_0_9a_fA_F_.441303a55c": [], "test.external_models.not_null_silver__snapshot_votes_PROPOSAL_ID.a2a1e3cd20": [], "test.external_models.not_null_silver__snapshot_votes_VOTE_OPTION.749d690de9": [], "test.external_models.not_null_silver__snapshot_votes_VOTE_ID.3e87d455f6": [], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__snapshot_votes__INSERTED_TIMESTAMP__day__1.f824a44d33": [], "test.external_models.dbt_utils_unique_combination_of_columns_silver__snapshot_votes_VOTE_ID.2d7a58900a": [], "test.external_models.not_null_bronze__snapshot_votes_ID.03d01283f1": [], "test.external_models.not_null_bronze__snapshot_votes_PROPOSAL_ID.fd52925536": [], "test.external_models.not_null_bronze__snapshot_votes_VOTER.4c90295a96": [], "test.external_models.not_null_bronze__snapshot_votes_VOTE_TIMESTAMP.3fa3f796a9": [], "test.external_models.not_null_bronze__snapshot_votes_VOTE_OPTION.55945386d3": [], "test.external_models.not_null_bronze__snapshot_votes__INSERTED_TIMESTAMP.22e6f3ebe5": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_votes__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.ca2bd30b51": [], "test.external_models.dbt_utils_unique_combination_of_columns_bronze__snapshot_votes_ID.58b906fcef": [], "test.external_models.not_null_bronze__snapshot_proposals_PROPOSAL_ID.43feeab1b7": [], "test.external_models.not_null_bronze__snapshot_proposals_CHOICES.9871e8bf95": [], "test.external_models.not_null_bronze__snapshot_proposals_SPACE_ID.226caec17f": [], "test.external_models.not_null_bronze__snapshot_proposals_CREATED_AT.159e8e2d9c": [], "test.external_models.not_null_bronze__snapshot_proposals_PROPOSAL_START_TIME.e3ff173f25": [], "test.external_models.not_null_bronze__snapshot_proposals_PROPOSAL_END_TIME.4cc9d3d569": [], "test.external_models.not_null_bronze__snapshot_proposals__INSERTED_TIMESTAMP.aa2872ddc3": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_proposals__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.fbe74d6bb1": [], "test.external_models.dbt_utils_unique_combination_of_columns_bronze__snapshot_proposals_PROPOSAL_ID.4df591b4ac": [], "test.external_models.not_null_bronze__snapshot_spaces_SPACE_ID.a2937f04fc": [], "test.external_models.not_null_bronze__snapshot_spaces_SPACE.30110840bc": [], "test.external_models.not_null_bronze__snapshot_spaces__INSERTED_TIMESTAMP.b2a2ca6dee": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_spaces__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.4a33bbc621": [], "test.external_models.dbt_utils_unique_combination_of_columns_bronze__snapshot_spaces_SPACE_ID.dcac8f89f2": [], "test.external_models.not_null_bronze__snapshot_users_ADDRESS.ca42f3f763": [], "test.external_models.not_null_bronze__snapshot_users_CREATED_AT.2912f9578e": [], "test.external_models.not_null_bronze__snapshot_users__INSERTED_TIMESTAMP.6fb9280682": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__snapshot_users__INSERTED_TIMESTAMP__TIMESTAMP_LTZ__TIMESTAMP_NTZ.61c6d4b19e": [], "test.external_models.dbt_utils_unique_combination_of_columns_bronze__snapshot_users_ADDRESS.9c829aad58": [], "test.external_models.not_null_oklink__tam_BLOCKCHAIN.9dd7cae40c": [], "test.external_models.not_null_oklink__tam_AS_OF_DATE.f23bba1c8a": [], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_oklink__tam_AS_OF_DATE__day__2.b259a4cc0c": [], "test.external_models.not_null_oklink__tam_TOTAL_ADDRESSES.0794bb787c": [], "test.external_models.unique_oklink__tam_TAM_ID.5d0ddefb2f": [], "test.external_models.not_null_oklink__tx_count_BLOCKCHAIN.19d8c11da9": [], "test.external_models.not_null_oklink__tx_count_BLOCK_DATE.ab2e1232d8": [], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_oklink__tx_count_BLOCK_DATE__day__2.e0da2858e8": [], "test.external_models.not_null_oklink__tx_count_TX_COUNT.24ad5901d0": [], "test.external_models.unique_oklink__tx_count_TX_COUNT_ID.e3c27d411d": [], "test.external_models.not_null_oklink__contracts_BLOCKCHAIN.7ac207cc5f": [], "test.external_models.not_null_oklink__contracts_AS_OF_DATE.cd51b05b30": [], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_oklink__contracts_AS_OF_DATE__day__2.18e13a0259": [], "test.external_models.not_null_oklink__contracts_CONTRACT_COUNT.addc0fff5d": [], "test.external_models.unique_oklink__contracts_CONTRACTS_ID.068241a2ef": [], "test.external_models.not_null_oklink__active_users_BLOCKCHAIN.7d537a456c": [], "test.external_models.not_null_oklink__active_users_AS_OF_DATE.8148b5f03c": [], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_oklink__active_users_AS_OF_DATE__day__2.7a6b7c52ae": [], "test.external_models.not_null_oklink__active_users_ACTIVE_USERS.3011289ebb": [], "test.external_models.unique_oklink__active_users_ACTIVE_USERS_ID.60d02a848d": [], "test.external_models.not_null_silver__defillama_raises_RAISE_ID.a6c9cfda9b": [], "test.external_models.not_null_silver__defillama_raises_PROJECT_NAME.e6a6854bbb": [], "test.external_models.not_null_silver__defillama_raises_FUNDING_DATE.055464c7e9": [], "test.external_models.not_null_silver__defillama_raises__INSERTED_TIMESTAMP.09318375f6": [], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_raises_RAISE_ID.cbd412cee8": [], "test.external_models.not_null_silver__defillama_protocol_fees_CHAIN.d434098292": [], "test.external_models.not_null_silver__defillama_protocol_fees__INSERTED_TIMESTAMP.ce25594587": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocol_fees__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.5acc5c41a2": [], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocol_fees__INSERTED_TIMESTAMP__day__2.0405088cbd": [], "test.external_models.not_null_silver__defillama_protocol_fees_ID.e292c7143d": [], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_protocol_fees_ID.03cc375156": [], "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_BRIDGE_ID.a614975e3c": [], "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_BRIDGE.b6f114b68a": [], "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_CHAIN.eff9323ee0": [], "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_DATE.c6d68128a2": [], "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_DEPOSIT_TXS.047faf98b4": [], "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_DEPOSIT_USD.615b5cbf42": [], "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_WITHDRAW_TXS.7117c612b3": [], "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_WITHDRAW_USD.279d267331": [], "test.external_models.not_null_silver__defillama_bridge_volume_by_chain_INSERTED_TIMESTAMP.88d1482ef7": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_bridge_volume_by_chain_INSERTED_TIMESTAMP__TIMESTAMP_NTZ.886365f9bf": [], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_bridge_volume_by_chain_INSERTED_TIMESTAMP__day__2.84922787bf": [], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_bridge_volume_by_chain_defillama_bridge_vol_by_chain_id.335bdf13f6": [], "test.external_models.not_null_silver__defillama_options_notional_CHAIN.17704c94d3": [], "test.external_models.not_null_silver__defillama_options_notional__INSERTED_TIMESTAMP.1b2760a764": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_options_notional__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.954e6abb0e": [], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_options_notional__INSERTED_TIMESTAMP__day__2.bfa1ced883": [], "test.external_models.not_null_silver__defillama_options_notional_ID.797f360571": [], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_options_notional_ID.4ed2e3fa3f": [], "test.external_models.not_null_silver__defillama_bridge_volume_BRIDGE_ID.e186492e1d": [], "test.external_models.not_null_silver__defillama_bridge_volume_BRIDGE.2758ecc03f": [], "test.external_models.not_null_silver__defillama_bridge_volume__INSERTED_TIMESTAMP.2d38284c8d": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_bridge_volume__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.98985142f9": [], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_bridge_volume__INSERTED_TIMESTAMP__day__2.6817773edd": [], "test.external_models.not_null_silver__defillama_bridge_volume_ID.553904b651": [], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_bridge_volume_BRIDGE_ID__TIMESTAMP.84d1376ea1": [], "test.external_models.not_null_silver__defillama_perp_metrics_timestamp.472db55af5": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_timestamp__DATE.81996737ac": [], "test.external_models.not_null_silver__defillama_perp_metrics_protocol_id.14c6ac4f05": [], "test.external_models.not_null_silver__defillama_perp_metrics_category.03f85efead": [], "test.external_models.not_null_silver__defillama_perp_metrics_name.7b2aa5872c": [], "test.external_models.not_null_silver__defillama_perp_metrics_display_name.f6a537f455": [], "test.external_models.not_null_silver__defillama_perp_metrics_module.1ee1cd9d64": [], "test.external_models.not_null_silver__defillama_perp_metrics_logo.cd14f778d5": [], "test.external_models.not_null_silver__defillama_perp_metrics_chains.3ef0fddd80": [], "test.external_models.not_null_silver__defillama_perp_metrics_protocol_type.4823df5948": [], "test.external_models.not_null_silver__defillama_perp_metrics_methodology_url.0bf67e7b14": [], "test.external_models.not_null_silver__defillama_perp_metrics_methodology.8dfe586cb6": [], "test.external_models.not_null_silver__defillama_perp_metrics_protocol_slug.2cb6a79b30": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_24h__FLOAT.8ec5c7045d": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_48h_to_24h__FLOAT.ebb833856d": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_7d__FLOAT.8b6e748f8b": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_30d__FLOAT.27077c7b0e": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_total_all_time__FLOAT.896c72813b": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_change_1d__FLOAT.f2337eadc0": [], "test.external_models.not_null_silver__defillama_perp_metrics_total_data_chart_breakdown.eeccb8e45f": [], "test.external_models.not_null_silver__defillama_perp_metrics_defillama_perp_metrics_id.ec9ff8860a": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics__inserted_timestamp__TIMESTAMP_NTZ.07b57d6775": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_inserted_timestamp__TIMESTAMP_NTZ.c65246177c": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_metrics_modified_timestamp__TIMESTAMP_NTZ.5559f95279": [], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_perp_metrics_protocol_id__timestamp.132646d40b": [], "test.external_models.not_null_silver__defillama_stablecoin_metrics__INSERTED_TIMESTAMP.e75bd7f082": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_stablecoin_metrics__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.0771cb7209": [], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_stablecoin_metrics__INSERTED_TIMESTAMP__day__2.f04ba5a494": [], "test.external_models.not_null_silver__defillama_stablecoin_metrics_DATE_DAY.897365ca0a": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_stablecoin_metrics_DATE_DAY__DATE.2ef937fbbe": [], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_stablecoin_metrics_DATE_DAY__day__2.62280edb3d": [], "test.external_models.not_null_silver__defillama_stablecoin_metrics_DEFILLAMA_STABLECOIN_METRICS_ID.1e22190956": [], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_stablecoin_metrics_DEFILLAMA_STABLECOIN_METRICS_ID.658e9db88b": [], "test.external_models.not_null_silver__defillama_usdt_usdc_supply__INSERTED_TIMESTAMP.f669b526df": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_usdt_usdc_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.9f973f7fd3": [], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_usdt_usdc_supply__INSERTED_TIMESTAMP__day__2.08f1f58f98": [], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_usdt_usdc_supply_DEFILLAMA_USDC_USDT_SUPPLY_ID.7a5a092f00": [], "test.external_models.not_null_silver__defillama_protocol_tvl__INSERTED_TIMESTAMP.df3fc95018": [], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocol_tvl__INSERTED_TIMESTAMP__day__1.fcd40b4f7c": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocol_tvl__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.67afb5c2b5": [], "test.external_models.not_null_silver__defillama_protocol_tvl_DEFILLAMA_TVL_ID.42ecdf436d": [], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_protocol_tvl_DEFILLAMA_TVL_ID.8db584bebb": [], "test.external_models.not_null_silver__defillama_perp_daily_volume_date.ed62238679": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_date__DATE.fb8b5499bd": [], "test.external_models.not_null_silver__defillama_perp_daily_volume_chain.45bd739186": [], "test.external_models.not_null_silver__defillama_perp_daily_volume_protocol_id.cdcfe05028": [], "test.external_models.not_null_silver__defillama_perp_daily_volume_protocol_slug.5e56702a0d": [], "test.external_models.not_null_silver__defillama_perp_daily_volume_protocol.d43869ecf4": [], "test.external_models.not_null_silver__defillama_perp_daily_volume_volume.dda7a42480": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_volume__FLOAT.227148bece": [], "test.external_models.not_null_silver__defillama_perp_daily_volume_defillama_perp_metrics_id.fc9e7a49b1": [], "test.external_models.not_null_silver__defillama_perp_daily_volume_defillama_perp_daily_volume_id.050418fda4": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume__inserted_timestamp__TIMESTAMP_NTZ.a7334119d7": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_inserted_timestamp__TIMESTAMP_NTZ.f65eb01509": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_perp_daily_volume_modified_timestamp__TIMESTAMP_NTZ.23255c8acd": [], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_perp_daily_volume_protocol_id__date__chain.acc3fd514c": [], "test.external_models.not_null_silver__defillama_investors_INVESTOR.2b2a8c6e9a": [], "test.external_models.not_null_silver__defillama_investors__INSERTED_TIMESTAMP.a9348ff319": [], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_investors_INVESTOR.a7623080b4": [], "test.external_models.not_null_silver__defillama_stablecoin_supply__INSERTED_TIMESTAMP.7e00b9d5c5": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_stablecoin_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.3653e5a1cf": [], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_stablecoin_supply__INSERTED_TIMESTAMP__day__2.8028729672": [], "test.external_models.not_null_silver__defillama_stablecoin_supply_DEFILLAMA_STABLECOIN_SUPPLY_ID.072450f5e2": [], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_stablecoin_supply_DEFILLAMA_STABLECOIN_SUPPLY_ID.7bf8bbe21c": [], "test.external_models.not_null_silver__defillama_dex_volume_CHAIN.99ef0dec7d": [], "test.external_models.not_null_silver__defillama_dex_volume__INSERTED_TIMESTAMP.1ccec92206": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_dex_volume__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.8e26780493": [], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_dex_volume__INSERTED_TIMESTAMP__day__1.bef8fa61d0": [], "test.external_models.not_null_silver__defillama_dex_volume_ID.4eac69b2aa": [], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_dex_volume_ID.93100978dc": [], "test.external_models.not_null_silver__defillama_pool_yields__INSERTED_TIMESTAMP.cf82b3d544": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_pool_yields__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.1a6d978404": [], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_pool_yields__INSERTED_TIMESTAMP__day__2.2f63a4fa45": [], "test.external_models.not_null_silver__defillama_pool_yields_TIMESTAMP.37b3272aba": [], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_pool_yields_DEFILLAMA_YIELD_ID.b59e60eeda": [], "test.external_models.not_null_silver__defillama_protocols__INSERTED_TIMESTAMP.59c4e95c9c": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocols__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.54e4afda8f": [], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocols__INSERTED_TIMESTAMP__day__2.420a65084a": [], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_protocols_DEFILLAMA_PROTOCOLS_ID.8a2a9bf6a7": [], "test.external_models.not_null_silver__defillama_chains_tvl__INSERTED_TIMESTAMP.72b4261db1": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_chains_tvl__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.a067d1eac2": [], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_chains_tvl__INSERTED_TIMESTAMP__day__2.187b24cdd3": [], "test.external_models.not_null_silver__defillama_chains_tvl_ID.4053d1c479": [], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_chains_tvl_CHAIN__TIMESTAMP.1bc2091543": [], "test.external_models.not_null_silver__defillama_options_premium_CHAIN.a58ffe7b2b": [], "test.external_models.not_null_silver__defillama_options_premium__INSERTED_TIMESTAMP.3d9bd5a105": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_options_premium__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.2280d7f2a6": [], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_options_premium__INSERTED_TIMESTAMP__day__2.b0dc92c970": [], "test.external_models.not_null_silver__defillama_options_premium_ID.8c8d1dbefe": [], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_options_premium_ID.f2c952c29e": [], "test.external_models.not_null_silver__defillama_protocol_revenue_CHAIN.aaf93a9585": [], "test.external_models.not_null_silver__defillama_protocol_revenue__INSERTED_TIMESTAMP.960b8d7b66": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_silver__defillama_protocol_revenue__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.2025c52a03": [], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_silver__defillama_protocol_revenue__INSERTED_TIMESTAMP__day__2.9255e527b7": [], "test.external_models.not_null_silver__defillama_protocol_revenue_ID.fc3053c7bf": [], "test.external_models.dbt_utils_unique_combination_of_columns_silver__defillama_protocol_revenue_ID.f28e235429": [], "test.external_models.not_null_silver__defillama_protocol_tvl_history_timestamp.603a6ed60f": [], "test.external_models.not_null_silver__defillama_protocol_tvl_history_protocol_id.e8f35f7758": [], "test.external_models.not_null_silver__defillama_protocol_tvl_history_chain.00929371cd": [], "test.external_models.not_null_silver__defillama_protocol_tvl_history_chain_tvl.dd69677c11": [], "test.external_models.unique_silver__defillama_protocol_tvl_history_defillama_protocol_tvl_history_id.7a26f80f27": [], "test.external_models.not_null_silver__defillama_protocol_tvl_history_defillama_protocol_tvl_history_id.0c1700be63": [], "test.external_models.not_null_silver__defillama_protocol_tvl_history__inserted_timestamp.3a00bdcdaf": [], "test.external_models.not_null_defillama__ez_stablecoin_metrics_chain.a31537394e": [], "test.external_models.not_null_defillama__ez_stablecoin_metrics_date_day.8be6c5ded3": [], "test.external_models.not_null_defillama__ez_stablecoin_metrics_stablecoin_id.550d95d3ce": [], "test.external_models.not_null_defillama__ez_stablecoin_metrics_stablecoin.8bd8a24860": [], "test.external_models.not_null_defillama__ez_stablecoin_metrics_symbol.b7badaccb5": [], "test.external_models.not_null_defillama__ez_stablecoin_metrics_peg_type.17890d14ad": [], "test.external_models.not_null_defillama__ez_stablecoin_metrics_peg_mechanism.4ca9af4400": [], "test.external_models.unique_defillama__ez_stablecoin_metrics_ez_stablecoin_metrics_id.bf19235079": [], "test.external_models.not_null_defillama__ez_stablecoin_metrics_ez_stablecoin_metrics_id.adf99e97ff": [], "test.external_models.not_null_defillama__ez_stablecoin_metrics_inserted_timestamp.20f593d022": [], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_defillama__ez_stablecoin_metrics_inserted_timestamp__day__2.acb8be47e0": [], "test.external_models.not_null_defillama__ez_stablecoin_metrics_modified_timestamp.d90908e883": [], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_defillama__ez_stablecoin_metrics_modified_timestamp__day__2.a305d6efe9": [], "test.external_models.dbt_utils_unique_combination_of_columns_defillama__fact_usdt_usdc_supply_DEFILLAMA_FACT_USDT_USDC_SUPPLY_ID.af85cd2773": [], "test.external_models.not_null_defillama__dim_protocols_MODIFIED_TIMESTAMP.2e3ecb0b3e": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_defillama__dim_protocols_MODIFIED_TIMESTAMP__TIMESTAMP_NTZ.390f2a37c8": [], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_defillama__dim_protocols_MODIFIED_TIMESTAMP__day__2.6fbd64af1e": [], "test.external_models.not_null_defillama__dim_protocols_INSERTED_TIMESTAMP.46acb9a7da": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_defillama__dim_protocols_INSERTED_TIMESTAMP__TIMESTAMP_NTZ.3e63f796d0": [], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_defillama__dim_protocols_INSERTED_TIMESTAMP__day__2.0f727fed14": [], "test.external_models.not_null_bronze__defillama_dexes_DEX_ID.279f415a10": [], "test.external_models.not_null_bronze__defillama_dexes_DEX.773f1f75f7": [], "test.external_models.not_null_bronze__defillama_dexes__INSERTED_TIMESTAMP.27d26ad6e1": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_dexes__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.6158c95d98": [], "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_dexes_DEX_ID__DEX.a9bfc87b1f": [], "test.external_models.not_null_bronze__defillama_chains_CHAIN.c988effa27": [], "test.external_models.not_null_bronze__defillama_chains__INSERTED_TIMESTAMP.826ea39a44": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_chains__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.4cb489c21f": [], "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_chains_CHAIN.545e1a28c1": [], "test.external_models.not_null_bronze__defillama_stablecoins_STABLECOIN_ID.2e0b05c5d2": [], "test.external_models.not_null_bronze__defillama_stablecoins_STABLECOIN.64b104eca3": [], "test.external_models.not_null_bronze__defillama_stablecoins__INSERTED_TIMESTAMP.e8667d321e": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_stablecoins__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.258f8a2290": [], "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_stablecoins_STABLECOIN_ID.626bc22a29": [], "test.external_models.not_null_bronze__defillama_stablecoin_supply__INSERTED_TIMESTAMP.466594afa2": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_stablecoin_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.22ec5016c6": [], "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_stablecoin_supply_STABLECOIN_ID__TIMESTAMP.a73b0531bc": [], "test.external_models.not_null_bronze__defillama_protocol_tvl_PROTOCOL_ID.45da76f0c4": [], "test.external_models.not_null_bronze__defillama_protocol_tvl__INSERTED_TIMESTAMP.2237722b25": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_protocol_tvl__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.3adf7c0003": [], "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_protocol_tvl_PROTOCOL_ID__CHAIN___INSERTED_TIMESTAMP.5be1ec25fb": [], "test.external_models.not_null_bronze__defillama_perps_protocol_id.1c27f19c82": [], "test.external_models.not_null_bronze__defillama_perps_protocol_slug.b54442faae": [], "test.external_models.not_null_bronze__defillama_perps_category.966373d4f7": [], "test.external_models.not_null_bronze__defillama_perps_name.f711db516d": [], "test.external_models.not_null_bronze__defillama_perps_display_name.38f88c8b75": [], "test.external_models.not_null_bronze__defillama_perps__inserted_timestamp.7d33dc4b81": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_perps__inserted_timestamp__TIMESTAMP_NTZ.b78bef6168": [], "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_perps_protocol_id.1b75f4d8fa": [], "test.external_models.not_null_bronze__defillama_raises_RAISE_ID.5d70470335": [], "test.external_models.not_null_bronze__defillama_raises_PROJECT_NAME.b9ae7b7f38": [], "test.external_models.not_null_bronze__defillama_raises_FUNDING_DATE.36da197012": [], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_bronze__defillama_raises_FUNDING_DATE__day__30.ca1b778724": [], "test.external_models.not_null_bronze__defillama_raises__INSERTED_TIMESTAMP.92aefadf98": [], "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_raises_RAISE_ID.c194c48903": [], "test.external_models.not_null_bronze__defillama_protocol_tvl_history_PROTOCOL_ID.f49602e496": [], "test.external_models.not_null_bronze__defillama_protocol_tvl_history__INSERTED_TIMESTAMP.8740370390": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_protocol_tvl_history__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.565c8d7976": [], "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_protocol_tvl_history_PROTOCOL_ID___INSERTED_TIMESTAMP.604bc47379": [], "test.external_models.not_null_bronze__defillama_chainlist_CHAIN_ID.25192577da": [], "test.external_models.not_null_bronze__defillama_chainlist_CHAIN.5780be5d54": [], "test.external_models.not_null_bronze__defillama_chainlist__INSERTED_TIMESTAMP.540820d90f": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_chainlist__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.d348817d21": [], "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_chainlist_CHAIN_ID.7ce0a0b603": [], "test.external_models.not_null_bronze__defillama_usdc_usdt_supply__INSERTED_TIMESTAMP.5706d592c1": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_usdc_usdt_supply__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.e35111402d": [], "test.external_models.not_null_bronze__defillama_bridges_BRIDGE_ID.2ba6c21db0": [], "test.external_models.not_null_bronze__defillama_bridges_BRIDGE.d073e2edb8": [], "test.external_models.not_null_bronze__defillama_bridges__INSERTED_TIMESTAMP.cf3a9c3ab5": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__defillama_bridges__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.47c9c197a2": [], "test.external_models.dbt_utils_unique_combination_of_columns_bronze__defillama_bridges_BRIDGE_ID.ec12df5019": [], "test.external_models.not_null_bitquery__active_users_BLOCKCHAIN.914a87f4a8": [], "test.external_models.not_null_bitquery__active_users_METRIC.4a978e38ec": [], "test.external_models.not_null_bitquery__active_users_AS_OF_DATE.24e6f16d52": [], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_bitquery__active_users_AS_OF_DATE__day__2.640f33ae24": [], "test.external_models.not_null_bitquery__active_users_ACTIVE_USERS.c10bdbc8ad": [], "test.external_models.dbt_utils_unique_combination_of_columns_bitquery__active_users_BLOCKCHAIN__METRIC__AS_OF_DATE.6fcc49b831": [], "test.external_models.not_null_bitquery__tx_count_BLOCKCHAIN.8ae6357142": [], "test.external_models.not_null_bitquery__tx_count_METRIC.74279a41fa": [], "test.external_models.not_null_bitquery__tx_count_BLOCK_DATE.fbbe8ebf2c": [], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_bitquery__tx_count_BLOCK_DATE__day__2.706e3ce251": [], "test.external_models.not_null_bitquery__tx_count_TX_COUNT.5a8345b648": [], "test.external_models.dbt_utils_unique_combination_of_columns_bitquery__tx_count_BLOCKCHAIN__METRIC__BLOCK_DATE.ec78a68947": [], "test.external_models.not_null_silver__artemis_metric_date.9a93f8e63b": [], "test.external_models.not_null_silver__artemis_blockchain.a0d0dfb71d": [], "test.external_models.unique_silver__artemis_artemis_id.7cc15da134": [], "test.external_models.not_null_silver__artemis_artemis_id.d82126688b": [], "test.external_models.not_null_silver__artemis__inserted_timestamp.a6a732f820": [], "test.external_models.not_null_artemis__active_users_BLOCKCHAIN.686f55f021": [], "test.external_models.not_null_artemis__active_users_BLOCK_DATE.d56135f9af": [], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_artemis__active_users_BLOCK_DATE__day__3.e4b3cfa665": [], "test.external_models.not_null_artemis__active_users_ACTIVE_USERS.450401b050": [], "test.external_models.unique_artemis__active_users_ACTIVE_USERS_ID.0ba8dead1c": [], "test.external_models.not_null_artemis__tx_count_BLOCKCHAIN.d0c8a33dfe": [], "test.external_models.not_null_artemis__tx_count_BLOCK_DATE.dbafcdce9a": [], "test.external_models.dbt_expectations_expect_row_values_to_have_recent_data_artemis__tx_count_BLOCK_DATE__day__3.9e9badb9b2": [], "test.external_models.not_null_artemis__tx_count_TX_COUNT.f3522b67b1": [], "test.external_models.unique_artemis__tx_count_TX_COUNT_ID.3fc82084e9": [], "test.external_models.not_null_bronze__blast_leaderboard_RANK.367c836ca7": [], "test.external_models.not_null_bronze__blast_leaderboard__INSERTED_TIMESTAMP.04332ff14b": [], "test.external_models.dbt_expectations_expect_column_values_to_be_in_type_list_bronze__blast_leaderboard__INSERTED_TIMESTAMP__TIMESTAMP_NTZ.d51e63d1b6": [], "test.external_models.not_null_bronze__blast_leaderboard_ID.bb6f4cfb18": [], "test.external_models.dbt_utils_unique_combination_of_columns_bronze__blast_leaderboard_ID.c3d87330d2": [], "test.external_models.not_null_farcaster__fact_storage_UPDATED_AT.b84533d887": [], "test.external_models.not_null_farcaster__fact_blocks_CREATED_AT.3347167eb8": [], "test.external_models.not_null_farcaster__fact_channel_follows_UPDATED_AT.da206c58b8": [], "test.external_models.not_null_farcaster__fact_signers_UPDATED_AT.2a27e46c6b": [], "test.external_models.not_null_farcaster__fact_casts_UPDATED_AT.5d8dd8bd95": [], "test.external_models.not_null_farcaster__fact_reactions_UPDATED_AT.9a07cc8175": [], "test.external_models.not_null_farcaster__dim_fnames_UPDATED_AT.724d9bd760": [], "test.external_models.not_null_farcaster__fact_warpcast_power_users_UPDATED_AT.8008850037": [], "test.external_models.not_null_farcaster__dim_profile_with_addresses_UPDATED_AT.f3f9b1c1b0": [], "test.external_models.not_null_farcaster__fact_user_data_UPDATED_AT.c07d179892": [], "test.external_models.not_null_farcaster__fact_links_UPDATED_AT.ea41f8a298": [], "test.external_models.not_null_farcaster__dim_fids_UPDATED_AT.da0373fe59": [], "test.external_models.not_null_farcaster__fact_verifications_UPDATED_AT.8ec3d8c803": [], "test.external_models.not_null_silver__layerzero_txs_snapshot_SOURCE_TRANSACTION_HASH.a657c2b14d": [], "test.external_models.dbt_utils_unique_combination_of_columns_silver__layerzero_txs_snapshot_LAYERZERO_TXS_SNAPSHOT_ID.e37099fee0": [], "test.external_models.not_null_silver__flashbots_mev_txs__INSERTED_TIMESTAMP.6abaa9d8f7": [], "test.external_models.not_null_silver__flashbots_mev_txs_BLOCK_TIME.43b2a3dd1c": [], "test.external_models.dbt_utils_unique_combination_of_columns_silver__flashbots_mev_txs__ID.a3773be3b5": [], "test.external_models.not_null_silver__flashbots_protect_txs__INSERTED_TIMESTAMP.730aafbaf5": [], "test.external_models.dbt_utils_unique_combination_of_columns_silver__flashbots_protect_txs__ID.cea004070b": [], "test.livequery_models.test_transpose__get_status_200.8721d94682": [], "test.livequery_models.test_credmark_utils__get_status_200.d1548e1f6e": [], "test.livequery_models.test_opensea__get_status_200.5de63cfbb1": [], "test.livequery_models.test_stakingrewards__query_status_200.144a35304b": [], "test.livequery_models.test_subquery__graphql_status_200.b25433a976": [], "test.livequery_models.test_topshot__graphql_status_200.fb93e3b220": [], "test.livequery_models.test_allday__graphql_status_200.8cfd62f9a1": [], "test.livequery_models.test_coingecko__get_status_200.047f15c956": [], "test.livequery_models.test_dapplooker__get_chart_status_202.4fedf28822": [], "test.livequery_models.test_claude__post_messages_only_one_message.ff8a12fc1b": [], "test.livequery_models.test_claude__post_messages_with_model.7b5774fbf2": [], "test.livequery_models.test_claude__post_messages_with_all_params.0917a032d2": [], "test.livequery_models.test_claude__count_message_tokens.f5bafb2bce": [], "test.livequery_models.test_claude__list_models.8516d777c7": [], "test.livequery_models.test_claude__get_model.1f65c29a92": [], "test.livequery_models.test_claude__post_messages_batch.e4ee537ae3": [], "test.livequery_models.test_claude__list_message_batches.f5d6c40b59": [], "test.livequery_models.test_claude__list_message_batches_with_before.aae86d2911": [], "test.livequery_models.test_claude__list_message_batches_with_after.0e42b728e7": [], "test.livequery_models.test_claude__get_message_batch.b52b8b8d04": [], "test.livequery_models.test_claude__get_message_batch_results.ecc8ad465c": [], "test.livequery_models.test_claude_utils__post_status_200.a32a62cfdf": [], "test.livequery_models.test_strangelove__get_status_200.0a58865924": [], "test.livequery_models.test_fred__get_series_status_200.51822e30ca": [], "test.livequery_models.test_espn__get_status_200.b4f84cc829": [], "test.livequery_models.test_solscan_public_api_get__get_status_200.388381be71": [], "test.livequery_models.test_dappradar__get_status_200.979ea475dc": [], "test.livequery_models.test_covalent__get_status_200.bb43bb7f69": [], "test.livequery_models.test_deepnftvalue__get_status_200.49fba544bb": [], "test.livequery_models.test_github_utils__octocat_status_200.3573395088": [], "test.livequery_models.test_github_actions__workflows_status_200.1cc531bd94": [], "test.livequery_models.test_github_actions__runs_status_200.2d145a41cb": [], "test.livequery_models.test_github_actions__workflow_runs_status_200.abcfd5d553": [], "test.livequery_models.test_nftscan__get_status_200.33868e0f0d": [], "test.livequery_models.test_chainbase_utils__get_status_200.07b6733652": [], "test.livequery_models.test_snapshot__query_status_200.35a2cffb40": [], "test.livequery_models.test_reservoir__get_status_200.cb905ea233": [], "test.livequery_models.test_defillama__get_status_200.90864f8f89": [], "test.livequery_models.test_bitquery__graphql_status_200.11917beb18": [], "test.livequery_models.test_helius_apis__token_metadata_status_200.c2bafa3fb0": [], "test.livequery_models.test_helius_apis__balances_status_200.d668884644": [], "test.livequery_models.test_helius_apis__parse_transactions_status_200.71053900da": [], "test.livequery_models.test_helius_das__get_asset_status_200.3e65208714": [], "test.livequery_models.test_helius_das__get_signatures_for_asset_status_200.529a6b605d": [], "test.livequery_models.test_helius_das__search_assets_status_200.2373c30616": [], "test.livequery_models.test_helius_das__get_asset_proof_status_200.2ed48f9fe3": [], "test.livequery_models.test_helius_das__get_assets_by_owner_status_200.6f2f1ef95c": [], "test.livequery_models.test_helius_das__get_assets_by_authority_status_200.c9ac02b165": [], "test.livequery_models.test_helius_das__get_assets_by_creator_status_200.e8cb071d3a": [], "test.livequery_models.test_helius_das__get_assets_by_group_status_200.fe5813195d": [], "test.livequery_models.test_playgrounds__query_subgraph_status_200_liquidity_pools.dfcb23f707": [], "test.livequery_models.test_playgrounds__query_subgraph_status_200_total_pool_count.86c8b9c6ee": [], "test.livequery_models.test_quicknode_solana_nfts__fetch_nfts_status_200.94f0e0082e": [], "test.livequery_models.test_quicknode_solana_nfts__fetch_nfts_by_creator_status_200.70f38f0e31": [], "test.livequery_models.test_quicknode_polygon_tokens__get_token_metadata_by_contract_address_status_200.529daa7446": [], "test.livequery_models.test_quicknode_polygon_tokens__get_token_metadata_by_symbol_status_200.d60e37734e": [], "test.livequery_models.test_quicknode_polygon_tokens__get_transactions_by_address_status_200.194093aade": [], "test.livequery_models.test_quicknode_polygon_tokens__get_wallet_token_balance_status_200.2bffddb733": [], "test.livequery_models.test_quicknode_polygon_tokens__get_wallet_token_transactions_status_200.57669f1a96": [], "test.livequery_models.test_quicknode_ethereum_nfts__fetch_nft_collection_details_status_200.5a3e5bd53e": [], "test.livequery_models.test_quicknode_ethereum_nfts__fetch_nfts_status_200.e34b6fbe64": [], "test.livequery_models.test_quicknode_ethereum_nfts__fetch_nfts_by_collection_status_200.ba7f5aeceb": [], "test.livequery_models.test_quicknode_ethereum_nfts__get_transfers_by_nft_status_200.2e5143d642": [], "test.livequery_models.test_quicknode_ethereum_nfts__verify_nfts_owner_status_200.34afbca510": [], "test.livequery_models.test_quicknode_polygon_nfts__fetch_nft_collection_details_status_200.b69737052b": [], "test.livequery_models.test_quicknode_polygon_nfts__fetch_nfts_status_200.2d1f2ae9d6": [], "test.livequery_models.test_quicknode_polygon_nfts__fetch_nfts_by_collection_status_200.8286191e06": [], "test.livequery_models.test_quicknode_polygon_nfts__get_transfers_by_nft_status_200.2f6ba1e185": [], "test.livequery_models.test_quicknode_polygon_nfts__verify_nfts_owner_status_200.e87bb12c13": [], "test.livequery_models.test_quicknode_ethereum_tokens__get_token_metadata_by_contract_address_status_200.3d5c91f8e2": [], "test.livequery_models.test_quicknode_ethereum_tokens__get_token_metadata_by_symbol_status_200.c34c43a92d": [], "test.livequery_models.test_quicknode_ethereum_tokens__get_transactions_by_address_status_200.29d4ecb431": [], "test.livequery_models.test_quicknode_ethereum_tokens__get_wallet_token_balance_status_200.9cda095850": [], "test.livequery_models.test_quicknode_ethereum_tokens__get_wallet_token_transactions_status_200.990e59cd6c": [], "test.livequery_models.test_footprint_utils__get_status_200_v2_protocol_info.4d260facf4": [], "test.livequery_models.test_cmc__get_status_200.1e44de8c9e": [], "test.livequery_models.test_apilayer__get_status_200.f739b0d36b": [], "test.livequery_models.test_alchemy_tokens__get_token_allowance_status_200.65ce803e24": [], "test.livequery_models.test_alchemy_tokens__get_token_balances_status_200.bdaa3fdabb": [], "test.livequery_models.test_alchemy_tokens__get_token_metadata_status_200.ff08820c76": [], "test.livequery_models.test_alchemy_nfts__get_nfts_status_200.34e3001576": [], "test.livequery_models.test_alchemy_nfts__get_owners_for_token_status_200.c534c2579d": [], "test.livequery_models.test_alchemy_nfts__get_owners_for_collection_status_200.3cdb9f0962": [], "test.livequery_models.test_alchemy_nfts__is_holder_of_collection_status_200.d94f7ae355": [], "test.livequery_models.test_alchemy_nfts__get_contracts_for_owner_status_200.29e9e60296": [], "test.livequery_models.test_alchemy_nfts__get_nft_metadata_status_200.aad531a83a": [], "test.livequery_models.test_alchemy_nfts__get_nft_metadata_batch_status_200.44d0ef0140": [], "test.livequery_models.test_alchemy_nfts__get_contract_metadata_status_200.0a9337a17a": [], "test.livequery_models.test_alchemy_nfts__get_contract_metadata_batch_status_200.78a02ffe28": [], "test.livequery_models.test_alchemy_nfts__invalidate_contract_status_200.1ac32b4945": [], "test.livequery_models.test_alchemy_nfts__reingest_contract_status_200.3c2c45fd00": [], "test.livequery_models.test_alchemy_nfts__search_contract_metadata_status_200.1e97937b32": [], "test.livequery_models.test_alchemy_nfts__get_nfts_for_collection_status_200.f7ff9b5ee5": [], "test.livequery_models.test_alchemy_nfts__get_spam_contracts_status_200.b9dfb4e306": [], "test.livequery_models.test_alchemy_nfts__is_spam_contract_status_200.91af21989f": [], "test.livequery_models.test_alchemy_nfts__is_airdrop_status_200.58ce4f1bdc": [], "test.livequery_models.test_alchemy_nfts__get_floor_price_status_200.f2125d71e4": [], "test.livequery_models.test_alchemy_nfts__get_nft_sales_status_200.223f727f9f": [], "test.livequery_models.test_alchemy_nfts__compute_rarity_status_200.942425aa31": [], "test.livequery_models.test_alchemy_nfts__summarize_nft_attributes_status_200.99d7f57e35": [], "test.livequery_models.test_alchemy_transfers__get_asset_transfers_status_200.f1f3f416e4": [], "test.livequery_models.test__live_udf_api_post_data_object.208f9d5456": [], "test.livequery_models.test__live_udf_api_post_data_array.f30e6de8c8": [], "test.livequery_models.test__live_udf_api_post_data_string.e2159319bb": [], "test.livequery_models.test___utils_udf_introspect.79bd27a18b": [], "test.livequery_models.test__utils_udf_json_rpc_call.0b87c6050e": [], "test.livequery_models.test__utils_udf_urlencode_dict_true_1.3bf42c4e1b": [], "test.livequery_models.test__utils_udf_urlencode_dict_true_2.764afd6db8": [], "test.livequery_models.test__utils_udf_urlencode_dict_true_space.11f0932fc3": [], "test.livequery_models.test__utils_udf_urlencode_dict_true_special.4eef6cb355": [], "test.livequery_models.test__utils_udf_urlencode_dict_true_array.614d53ca8a": [], "test.livequery_models.test__utils_udf_urlencode_dict_false_1.e2e07ad77a": [], "test.livequery_models.test__utils_udf_urlencode_dict_false_2.58739709ab": [], "test.livequery_models.test__utils_udf_urlencode_dict_false_space.1167d3f089": [], "test.livequery_models.test__utils_udf_urlencode_dict_false_special.0cd3cb5826": [], "test.livequery_models.test__utils_udf_urlencode_dict_false_array.9524cea2e8": [], "test.livequery_models.test__utils_udf_urlencode_dict_1.1d75f92e0e": [], "test.livequery_models.test__utils_udf_urlencode_dict_2.60da312d8c": [], "test.livequery_models.test__utils_udf_urlencode_dict_space.d5e1917fd6": [], "test.livequery_models.test__utils_udf_urlencode_dict_special.6f25d30fd9": [], "test.livequery_models.test__utils_udf_urlencode_dict_array.25f6af5cf8": [], "test.livequery_models.test__utils_udf_urlencode_array_true_1.f1dc90fd5d": [], "test.livequery_models.test__utils_udf_urlencode_array_true_2.4c09ca3de2": [], "test.livequery_models.test__utils_udf_urlencode_array_true_space.c150fa3544": [], "test.livequery_models.test__utils_udf_urlencode_array_true_special.14abbd82f3": [], "test.livequery_models.test__utils_udf_urlencode_array_true_array.559475a80a": [], "test.livequery_models.test__utils_udf_urlencode_array_false_1.ffe0d93235": [], "test.livequery_models.test__utils_udf_urlencode_array_false_2.f6e4d9a06a": [], "test.livequery_models.test__utils_udf_urlencode_array_false_space.c46a422a10": [], "test.livequery_models.test__utils_udf_urlencode_array_false_special.ad3b4ce496": [], "test.livequery_models.test__utils_udf_urlencode_array_false_array.979bfafd11": [], "test.livequery_models.test__utils_udf_urlencode_array_1.bae96ece17": [], "test.livequery_models.test__utils_udf_urlencode_array_2.ff2898d4a2": [], "test.livequery_models.test__utils_udf_urlencode_array_space.67b6f51498": [], "test.livequery_models.test__utils_udf_urlencode_array_special.746423269a": [], "test.livequery_models.test__utils_udf_urlencode_array_array.3d05dcb6a9": [], "test.livequery_models.test__utils_udf_int_to_binary.46856460db": [], "test.livequery_models.test__utils_udf_int_to_binary_large_number.feba996e3b": [], "test.livequery_models.test__utils_udf_binary_to_int.907b20f381": [], "test.livequery_models.test__utils_udf_binary_to_int_large_number.926bff44e9": [], "test.livequery_models.test__utils_udf_evm_decode_log.b6fedb07e9": [], "source.external_models.bronze_streamline.bitquery": ["model.external_models.bronze__bitquery", "model.external_models.bronze__bitquery_FR"], "source.external_models.bronze_streamline.oklink": ["model.external_models.bronze__oklink", "model.external_models.bronze__oklink_FR"], "source.external_models.bronze_streamline.artemis": ["model.external_models.bronze__artemis", "model.external_models.bronze__artemis_FR"], "source.external_models.bronze_streamline.defillama_protocol_historical": ["model.external_models.bronze__defillama_protocol_historical", "model.external_models.bronze__defillama_protocol_historical_FR"], "source.external_models.bronze_streamline.valuations_parquet": ["model.external_models.bronze__streamline_fr_valuations", "model.external_models.bronze__streamline_valuations"], "source.external_models.bronze_streamline.defillama_stablecoin_metrics": ["model.external_models.bronze__defillama_stablecoin_metrics", "model.external_models.bronze__defillama_stablecoin_metrics_FR"], "source.external_models.bronze_streamline.defillama_protocols": ["model.external_models.bronze__defillama_protocols", "model.external_models.bronze__defillama_protocols_FR"], "source.external_models.bronze_streamline.defillama_perp_metrics": ["model.external_models.bronze__defillama_perp_metrics", "model.external_models.bronze__defillama_perp_metrics_FR"], "source.external_models.tokenflow_eth.blocks": [], "source.external_models.tokenflow_eth.calls": [], "source.external_models.tokenflow_eth.events": [], "source.external_models.tokenflow_eth.state_diffs": [], "source.external_models.tokenflow_eth.storage_diffs": [], "source.external_models.tokenflow_eth.storage_reads": [], "source.external_models.tokenflow_eth.tokens_allowance_diffs": [], "source.external_models.tokenflow_eth.tokens_balance_diffs": [], "source.external_models.tokenflow_eth.tokens_metadata": [], "source.external_models.tokenflow_eth.transactions": [], "source.external_models.crosschain_silver.apis_keys": ["model.external_models.bronze__dnv_tokens", "model.external_models.bronze__snapshot_users", "model.external_models.bronze__snapshot_votes"], "source.external_models.crosschain_core.dim_dates": ["model.external_models.streamline__artemis_metrics", "model.external_models.streamline__bitquery_metrics", "model.external_models.streamline__oklink_metrics"], "source.external_models.crosschain_defi.ez_bridge_activity": ["model.external_models.silver__defillama_bridge_volume_by_chain"], "source.external_models.ethereum_silver.nft_transfers": [], "source.external_models.starknet_snapshot.blocks": ["model.external_models.tokenflow_starknet__decoded_blocks"], "source.external_models.starknet_snapshot.events": ["model.external_models.tokenflow_starknet__decoded_events"], "source.external_models.starknet_snapshot.messages": ["model.external_models.tokenflow_starknet__decoded_messages"], "source.external_models.starknet_snapshot.traces": ["model.external_models.tokenflow_starknet__decoded_traces"], "source.external_models.starknet_snapshot.transactions": ["model.external_models.tokenflow_starknet__decoded_transactions"], "source.external_models.starknet_snapshot.l1_blocks": ["model.external_models.tokenflow_starknet__l1_data_blocks"], "source.external_models.starknet_snapshot.l1_contracts": ["model.external_models.tokenflow_starknet__l1_data_contracts"], "source.external_models.starknet_snapshot.l1_messages": ["model.external_models.tokenflow_starknet__l1_data_messages"], "source.external_models.starknet_snapshot.l1_storage_diffs": ["model.external_models.tokenflow_starknet__l1_data_storage_diffs"], "source.external_models.flashbots.mev": ["model.external_models.bronze__flashbots_mev_txs", "model.external_models.bronze__flashbots_mev_txs_fr"], "source.external_models.flashbots.protect": ["model.external_models.bronze__flashbots_protect_txs", "model.external_models.bronze__flashbots_protect_txs_fr"], "source.external_models.layerzero.transactions": ["model.external_models.bronze__layerzero_txs_snapshot1"], "source.external_models.external_bronze.farcaster_blocks": ["model.external_models.farcaster__fact_blocks"], "source.external_models.external_bronze.farcaster_casts": ["model.external_models.farcaster__fact_casts"], "source.external_models.external_bronze.farcaster_fids": ["model.external_models.farcaster__dim_fids"], "source.external_models.external_bronze.farcaster_fnames": ["model.external_models.farcaster__dim_fnames"], "source.external_models.external_bronze.farcaster_links": ["model.external_models.farcaster__fact_links"], "source.external_models.external_bronze.farcaster_signers": ["model.external_models.farcaster__fact_signers"], "source.external_models.external_bronze.farcaster_storage": ["model.external_models.farcaster__fact_storage"], "source.external_models.external_bronze.farcaster_reactions": ["model.external_models.farcaster__fact_reactions"], "source.external_models.external_bronze.farcaster_user_data": ["model.external_models.farcaster__fact_user_data"], "source.external_models.external_bronze.farcaster_verifications": ["model.external_models.farcaster__fact_verifications"], "source.external_models.external_bronze.farcaster_channel_follows": ["model.external_models.farcaster__fact_channel_follows"], "source.external_models.external_bronze.farcaster_profile_with_addresses": ["model.external_models.farcaster__dim_profile_with_addresses"], "source.external_models.external_bronze.farcaster_warpcast_power_users": ["model.external_models.farcaster__fact_warpcast_power_users"], "source.external_models.external_bronze.aptos_shinam": ["model.external_models.bronze_aptos__shinam_data"], "source.external_models.avalanche_share.c_blocks": [], "source.external_models.avalanche_share.c_messages": ["model.external_models.avalanche__fact_c_messages"], "source.external_models.avalanche_share.c_transactions": [], "source.external_models.avalanche_share.c_internal_transactions": [], "source.external_models.avalanche_share.c_receipts": [], "source.external_models.avalanche_share.data_dictionary": ["model.external_models.avalanche__dim_data_dictionary"], "source.external_models.avalanche_share.p_blocks": ["model.external_models.avalanche__fact_p_blocks"], "source.external_models.avalanche_share.p_transactions": ["model.external_models.avalanche__fact_p_transactions"], "source.external_models.avalanche_share.utxos": ["model.external_models.avalanche__fact_utxos"], "source.external_models.avalanche_share.vertices": ["model.external_models.avalanche__fact_x_vertices"], "source.external_models.avalanche_share.x_blocks": ["model.external_models.avalanche__fact_x_blocks"], "source.external_models.avalanche_share.x_transactions": ["model.external_models.avalanche__fact_x_transactions"], "source.livequery_models.crosschain.dim_date_hours": [], "source.livequery_models.crosschain.dim_contracts": ["model.livequery_models._evm__contracts_map"], "source.livequery_models.crosschain.dim_evm_event_abis": ["model.livequery_models._evm__abi_map"], "source.livequery_models.ethereum_core.fact_event_logs": ["model.livequery_models._eth__logs"], "source.livequery_models.ethereum_core.ez_decoded_event_logs": ["model.livequery_models._eth__decoded_logs"]}, "group_map": {}, "saved_queries": {}, "semantic_models": {}} \ No newline at end of file diff --git a/package-lock.yml b/package-lock.yml index 692a7da..36a8b71 100644 --- a/package-lock.yml +++ b/package-lock.yml @@ -6,9 +6,9 @@ packages: - package: dbt-labs/dbt_utils version: 1.0.0 - git: https://github.com/FlipsideCrypto/fsc-utils.git - revision: b1e612ace7060a257e9622fe01b0854722c6fae7 + revision: 87e00eb90acddcc7a34aa8e67e3b3bac86b262e6 - package: calogica/dbt_date version: 0.7.2 - git: https://github.com/FlipsideCrypto/livequery-models.git - revision: 883675b4021cc9a777e12fe6be8114ab039ab365 -sha1_hash: 014e9645cbaa3e1a154d08c8ae0c8317f385d6fc + revision: 2651a45b7e123f7bd421bcc0e7e2a7bcbaf7652f +sha1_hash: 80395a28e8fca7f7187de9fc6f52b055005b81a3